@font-face {
    font-family: 'Bebas';
    src: url('Polices/Bebas_Neue/BebasNeue-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Italiana';
    src: url('Polices/Italiana/Italiana-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Italianno';
    src: url('Polices/Italianno/Italianno-Regular.ttf') format('truetype');
}

:root {
    --bg: #1A0A0A;
    --rose: #E8729A;
    --rose-light: #f2a3bd;
    --rose-dim: #b96e86;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--rose);
    font-family: 'Bebas', sans-serif;
    overflow-x: clip; /* la bulle Education déborde à droite sans créer de scroll */
}

/* ==========================
   HEADER + BURGER
   ========================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 18px 30px;
    z-index: 1100;
}

.burger {
    position: fixed;
    top: 30px;
    left: 36px;

    width: 66px;
    height: 58px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;

    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1200;
}

.burger span {
    display: block;
    height: 4px;
    width: 52px;
    border-radius: 4px;
    background: var(--rose);
    transform-origin: center;
    transition: width 0.4s ease, background 0.3s ease;
}

.burger span:nth-child(1) { animation: burger-wave 3s ease-in-out infinite; }
.burger span:nth-child(2) { width: 40px; animation: burger-wave 3s ease-in-out infinite 0.35s; }
.burger span:nth-child(3) { animation: burger-wave 3s ease-in-out infinite 0.7s; }

@keyframes burger-wave {
    0%, 100% { transform: translateX(0); width: 52px; }
    50%      { transform: translateX(7px); width: 36px; }
}

.burger:hover span { background: var(--rose-light); }

/* NOM en haut à droite */
.header-name {
    position: fixed;
    top: 22px;
    right: 34px;
    z-index: 1200;

    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.92;

    text-decoration: none;
}

.hn-prenom {
    font-family: 'Bebas', sans-serif;
    font-size: 35px;
    letter-spacing: 2px;
    color: #ffffff;
}

.hn-nom {
    font-family: 'Italiana', serif;
    font-size: 21px;
    letter-spacing: 3px;
    color: var(--rose);
}

/* ==========================
   HERO
   ========================== */

.hero {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 180px 40px 40px;
}

.hero h1 {
    font-weight: normal;
    line-height: 0.9;
    letter-spacing: 3px;
}

.hero h1 .t-a {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(100px, 19vw, 280px);
    color: #fff;
}

.hero h1 .t-b {
    font-family: 'Italiana', serif;
    font-size: clamp(100px, 19vw, 280px);
    color: var(--rose);
}

.hero p {
    margin-top: 22px;
    max-width: 620px;

    font-family: 'Raleway', sans-serif;
    font-size: 17px;
    letter-spacing: 1px;
    color: var(--rose-dim);
}

/* titre In Pitch collé au bord droit */
.hero-in {
    align-items: flex-end;
    text-align: right;
    padding-right: 0;
}

.hero-in h1 {
    white-space: nowrap;
    margin-right: -1.5vw;   /* la dernière lettre mord le bord */
}

/* ==========================
   OFF PITCH — HERO FAÇON "OFF TRACK"
   titre géant qui déborde, infos sous les lettres,
   grande phrase + note + autographe, photo en chevauchement
   ========================== */

.offtrack {
    display: block;
    min-height: auto;
    padding: 100px 0 40px;
    text-align: left;
    position: relative;
}

/* titre pleine largeur, lettres coupées par les bords */
.ot-title {
    position: relative;
    z-index: 1;
    line-height: 0.8;
    letter-spacing: 0;
    white-space: nowrap;
    margin-left: -2vw;
}

.offtrack .ot-title .t-a,
.offtrack .ot-title .t-b {
    font-size: clamp(150px, 26vw, 460px);
}

/* nom sous la première lettre, âge/année sous une autre */
.ot-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    margin-top: -14px;
    font-family: 'Italiana', serif;
    font-size: 21px;
    letter-spacing: 1px;
    color: #ffffff;
}

.ot-name {
    margin-left: 3vw;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ot-surname { color: var(--rose-dim); }

.ot-city {
    margin-left: 12vw;   /* sous le P du titre */
}

.ot-age {
    margin-left: 13vw;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ot-year { color: var(--rose-dim); }

/* grille : texte à gauche, grande photo à droite */
.ot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 50px;
    align-items: start;
}

.ot-left {
    padding-left: 3vw;
    max-width: 620px;
    margin-top: 9vw;
}

.ot-left .edu-statement {
    font-size: clamp(17px, 1.9vw, 25px);
}

/* autographe (placeholder en police manuscrite) */
.offtrack .edu-eyebrow {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--rose-dim);
}

.offtrack .ot-sign {
    display: inline-block;
    margin: 34px 0 6px;
    font-family: 'Italianno', cursive;
    font-size: clamp(70px, 7vw, 110px);
    line-height: 1;
    color: #ffffff;
    transform: rotate(-7deg);
}

/* petite note décalée, comme sur la référence */
.offtrack .ot-note {
    font-family: 'Raleway', sans-serif;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--rose-dim);
    max-width: 300px;
    margin: 26px -28px 0 auto;   /* déborde vers l'image */
    padding-right: 0;
}

/* la photo remonte sur le titre et file vers le bord droit */
.ot-photo {
    position: relative;
    z-index: 2;
    margin-top: -10vw;
}

