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

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

@font-face {
  font-family: 'Space Grotesk';
  src: url('/Fonts/space-grotesk-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/Fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/Fonts/space-grotesk-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: "Fraunces", Georgia, serif;
    --sans: "Space Grotesk", system-ui, sans-serif;
    --radius: 24px;
    --green: #22c55e;

    --ease-apple:  cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.12, 0.64, 1);
    --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:  0px 2px 8px rgba(0,0,0,0.06), 0px 8px 24px rgba(0,0,0,0.05);
    --shadow-hover: 0px 4px 16px rgba(0, 0, 0, 0.322), 0px 20px 20px rgba(0, 0, 0, 0.205);
    --gl-top-padding: 155px;
}

.dark {
  --bg:     #111110;
  --bg2:    #1a1918;
  --text:   #e8e5df;
  --muted:  #777470;
  --border: #2a2927;
  --shadow-card:  0px 2px 8px rgba(0,0,0,0.25), 0px 8px 24px rgba(0,0,0,0.22);
  --shadow-hover: 0px 4px 16px rgba(0,0,0,0.4),  0px 20px 48px rgba(0,0,0,0.45);
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    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;
    overflow: hidden;
    animation: sidebarIn 0.8s var(--ease-spring) both;
    transition: width 0.6s var(--ease-spring),
                padding 0.6s var(--ease-spring),
                opacity 0.6s var(--ease-spring),
                transform 0.6s var(--ease-spring);
}

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

/* ── Sidebar masquée sur une page projet — laisse toute la place au titre et au bouton retour ── */
body.proj-active .sidebar {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    transform: translateX(-24px);
    pointer-events: none;
}

.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);
    cursor: pointer;
}

.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: 1%;
}
.sb-name p:hover {
    transform: translateY(-17px);
}
.sb-role {
    font-size: 13px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
    position: absolute;
    left: 60px;
    top: 20px;
}

.sb-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fadeUp .6s var(--ease-spring) .18s both;
    position: relative;
}

/* pill indicator glissante */

.sb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    text-decoration: none;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    transition: transform 0.3s var(--ease-spring);
}

.sb-link:hover {
    transform: translateX(2px);
}

.sb-link:active {
    transform: translateX(2px) scale(0.97);
    transition-duration: 0.1s;
}

.sb-dot {
    font-size: 12px;
    opacity: 0;
    width: 10px;
    flex-shrink: 0;
    color: var(--text);
    line-height: 1;
    transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
    transform: scale(0.5);
}

.sb-link.active .sb-dot {
    opacity: 1;
    transform: scale(1);
}

.sb-lbl {
    font-size: 19px;
    font-weight: 400;
    color: var(--muted);
    transition: color 0.35s var(--ease-apple),
                opacity 0.35s var(--ease-apple);
}

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

.sb-link:hover .sb-lbl {
    color: var(--text);
    opacity: 0.88;
}

.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);
  transition: opacity 0.4s var(--ease-out);
}

@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); }

#settings-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;
    top: 128px;
    border-radius: 50%;
    transition: 0.3s;
}

#settings-btn:hover {
    color: var(--text);
    transform: rotate(90deg);
    scale: 1.2;
}

#settings-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ── Le menu ne descend qu'au survol, et seulement sur les appareils
   avec un vrai pointeur (souris) — sur tactile, hover:none, donc ces
   boutons restent gérés par les règles mobiles plus bas ── */
@media (hover: hover) and (pointer: fine) {
    #theme-btn,
    #settings-btn {
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), color 0.2s;
    }

    .sidebar:has(.sb-profile:hover) #theme-btn,
    .sidebar:has(.sb-profile:hover) #settings-btn,
    .sidebar:has(#theme-btn:hover) #theme-btn,
    .sidebar:has(#theme-btn:hover) #settings-btn,
    .sidebar:has(#settings-btn:hover) #theme-btn,
    .sidebar:has(#settings-btn:hover) #settings-btn {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.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: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    overflow-y: auto;
}

@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);
    corner-shape: squircle;
    overflow: hidden;
    background: var(--bg2);
    cursor: pointer;
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    box-shadow: var(--shadow-card);
    transition:
      opacity 0.85s var(--ease-spring) var(--reveal-delay, 0ms),
      transform 0.85s var(--ease-spring) var(--reveal-delay, 0ms),
      box-shadow 0.5s var(--ease-apple);
}

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

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

.gl-card-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    corner-shape: squircle;
    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.75s var(--ease-spring);
    transform-origin: center center;
}


