/*
   This file has two parts:
     1. a generic CSS reset + base typography (safe to tweak: sizes,
        colors, the "a" link style, etc.)
     2. the "Slides specific part" below - the opacity/visibility rules
        that make step reveal, token animations and the overview modes
        work. Leave those alone unless you know what you're changing.

   Add your own per-slide rules (image widths, custom color classes,
   etc.) at the bottom of this file as your talk grows.
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================================================
   Theme: light on ink, as in the 2026-11-10 LaBRI deck. Every slide artwork
   in img/ has a transparent background (art/pieces.py), so the slides float
   on the global backdrop without edges.
   ========================================================================== */

:root {
    --ink:    #0b0f1d;
    --text:   #eee7d8;
    --muted:  #a3aac0;
    --gold:   #f3b848;
    --teal:   #4fd1c5;
    --coral:  #ff6a5c;
    --rose:   #ff8fa8;
    --violet: #a594ff;
    --cyan:   #7cc4ff;
    --sans:   "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --serif:  "PT Serif", Georgia, serif;
    --glow:   0 0 14px rgba(11,15,29,.95), 0 0 4px rgba(11,15,29,.95);
}

html, body {
    background: var(--ink);
    color: var(--text);
}

body {
    font-family: var(--serif);
    min-height: 740px;
    line-height: 1;
    overflow: hidden;
}

b, strong { font-weight: bold }
i, em { font-style: italic }

/* colour words */
gold   { color: var(--gold); }
teal   { color: var(--teal); }
coral  { color: var(--coral); }
rose   { color: var(--rose); }
violet { color: var(--violet); }
cyan   { color: var(--cyan); }

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(243,184,72,.5);
    transition: .3s;
}
a:hover { color: var(--gold); }

/* --- slides --------------------------------------------------------------- */

.step {
    position: relative;
    width: 900px;
    height: 620px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--serif);
    font-size: 23px;
    line-height: 1.45;
    color: var(--text);
    text-shadow: var(--glow);
    transition: opacity .1s;
}

/* full-bleed artwork behind the slide */
.step > img.art {
    position: absolute;
    left: 0; top: 0;
    width: 900px; height: 620px;
    max-width: none;
    pointer-events: none;
    user-select: none;
}

/* a block of text placed on the slide */
.txt {
    position: absolute;
    left: 56px;
    top: 52px;
    width: 340px;
}

.kicker {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.kicker .num { color: var(--muted); margin-right: .7em; }

h1, h2, h3 { font-weight: normal; text-align: left; }

h1 {
    font-size: 70px;
    line-height: 1.02;
    letter-spacing: -.01em;
}

h2 {
    font-size: 44px;
    line-height: 1.08;
    margin-bottom: 22px;
    letter-spacing: -.005em;
}

h2 em, h1 em { color: var(--gold); }

p { margin: 0 0 14px 0; }

.lead { font-size: 25px; }
.small { font-size: 18px; line-height: 1.45; }
.tiny  { font-size: 14px; line-height: 1.4; color: var(--muted); }
.muted { color: var(--muted); }
.cite  { font-size: 14px; color: var(--muted); font-style: italic; white-space: nowrap; }

.rule {
    width: 54px; height: 2px; margin: 18px 0;
    background: linear-gradient(90deg, var(--gold), rgba(243,184,72,0));
}

/* labels written on top of an artwork, positioned in % of the slide */
.label {
    position: absolute;
    transform: translate(10px, -50%);
    font-style: italic;
    font-size: 15px;
    color: var(--muted);
    white-space: nowrap;
}
.label.big { font-size: 22px; color: var(--gold); font-style: normal; letter-spacing: .02em; }
.label.left { transform: translate(calc(-100% - 12px), -50%); }

/* small rounded badge, e.g. the venue of a paper */
.badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    text-shadow: none;
    background: var(--gold);
    padding: 6px 13px 5px;
    border-radius: 30px;
    box-shadow: 0 0 22px rgba(243,184,72,.55);
    vertical-align: middle;
}

/* a quotation from a model */
.quote {
    font-size: 21px;
    font-style: italic;
    color: var(--coral);
    border-left: 2px solid var(--coral);
    padding: 2px 0 2px 16px;
    margin: 6px 0 14px;
}

/* a thin framed note */
.note {
    position: absolute;
    border: 1px solid rgba(243,184,72,.45);
    border-radius: 14px;
    padding: 14px 18px;
    background: rgba(11,15,29,.55);
    font-size: 18px;
    line-height: 1.4;
}

/* three-line definition list (3H) */
.hhh { margin: 4px 0 16px; }
.hhh div { margin-bottom: 10px; font-size: 20px; line-height: 1.35; }
.hhh b { font-weight: normal; font-size: 23px; display: block; }

ul.refs { margin: 0; padding: 0; list-style: none; }
ul.refs li { font-size: 16px; line-height: 1.4; margin-bottom: 8px; padding-left: 0; color: var(--text); }
ul.refs li::before { display: none; }
ul.refs li span { color: var(--muted); }