.ot-photo img {
    display: block;
    width: 90%;
    margin-left: auto;   /* reste collée au bord droit */
    height: auto;
    aspect-ratio: 5 / 5.6;
    object-fit: cover;
}

@media (max-width: 860px) {
    .ot-grid { grid-template-columns: 1fr; }
    .ot-photo { margin-top: 0; order: -1; }
    .ot-left { margin-top: 30px; padding-left: 6vw; }
    .ot-age { margin-left: 18vw; }
    .ot-note { margin-left: 0; }
}

/* ==========================
   SECTIONS
   ========================== */

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 40px 40px;
}

.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;

    font-family: 'Italiana', serif;
    font-size: clamp(48px, 7vw, 92px);
    letter-spacing: 2px;

    background: linear-gradient(180deg, #ffffff 0%, var(--rose) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================
   REVEAL AU SCROLL
   ========================== */

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================
   ÉDUCATION — MISE EN PAGE "FEATURE"
   (texte + timeline à gauche, bulle interactive qui déborde à droite)
   ========================== */

.edu-feature {
    position: relative;
}

/* bulle organique : grosse, sort du bord gauche de la page */
.edu-blob-wrap {
    position: absolute;
    top: 22%;
    right: calc(100% - 340px);  /* déborde du conteneur, puis de l'écran à gauche */
    transform: translateY(-50%);
    z-index: 0;
}

#edu-blob-canvas {
    width: clamp(700px, 68vw, 1100px);
    height: calc(clamp(700px, 68vw, 1100px) * 1.45);  /* bulle allongée en hauteur */
    display: block;

    animation: edu-blob-float 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes edu-blob-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
    #edu-blob-canvas { animation: none; }
}

/* petit label au-dessus du texte (style "BRINGING THE FIGHT") */
.edu-eyebrow {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--rose-dim);
    margin-bottom: 26px;
}

/* grande phrase d'intro — à droite, la bulle à gauche */
.edu-intro {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin-left: auto;
}

.edu-statement {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(20px, 2.4vw, 32px);
    font-weight: 500;
    line-height: 1.35;
    color: #ffffff;
}

.edu-accent {
    font-family: 'Italiana', serif;
    font-style: italic;
    color: var(--rose);
}

/* la timeline vient sous le texte, à droite elle aussi */
.edu-feature .edu-timeline {
    position: relative;
    z-index: 1;
    margin: 80px 0 0 auto;
    max-width: 640px;
}

@media (max-width: 900px) {
    .edu-blob-wrap { display: none; }
}

/* intro Projects : slogan à gauche, petite note à droite */
.proj-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 50px;
    max-width: none;
}

.offtrack .proj-side,
.proj-side {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    line-height: 1.9;
    color: var(--rose-dim);
    max-width: 300px;
    margin-bottom: 10px;
    margin-right: calc(50% - 50vw + 4vw);   /* collée au bord droit de la page */
}

@media (max-width: 760px) {
    .proj-intro { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* phrase de la section Projects : plus grosse, partie blanche en gras */
.proj-statement {
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 700;
}

.proj-statement .edu-accent {
    font-weight: 400;   /* l'Italiana reste fine */
}

/* ==========================
   TABLEAU DES PROJETS (façon "Result Highlights")
   lignes fines, survol : la ligne s'agrandit, fond rose,
   description + mini photo ; clic : page du projet
   ========================== */

.proj-table {
    /* pleine largeur : sort du conteneur central */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 10px;
}

.proj-head {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    padding: 0 4vw 14px;

    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose-dim);
}

.proj-row {
    display: block;
    text-decoration: none;
    border-top: 1px solid rgba(232, 114, 154, 0.28);
    transition: background 0.3s ease;
}

.proj-row:last-child {
    border-bottom: 1px solid rgba(232, 114, 154, 0.28);
}

.proj-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
    padding: 24px 4vw;
}

.proj-name {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(32px, 4vw, 54px);
    letter-spacing: 1px;
    line-height: 1;
    color: #ffffff;
    transition: color 0.25s ease, transform 0.3s ease;
}

.proj-when {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(22px, 2.4vw, 32px);
    letter-spacing: 2px;
    color: var(--rose-light);
    transition: color 0.25s ease;
}

/* description + mini photo, révélées au survol */
.proj-more {
    display: flex;
    align-items: center;
    gap: 28px;

    max-height: 0;
    overflow: hidden;
    padding: 0 4vw;
    transition: max-height 0.45s ease, padding 0.45s ease;
}

.proj-more p {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    max-width: 480px;
    color: rgba(26, 10, 10, 0.85);
}

.proj-more img {
    display: block;
    width: 140px;
    height: 92px;
    object-fit: cover;
    margin-left: auto;
}

/* ligne sans lien (le site lui-même) : pas de curseur main */
.proj-row-static {
    cursor: default;
}

/* petit logo (bulle) à la place de la vignette */
.proj-more img.proj-mini-logo {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
}

/* mention discrète après le nom d'un projet */
.proj-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-dim);
    vertical-align: middle;
    margin-left: 10px;
}

.proj-row:hover .proj-sub {
    color: #1A0A0A;
}

/* survol : la ligne s'agrandit et change de couleur */
.proj-row:hover {
    background: var(--rose);
}

.proj-row:hover .proj-name {
    color: #1A0A0A;
    transform: translateX(8px);
}

.proj-row:hover .proj-when {
    color: #1A0A0A;
}

.proj-row:hover .proj-more {
    max-height: 140px;
    padding: 0 4vw 24px;
}

