/* POLICES hébergées dans le site (Instrument Serif, Inter, Fragment Mono — licence libre OFL) */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Fragment Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fragment-mono.woff2") format("woff2"); }

:root {
  --bg: #18181a;
  --ink: #f7f6f3;
  --text: #b9b7b0;
  --muted: #85847f;
  --line: rgba(247, 246, 243, .2);
  --text-inv: #55544f;                 /* texte posé sur un fond de la couleur inverse (pastille, bandeau cookies) */
  --line-inv: rgba(24, 24, 26, .24);
  --veil: rgba(247, 246, 243, .04);    /* voile au survol */
  --round: clamp(26px, 3.2vw, 44px);   /* arrondi des panneaux crème */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --col: 640px;
  --edge: clamp(14px, 2.6vw, 34px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* LIGNES DE CONSTRUCTION */
.guides { position: fixed; inset: 0 var(--edge); z-index: 1; pointer-events: none; border-inline: 1px dashed var(--line); }
.guides i { position: absolute; inset: 0 calc((100% - var(--col) - 96px) / 2); border-inline: 1px dashed var(--line); }
.ticks { animation: ticks 3s linear infinite; height: 12px; margin: 0 var(--edge); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 9px); border-block: 1px dashed var(--line); }

@keyframes ticks { to { background-position: 9px 0; } }

/* TYPO */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.02em; }
h1, .display { font-size: clamp(46px, 6.6vw, 76px); line-height: 1.02; }
h1.label { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .08em; line-height: 1.55; color: var(--muted); }
h2 { font-size: clamp(38px, 5vw, 56px); line-height: 1.02; }
h3 { font-size: 28px; line-height: 1.1; }
em { font-style: italic; }
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 14px; }
.center > .label::before, .center > .label::after, .lineage .label::before, .lineage .label::after { content: ""; width: 54px; height: 5px; border-top: 1px solid var(--muted); background: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 6px) 0 0 / 100% 4px no-repeat; opacity: .7; }
.lead { font-size: 17px; max-width: 46ch; }
.col { width: min(var(--col), 100% - 2 * var(--edge) - 28px); margin-inline: auto; position: relative; z-index: 2; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* BOUTONS */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 40px; border-radius: 64px; border: 1px solid var(--line); color: var(--ink); font-family: var(--sans); font-size: 16px; background: transparent; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.pill span { display: inline-block; transition: transform .35s var(--ease); }
.pill:hover { border-color: var(--ink); }
.pill:hover span { transform: translateX(6px); }
.pill-full { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill-full:hover { background: transparent; color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.cta.stack { flex-direction: column; }

/* NAV */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 26px; background: var(--ink); color: var(--bg); border-radius: 64px; padding: 9px 12px 9px 12px; box-shadow: 0 10px 40px -12px rgba(0,0,0,.6); max-width: calc(100% - 24px); }
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 0 8px 0 2px; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid currentColor; font-family: var(--serif); font-size: 19px; line-height: 1; padding-bottom: 1px; }
.logo-word { font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; line-height: 1; }
.logo-word em { font-style: italic; }
.logo-big { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink); }
.logo-big .logo-mark { width: 54px; height: 54px; font-size: 32px; }
.logo-big .logo-word { font-size: 46px; max-width: none; overflow: visible; }
.logo-big small { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.links { display: flex; align-items: center; font-size: 13.5px; }
.links a { opacity: .7; padding: 0 11px; max-width: 130px; overflow: hidden; white-space: nowrap; transition: opacity .3s var(--ease), max-width .6s var(--ease), padding .6s var(--ease); }
.logo-word { max-width: 160px; overflow: hidden; transition: max-width .6s var(--ease), opacity .3s var(--ease); }
.nav { transition: gap .6s var(--ease), padding .6s var(--ease); }
.nav.compact { gap: 6px; }
.nav.compact .links a:not(.links-cta) { max-width: 0; padding: 0; opacity: 0; }
.nav.compact .logo-word { max-width: 0; opacity: 0; }
.nav.compact .logo { gap: 0; padding: 0; }
.links a:hover { opacity: 1; }
.links .links-cta { margin-left: 8px; max-width: none; white-space: nowrap; opacity: 1; background: var(--bg); color: var(--ink); border-radius: 64px; padding: 8px 18px; }

/* ACCUEIL */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; }
.orbit { position: absolute; left: 50%; top: 120px; width: 1500px; height: 1500px; margin-left: -750px; border-radius: 50%; border: 1px dashed rgba(247,246,243,.38); animation: turn 60s linear infinite; }
.orbit::before { content: ""; position: absolute; inset: 70px; border-radius: 50%; border: 1px solid var(--line); border-color: rgba(247,246,243,.5) transparent transparent transparent; }
.orbit-2 { width: 1100px; height: 1100px; margin-left: -550px; top: 320px; animation-duration: 48s; animation-direction: reverse; }
@keyframes turn { to { transform: rotate(360deg); } }
.arch { position: relative; z-index: 2; width: min(380px, 78vw); aspect-ratio: 3 / 4; margin: 64px auto 0; border-radius: 999px 999px 0 0; overflow: hidden; border: 1px solid var(--line); padding: 8px; }
.arch img { border-radius: 999px 999px 0 0; object-position: 50% 38%; }
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 var(--edge); border-top: 1px dashed var(--line); background: var(--bg); }
.stats div { padding: 30px 12px; text-align: center; border-right: 1px dashed var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(34px, 4.4vw, 54px); line-height: 1; letter-spacing: -.02em; }
.stats span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* SECTIONS */
.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; margin-top: 8px; }
.grid3 { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(56px, 7vw, 90px) var(--edge) 0; border-block: 1px dashed var(--line); background: var(--bg); }
.grid3 > div { padding: 34px 26px 38px; text-align: center; border-right: 1px dashed var(--line); }
.grid3 > div:last-child { border-right: 0; }
.grid3 h3 { font-style: italic; font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.steps h3 { font-style: normal; font-size: 28px; margin: 14px 0 8px; }
.steps p { font-size: 15px; }
.k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* le bloc des trois valeurs touche directement le bandeau des noms : pas de cadre vide entre les deux */
#parcours { padding-bottom: 0; }
#parcours .grid3 { border-bottom: 0; }

/* LIGNÉE */
.lineage { position: relative; z-index: 2; margin: 0 var(--edge); padding: 44px 16px 50px; text-align: center; border-block: 1px dashed var(--line); background: var(--bg); }
.names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(26px, 5vw, 64px); margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.2vw, 38px); color: var(--ink); letter-spacing: -.01em; }