.card-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 28px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 55%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-spring);
}

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

/* Les écrans tactiles n'ont pas de vrai survol : le titre reste visible
   en permanence pour ne pas rendre le nom du projet indécouvrable. */
@media (hover: none) {
    .card-footer {
        opacity: 1;
        transform: none;
    }
}


.card-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    color: #fff;
    margin-left: 12px;
    padding-top: 5px;
}

.card-location {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
    margin-left: 12px;
}

.card-arrow {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    padding: 0 8px 8px 0;
    transition: transform 0.4s var(--ease-spring);
    line-height: 1;
}

.gl-card.visible:hover .card-arrow {
    transform: translateX(3px);
}

.gl-footer {
    padding: 16px;
    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;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.proj-back {
    width: 100%;
    max-width: 1100px;
    padding: 20px 28px 0;
    position: sticky;
    top: 0;
    z-index: 5;
    pointer-events: none;
    /*! margin-left: auto; */
    margin-right: auto;
}

.proj-back button {
    pointer-events: all;
    /*! background: rgba(255, 255, 255, 0.82); */
    /*! backdrop-filter: blur(12px); */
    border: var(--muted);
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    padding: 6px 16px;
    line-height: 1;
    /*! border-radius: 40px; */
    font-family: var(--serif);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /*! box-shadow: 0 1px 4px rgba(0,0,0,0.06); */
}

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

.proj-back button:hover {
    color: var(--text);
    transform: translateX(-3px) scale(1.02);
    background: var(--bg);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.proj-back button:active {
    transform: translateX(-1px) scale(0.98);
    transition-duration: 0.1s;
}

/* ── Header projet ── */

.proj-header {
    width: 100%;
    max-width: 1100px;
    padding: 36px 28px 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-spring) 0.05s,
                transform 0.7s var(--ease-spring) 0.05s;
    margin-left: 10%;
    margin-right: auto;
}

.proj-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.proj-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 20px;
    margin-right: auto;
}

.proj-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
}

.pm-item {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
}

.pm-item + .pm-item::before {
    content: '·';
    margin: 0 10px;
    opacity: 0.4;
}

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

.proj-description {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85;
    max-width: 520px;
}

/* ── Photos ── */

.proj-photos {
    /*! width: 100%; */
    /*! max-width: 1100px; */
    padding: 0 28px 80px;
    /*! margin-left: auto; */
    /*! margin-right: auto; */
    column-count: 2;
    /*! column-gap: 20px; */
}

@media (min-width: 1100px) {
    .proj-photos {
        column-count: 3;
    }
}

.proj-photo-item {
    /*! border-radius: var(--radius); */
    overflow: hidden;
    cursor: zoom-in;
    margin-bottom: 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
    opacity: 0;
    transform: translateY(32px) scale(0.965);
    transition: opacity 0.9s var(--ease-spring) var(--reveal-delay, 0ms),
                transform 0.9s var(--ease-spring) var(--reveal-delay, 0ms);
}

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

.proj-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.65s var(--ease-spring);
    cursor: zoom-in;
    border-radius: var(--radius);
    corner-shape: squircle;
}


/* ═══ LIGHTBOX ═══ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 4, 4, 0.96);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
    animation: lbIn 0.5s var(--ease-spring) both;
}

@keyframes lbIn {
    from { opacity: 0; transform: scale(0.94); }
    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(28px) scale(0.975);
    transition: opacity 1s var(--ease-spring),
                transform 1s var(--ease-spring);
}

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

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

.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: 5px;
    font-family: var(--serif);
    font-weight: 500;
}

.about-cta-arrow {
    display: inline-block;
    transition: transform 0.25s var(--ease-out);
}

.about-cta:hover .about-cta-arrow {
    transform: translateX(4px);
}

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

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

.about-section {
    opacity: 0;
    transform: translateY(24px) scale(0.978);
    transition: opacity 0.9s var(--ease-spring),
                transform 0.9s var(--ease-spring);
}

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

.about-section:nth-child(1) { transition-delay: 0s;    }
.about-section:nth-child(2) { transition-delay: 0.08s; }
.about-section:nth-child(3) { transition-delay: 0.18s; }
.about-section:nth-child(4) { transition-delay: 0.30s; }

.section-title {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
}

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

.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-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    background: var(--bg2);
    box-shadow: var(--shadow-card);
}

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

/* ═══ TIMELINE ═══ */