@media (max-width: 700px) {
    .proj-more img { width: 100px; height: 66px; }
}

/* devise sous le titre Personal projects, en petit */
.proj-tagline {
    font-size: clamp(15px, 1.5vw, 20px);
    font-weight: 600;
    margin-top: 16px;
}

/* titre Personal / hobbies : gros, un mot par ligne */
.hob-statement {
    font-size: clamp(50px, 6vw, 96px);
    line-height: 1.02;
}

/* ==========================
   HOBBIES — DÉFILEMENT HORIZONTAL AU SCROLL
   (le scroll vertical fait glisser les panneaux sur le côté)
   ========================== */

.hob-scroll {
    /* pleine largeur + hauteur = piste de scroll (3 panneaux) */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 480vh;   /* plus haut = défilement horizontal plus lent */
    position: relative;
    margin-top: 30px;
}

.hob-viewport {
    position: absolute;   /* passe en fixed via JS pendant la traversée */
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    overflow: hidden;
}

/* la piste : titre + panneaux à la suite, le 1er hobby dépasse à droite */
.hob-track {
    display: flex;
    align-items: stretch;
    gap: 6vw;
    height: 100%;
    padding-left: 34vw;   /* le titre arrive là où était le texte Football */
    will-change: transform;
}

/* bloc titre : glisse avec le reste */
.hob-lead {
    flex: 0 0 auto;
    width: 26vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hob-panel {
    flex: 0 0 auto;
    width: 58vw;
    height: 100%;

    display: flex;
    align-items: center;
    gap: 3vw;
}

/* panneau élargi (Travel) : de la place pour plus de photos */
.hob-panel-wide {
    width: auto;
    padding-right: 2vw;
    height: 100%;

    display: flex;
    align-items: center;
    gap: 3vw;
}

/* petite photo, posée bas comme sur la référence */
.hob-photo-small {
    flex: 0 0 auto;
    width: 13vw;
    align-self: flex-end;
    margin-bottom: 9vh;
}

.hob-photo-small img,
.hob-photo-small video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
}

/* titre + sous-titre, alignés haut */
.hob-text {
    flex: 0 0 auto;
    width: 21vw;
    align-self: flex-start;
    margin-top: 14vh;
}

.hob-title {
    font-family: 'Italiana', serif;
    font-weight: normal;
    font-size: clamp(34px, 3.8vw, 60px);
    letter-spacing: 3px;
    color: var(--rose);
    line-height: 1;
}

.hob-sub {
    margin-top: 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-dim);
    max-width: 320px;
    line-height: 1.9;
}

/* photo supplémentaire sous le titre d'un panneau */
.hob-extra-fig {
    margin-top: 5vh;
    margin-left: 48px;   /* décalage vers la droite */
}

.hob-extra {
    display: block;
    width: 15vw;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* photo moyenne, posée bas (collage) */
.hob-photo-mid {
    flex: 0 0 auto;
    width: 17vw;
    align-self: flex-end;
    margin-bottom: 11vh;
}

.hob-photo-mid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
}

/* colonne de deux petites photos empilées (collage) */
.hob-col {
    flex: 0 0 auto;
    width: 14vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4vh;
}

.hob-col img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
}

/* grande photo à droite, avec sa légende au-dessus */
.hob-photo {
    flex: 0 0 auto;
    width: 27vw;
    margin-left: auto;
}

.hob-photo figcaption,
.hob-photo-small figcaption,
.hob-photo-mid figcaption,
.hob-col figcaption,
.hob-extra-fig figcaption {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-dim);
    margin-bottom: 10px;
}

.hob-photo img,
.hob-photo video {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 5.8;
    object-fit: cover;
}

/* déstructuration : chaque titre de hobby à une hauteur différente */
.hob-panel:nth-of-type(1) .hob-text { margin-top: 9vh; }
.hob-panel:nth-of-type(2) .hob-text { margin-top: 6vh; }
.hob-panel:nth-of-type(3) .hob-text { margin-top: 20vh; }

/* ajustements du panneau Trail */
.hob-panel:nth-of-type(3) .hob-photo-small { transform: translateX(50px); }
.hob-panel:nth-of-type(3) .hob-photo       { transform: translateX(-25px); }

/* photo supplémentaire sous la grande photo (Trail) */
.hob-photo .hob-under {
    width: 62%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-top: 3vh;
}

/* mobile : on repasse en vertical classique */
@media (max-width: 860px) {
    .hob-scroll { height: auto; }
    .hob-viewport { position: static !important; height: auto; overflow: visible; }
    .hob-track { flex-direction: column; padding-left: 0; gap: 0; }
    .hob-lead { width: auto; padding: 0 6vw 20px; }
    .hob-panel { width: auto; flex-direction: column; align-items: flex-start; padding: 40px 6vw; }
    .hob-text { width: auto; margin-top: 0; }
    .hob-photo { width: 100%; margin-left: 0; }
    .hob-track { flex-direction: column; transform: none !important; }
    .hob-panel {
        grid-template-columns: 1fr;
        height: auto;
        padding: 40px 6vw;
        gap: 24px;
    }
    .hob-photo-small { display: none; }
    .hob-text { margin-top: 0; }
}

/* ==========================
   TRANSITION "VAGUE DE CHEWING-GUM" (Off Pitch)
   la nappe monte du bas et remplit l'écran au scroll
   ========================== */