/* ACCORDÉON */
.acc { margin-top: 52px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); background: var(--bg); }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 4px; cursor: pointer; font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); color: var(--ink); letter-spacing: -.015em; }
summary::-webkit-details-marker { display: none; }
summary i { position: relative; flex: none; width: 18px; height: 18px; transition: transform .35s var(--ease); }
summary i::before, summary i::after { content: ""; position: absolute; left: 0; top: 8.5px; width: 18px; height: 1px; background: var(--ink); }
summary i::after { transform: rotate(90deg); }
details[open] summary i { transform: rotate(45deg); }
details p { padding: 0 4px 30px; max-width: 56ch; animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
summary small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
details p.src { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: -16px; }
.remote { display: flex; gap: 16px; align-items: flex-start; margin-top: 30px; padding: 22px 24px; border: 1px dashed var(--line); border-radius: 20px; background: var(--bg); }
.remote .ic { width: 26px; height: 26px; stroke: var(--ink); margin-top: 2px; }
.remote strong { color: var(--ink); font-weight: 500; }
.aside { margin-top: 30px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--ink); }

/* CHAMPS */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.chips li { border: 1px solid var(--line); border-radius: 64px; padding: 12px 24px; color: var(--ink); font-size: 15px; background: var(--bg); }

.chips .book { display: flex; flex-direction: column; gap: 4px; border-radius: 28px; padding: 20px 30px; width: 100%; }
.chips .book { padding: 0; transition: border-color .35s var(--ease), opacity .8s var(--ease), transform .8s var(--ease); }
.chips .book:hover { border-style: solid; border-color: var(--ink); }
.chips .book a { display: flex; flex-direction: column; gap: 4px; padding: 20px 30px; }
.chips .book b { font-weight: 400; font-size: 13px; color: var(--ink); margin-top: 8px; opacity: .65; transition: opacity .3s var(--ease); }
.chips .book:hover b { opacity: 1; }
.chips .book em { font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); letter-spacing: -.015em; line-height: 1.1; }
.chips .book span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.fields { list-style: none; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin: 52px var(--edge) 0; border-top: 1px dashed var(--line); background: var(--bg); }
.fields li { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px 16px; text-align: center; border-right: 1px dashed var(--line); border-bottom: 1px dashed var(--line); transition: background .35s var(--ease); }
.fields li:nth-child(4n) { border-right: 0; }
.fields li:hover { background: var(--veil); }
.fields li:hover svg { transform: translateY(-4px); }
.fields svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.fields span { font-family: var(--serif); font-size: 22px; line-height: 1.1; letter-spacing: -.015em; color: var(--ink); max-width: 14ch; }
@media (max-width: 900px) { .fields { grid-template-columns: repeat(2, 1fr); } .fields li:nth-child(4n) { border-right: 1px dashed var(--line); } .fields li:nth-child(2n) { border-right: 0; } .fields span { font-size: 19px; } .fields li { padding: 26px 10px; } }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.steps .ic { display: block; width: 30px; height: 30px; margin: 0 auto 16px; stroke: var(--ink); stroke-width: 1.1; }

