/* ---------------------------------------------------------
   Oxygen — tokens
   Paper #F6F4EC · Ink #16302A · Forest #234B3D
   Leaf #5B9279 · Mint #D8EAE1 · Coral #E8563F
--------------------------------------------------------- */

:root {
    --paper: #F6F4EC;
    --ink: #16302A;
    --forest: #234B3D;
    --leaf: #5B9279;
    --mint: #D8EAE1;
    --coral: #E8563F;

    --font-display: "Fraunces", serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --gutter: clamp(16px, 4vw, 48px);
    --section-gap: clamp(28px, 5vw, 56px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-align: justify;
}

img {
    max-width: 100%;
    display: block;
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
}

strong {
    font-weight: 600;
    color: var(--forest);
}

h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.4em;
    color: var(--forest);
    text-align: left;
}

p {
    max-width: 46ch;
    margin: 0 0 0.75em;
}

/* ---------------------------------------------------------
   Sélecteur de langue
--------------------------------------------------------- */

.lang-switch {
    position: fixed;
    top: clamp(12px, 2vw, 20px);
    right: clamp(12px, 2vw, 20px);
    z-index: 10;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    background: rgba(246, 244, 236, 0.85);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 999px;
}

.lang-switch span {
    color: rgba(35, 75, 61, 0.35);
    padding: 0 2px;
}

.lang-switch__link {
    color: var(--leaf);
    text-decoration: none;
}

.lang-switch__link.is-active {
    color: var(--forest);
    font-weight: 600;
}

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

.site-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

}

.logo {
    position: relative;
    width: clamp(260px, 40vw, 560px);
}

/* ---------------------------------------------------------
   Content rows
--------------------------------------------------------- */

main {
    padding: 0;
}

.row {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    padding: var(--section-gap) 0;
    max-width: 85%;
    margin: 0 auto;
}

.row__media,
.row__text {
    flex: 1 1 0;
    min-width: 0;
}

.row__media img {
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 0.2em;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.link-arrow::after {
    content: "→";
    transition: transform 0.2s ease;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* Section divider — a faint current of air */
.divider {
    max-width: 85%;
    margin: 0 auto;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='40' viewBox='0 0 400 40'%3E%3Cpath d='M0 20 Q 25 5, 50 20 T 100 20 T 150 20 T 200 20 T 250 20 T 300 20 T 350 20 T 400 20' fill='none' stroke='%235B9279' stroke-opacity='0.3' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    background-size: 150px 20px;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 16px var(--gutter) 24px;
    max-width: 85%;
    margin: 0 auto;
    border-top: 1px solid rgba(35, 75, 61, 0.15);
    margin-top: var(--section-gap);
}

.site-footer__copy {
    justify-self: start;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--leaf);
    margin: 0;
    max-width: none;
    white-space: nowrap;
}

.site-footer__about {
    justify-self: center;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}

.site-footer__about:hover {
    border-bottom-color: currentColor;
}

.site-footer__mark {
    justify-self: end;
    width: 48px;
    height: 48px;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 760px) and (orientation: portrait) {
    .row,
    .row--media-right {
        flex-direction: column;
        align-items: stretch;
        text-align: justify;
    }

    .row--media-right .row__media {
        order: -1;
    }

    p {
        max-width: none;
    }
}

/* Paysage mobile : on garde la disposition côte à côte, mais on borne
   la hauteur de l'image pour ne pas noyer le texte hors de l'écran */
@media (max-width: 900px) and (orientation: landscape) {
    .row__media img {
        max-height: 70vh;
        object-fit: cover;
    }
}

/* ---------------------------------------------------------
   Reduced motion
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .link-arrow::after {
        transition: none;
    }
}