.gum-transition {
    /* espaceur : donne la place de scroll pour la sortie de la vague */
    height: 100vh;
    position: relative;
}

.gum-sticky {
    position: fixed;      /* la vague est dessinée par-dessus la page */
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 500;
}

#gum-wave-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================
   SUBJECTS — MISE EN PAGE "FEATURE"
   (cartes à gauche, bulle interactive qui déborde à droite)
   ========================== */

.subj-feature {
    position: relative;
}

.subj-blob-wrap {
    position: absolute;
    top: 50%;
    left: calc(100% - 340px);   /* déborde du conteneur, puis de l'écran à droite */
    transform: translateY(-50%);
    z-index: 0;
}

#subj-blob-canvas {
    width: clamp(700px, 68vw, 1100px);
    height: calc(clamp(700px, 68vw, 1100px) * 1.45);
    display: block;

    animation: edu-blob-float 6s ease-in-out infinite;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    #subj-blob-canvas { animation: none; }
}

.subj-intro {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

/* les cartes viennent sous le texte, à gauche, en 2 colonnes
   compactes façon maçonnerie : chaque carte s'empile sous la
   précédente sans laisser de trous */
.subj-feature .subj-cards {
    position: relative;
    z-index: 1;
    margin-top: 80px;
    max-width: 720px;

    display: block;
    columns: 2;
    column-gap: 26px;
}

.subj-feature .subj-card {
    break-inside: avoid;
    margin-bottom: 26px;
}

.subj-feature .subj-card h3 {
    font-size: 34px;
    margin-bottom: 18px;
}

.subj-feature .subj-card {
    padding: 28px 30px;
}

@media (max-width: 900px) {
    .subj-blob-wrap { display: none; }

    .subj-feature .subj-cards {
        columns: 1;
        max-width: none;
    }
}

/* ==========================
   TIMELINE ÉTUDES
   ========================== */

.edu-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.edu-timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg,
            var(--rose) 0%,
            rgba(232, 114, 154, 0.35) 70%,
            transparent 100%);
}

.edu-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 28px;
}

.edu-year {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--rose-light);
}

.edu-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.edu-badge {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--rose);
    padding: 4px 11px;
    border-radius: 20px;
    animation: edu-pulse 2.2s ease-in-out infinite;
}

@keyframes edu-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 114, 154, 0.55); }
    50%      { box-shadow: 0 0 0 9px rgba(232, 114, 154, 0); }
}

.edu-name-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.edu-side-logo {
    height: 38px;
    width: auto;
    opacity: 0.95;
    transition: transform 0.4s ease;
}

.edu-item:hover .edu-side-logo { transform: scale(1.06); }

.edu-school {
    font-family: 'Bebas', sans-serif;
    font-weight: normal;
    font-size: clamp(24px, 3vw, 40px);
    letter-spacing: 1px;
    line-height: 1;
    color: #383838;   /* limite noir, assorti aux logos */
}

.edu-sub {
    margin-top: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: var(--rose-dim);
}

.edu-logo-link { display: inline-block; margin-top: 18px; }

.edu-logo {
    display: block;
    height: 56px;
    width: auto;
    opacity: 0.95;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.edu-logo-link:hover .edu-logo { transform: scale(1.05); opacity: 1; }

/* ==========================
   CARTES MATIÈRES
   ========================== */

.subj-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.subj-card {
    padding: 35px;
    border: 1px solid rgba(232, 114, 154, 0.35);
    background: rgba(232, 114, 154, 0.07);
    border-radius: 18px;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.subj-card:hover {
    transform: translateY(-8px);
    border-color: var(--rose);
    background: rgba(232, 114, 154, 0.15);
}

.subj-card h3 {
    font-family: 'Italiana', serif;
    font-size: 40px;
    color: var(--rose);
    margin-bottom: 22px;
    font-weight: normal;
}

.subj-card ul { list-style: none; }

.subj-card li {
    font-family: 'Bebas', sans-serif;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: var(--rose-light);
    margin-bottom: 10px;
}

/* ==========================
   EXPÉRIENCES — LISTE ÉPURÉE
   (plus de boîtes : des lignes fines, badges et puces)
   ========================== */

/* intro de section (même style que Education / Subjects) */
.xp-intro {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin-bottom: 70px;
}

.xp-list {
    display: flex;
    flex-direction: column;
}

.xp-card {
    position: relative;
    padding: 48px 10px 54px;
    transition: background 0.45s ease;
}

/* séparateurs : traits fins pleine largeur,
   comme les lignes du tableau de projets (Off Pitch) */
.xp-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    height: 1px;
    background: rgba(232, 114, 154, 0.28);
    pointer-events: none;
}

.xp-card:last-child::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    height: 1px;
    background: rgba(232, 114, 154, 0.28);
    pointer-events: none;
}

.xp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.xp-date {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose-dim);
}

.xp-card h3 {
    font-family: 'Italiana', serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: normal;
    line-height: 1;
    color: #ffffff;
    margin-top: 8px;
    transition: color 0.35s ease, transform 0.35s ease;
}

.xp-card:hover h3 {
    color: var(--rose);
    transform: translateX(8px);
}

/* logos d'entreprises (remplacent le nom) */
.xp-logo {
    display: block;
    margin-top: 14px;
    width: auto;
    transition: transform 0.35s ease, opacity 0.3s ease;
    opacity: 0.95;
}

.xp-card:hover .xp-logo {
    transform: translateX(8px);
    opacity: 1;
}

