
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=Cormorant+Garamond:wght@400;600&display=swap');

:root {
    --paper: #f6f1e7;
    --ink: #1f1f1f;

    --blue: #2483ff;
    --blue-soft: #cfe3ff;

    --border: #d4ccbe;
}

/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    color: var(--ink);

    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.8;

    background-color: var(--paper);

    /* texture papier */
    background-image:
        radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px);

    background-size:
        12px 12px,
        100% 38px;
}

.page {
    max-width: 1050px;

    margin: auto;

    padding:
        40px
        24px
        120px;
}

/* =========================
   HEADER
========================= */

.topbar {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 40px;

    margin-bottom: 60px;

    padding-bottom: 24px;

    border-bottom:
        2px dashed var(--border);
}

.left-tools {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.title {
    margin: 0;

    font-family:
        'Cormorant Garamond',
        serif;

    font-size: 4.8rem;

    line-height: 1;
}

/* =========================
   NAVIGATION
========================= */

nav {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;
}

nav a {
    position: relative;

    text-decoration: none;

    color: var(--ink);

    padding: 4px 6px;
}

nav a::after {
    content: "";

    position: absolute;

    left: 4px;
    bottom: 2px;

    width: calc(100% - 8px);
    height: 12px;

    background: var(--blue-soft);

    z-index: -1;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.2s ease;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

/* =========================
   LANGUAGE SWITCH
========================= */

.language-switch {
    display: flex;
    gap: 8px;
}

.language-switch button {
    border:
        1px solid var(--border);

    background:
        rgba(255,255,255,0.7);

    padding:
        6px 10px;

    cursor: pointer;

    font-family: inherit;

    transition: 0.2s ease;
}

.language-switch button.active {
    background: var(--blue);

    color: white;
}

/* =========================
   MAIN LAYOUT
========================= */

.hero {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    align-items: start;
    gap: 48px;
}

/* =========================
   PHOTO
========================= */

.photo-frame {

    width: 200px;
    max-width: 100%;

    background: white;

    margin-top: 0;

    padding: 10px;

    border: 1px solid var(--border);

    /* déplacement horizontal */
    transform: translateX(80px) rotate(1deg);

    box-shadow:
        0 10px 20px rgba(0,0,0,0.08);
}

.photo-frame img {

    width: 100%;
    height: auto;

    display: block;

    object-fit: cover;
}
/* =========================
   CONTENT
========================= */

.note,
.paper {
    background:
        rgba(255,255,255,0.45);

    border-left:
        5px solid var(--blue);

    padding: 22px;

    margin: 22px 0;
}

h2 {
    position: relative;

    display: inline-block;

    font-family:
        'Cormorant Garamond',
        serif;

    font-size: 2.3rem;
}

h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 4px;

    width: 100%;
    height: 12px;

    background: var(--blue-soft);

    z-index: -1;
}

a {
    color: var(--blue);
}

/* =========================
   UTILITIES
========================= */

.hidden {
    display: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {

    .hero {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 3.4rem;
    }

    .topbar {
        flex-direction: column;
    }
}


.hero > div:first-child {
    transform: translateY(-50px);
}
.hero > div:first-child,
.publications {
    transform: translateY(-50px);
}
.hero > div:first-child,
.cours {
    transform: translateY(-50px);
}