/* ═══ TIMELINE ═══ */

/* ─── Sites précédents ─── */

.prev-list {
  flex-direction: column;
  display: grid;
  gap: 38px;
}

.prev-item {
  padding: 14px 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-spring) var(--cc-delay, 0ms),
              transform 0.7s var(--ease-spring) var(--cc-delay, 0ms);
  border-radius: var(--radius);
  corner-shape: squircle;
  box-shadow: var(--shadow-card);
}

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

.prev-item:nth-child(1) { --cc-delay: 0ms;   }
.prev-item:nth-child(2) { --cc-delay: 55ms;  }
.prev-item:nth-child(3) { --cc-delay: 110ms; }

.project-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.project-year {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  width: 32px;
}

.project-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
}

.project-tag {
  font-size: 10.5px;
  color: var(--muted);
  margin-left: auto;
  flex-shrink: 0;
}

.project-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 42px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 42px;
}

.project-stack {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.03em;
}

.project-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-apple), transform 0.3s var(--ease-spring);
  display: inline-block;
}

.project-link:hover {
  color: var(--text);
  transform: translateX(3px);
}

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

/* ─── Privacy liste ─── */

.privacy-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.privacy-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.65s var(--ease-spring) var(--cc-delay, 0ms),
              transform 0.65s var(--ease-spring) var(--cc-delay, 0ms);
}

.privacy-row:first-child {
  border-top: none;
}

.privacy-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.privacy-row:nth-child(1) { --cc-delay: 0ms;   }
.privacy-row:nth-child(2) { --cc-delay: 45ms;  }
.privacy-row:nth-child(3) { --cc-delay: 90ms;  }
.privacy-row:nth-child(4) { --cc-delay: 135ms; }

.privacy-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 400;
  flex-shrink: 0;
  width: 160px;
}

.privacy-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Droits d'auteur ─── */

.about-legal {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 520px;
}

.about-text-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease-apple), border-color 0.25s var(--ease-apple);
  display: inline-block;
}

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

.about-section--full {
  grid-column: 1 / -1;
  padding-top: 38px;
  margin-top: 4px;
}

.timeline {
  position: relative;
}


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

.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.06s; }
.tl-item:nth-child(3) { transition-delay: 0.13s; }
.tl-item:nth-child(4) { transition-delay: 0.20s; }
.tl-item:nth-child(5) { transition-delay: 0.27s; }
.tl-item:nth-child(6) { transition-delay: 0.34s; }

.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-size: 14px;
  font-weight: 500;
  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: 600;
  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;
}

/* ═══ CONTACT ═══ */
/* Une seule colonne, beaucoup d'air, une typographie qui porte la page —
   même langage que .proj-title (Fraunces italique) et .about-cta
   (liens nus plutôt que gros boutons colorés). Pas de couleur d'accent :
   le site est monochrome, le contact le reste aussi. */

.contact-center {
    width: 100%;
    max-width: 620px;
    padding: 72px 24px 96px;
}

/* Apparition échelonnée — même schéma (fondu + montée + ease-spring) que
   .about-section et .tl-item, pour que les trois pages du site s'animent
   de façon cohérente à l'entrée. */
.contact-center > * {
    opacity: 0;
    transform: translateY(24px) scale(0.978);
    transition: opacity 0.9s var(--ease-spring),
                transform 0.9s var(--ease-spring);
}

.contact-center.visible > * {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contact-center > *:nth-child(1) { transition-delay: 0s;    }
.contact-center > *:nth-child(2) { transition-delay: 0.07s; }
.contact-center > *:nth-child(3) { transition-delay: 0.14s; }
.contact-center > *:nth-child(4) { transition-delay: 0.21s; }
.contact-center > *:nth-child(5) { transition-delay: 0.28s; }
.contact-center > *:nth-child(6) { transition-delay: 0.35s; }

.contact-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.contact-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 24px;
}

.contact-intro {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 440px;
    margin-bottom: 44px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    padding: 22px 26px;
    margin-bottom: 40px;
    background: var(--bg2);
    border-radius: var(--radius);
    corner-shape: squircle;
}

.info-row {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.info-label {
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.info-value {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--text);
}

.info-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.85;
}
.info-link:hover {
    color: var(--text);
    opacity: 1;
}

.socials {
    display: flex;
    gap: 14px;
}

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

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