.xp-logo-link {
    display: inline-block;
    cursor: pointer;
}

.xp-logo-profil { height: 84px; }
.xp-logo-eg     { height: 92px; }
.xp-logo-u      { height: 88px; }

/* le métier devient un badge capsule */
.xp-job {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;

    border: 1px solid rgba(232, 114, 154, 0.45);
    border-radius: 999px;
    padding: 9px 18px;
    white-space: nowrap;
}

.xp-details {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
    align-items: start;
}

.xp-details p {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #808080;   /* gris, en échange du blanc passé aux logos */
    max-width: 560px;
}

/* les compétences deviennent de petites puces */
.xp-details ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-content: flex-start;
}

.xp-details li {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: var(--rose-light);
    background: rgba(232, 114, 154, 0.08);
    border: 1px solid rgba(232, 114, 154, 0.25);
    border-radius: 999px;
    padding: 8px 15px;
    margin-bottom: 0;

    transition: background 0.3s ease, border-color 0.3s ease;
}

.xp-card:hover .xp-details li {
    border-color: rgba(232, 114, 154, 0.5);
    background: rgba(232, 114, 154, 0.13);
}

/* ==========================
   PROJET
   ========================== */

.project-block {
    border: 1px solid rgba(232, 114, 154, 0.25);
    background: rgba(232, 114, 154, 0.06);
    border-radius: 22px;
    padding: 40px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.project-block:hover {
    transform: translateY(-6px);
    border-color: var(--rose);
}

.project-label {
    font-family: 'Bebas', sans-serif;
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--rose);
    margin-bottom: 12px;
}

.project-block h3 {
    font-family: 'Italiana', serif;
    font-size: clamp(48px, 7vw, 90px);
    color: #fff;
    font-weight: normal;
    margin-bottom: 26px;
}

.project-block p {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #e6e6e6;
    margin-bottom: 18px;
    max-width: 820px;
}

/* teaser (foot / à venir) */
.teaser {
    text-align: center;
    border: 1px dashed rgba(232, 114, 154, 0.4);
    border-radius: 22px;
    padding: 70px 30px;
}

.teaser h3 {
    font-family: 'Bebas', sans-serif;
    font-size: 46px;
    letter-spacing: 2px;
    color: var(--rose);
    font-weight: normal;
}

.teaser p {
    margin-top: 12px;
    font-family: 'Raleway', sans-serif;
    color: var(--rose-dim);
}

/* ==========================
   FOOTER
   ========================== */

footer {
    text-align: center;
    padding: 70px 0;
    font-family: 'Bebas', sans-serif;
    letter-spacing: 2px;
}

footer a {
    color: var(--rose-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover { color: #fff; }

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

@media (max-width: 768px) {
    main { padding: 20px 20px; }
    .hero { padding: 130px 22px 30px; }
    .edu-item { padding-left: 56px; }
    .xp-details { grid-template-columns: 1fr; }
    .xp-details ul { justify-content: flex-start; }
    .project-block { padding: 26px 22px; }
}

/* ==========================
   RÉSEAUX SOCIAUX (collage) — repris de l'accueil,
   en pleine largeur sous les hobbies (Off Pitch)
   ========================== */

.socials {
    position: relative;
    z-index: 30;

    /* sort du conteneur central pour occuper toute la page */
    width: 100vw;
    margin-left: calc(50% - 50vw);

    padding: 80px 6vw 120px;
    background: #1A0A0A;
}

/* éventail de cartes */
.socials-fan {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    margin: 40px auto 0;
    padding-top: 40px;
}

.social-item {
    margin: 0 -96px;
    width: clamp(210px, 21vw, 340px);

    transform-origin: center bottom;
    will-change: transform;
    z-index: 4;
}

/* position dans l'éventail : inclinaison + descente + échelle */
.social-item:nth-child(1) { rotate: -12deg; translate: 0 46px; scale: 0.83; z-index: 1; }
.social-item:nth-child(2) { rotate: -8deg;  translate: 0 24px; scale: 0.89; z-index: 2; }
.social-item:nth-child(3) { rotate: -4deg;  translate: 0 9px;  scale: 0.95; z-index: 3; }
.social-item:nth-child(4) { rotate: 0deg;   translate: 0 0;    scale: 1;    z-index: 6; }
.social-item:nth-child(5) { rotate: 4deg;   translate: 0 9px;  scale: 0.95; z-index: 3; }
.social-item:nth-child(6) { rotate: 8deg;   translate: 0 24px; scale: 0.89; z-index: 2; }
.social-item:nth-child(7) { rotate: 12deg;  translate: 0 46px; scale: 0.83; z-index: 1; }

.social-item:hover {
    z-index: 10;
}

.social-reveal {
    display: block;
    overflow: hidden;
    border-radius: 14px;

    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.9s ease, transform 0.9s ease;

    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.9);
}

.social-item.in .social-reveal {
    opacity: 1;
    transform: translateY(0);
}

.social-reveal img {
    display: block;
    width: 100%;
    height: auto;

    /* même format portrait pour toutes les cartes */
    aspect-ratio: 300 / 460;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.social-item:hover .social-reveal img {
    transform: scale(1.07);
}

/* titre au-dessus de l'éventail, polices mixtes */
.socials-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.9;

    text-align: center;
}

.socials-title .t-bebas {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(32px, 4.4vw, 64px);
    letter-spacing: 3px;
    color: #E8729A;
}

.socials-title .t-italiana {
    font-family: 'Italiana', serif;
    font-size: clamp(22px, 3vw, 42px);
    letter-spacing: 3px;
    color: #E8729A;
    margin-top: 6px;
}

/* pied : phrase + liens */
.socials-footer {
    margin-top: 70px;
    text-align: center;
}

.socials-follow {
    margin: 0 0 26px;
}

.socials-follow .t-bebas,
.socials-follow .t-italiana {
    font-family: 'Italiana', serif;
    font-size: 28px;
    color: #E8729A;
}

.socials-follow .t-italiana {
    margin-left: 8px;
}

.socials-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.socials-links a {
    font-family: 'Bebas', sans-serif;
    font-size: 15px;
    letter-spacing: 3px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.socials-links a:hover {
    color: #E8729A;
}

/* responsive : éventail -> grille simple */
@media (max-width: 760px) {

    .socials-fan {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;

        padding-top: 0;
        max-width: 460px;
    }

    .social-item {
        margin: 0 !important;
        width: auto !important;
        rotate: 0deg !important;
        translate: 0 0 !important;
        scale: 1 !important;
    }
}

/* ==========================
   PALMARÈS (Off Pitch) — tableau des courses
   pleine largeur, traits fins ; au survol la carte
   COROS de la course suit le curseur
   ========================== */

.race-table {
    /* pleine largeur : sort du conteneur central */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 10px;
}

.race-head,
.race-row {
    display: grid;
    grid-template-columns: 1.9fr 0.75fr 0.75fr 0.75fr 0.45fr;
    align-items: center;
}

.race-head {
    padding: 0 4vw 14px;

    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose-dim);
}

.race-row {
    padding: 22px 4vw;
    border-top: 1px solid rgba(232, 114, 154, 0.28);
    transition: background 0.3s ease;
    cursor: default;
}

.race-row:last-child {
    border-bottom: 1px solid rgba(232, 114, 154, 0.28);
}

.race-name {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(26px, 3.2vw, 44px);
    letter-spacing: 1px;
    line-height: 1;
    color: #ffffff;
    transition: color 0.25s ease, transform 0.3s ease;
}

.race-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-dim);
    vertical-align: middle;
    margin-left: 10px;
    transition: color 0.25s ease;
}

