:root
{
    --cream:      #FBF6EC;
    --paper:      #F5EDD8;
    --amber:      #D4821A;
    --amber-pale: #F2C97A;
    --sienna:     #9B4F1C;
    --ink:        #1E160A;
    --ink-mid:    #4A3520;
    --ink-faint:  #9B8060;
    --line:       rgba(100,65,20,0.14);
    --img-scale:  1.05
}

input::-moz-focus-inner { border:0; padding:0 }

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    top: 0px;
    left: 0px;
    margin: 0px;

    background: var(--cream);
    color: var(--ink);

    font-family: 'DM Mono', monospace;
    font-size: medium;

    width: 100%;
    height: 100%;
    min-width: 320px;
    min-height: 100%;
}

nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.8rem;
    /*mix-blend-mode: multiply;*/
    background-color: var(--cream);
}

.nav-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: .04em;
    color: var(--ink);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: baseline;
}

.nav-links a {
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-decoration: none;
    transition: color .2s;
}

.nav-links a:hover, .nav-links a.on {
    color: var(--amber);
}

.lang-switcher {
    position: relative;
}

.lang-btn {
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color .2s;
    /*padding-bottom: 1rem;*/
}

.lang-btn:hover {
    color: var(--amber);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% - .2rem);
    right: 0;
    background: var(--cream);
    border: 1px solid rgba(0,0,0,.08);
    padding: .4rem 0;
    min-width: 110px;
    margin-top: 1rem;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-dropdown button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-family: inherit;
    padding: .45rem 1rem;
    text-align: left;
    transition: color .2s;
}

.lang-dropdown button:hover {
    color: var(--amber);
}

.opening {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 2.8rem 3.5rem;
    position: relative;
    overflow: hidden;
}
.opening-bg-text {
    position: absolute;
    bottom: 2rem; left: -0.05em;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(9rem, 22vw, 20rem);
    line-height: .85;
    color: transparent;
    -webkit-text-stroke: 1px rgba(212,130,26,.18);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}
.opening-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 4rem;
}
.opening-tag {
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: .7rem;
}
.opening-tag::before {
    content: '';
    width: 1.8rem; height: 1px;
    background: var(--amber);
    display: block;
}
.opening-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.08;
    color: var(--ink);
}
.opening-title em {
    font-style: italic;
    color: var(--amber);
}

.opening-desc {
    font-size: .78rem;
    line-height: 1.9;
    color: var(--ink-faint);
    max-width: 38ch;
    margin-bottom: 2rem;
}

.boards {
    padding: 6rem 2.8rem 8rem;
    align-items: center;
}

.boards-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.2rem;
}

.boards-header-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--ink);
}

.boards-header-count {
    font-size: .62rem;
    letter-spacing: .15em;
    color: var(--ink-faint);
    margin-left: auto;
}

.project {
    margin-bottom: 6rem;
    display: grid;
    grid-template-columns: 1fr 80rem;
    gap: 3rem;
    align-items: start;
    justify-items: end;
}

.project:nth-child(even) {
    grid-template-columns: 1fr 80rem;
    direction: rtl;
}

.project:nth-child(even) > * {
    grid-template-columns: 1fr 80rem;
    direction: ltr;
    align-items: start;
}

.project-meta {
    padding-top: .3rem;
}

.project-index {
    font-size: .58rem;
    letter-spacing: .2em;
    color: var(--amber);
    margin-bottom: .8rem;
}

.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: .6rem;
}

.project-type {
    font-size: .6rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 1rem;
}

.project-info {
    font-size: .7rem;
    line-height: 1.8;
    color: var(--ink-faint);
    border-left: 2px solid var(--amber-pale);
    padding-left: .9rem;
}

.project-year {
    font-size: .6rem;
    color: var(--ink-faint);
    letter-spacing: .1em;
    margin-top: 1.2rem;
}



.slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--paper);
    aspect-ratio: 16 / 9;       /* conserve le ratio sans hauteur fixe */
    cursor: grab;
}
 
.slideshow:active {
    cursor: grabbing;
}
 
/* ── images ── */
.slideshow-content {
    display: block;             /* plus de flex horizontal */
    width: 100%;
    height: 100%;
}
 
.slideshow-content img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /*transition: opacity .55s cubic-bezier(.4,0,.2,1),
                transform .55s cubic-bezier(.4,0,.2,1);
    transform: scale(1.02);
    will-change: opacity, transform;*/
    pointer-events: none;
    user-select: none;
}
 
.slideshow-content img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
 
.slideshow-content img.leaving-left {
    opacity: 0;
    transform: translateX(-2%) scale(.98);
    z-index: 0;
}
 
.slideshow-content img.leaving-right {
    opacity: 0;
    transform: translateX(2%) scale(.98);
    z-index: 0;
}
 
/* ── boutons prev / next ── */
.carrousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(251,246,236,.72);   /* --cream semi-transparent */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    color: var(--ink-mid);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s, background .2s, color .2s;
}
 
