/* =============================================================
   PAGE PROFIL — DM Serif Display + Outfit + palette
   ============================================================= */

.moi-main {
    background: var(--noir-soft);
    color: var(--menthe);
    padding: 160px 0 100px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}
.moi-main::before {
    content: "01";
    position: absolute;
    top: 140px; right: 6%;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(6rem, 14vw, 14rem);
    line-height: 1;
    color: var(--blanc-soft);
    opacity: .06;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* Hero "Moi" */
.moi-hero {
    width: 92%;
    max-width: var(--container);
    margin: 0 auto 80px;
    position: relative;
    z-index: 1;
}
.moi-eyebrow {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}
.moi-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: .9;
    letter-spacing: -.02em;
    color: var(--menthe);
    margin: 0;
    text-align: left;
}
.moi-title em { font-style: italic; color: var(--rouge); }
.moi-stroke {
    -webkit-text-stroke: 2px var(--menthe);
    color: transparent;
    font-style: italic;
}

/* Wrapper */
.moi-wrapper {
    width: 92%;
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.moi-left { padding-top: 6px; }

/* =========================
   INFOBOX — style Wikipedia
   ========================= */
.infobox {
    position: sticky;
    top: 100px;
    border: 1px solid var(--line);
    background: var(--noir-mid);
    width: 100%;
}

.infobox-photo-wrap {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.infobox-photo {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(15%) contrast(1.05);
}

.infobox-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--menthe);
    text-align: center;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line);
    letter-spacing: .01em;
}

.infobox-dl {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    margin: 0;
    padding: 0;
}

.infobox-dl dt,
.infobox-dl dd {
    padding: 8px 14px;
    margin: 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .78rem;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.infobox-dl dt {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    border-right: 1px solid var(--line-soft);
    background: rgba(0,0,0,.2);
}

.infobox-dl dd {
    font-family: var(--font-sans);
    color: var(--menthe);
    min-width: 0;
}

.infobox-dl dd.infobox-highlight {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--rouge);
    line-height: 1.2;
    padding-top: 10px;
    padding-bottom: 10px;
}

.infobox-dl dt:last-of-type,
.infobox-dl dd:last-of-type { border-bottom: none; }

.infobox-dl a {
    color: var(--rouge);
    text-decoration: none;
    border-bottom: 1px solid rgba(193,18,31,.4);
    padding-bottom: 1px;
}
.infobox-dl a:hover { border-color: var(--rouge); }

.moi-lead {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.5;
    color: var(--menthe);
    margin-bottom: 30px;
    max-width: 640px;
}
.moi-lead strong { font-weight: 400; }
.moi-lead em { font-style: italic; color: var(--rouge); }

.moi-description {
    font-size: 1.02rem;
    line-height: 1.85;
    color: rgba(240,240,240,.65);
    margin-bottom: 50px;
    max-width: 620px;
    font-family: var(--font-sans);
}

/* Compétences */
.moi-skills {
    margin: 40px 0 50px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.moi-skills h3,
.cv-section-title {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 20px;
}
.moi-skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.moi-skills-list li {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: .82rem;
    font-weight: 500;
    color: var(--menthe);
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.moi-skills-list li:hover {
    background: var(--rouge);
    color: var(--menthe);
    border-color: var(--rouge);
}

/* CVs */
.cv-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.cv-item {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.cv-item:last-child { border-bottom: none; }
.cv-meta {
    display: flex;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.cv-meta .cv-lang {
    background: var(--noir);
    color: var(--menthe);
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: .1em;
}
.cv-item .cv-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.55rem;
    color: var(--menthe);
    margin-bottom: 14px;
    letter-spacing: -.01em;
}
.cv-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--menthe);
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid rgba(240,240,240,.3);
    border-radius: 0;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .04em;
    transition: gap .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.cv-pill:hover { gap: 18px; color: var(--rouge); border-color: var(--rouge); }


/* Citation */
.moi-quote {
    width: 92%;
    max-width: 1000px;
    margin: 140px auto 0;
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.moi-quote blockquote {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    line-height: 1.35;
    color: var(--menthe);
    letter-spacing: -.01em;
    margin: 0 0 20px;
}
.moi-quote blockquote em { font-style: italic; color: var(--rouge); }
.moi-quote .quote-mark,
.moi-quote .quote-mark-end {
    color: var(--rouge);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.6em;
    line-height: 0;
    vertical-align: -0.2em;
}
.moi-quote cite {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--muted);
    font-style: normal;
    display: block;
}

/* Responsive */
@media (max-width: 980px) {
    .moi-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .infobox { position: static; max-width: 360px; margin: 0 auto; }
    .moi-main { padding: 130px 0 70px; }
    .moi-main::before { font-size: 7rem; right: 4%; top: 100px; opacity: .06; }
}