.race-stat,
.race-year {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(18px, 2vw, 28px);
    letter-spacing: 2px;
    color: var(--rose-light);
    transition: color 0.25s ease;
}

/* survol : même langage que le tableau de projets */
.race-row:hover {
    background: var(--rose);
}

.race-row:hover .race-name {
    color: #1A0A0A;
    transform: translateX(8px);
}

.race-row:hover .race-sub,
.race-row:hover .race-stat,
.race-row:hover .race-year {
    color: #1A0A0A;
}

/* carte COROS flottante qui suit le curseur */
.race-preview {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;

    width: clamp(180px, 17vw, 250px);
    pointer-events: none;

    opacity: 0;
    scale: 0.85;
    transition: opacity 0.3s ease, scale 0.3s ease;
    will-change: transform;
}

.race-preview.on {
    opacity: 1;
    scale: 1;
}

.race-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
}

/* mobile : tableau simplifié, pas d'aperçu flottant */
@media (max-width: 860px) {
    .race-head { display: none; }
    .race-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 18px 6vw;
    }
    .race-preview { display: none; }
}

/* petite consigne au-dessus du tableau des courses */
.race-hint {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-dim);
    margin: -40px 0 26px;
}

/* les lignes avec vidéo sont cliquables */
.race-row[data-video] {
    cursor: pointer;
}

/* survol 3D : vidéo flottante devant la page, comme l'aperçu
   du survol en plus grand — pas de voile ni de flou derrière */
.race-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.race-modal.open {
    opacity: 1;
    pointer-events: auto;   /* capte le clic à côté de la vidéo pour fermer */
}

.race-modal video {
    display: block;
    max-width: min(90vw, 600px);
    max-height: 88vh;
    border-radius: 22px;

    /* ombre marquée pour détacher la vidéo de la page restée visible */
    box-shadow: 0 50px 110px -25px rgba(0, 0, 0, 0.95);

    transform: translateY(24px) scale(0.94);
    transition: transform 0.35s ease;
}

.race-modal.open video {
    transform: translateY(0) scale(1);
}

/* petite vidéo au-dessus du titre Travel, décalée à droite,
   légende en dessous */
.hob-top-fig {
    width: 9vw;
    margin-left: 64px;
    margin-bottom: 4vh;
    transform: translateX(390px);   /* poussée vers la photo de New York */
}

.hob-top-fig video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.hob-top-fig figcaption {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-dim);
    margin-top: 10px;
}

@media (max-width: 860px) {
    .hob-top-fig { width: 40%; margin-left: 0; }
}

/* ==========================
   MON CLUB (Off Pitch) — pleine largeur
   titre + phrase à gauche, blason avec ses stats à droite
   ========================== */

#club {
    /* sort du conteneur central pour occuper tout l'écran */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: 4vw;
    padding-right: 4vw;
}

/* titre un peu plus petit que Personal projects / hobbies */
#club .hob-statement {
    font-size: clamp(42px, 5vw, 80px);
}

/* Olympique Lyonnais mis en avant dans la phrase sous le titre */
#club .proj-tagline {
    font-size: clamp(17px, 1.8vw, 24px);
}