/* CABINET */
.duo { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; margin: 56px var(--edge) 0; border-block: 1px dashed var(--line); background: var(--bg); }
.duo figure { padding: clamp(14px, 2.6vw, 36px); border-right: 1px dashed var(--line); }
.duo figure:last-child { border-right: 0; }
.duo img { aspect-ratio: 4 / 5; height: auto; }
.duo img.bright { filter: grayscale(1) contrast(1.15) brightness(1.3); }
figcaption { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }

.map { position: relative; z-index: 2; margin: 0 var(--edge); height: clamp(320px, 42vw, 480px); border-bottom: 1px dashed var(--line); overflow: hidden; background: var(--bg); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.95) brightness(.95); }
.map-link { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 24px; }
.map-link .pill { box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.access { margin-top: 26px; gap: 18px; }
.addr { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }

/* CITATION */
.quote { position: relative; z-index: 2; margin: 0 var(--edge); padding: clamp(80px, 11vw, 150px) 0; border-block: 1px dashed var(--line); background: var(--bg); }
blockquote { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.02em; }

/* ÉCRITS */
.rows { margin-top: 48px; border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 110px 1fr auto; align-items: baseline; gap: 16px; padding: 24px 4px; border-bottom: 1px solid var(--line); background: var(--bg); transition: padding .35s var(--ease); }
.rows a:hover { padding-left: 16px; }
.rows .t { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 28px); color: var(--ink); letter-spacing: -.015em; line-height: 1.15; }
.rows .a { color: var(--ink); transition: transform .35s var(--ease); }
.rows a:hover .a { transform: translateX(6px); }

/* INSTAGRAM */
.insta { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.insta-photo { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--line); padding: 6px; background: var(--bg); }
.insta-photo img { border-radius: 50%; object-position: 50% 35%; }
.insta-handle { font-family: var(--serif); font-size: clamp(40px, 5.4vw, 60px); line-height: 1; color: var(--ink); letter-spacing: -.02em; }