.socials svg {
    width: 16px;
    height: 16px;
    fill: currentcolor;
}

.contact-note {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 24px;
}

/* ═══ FORMULAIRE DE CONTACT ═══ */
/* Champs à ligne de base plutôt que pastilles grises : plus proche de
   l'esprit éditorial du reste du site qu'un formulaire SaaS générique. */

.contact-form {
    margin-top: 4px;
}

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

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

.form-label {
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--muted);
}

.form-input {
    background: var(--bg2);
    border: none;
    border-radius: var(--radius);
    corner-shape: squircle;
    padding: 13px 16px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text);
    font-weight: 400;
    transition: background 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple);
    outline: none;
    width: 100%;
}

.form-input:focus {
    background: var(--bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.dark .form-input:focus {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

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

.form-input.error {
    box-shadow: 0 0 0 1.5px #dc2626;
}

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

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

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

.form-btn {
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 40px;
    padding: 12px 30px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.25s, transform 0.25s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: center;
    margin: 6px auto 0;
}

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

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

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

.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;
}

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

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

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

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

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

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



@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;
  pointer-events: auto;
  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: 400;
  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);
}

#quote-loading {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-expo);
}

#quote-loading.visible {
  opacity: 1;
}

.quote-progress {
  width: 120px;
  height: 1px;
  background: color-mix(in srgb, var(--text) 18%, transparent);
  overflow: hidden;
}

.quote-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--text);
  transition: width 0.15s linear;
}

.quote-percent {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--text) 55%, transparent);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}

#quote-overlay.loaded #quote-loading {
  display: none;
}

/* ═══ 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);
  corner-shape: squircle;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  z-index: 0;
  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;
  z-index: 9996;
}

.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: 600;
  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); }

/* ── Panneau paramètres : même mécanique que le popup privacy ── */
#settings-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;
}

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

#settings-popup {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: min(360px, calc(100vw - 32px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  z-index: 0;
  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;
}

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

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text);
}

.settings-row #settings-theme-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  color: var(--muted);
}
.settings-row #settings-theme-toggle svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-expo);
}

/* ═══ 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;
}

/* ═══ RIGHTS POPUP ═══ */

#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: 16px;
    right: 16px;
    margin: 0 auto;
    transform: translateY(20px);
    max-width: 520px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    corner-shape: squircle;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    z-index: 0;
    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: translateY(0);
    pointer-events: all;
    z-index: 9999; 
  }

  /* 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-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .rp-text {
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 400;
    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;
  }

/* ═══ 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;
    }

    .gl-card,
    .proj-photo-item,
    .about-top,
    .about-section,
    .tl-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !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 {
    display: block !important;
  }

  .proj-header {
    padding: 16px 18px 28px;
  }

  .proj-header-top {
    flex-direction: column;
    gap: 10px;
  }

  .proj-photos {
    padding: 0 18px 60px;
    column-count: 1;
  }

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

  .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 {
    justify-content: center;
  }

  .contact-center {
    padding: 40px 20px 60px;
  }

  .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;
    transition: transform 0.6s var(--ease-spring), opacity 0.6s var(--ease-spring);
  }

  /* ── Barre de nav masquée sur une page projet ── */
  body.proj-active .sidebar {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  body.proj-active .main {
    padding-bottom: 0;
    transition: padding-bottom 0.6s var(--ease-spring);
  }

  .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 — masqué sur mobile, déplacé dans le panneau paramètres ── */
  #theme-btn {
    display: none;
  }

  /* ── Bouton paramètres — reprend la place laissée par le thème, colonne de droite ── */
  #settings-btn {
    display: flex;
    position: relative;
    top: 0;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    justify-self: end;
  }

  #settings-btn svg {
    width: 26px;
    height: 26px;
  }

  /* ── 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-header {
    padding: 10px 65px 22px 10px;
  }

  .proj-title {
    font-size: 24px;
  }

  .proj-photos {
    padding: 0 14px 60px;
    column-count: 1;
  }

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

  .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;
  }

  .project-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .project-desc,
  .project-footer {
    padding-left: 0;
  }

  .privacy-row {
    flex-direction: column;
    gap: 4px;
  }

  .privacy-label {
    width: auto;
  }

  /* ── Contact ── */
  .contact-center {
    padding: 24px 16px 60px;
  }

  .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;
  }

  /* ── 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);
  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;
  }
}
}/* ═══════════════════════════ FONTS AUTO-HÉBERGÉES ═══════════════════════════ */

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