#club .proj-tagline .edu-accent {
    font-size: clamp(26px, 2.8vw, 40px);
}

/* deux colonnes : contenu à gauche, blason + données à droite */
.club-cols {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 5vw;
    align-items: start;
}

/* colonne de droite : blason + stats calées dessous */
.club-side {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-top: 30px;
}

.club-crest img {
    display: block;
    width: 100%;
    height: auto;
}

/* stats compactes sous le blason */
.club-facts {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.club-facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;

    padding: 12px 0;
    border-top: 1px solid rgba(232, 114, 154, 0.28);
}

.club-facts li:last-child {
    border-bottom: 1px solid rgba(232, 114, 154, 0.28);
}

.club-figure {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(24px, 2.2vw, 34px);
    letter-spacing: 1px;
    line-height: 1;
    color: var(--rose);
}

.club-label {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-dim);
    text-align: right;
}

@media (max-width: 860px) {
    .club-side { width: 70%; margin: 30px auto 0; }
}

/* dessin du Groupama Stadium sous le titre de la section club */
.club-stadium {
    width: 100%;
    max-width: 580px;
    margin-top: 30px;
}

.club-stadium img {
    display: block;
    width: 100%;
    height: auto;
}

.club-stadium figcaption {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-dim);
    margin-top: 12px;
}

@media (max-width: 860px) {
    .club-stadium { width: 100%; }
}

/* chiffres du stade, calés sur la largeur du dessin */
.stadium-facts {
    width: 100%;
    max-width: 580px;
    margin-top: 20px;
}

@media (max-width: 860px) {
    .stadium-facts { width: 100%; }
}

/* textes (propriétaire, président) dans les stats du club */
.club-figure.txt {
    font-size: clamp(17px, 1.5vw, 24px);
    letter-spacing: 2px;
}

/* petit intertitre au-dessus des trophées */
.club-sub-label {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose-dim);
    margin-top: 40px;
    margin-bottom: 6px;
}

/* ==========================
   SAISON EN COURS — bandeau "Previous / Next"
   cartes aux traits fins, façon landonorris.com
   ========================== */

.season-strip {
    display: flex;
    flex-direction: column;
    gap: 34px;

    width: 100%;
    max-width: 580px;
    margin-top: 60px;
}

.ss-label {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose-dim);
    margin-bottom: 12px;
}

.ss-card {
    position: relative;
    border: 1px solid rgba(232, 114, 154, 0.35);
    border-radius: 12px;
    overflow: hidden;
}

/* courbes animées en fond de carte (canvas injecté par pitch.js) */
.ss-card .ss-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ss-card > *:not(.ss-wave) {
    position: relative;
    z-index: 1;
}

/* cellule sur toute la largeur (prochain match) */
.ss-cell.ss-span2 {
    grid-column: 1 / -1;
}

.ss-next-grid .ss-cell.ss-cell-right {
    border-left: 1px solid rgba(232, 114, 154, 0.2);
}

.ss-card + .ss-card {
    margin-top: 14px;
}

/* résultats précédents : une ligne par match */
.ss-result {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
}

.ss-result + .ss-result {
    border-top: 1px solid rgba(232, 114, 154, 0.2);
}

.ss-r-teams {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(16px, 1.5vw, 22px);
    letter-spacing: 1px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-r-score {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(16px, 1.5vw, 22px);
    letter-spacing: 2px;
    color: var(--rose-light);
}

.ss-r-badge {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ss-r-badge.w { color: var(--rose); }
.ss-r-badge.d { color: var(--rose-dim); }
.ss-r-badge.l { color: #6d4552; }

.ss-empty {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--rose-dim);
    padding: 16px 18px;
}

/* prochain match : grille de cellules bordées */
.ss-next-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
}

.ss-cell {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(232, 114, 154, 0.2);
}

.ss-next-grid .ss-cell:nth-child(-n+2) {
    border-top: none;
}



.ss-k {
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-dim);
}

.ss-v {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
}

.ss-opp {
    font-family: 'Bebas', sans-serif;
    font-size: clamp(22px, 2.2vw, 34px);
    letter-spacing: 1px;
    line-height: 1;
    color: #ffffff;
}