/* RENDEZ-VOUS */
.form { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; padding-top: 34px; border-top: 1px dashed var(--line); }
.form .label { margin-bottom: 6px; }
.form input, .form textarea { width: 100%; background: transparent; border: 1px solid var(--line); border-radius: 30px; padding: 18px 26px; font: inherit; color: var(--ink); outline: none; resize: none; transition: border-color .2s var(--ease); }
.form input:focus, .form textarea:focus { border-color: var(--ink); }
.form .pill { width: 100%; }

/* MENTIONS LÉGALES */
.legal { padding-top: 150px; }
.legal-body { margin-top: 56px; }
.legal-body h3 { margin: 38px 0 10px; padding-top: 30px; border-top: 1px dashed var(--line); }
.legal-body .cta { margin-top: 50px; }
.legal .col.center { gap: 18px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; padding-top: 34px; border-top: 1px dashed var(--line); }
.legal-nav .pill { min-height: 44px; padding: 0 22px; font-size: 14px; }
.footer .label { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
.footer a, .legal-body p a:not(.pill) { border-bottom: 1px solid var(--line); }

.mail-label { font-weight: inherit; }
.fld { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.fld span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: 26px; }
.form ::placeholder { color: var(--ink); opacity: .34; }
.form-note { font-size: 13.5px; margin-top: 6px; text-align: center; }

/* COOKIES */
.cookies { position: fixed; left: 16px; bottom: 16px; z-index: 40; width: min(360px, calc(100% - 32px)); background: var(--ink); color: var(--text-inv); border-radius: 24px; padding: 22px 24px 20px; box-shadow: 0 20px 60px -16px rgba(0,0,0,.7); font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cookies.in { opacity: 1; transform: none; }
.cookies { border: 1px solid var(--line-inv); }
.cookies .label { margin-bottom: 8px; }
.cookies-row { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.cookies .pill { min-height: 42px; padding: 0 24px; font-size: 14px; background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cookies .pill:hover { background: transparent; color: var(--bg); }
.cookies a { color: var(--bg); border-bottom: 1px solid var(--line-inv); }

/* PIED */
.footer { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 20px 70px; text-align: center; font-size: 14px; color: var(--muted); }

/* À COMPLÉTER (repères de travail, à retirer avant mise en ligne) */
.todo { color: var(--muted) !important; font-style: italic; border-style: dashed !important; }

/* FIGURE DE CONSTRUCTION */
.compass { position: absolute; left: 50%; top: 40px; width: 1000px; height: 1000px; margin-left: -500px; fill: none; stroke: rgba(247,246,243,.16); stroke-width: 1; animation: turn 140s linear infinite; pointer-events: none; }
.compass path { stroke-dasharray: 5 7; }

/* TEXTE QUI S'ÉCLAIRE */
.lw { color: var(--line); transition: color .5s var(--ease); }
.lw.on { color: var(--ink); }
.prose .lw.on { color: var(--text); }

/* APPARITIONS EN CASCADE */
.fields.reveal, .grid3.reveal, .duo.reveal { transform: none; }
.fields li, .grid3 > div, .duo figure, .acc details, .chips li { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease), background .35s var(--ease); }
.in .fields li, .fields.in li, .grid3.in > div, .duo.in figure, .acc.in details, .chips.in li { opacity: 1; transform: none; }
.fields li:nth-child(n), .acc details:nth-child(n), .chips li:nth-child(n) { transition-delay: calc(var(--i, 0) * 70ms); }
[data-tilt] { transform-origin: 50% 50%; will-change: transform; }

/* GRAVURES */
.eng { overflow: hidden; background: var(--bg); }
.eng video { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: lighten; }
.eng-tall { width: min(220px, 52vw); aspect-ratio: 3 / 4; margin-bottom: -10px; }
.eng-land { width: min(560px, 100%); aspect-ratio: 960 / 548; margin-bottom: -14px; }
@media (max-width: 760px) { .hero-ink { opacity: .24 !important; } }
.hero-ink { position: absolute; top: 0; left: 50%; width: min(1100px, 150vw); margin-left: calc(min(1100px, 150vw) / -2); opacity: .32; mix-blend-mode: lighten; pointer-events: none; -webkit-mask-image: linear-gradient(#000 50%, transparent 95%); mask-image: linear-gradient(#000 50%, transparent 95%); }
.eng img { filter: none; object-fit: contain; }
.eng-sq { width: min(300px, 70vw); aspect-ratio: 1; margin-bottom: -18px; }
.eng-wide { width: min(1000px, 100vw - 2 * var(--edge)); margin: 6px 0 -10px; aspect-ratio: 16 / 9; }
.float { animation: float 7s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(-8px) rotate(-1.2deg); } to { transform: translateY(8px) rotate(1.2deg); } }
.wipe > * { clip-path: inset(0 50% 0 50%); transition: clip-path 1.6s var(--ease); }
.wipe.in > * { clip-path: inset(0 0 0 0); }

/* BANDEAU DÉFILANT */
.marquee { overflow: hidden; margin-top: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee .names { flex-wrap: nowrap; justify-content: flex-start; width: max-content; margin-top: 0; gap: 0 clamp(26px, 4vw, 54px); white-space: nowrap; animation: slide 26s linear infinite; }
.marquee b { font-style: normal; font-size: 14px; color: var(--muted); align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* TITRES MOT PAR MOT */
.split .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.split.in .w { opacity: 1; transform: none; filter: none; }
h1.split, .display.split, h2.split.reveal { opacity: 1; transform: none; }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.rise { opacity: 0; animation: rise 1s var(--ease) forwards; }
.rise:nth-child(2) { animation-delay: .1s; } .rise:nth-child(3) { animation-delay: .2s; } .rise:nth-child(4) { animation-delay: .3s; }
.arch.rise { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .rise, .split .w { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
  .lw { color: inherit; } .compass { animation: none; }
  .fields li, .grid3 > div, .duo figure, .acc details, .chips li { opacity: 1; transform: none; transition: none; }
  .wipe > * { clip-path: none; } .float, .marquee .names, .ticks { animation: none; }
  .orbit { animation: none; }
  html { scroll-behavior: auto; }
}

/* MOBILE */
@media (max-width: 760px) {
  .guides i { display: none; }
  .section { padding: 64px 0; }
  #parcours { padding-bottom: 0; }
  .links a:not(.links-cta) { display: none; }
  .compass { width: 700px; height: 700px; margin-left: -350px; top: 70px; }
  .nav { gap: 14px; }
  .hero { padding-top: 120px; }
  .cta { flex-direction: column; }
  .cta .pill { width: 100%; }
  .grid3, .duo { grid-template-columns: 1fr; }
  .grid3 > div, .duo figure { border-right: 0; border-bottom: 1px dashed var(--line); }
  .grid3 > div:last-child, .duo figure:last-child { border-bottom: 0; }
  .stats strong { font-size: 30px; }
  .rows a { grid-template-columns: 1fr auto; }
  .rows .k { grid-column: 1 / -1; }
  .center > .label::before, .center > .label::after { width: 30px; }
}

/* =========================================================
   ORDINATEUR (à partir de 1024 px) — le mobile n'est pas touché
   ========================================================= */
@media (min-width: 1024px) {
  :root { --gut: max(calc(var(--edge) + 64px), calc((100vw - 1240px) / 2)); }
  .guides i { inset: 0 calc(var(--gut) - var(--edge) - 40px); }

  /* blocs alignés à gauche : pas d'ornement devant l'étiquette */
  .hero > .col.center > .label::before,
  #parcours > .col.center > .label::before,
  #approche > .col.center > .label::before,
  #champs > .col.center > .label::before,
  #cabinet > .col.center:not(.access) > .label::before,
  .quote > .col.center > .label::before,
  #etapes > .col.center > .label::before,
  #ecrits > .col.center > .label::before,
  #lectures > .col.center > .label::before,
  #rendez-vous > .col.center > .label::before { display: none; }

  h2 { font-size: clamp(52px, 4.8vw, 78px); }

  /* ACCUEIL : texte à gauche, portrait à droite */
  .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 56px; align-items: center; padding-top: 180px; }
  .hero > .col.center { grid-column: 1; grid-row: 1; width: auto; margin: 0 0 0 var(--gut); align-items: flex-start; text-align: left; gap: 28px; }
  .hero .display { font-size: clamp(64px, 6.3vw, 108px); line-height: .96; }
  .hero .lead { font-size: 19px; max-width: 46ch; }
  .hero .cta { justify-content: flex-start; }
  .hero > .arch { grid-column: 2; grid-row: 1; margin: 0 var(--gut) 0 0; justify-self: end; width: min(410px, calc(100% - var(--gut))); }
  .hero > .stats { grid-column: 1 / -1; margin-top: 96px; }
  .hero-ink { left: 30%; }

  /* PARCOURS : récit à gauche, gravure d'Aix à droite */
  #parcours > .col.center { width: auto; margin-inline: var(--gut); display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); column-gap: 72px; row-gap: 26px; justify-items: start; align-items: start; text-align: left; }
  #parcours > .col.center > .label { grid-column: 1; grid-row: 1; }
  #parcours > .col.center > h2 { grid-column: 1; grid-row: 2; }
  #parcours > .col.center > .prose { grid-column: 1; grid-row: 3; font-size: 18px; margin-top: 10px; }
  #parcours > .col.center > .eng-wide { grid-column: 2; grid-row: 1 / span 3; width: 100%; margin: 0; align-self: center; }

  /* APPROCHE et ÉCRITS : titre fixe à gauche, liste à droite */
  #approche, #ecrits { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 96px; align-items: start; padding-inline: var(--gut); }
  #approche > .col, #ecrits > .col { width: auto; margin: 0; }
  #approche > .col.center, #ecrits > .col.center { position: sticky; top: 120px; align-items: flex-start; text-align: left; }
  #approche > .acc, #ecrits > .acc { margin-top: 0; }
  #approche .eng-sq { width: 340px; margin-left: -34px; }
  #ecrits .eng-tall { width: 230px; margin-left: -40px; }

  /* EN-TÊTES EN DEUX COLONNES : titre à gauche, gravure à droite */
  #champs > .col.center, #cabinet > .col.center:not(.access), #etapes > .col.center, #lectures > .col.center {
    width: auto; margin-inline: var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 64px; row-gap: 22px; align-items: center; justify-items: start; text-align: left;
  }
  #champs > .col.center > .eng, #cabinet > .col.center:not(.access) > .eng, #etapes > .col.center > .eng, #lectures > .col.center > .eng { grid-column: 2; grid-row: 1 / span 2; margin: 0; justify-self: end; }
  #champs > .col.center > .label, #cabinet > .col.center:not(.access) > .label, #etapes > .col.center > .label, #lectures > .col.center > .label { grid-column: 1; grid-row: 1; align-self: end; }
  #champs > .col.center > h2, #cabinet > .col.center:not(.access) > h2, #etapes > .col.center > h2, #lectures > .col.center > h2 { grid-column: 1; grid-row: 2; align-self: start; max-width: 13ch; }
  #champs .eng-land, #cabinet .eng-land { width: 520px; }
  #etapes .eng-tall { width: 190px; }
  #lectures .eng-sq { width: 300px; }

  /* CABINET : photos à gauche, carte et adresse à droite */
  #cabinet { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  #cabinet > .col.center:not(.access) { grid-column: 1 / -1; grid-row: 1; }
  #cabinet > .duo { grid-column: 1; grid-row: 2 / span 2; margin: 64px 0 0 var(--edge); align-content: center; }
  #cabinet > .map { grid-column: 2; grid-row: 2; margin: 64px var(--edge) 0 0; height: auto; min-height: 300px; border-top: 1px dashed var(--line); border-left: 1px dashed var(--line); }
  #cabinet > .access { grid-column: 2; grid-row: 3; width: auto; margin: 0 var(--edge) 0 0; padding: 40px 24px 44px; border-left: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }

  /* CITATION : Freud à gauche, phrase à droite */
  .quote > .col.center { width: auto; margin-inline: var(--gut); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 88px; row-gap: 30px; align-items: center; justify-items: start; text-align: left; }
  .quote > .col.center > .eng { grid-column: 1; grid-row: 1 / span 2; width: 300px; margin: 0; }
  .quote > .col.center > blockquote { grid-column: 2; grid-row: 1; align-self: end; font-size: clamp(44px, 4.5vw, 74px); max-width: 17ch; }
  .quote > .col.center > .label { grid-column: 2; grid-row: 2; align-self: start; }

  /* LECTURES : six livres sur trois colonnes */
  #lectures > .col.center > .chips { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; margin-top: 40px; }
  #lectures .chips .book { width: auto; height: 100%; }
  #lectures .chips .book a { height: 100%; justify-content: center; text-align: center; }

  /* INSTAGRAM : une seule ligne */
  #instagram .insta { flex-direction: row; gap: 34px; border: 1px dashed var(--line); border-radius: 999px; padding: 16px 28px 16px 16px; background: var(--bg); }
  #instagram .insta-photo { width: 92px; height: 92px; }
  #instagram .insta-handle { font-size: 52px; padding-right: 16px; }

  /* RENDEZ-VOUS : titre à gauche, contacts et formulaire à droite */
  #rendez-vous > .col.center { width: auto; margin-inline: var(--gut); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 96px; row-gap: 24px; justify-items: start; align-items: start; text-align: left; }
  #rendez-vous > .col.center > .eng { grid-column: 1; grid-row: 1; width: 260px; margin: 0 0 0 -30px; }
  #rendez-vous > .col.center > .label { grid-column: 1; grid-row: 2; }
  #rendez-vous > .col.center > h2 { grid-column: 1; grid-row: 3; }
  #rendez-vous > .col.center > .lead { grid-column: 1; grid-row: 4; font-size: 18px; }
  #rendez-vous > .col.center > .cta { grid-column: 2; grid-row: 1; align-self: center; }
  #rendez-vous > .col.center > .form { grid-column: 2; grid-row: 2 / span 4; margin-top: 4px; padding-top: 30px; }
}

/* SECTIONS CRÈME : des panneaux aux coins arrondis, posés exactement entre les deux lignes de construction (plus de bande coupée net) */
[data-cream] {
  --bg: #f7f6f3; --ink: #18181a; --text: #55544f; --muted: #85847f; --line: rgba(24, 24, 26, .24); --veil: rgba(24, 24, 26, .04);
  background: var(--bg); color: var(--text); z-index: 3; margin-inline: var(--edge); border-radius: var(--round);
}
[data-cream] .eng video { filter: contrast(1.35) invert(1); mix-blend-mode: darken; }
/* le contenu garde exactement la largeur qu'il avait avant que le panneau soit rentré entre les lignes */
[data-cream] > .col { width: min(var(--col), 100% - 28px); }
[data-cream] > .fields, [data-cream] > .grid3 { margin-inline: 0; }
.quote { border-bottom: 0; }   /* le panneau crème qui suit ferme le bloc : pas de ligne collée contre son bord arrondi */
@media (min-width: 1024px) {
  #champs > .col.center, #etapes > .col.center, #rendez-vous > .col.center { width: auto; margin-inline: calc(var(--gut) - var(--edge)); }
}

/* CONTOUR VISIBLE AU CLAVIER */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.pill:focus-visible { border-radius: 64px; }
.cookies a:focus-visible, .cookies button:focus-visible { outline-color: var(--bg); }

/* pages d'information et page d'erreur : le titre ne passe jamais sous la pastille du haut */
.section.legal { padding-top: 132px; }