@font-face {
  font-family: 'Space Grotesk';
  src: url('/Fonts/space-grotesk-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/Fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/Fonts/space-grotesk-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: "Fraunces", Georgia, serif;
    --sans: "Space Grotesk", system-ui, sans-serif;
    --radius: 24px;
    --green: #22c55e;

    --ease-apple:  cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.12, 0.64, 1);
    --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:  0px 2px 8px rgba(0,0,0,0.06), 0px 8px 24px rgba(0,0,0,0.05);
    --shadow-hover: 0px 4px 16px rgba(0, 0, 0, 0.322), 0px 20px 20px rgba(0, 0, 0, 0.205);
    --gl-top-padding: 155px;
}

.dark {
  --bg:     #111110;
  --bg2:    #1a1918;
  --text:   #e8e5df;
  --muted:  #777470;
  --border: #2a2927;
  --shadow-card:  0px 2px 8px rgba(0,0,0,0.25), 0px 8px 24px rgba(0,0,0,0.22);
  --shadow-hover: 0px 4px 16px rgba(0,0,0,0.4),  0px 20px 48px rgba(0,0,0,0.45);
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    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;
    overflow: hidden;
    animation: sidebarIn 0.8s var(--ease-spring) both;
    transition: width 0.6s var(--ease-spring),
                padding 0.6s var(--ease-spring),
                opacity 0.6s var(--ease-spring),
                transform 0.6s var(--ease-spring);
}

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

/* ── Sidebar masquée sur une page projet — laisse toute la place au titre et au bouton retour ── */
body.proj-active .sidebar {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    transform: translateX(-24px);
    pointer-events: none;
}

.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);
    cursor: pointer;
}

.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: 1%;
}
.sb-name p:hover {
    transform: translateY(-17px);
}
.sb-role {
    font-size: 13px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
    position: absolute;
    left: 60px;
    top: 20px;
}

.sb-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fadeUp .6s var(--ease-spring) .18s both;
    position: relative;
}

/* pill indicator glissante */

.sb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    text-decoration: none;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    transition: transform 0.3s var(--ease-spring);
}

.sb-link:hover {
    transform: translateX(2px);
}

.sb-link:active {
    transform: translateX(2px) scale(0.97);
    transition-duration: 0.1s;
}

.sb-dot {
    font-size: 12px;
    opacity: 0;
    width: 10px;
    flex-shrink: 0;
    color: var(--text);
    line-height: 1;
    transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
    transform: scale(0.5);
}

.sb-link.active .sb-dot {
    opacity: 1;
    transform: scale(1);
}

.sb-lbl {
    font-size: 19px;
    font-weight: 400;
    color: var(--muted);
    transition: color 0.35s var(--ease-apple),
                opacity 0.35s var(--ease-apple);
}

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

.sb-link:hover .sb-lbl {
    color: var(--text);
    opacity: 0.88;
}

.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);
  transition: opacity 0.4s var(--ease-out);
}

@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); }

/* ── Bouton paramètres (même style que le bouton thème) ── */
#settings-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;
    top: 128px;
    border-radius: 50%;
}

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

#settings-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ── Le menu ne descend qu'au survol, et seulement sur les appareils
   avec un vrai pointeur (souris) — sur tactile, hover:none, donc ces
   boutons restent gérés par les règles mobiles plus bas ── */
@media (hover: hover) and (pointer: fine) {
    #theme-btn,
    #settings-btn {
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), color 0.2s;
    }

    .sidebar:has(.sb-profile:hover) #theme-btn,
    .sidebar:has(.sb-profile:hover) #settings-btn,
    .sidebar:has(#theme-btn:hover) #theme-btn,
    .sidebar:has(#theme-btn:hover) #settings-btn,
    .sidebar:has(#settings-btn:hover) #theme-btn,
    .sidebar:has(#settings-btn:hover) #settings-btn {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.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: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    overflow-y: auto;
}

@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);
    corner-shape: squircle;
    overflow: hidden;
    background: var(--bg2);
    cursor: pointer;
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    box-shadow: var(--shadow-card);
    transition:
      opacity 0.85s var(--ease-spring) var(--reveal-delay, 0ms),
      transform 0.85s var(--ease-spring) var(--reveal-delay, 0ms),
      box-shadow 0.5s var(--ease-apple);
}

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

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

.gl-card-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    corner-shape: squircle;
    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.75s var(--ease-spring);
    transform-origin: center center;
}