@media (max-width: 860px) {
    .season-strip {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* ==========================
   MES STATS — bulle chewing-gum cliquable (colonne club)
   ========================== */

.mystats-wrap {
    position: relative;
    margin-top: 44px;
    display: flex;
    justify-content: center;
}

.mystats-btn {
    width: 200px;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: radial-gradient(circle at 32% 28%,
        #f4c0d2 0%, #ef97b3 28%, #E8729A 55%, #a84a6b 85%, #8a3a57 100%);
    border: none;
    cursor: pointer;

    /* forme organique qui mâche lentement */
    border-radius: 38% 62% 55% 45% / 62% 38% 64% 36%;
    animation: gum-morph 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.mystats-btn:hover {
    animation-duration: 2.5s;   /* la gomme s'excite au survol */
    filter: brightness(1.08);
}

.mystats-btn span {
    font-family: 'Bebas', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    line-height: 1;
    color: #1A0A0A;
    text-align: center;
}

@keyframes gum-morph {
    0%, 100% { border-radius: 38% 62% 55% 45% / 62% 38% 64% 36%; transform: rotate(0deg) scale(1, 1); }
    25%      { border-radius: 66% 34% 38% 62% / 36% 66% 34% 64%; transform: rotate(-3deg) scale(1.04, 0.94); }
    50%      { border-radius: 34% 66% 64% 36% / 66% 34% 60% 40%; transform: rotate(2deg) scale(0.95, 1.06); }
    75%      { border-radius: 60% 40% 34% 66% / 42% 62% 36% 64%; transform: rotate(-2deg) scale(1.05, 0.96); }
}

/* petite bulle qui s'ouvre au clic */
.mystats-pop {
    position: absolute;
    bottom: calc(100% + 16px);
    right: 0;
    z-index: 20;
    width: 320px;

    padding: 22px 24px;
    background: #241012;
    border: 1px solid rgba(232, 114, 154, 0.45);
    border-radius: 26px 30px 28px 8px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);

    opacity: 0;
    transform: translateY(12px) scale(0.94);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mystats-pop.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mp-title {
    font-family: 'Italiana', serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--rose);
    margin-bottom: 14px;
}

.mystats-pop ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mystats-pop li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid rgba(232, 114, 154, 0.2);
}

.mp-year {
    font-family: 'Bebas', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    color: #ffffff;
    flex: 0 0 auto;
}

.mp-txt {
    font-family: 'Raleway', sans-serif;
    font-size: 11.5px;
    line-height: 1.7;
    letter-spacing: 0.5px;
    color: var(--rose-dim);
}

/* ==========================
   AROUND THE WORLD — globe interactif (Off Pitch)
   ========================== */

.globe-wrap {
    width: min(76vw, 620px);
    margin: 30px auto 0;
}

/* pourquoi voyager — sous le titre de la section */
.globe-why {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: 1px;
    color: var(--rose-dim);
    max-width: 560px;
    margin-top: 18px;
}

#globe-canvas {
    display: block;
    width: 100%;
    cursor: grab;
    touch-action: none;
}

#globe-canvas.dragging {
    cursor: grabbing;
}

.globe-hint {
    margin-top: 18px;
    text-align: center;

    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-dim);
}

/* photo flottante au survol d'un pays visité */
.globe-preview {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;

    width: clamp(180px, 16vw, 240px);
    pointer-events: none;

    opacity: 0;
    scale: 0.88;
    transition: opacity 0.3s ease, scale 0.3s ease;
    will-change: transform;
}

.globe-preview.on {
    opacity: 1;
    scale: 1;
}

.globe-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
}

.globe-preview .gp-name {
    margin-top: 8px;
    text-align: center;

    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose);
}

/* ==========================
   ÉCRAN DE CHARGEMENT — bulle de chewing-gum
   ========================== */

#loader {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;

    background: #1A0A0A;
    opacity: 1;
    transition: opacity 0.55s ease;
}

#loader.done {
    opacity: 0;
    pointer-events: none;
}

.loader-blob {
    display: block;
}


/* ==========================
   RESPONSIVE — petits écrans (téléphones / petites tablettes)
   ========================== */

@media (max-width: 860px) {

    /* titres héros : tiennent dans la largeur au lieu d'être coupés */
    .offtrack .ot-title .t-a,
    .offtrack .ot-title .t-b {
        font-size: 22vw;
    }

    .hero h1 .t-a,
    .hero h1 .t-b {
        font-size: 20vw;
    }

    .hero { min-height: auto; padding: 150px 24px 30px; }

    .ot-meta { font-size: 16px; }

    /* la colonne club passe sous le contenu principal */
    .club-cols {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    /* hobbies empilés : tailles pensées pour l'écran étroit */
    .hob-photo-small {
        display: block;
        width: 62%;
        align-self: flex-start;
        margin-bottom: 0;
        transform: none !important;
    }

    .hob-photo { transform: none !important; }

    .hob-extra-fig { margin-left: 0; margin-top: 24px; }
    .hob-extra { width: 58%; }

    .hob-photo-mid { width: 70%; align-self: flex-start; margin-bottom: 0; }

    .hob-col {
        width: 100%;
        flex-direction: row;
        gap: 14px;
    }
    .hob-col figure { flex: 1; }

    .hob-top-fig {
        width: 46%;
        margin-left: 0;
        transform: none !important;   /* plus de décalage : il sortait de l'écran */
    }

    /* tableau des courses : nom en pleine largeur,
       stats sur deux colonnes avec leur libellé */
    .race-row {
        grid-template-columns: 1fr 1fr;
        gap: 14px 18px;
    }

    .race-name { grid-column: 1 / -1; }

    .race-row .race-stat::before,
    .race-row .race-year::before {
        display: block;
        font-family: 'Raleway', sans-serif;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--rose-dim);
        margin-bottom: 4px;
    }

    .race-row .race-stat:nth-of-type(2)::before { content: "Distance"; }
    .race-row .race-stat:nth-of-type(3)::before { content: "Elev. gain"; }
    .race-row .race-stat:nth-of-type(4)::before { content: "Time"; }
    .race-row .race-year::before { content: "Year"; }

    /* le lecteur vidéo occupe presque tout l'écran */
    .race-modal video { max-width: 94vw; }

    /* bulle "my own stats" : la fenêtre reste dans l'écran */
    .mystats-pop { width: min(320px, 88vw); }
}

/* ==========================
   RESPONSIVE — très grands écrans
   ========================== */

@media (min-width: 1600px) {

    /* le contenu central respire un peu plus */
    main { max-width: 1280px; }

    .globe-wrap { width: min(60vw, 700px); }
}