.slideshow:hover .carrousel-btn
{
    opacity: 1;
}
 
.carrousel-btn:hover {
    background: var(--cream);
    color: var(--amber);
}
 
.carrousel-btn.prev {
    left: 1rem;
}

.carrousel-btn.next {
    right: 1rem;
}
 
/* ── points indicateurs ── */
.carrousel-indicators {
    position: absolute;
    bottom: .9rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: .45rem;
    align-items: center;
}
 
.carrousel-indicators span {
    width: .38rem;
    height: .38rem;
    border-radius: 50%;
    background: rgba(30,22,10,.25);
    cursor: pointer;
    transition: background .25s, transform .25s;
}
 
.carrousel-indicators span.active {
    background: var(--amber);
    transform: scale(1.35);
}
 
/* ── compteur de diapo (optionnel, géré par JS si voulu) ── */
.slideshow-counter {
    position: absolute;
    top: .8rem;
    right: 1rem;
    z-index: 10;
    font-family: 'DM Mono', monospace;
    font-size: .58rem;
    letter-spacing: .12em;
    color: var(--ink-faint);
    background: rgba(251,246,236,.7);
    padding: .2rem .5rem;
    border-radius: 2px;
}
 
/* ── léger overlay en bas pour les indicateurs ── */
.slideshow::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3.5rem;
    background: linear-gradient(to top, rgba(30,22,10,.12), transparent);
    pointer-events: none;
    z-index: 5;
}

.main {
    margin: 0 8rem;
    padding: 6rem 2.8rem 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main .question .img-on-top {
    margin-top: 0;
}

.main h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 2rem;
    color: var(--amber);
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 0.2rem;
}

.main hr {
    width: 40%;
    border-top: none;
    border-bottom: 1px solid var(--ink-faint);
}

.main p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-faint);
    padding: 1.6rem 4rem;
    margin: 0;
}

.quiet {
    text-align: center;
    width: 60%;
    font-size: .8rem;
    line-height: 1.8;
    color: var(--ink-faint);
    padding: 1.6rem 4rem;
    margin: 0;
}

.quiet a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.quiet a svg {
    width: .72rem;
    height: .72rem;
}

.quiet a:hover {
    color: var(--amber);
}

.quiet .underline {
    text-decoration: underline;
}

.question {
    text-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.question img {
    width: 50rem;
    height: 30rem;
}

.gallery {
    display: flex;
    justify-content: space-evenly;
    column-gap: .4rem;
    row-gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
}

.gallery img {
    height: 15rem;
    border-radius: 20px;
}

.gallery a
{
    transition: all 0.5s ease;
}

.gallery a:hover {
    transform: scale(var(--img-scale)) rotate(2deg);
}

.gallery a:nth-child(2n):hover
{
    transform: scale(var(--img-scale)) rotate(-4deg);
}

.gallery a:nth-child(3n):hover
{
    transform: scale(var(--img-scale)) rotate(3deg);
}

.gallery a:nth-child(4n):hover
{
    transform: scale(var(--img-scale)) rotate(-2deg);
}
.gallery a:nth-child(6n):hover
{
    transform: scale(var(--img-scale)) rotate(-3deg);
}

.site-footer {
    padding: 4rem 2.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    border-top: 1px solid var(--line);
}

.footer-col-label {
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1.2rem;
}

.footer-col-body {
    font-size: .72rem;
    line-height: 2;
    color: var(--ink-faint);
}

.footer-col-body a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.footer-col-body a svg {
    width: .72rem;
    height: .72rem;
}

.footer-col-body a:hover {
    color: var(--amber);
}

.footer-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 2.5rem;
    color: var(--ink);
    line-height: 1;
    margin-bottom: .4rem;
}

.footer-sub {
    font-size: .6rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.footer-copy {
    font-size: .58rem;
    letter-spacing: .08em;
    color: var(--ink-faint);
    opacity: .5;
    margin-top: 2rem;
    grid-column: 1/-1;
    text-align: center;
}

@media (max-width: 860px) {
    nav { padding: 1.2rem 1.4rem; }
    .opening { padding: 0 1.4rem 2.5rem; }
    .opening-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .boards { padding: 4rem 1.4rem 5rem; }
    .project { grid-template-columns: 1fr; gap: 1.2rem; }
    .project:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
    .site-footer { grid-template-columns: 1fr; padding: 3rem 1.4rem; gap: 2rem; }
    .about-opening { padding: 0 1.4rem 3rem; }
    .about-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
    .numbers-strip { flex-wrap: wrap; padding: 2rem 1.4rem; }
    .number-item { border-right: none; min-width: 40%; }
    .about-section { padding: 3rem 1.4rem; }
    .timeline-h { grid-template-columns: 1fr 1fr; }
    .process-list { grid-template-columns: 1fr; }
  }