.card-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 28px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 55%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-spring);
}

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

/* Les écrans tactiles n'ont pas de vrai survol : le titre reste visible
   en permanence pour ne pas rendre le nom du projet indécouvrable. */
@media (hover: none) {
    .card-footer {
        opacity: 1;
        transform: none;
    }
}


.card-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    color: #fff;
    margin-left: 12px;
    padding-top: 5px;
}

.card-location {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
    margin-left: 12px;
}

.card-arrow {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    padding: 0 8px 8px 0;
    transition: transform 0.4s var(--ease-spring);
    line-height: 1;
}

.gl-card.visible:hover .card-arrow {
    transform: translateX(3px);
}

.gl-footer {
    padding: 16px;
    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;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.proj-back {
    width: 100%;
    max-width: 1100px;
    padding: 20px 28px 0;
    position: sticky;
    top: 0;
    z-index: 5;
    pointer-events: none;
    /*! margin-left: auto; */
    margin-right: auto;
}

.proj-back button {
    pointer-events: all;
    /*! background: rgba(255, 255, 255, 0.82); */
    /*! backdrop-filter: blur(12px); */
    border: var(--muted);
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    padding: 6px 16px;
    line-height: 1;
    /*! border-radius: 40px; */
    font-family: var(--serif);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /*! box-shadow: 0 1px 4px rgba(0,0,0,0.06); */
}

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

.proj-back button:hover {
    color: var(--text);
    transform: translateX(-3px) scale(1.02);
    background: var(--bg);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.proj-back button:active {
    transform: translateX(-1px) scale(0.98);
    transition-duration: 0.1s;
}

/* ── Header projet ── */

.proj-header {
    width: 100%;
    max-width: 1100px;
    padding: 36px 28px 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-spring) 0.05s,
                transform 0.7s var(--ease-spring) 0.05s;
    margin-left: 10%;
    margin-right: auto;
}

.proj-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.proj-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 20px;
    margin-right: auto;
}

.proj-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
}

.pm-item {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
}

.pm-item + .pm-item::before {
    content: '·';
    margin: 0 10px;
    opacity: 0.4;
}

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

.proj-description {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85;
    max-width: 520px;
}

/* ── Photos ── */

.proj-photos {
    /*! width: 100%; */
    /*! max-width: 1100px; */
    padding: 0 28px 80px;
    /*! margin-left: auto; */
    /*! margin-right: auto; */
    column-count: 2;
    /*! column-gap: 20px; */
}

@media (min-width: 1100px) {
    .proj-photos {
        column-count: 3;
    }
}

.proj-photo-item {
    /*! border-radius: var(--radius); */
    overflow: hidden;
    cursor: zoom-in;
    margin-bottom: 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
    opacity: 0;
    transform: translateY(32px) scale(0.965);
    transition: opacity 0.9s var(--ease-spring) var(--reveal-delay, 0ms),
                transform 0.9s var(--ease-spring) var(--reveal-delay, 0ms);
}

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

.proj-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.65s var(--ease-spring);
    cursor: zoom-in;
    border-radius: var(--radius);
    corner-shape: squircle;
}


/* ═══ LIGHTBOX ═══ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 4, 4, 0.96);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
    animation: lbIn 0.5s var(--ease-spring) both;
}

@keyframes lbIn {
    from { opacity: 0; transform: scale(0.94); }
    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(28px) scale(0.975);
    transition: opacity 1s var(--ease-spring),
                transform 1s var(--ease-spring);
}

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

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

.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: 5px;
    font-family: var(--serif);
    font-weight: 500;
}

.about-cta-arrow {
    display: inline-block;
    transition: transform 0.25s var(--ease-out);
}

.about-cta:hover .about-cta-arrow {
    transform: translateX(4px);
}

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

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

.about-section {
    opacity: 0;
    transform: translateY(24px) scale(0.978);
    transition: opacity 0.9s var(--ease-spring),
                transform 0.9s var(--ease-spring);
}

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

.about-section:nth-child(1) { transition-delay: 0s;    }
.about-section:nth-child(2) { transition-delay: 0.08s; }
.about-section:nth-child(3) { transition-delay: 0.18s; }
.about-section:nth-child(4) { transition-delay: 0.30s; }

.section-title {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
}

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

.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-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    background: var(--bg2);
    box-shadow: var(--shadow-card);
}

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

/* ═══ TIMELINE ═══ */