.flides-slide-number {
    position: absolute;
    right: 26px;
    bottom: 18px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: .15em;
    color: var(--muted);
    opacity: .7;
    pointer-events: none;
    text-shadow: none;
}

/*
	Slides specific part
*/

#overview { 
    display: none 
}

#flides { 
    pointer-events: auto 
}

/*
 opacity issues for animations (token)
*/

.token {
    opacity: 0;
}

.token_invisible_past {
    opacity: 0;
}

.token_invisible_future {
    opacity: 0;
}

.token_visible {
    opacity: 1;
}

/*
 opacity issues for steps
*/

.step[data-fixed="1"] { 
     opacity: 1;
}

.step.active { 
     opacity: 1;
}

.step {
     opacity: .1;
}

/*
 opacity issues for slide_steps
*/

.slide_step.slide_step_visible { 
     opacity: 1;
}

.slide_step.slide_step_hidden { 
     opacity: .1;
}

.slide_step { 
     opacity: .1;
}

/*
 opacity issues for overview
*/

.flides-on-overview_intermediate .step.seen {
    opacity: 1;
}

.flides-on-overview_intermediate .slide_step { 
     opacity: 1;
}

.flides-on-overview .step {
    opacity: 1;
    cursor: pointer;
}

.flides-on-overview .slide_step {
    opacity: 1;
}

/*
 corner menu linking to the backup slides (budget, timeline, CV). It lives
 outside #flides (a sibling in the body, see index.html) so the canvas
 pan/zoom transform never touches it - position: fixed then places it in
 the actual top-right of the screen instead of some point on the canvas.
 Shown only while the overview is on screen.
*/
#backup-links {
    display: none;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10;

    flex-direction: column;
    align-items: flex-end;
    gap: 8px;

    font-family: 'PT Sans', sans-serif;
    font-size: 18px;
}

body.flides-on-overview #backup-links {
    display: flex;
}

#backup-links a {
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* backup menu, restyled for the dark theme */
#backup-links { font-family: var(--sans); font-size: 15px; }
#backup-links a {
    color: var(--text);
    border: 1px solid rgba(243,184,72,.5);
    background: rgba(11,15,29,.85);
    box-shadow: none;
}

/* ==========================================================================
   Canvas: backdrop, section titles, intermediate overviews
   ========================================================================== */

/* one image under the whole canvas, in canvas units (BD_RECT in art/pieces.py) */
#backdrop {
    position: absolute;
    left: -2700px;
    top: -3200px;
    width: 13400px;
    height: 7600px;
    max-width: none;
    opacity: .38;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
    user-select: none;
}
/* quiet behind a slide, brighter when the camera zooms out */
.flides-on-overview #backdrop,
.flides-on-overview_intermediate #backdrop { opacity: .7; }

/* section titles: fixed slides above each part, read on the overviews */
.step.section {
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}
.section .sec-num {
    font-family: var(--sans);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: .4em;
    margin-bottom: 2px;
}
.section .sec-name { font-size: 66px; line-height: 1.1; letter-spacing: -.005em; }
.section.s1 .sec-num { color: var(--teal); }
.section.s2 .sec-num { color: var(--violet); }
.section.s3 .sec-num { color: var(--coral); }
.section.s4 .sec-num { color: var(--cyan); }

/* the intermediate overviews are camera targets only, like #overview */
#overview_intermediate { display: none; }
/* they show the talk so far: keep the backup out of them */
.flides-on-overview_intermediate #budget { opacity: .1; }


/* ==========================================================================
   Per-slide layout
   ========================================================================== */

/* centred labels on the artworks, and a two-line variant with a muted line */
.label.c { transform: translate(-50%, -50%); text-align: center; }
.label span { font-size: 13px; color: var(--muted); }

/* title */
#title .txt { top: 58px; width: 520px; }
#title h1 { font-size: 66px; margin-bottom: 26px; letter-spacing: .005em; white-space: nowrap; }
#title .sub { font-size: 25px; font-style: italic; color: var(--muted); line-height: 1.35; }
#title .who { position: absolute; left: 56px; bottom: 46px; font-size: 21px; line-height: 1.4; }
#title .who .muted { font-size: 17px; }
#title .event { position: absolute; right: 56px; bottom: 50px; text-align: right; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* text on the left of the artwork */
#pari .txt, #parcours .txt, #espace .txt, #pareto .txt, #physique .txt,
#litterature .txt, #journee .txt, #garanties .txt, #coconception .txt { width: 352px; }
#boucle .txt { width: 322px; }
#parcours .badge { margin-top: 8px; font-size: 11px; }
#parcours .small { margin-bottom: 10px; }
#physique .formula { font-size: 22px; margin: 4px 0 18px 10px; }