/* ═══ TIMELINE ═══ */

/* ─── Sites précédents ─── */

.prev-list {
  flex-direction: column;
  display: grid;
  gap: 38px;
}

.prev-item {
  padding: 14px 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-spring) var(--cc-delay, 0ms),
              transform 0.7s var(--ease-spring) var(--cc-delay, 0ms);
  border-radius: var(--radius);
  corner-shape: squircle;
  box-shadow: var(--shadow-card);
}

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

.prev-item:nth-child(1) { --cc-delay: 0ms;   }
.prev-item:nth-child(2) { --cc-delay: 55ms;  }
.prev-item:nth-child(3) { --cc-delay: 110ms; }

.project-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.project-year {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  width: 32px;
}

.project-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
}

.project-tag {
  font-size: 10.5px;
  color: var(--muted);
  margin-left: auto;
  flex-shrink: 0;
}

.project-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 42px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 42px;
}

.project-stack {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.03em;
}

.project-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-apple), transform 0.3s var(--ease-spring);
  display: inline-block;
}

.project-link:hover {
  color: var(--text);
  transform: translateX(3px);
}

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

/* ─── Privacy liste ─── */

.privacy-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.privacy-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.65s var(--ease-spring) var(--cc-delay, 0ms),
              transform 0.65s var(--ease-spring) var(--cc-delay, 0ms);
}

.privacy-row:first-child {
  border-top: none;
}

.privacy-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.privacy-row:nth-child(1) { --cc-delay: 0ms;   }
.privacy-row:nth-child(2) { --cc-delay: 45ms;  }
.privacy-row:nth-child(3) { --cc-delay: 90ms;  }
.privacy-row:nth-child(4) { --cc-delay: 135ms; }

.privacy-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 400;
  flex-shrink: 0;
  width: 160px;
}

.privacy-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Droits d'auteur ─── */

.about-legal {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 520px;
}

.about-text-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease-apple), border-color 0.25s var(--ease-apple);
  display: inline-block;
}

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

.about-section--full {
  grid-column: 1 / -1;
  padding-top: 38px;
  margin-top: 4px;
}

.timeline {
  position: relative;
}


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

.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.06s; }
.tl-item:nth-child(3) { transition-delay: 0.13s; }
.tl-item:nth-child(4) { transition-delay: 0.20s; }
.tl-item:nth-child(5) { transition-delay: 0.27s; }
.tl-item:nth-child(6) { transition-delay: 0.34s; }

.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-size: 14px;
  font-weight: 500;
  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: 600;
  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;
}

/* ═══ CONTACT ═══ */
/* Une seule colonne, beaucoup d'air, une typographie qui porte la page —
   même langage que .proj-title (Fraunces italique) et .about-cta
   (liens nus plutôt que gros boutons colorés). Pas de couleur d'accent :
   le site est monochrome, le contact le reste aussi. */

.contact-center {
    width: 100%;
    max-width: 620px;
    padding: 72px 24px 96px;
}

/* Apparition échelonnée — même schéma (fondu + montée + ease-spring) que
   .about-section et .tl-item, pour que les trois pages du site s'animent
   de façon cohérente à l'entrée. */
.contact-center > * {
    opacity: 0;
    transform: translateY(24px) scale(0.978);
    transition: opacity 0.9s var(--ease-spring),
                transform 0.9s var(--ease-spring);
}

.contact-center.visible > * {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contact-center > *:nth-child(1) { transition-delay: 0s;    }
.contact-center > *:nth-child(2) { transition-delay: 0.07s; }
.contact-center > *:nth-child(3) { transition-delay: 0.14s; }
.contact-center > *:nth-child(4) { transition-delay: 0.21s; }
.contact-center > *:nth-child(5) { transition-delay: 0.28s; }
.contact-center > *:nth-child(6) { transition-delay: 0.35s; }

.contact-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.contact-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 24px;
}

.contact-intro {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 440px;
    margin-bottom: 44px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    padding: 22px 26px;
    margin-bottom: 40px;
    background: var(--bg2);
    border-radius: var(--radius);
    corner-shape: squircle;
}

.info-row {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.info-label {
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.info-value {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--text);
}

.info-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.85;
}
.info-link:hover {
    color: var(--text);
    opacity: 1;
}

.socials {
    display: flex;
    gap: 14px;
}

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

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

.socials svg {
    width: 16px;
    height: 16px;
    fill: currentcolor;
}