/* the chain: title on top, a caption under each of the three nodes */
#chaine .txt { width: 790px; top: 44px; }
#chaine .node {
    position: absolute; top: 79%; transform: translateX(-50%);
    text-align: center; font-size: 22px; line-height: 1.3; white-space: nowrap;
}
#chaine .node span { display: block; font-size: 15px; color: var(--muted); }
#chaine .ai { font-style: normal; font-size: 20px; line-height: 1.3; }
#chaine .punch { position: absolute; left: 0; right: 0; top: 572px; text-align: center; font-size: 18px; font-style: italic; }

/* three AI questions, each at the start of its strand */
#verrous .txt { width: 790px; top: 44px; }
#verrous .strand {
    position: absolute; right: 57%; transform: translateY(-50%);
    text-align: right; font-size: 22px; line-height: 1.25;
}
#verrous .strand span { display: block; font-size: 15px; color: var(--muted); font-style: italic; }
#verrous .foot { position: absolute; left: 56px; right: 56px; top: 488px; font-size: 18px; line-height: 1.45; text-align: center; }
#verrous .foot .muted { font-size: 15px; }

/* timeline */
#calendrier .txt { width: 790px; top: 40px; }
#calendrier .tl { position: absolute; left: 190px; right: 60px; top: 0; bottom: 0; }
#calendrier .years span {
    position: absolute; top: 152px; transform: translateX(-50%);
    font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: var(--muted); white-space: nowrap;
}
#calendrier .lane { position: absolute; left: 0; right: 0; height: 0; }
#calendrier .lane .name {
    position: absolute; right: calc(100% + 22px); transform: translateY(-50%);
    font-size: 19px; white-space: nowrap;
}
#calendrier .bar { position: absolute; top: -3px; height: 6px; border-radius: 3px; opacity: .75; }
#calendrier .bar.violet { background: linear-gradient(90deg, rgba(165,148,255,.2), var(--violet)); box-shadow: 0 0 12px rgba(165,148,255,.6); }
#calendrier .bar.cyan   { background: linear-gradient(90deg, rgba(124,196,255,.2), var(--cyan)); box-shadow: 0 0 12px rgba(124,196,255,.6); }
#calendrier .bar.coral  { background: linear-gradient(90deg, rgba(255,106,92,.2), var(--coral)); box-shadow: 0 0 12px rgba(255,106,92,.6); }
#calendrier .bar.gold   { background: linear-gradient(90deg, rgba(243,184,72,.15), rgba(243,184,72,.6)); box-shadow: 0 0 12px rgba(243,184,72,.4); }
#calendrier .ms {
    position: absolute; top: -6px; width: 12px; height: 12px; margin-left: -6px;
    background: var(--ink); border: 2px solid var(--text); box-sizing: border-box; transform: rotate(45deg);
}
#calendrier .ms span {
    position: absolute; left: 50%; top: 50%; transform: rotate(-45deg) translate(-50%, -30px);
    transform-origin: 0 0;
    font-size: 13px; font-style: italic; color: var(--muted); white-space: nowrap; text-shadow: var(--glow);
}
#calendrier .ms.big { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 14px rgba(243,184,72,.8); }
#calendrier .ms.big span { color: var(--gold); font-style: normal; }
#calendrier .people { position: absolute; left: 56px; right: 40px; top: 540px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#calendrier .chip {
    font-size: 15px; padding: 5px 12px; border-radius: 20px; white-space: nowrap;
    border: 1px solid rgba(243,184,72,.45); background: rgba(11,15,29,.55);
}
#calendrier .chip span { color: var(--muted); font-size: 13px; margin-left: 4px; }

/* closing */
#finale .txt { width: 400px; top: 70px; }
#finale h2 { font-size: 60px; margin-bottom: 30px; }
#finale .take { font-size: 21px; line-height: 1.4; margin-bottom: 16px; padding-left: 16px; border-left: 2px solid rgba(243,184,72,.6); }
#finale .refs-link { position: absolute; left: 56px; bottom: 44px; font-family: var(--sans); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }

/* budget (backup) */
#budget .txt { width: 790px; top: 50px; }
table.budget { width: 100%; margin: 6px 0 26px; }
table.budget th, table.budget td { padding: 10px 12px 10px 0; vertical-align: top; border-bottom: 1px solid rgba(163,170,192,.2); }
table.budget th { font-size: 20px; text-align: left; white-space: nowrap; }
table.budget td { font-size: 20px; color: var(--gold); white-space: nowrap; }
table.budget td.muted { font-size: 15px; line-height: 1.4; color: var(--muted); white-space: normal; }
#budget .labs { display: flex; gap: 34px; }
#budget .labs div { font-size: 20px; }
#budget .labs div > * { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }

/* Phone navigation toolbar (added by the engine on touch screens) */
#flides-phone-nav {
    background: rgba(11,15,29,.88) !important;
    box-shadow: 0 -1px 0 rgba(243,184,72,.25) !important;
}
#flides-phone-nav button { color: var(--text) !important; }
#flides-phone-nav button span + span { color: var(--muted) !important; }

/* milestone labels: the diamond is rotated by 45deg, the label is rotated back */
#calendrier .ms span { text-align: center; }
#calendrier .ms.below span { transform: rotate(-45deg) translate(-50%, 14px); }