.contact-note {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 24px;
}

/* ═══ FORMULAIRE DE CONTACT ═══ */
/* Champs à ligne de base plutôt que pastilles grises : plus proche de
   l'esprit éditorial du reste du site qu'un formulaire SaaS générique. */

.contact-form {
    margin-top: 4px;
}

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

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

.form-label {
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--muted);
}

.form-input {
    background: var(--bg2);
    border: none;
    border-radius: var(--radius);
    corner-shape: squircle;
    padding: 13px 16px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text);
    font-weight: 400;
    transition: background 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple);
    outline: none;
    width: 100%;
}

.form-input:focus {
    background: var(--bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.dark .form-input:focus {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

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

.form-input.error {
    box-shadow: 0 0 0 1.5px #dc2626;
}

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

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

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

.form-btn {
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 40px;
    padding: 12px 30px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.25s, transform 0.25s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: center;
    margin: 6px auto 0;
}

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

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

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

.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;
}

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

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

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

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

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

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



@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;
  pointer-events: auto;
  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: 400;
  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);
}

#quote-loading {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-expo);
}

#quote-loading.visible {
  opacity: 1;
}

.quote-progress {
  width: 120px;
  height: 1px;
  background: color-mix(in srgb, var(--text) 18%, transparent);
  overflow: hidden;
}

.quote-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--text);
  transition: width 0.15s linear;
}

.quote-percent {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--text) 55%, transparent);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}

#quote-overlay.loaded #quote-loading {
  display: none;
}

/* ═══ 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);
  corner-shape: squircle;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  z-index: 0;
  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;
  z-index: 9996;
}

.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: 600;
  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); }

/* ── Panneau paramètres : même mécanique que le popup privacy ── */
#settings-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;
}

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

#settings-popup {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: min(360px, calc(100vw - 32px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  z-index: 0;
  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;
}

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

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text);
}

.settings-row #settings-theme-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  color: var(--muted);
}
.settings-row #settings-theme-toggle svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-expo);
}

/* ═══ 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;
}

/* ═══ RIGHTS POPUP ═══ */

#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: 16px;
    right: 16px;
    margin: 0 auto;
    transform: translateY(20px);
    max-width: 520px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    corner-shape: squircle;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    z-index: 0;
    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: translateY(0);
    pointer-events: all;
    z-index: 9999; 
  }

  /* 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-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .rp-text {
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 400;
    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;
  }

/* ═══ 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;
    }

    .gl-card,
    .proj-photo-item,
    .about-top,
    .about-section,
    .tl-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !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 {
    display: block !important;
  }

  .proj-header {
    padding: 16px 18px 28px;
  }

  .proj-header-top {
    flex-direction: column;
    gap: 10px;
  }

  .proj-photos {
    padding: 0 18px 60px;
    column-count: 1;
  }

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

  .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 {
    justify-content: center;
  }

  .contact-center {
    padding: 40px 20px 60px;
  }

  .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: 0px 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;
    transition: transform 0.6s var(--ease-spring), opacity 0.6s var(--ease-spring);
  }

  /* ── Barre de nav masquée sur une page projet ── */
  body.proj-active .sidebar {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  body.proj-active .main {
    padding-bottom: 0;
    transition: padding-bottom 0.6s var(--ease-spring);
  }

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

  .sb-bottom {
    display: none;
  }

  .sb-avatar {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    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 — masqué sur mobile, déplacé dans le panneau paramètres ── */
  #theme-btn {
    display: none;
  }

  /* ── Bouton paramètres — reprend la place laissée par le thème, colonne de droite ── */
  #settings-btn {
    display: flex;
    position: relative;
    top: 0;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    justify-self: end;
  }

  #settings-btn svg {
    width: 22px;
    height: 22px;
  }

  /* ── 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-header {
    padding: 10px 65px 22px 10px;
  }

  .proj-title {
    font-size: 24px;
  }

  .proj-photos {
    padding: 0 14px 60px;
    column-count: 1;
  }

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

  .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;
  }

  .project-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .project-desc,
  .project-footer {
    padding-left: 0;
  }

  .privacy-row {
    flex-direction: column;
    gap: 4px;
  }

  .privacy-label {
    width: auto;
  }

  /* ── Contact ── */
  .contact-center {
    padding: 24px 16px 60px;
  }

  .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;
  }

  /* ── 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);
  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;
  }
}
}