/* =========================================================
   MAGNS_DEV — Portfolio de Maniang DIENG
   Palette d'origine conservée : fond #1d1d1d, beige doré
   rgb(255, 239, 178) et or profond rgb(150, 131, 57).
   ========================================================= */

:root {
    --bg: #121212;
    --bg-2: #1d1d1d;
    --surface: #1b1a17;
    --surface-2: #24221d;
    --line: rgba(255, 239, 178, 0.12);
    --line-strong: rgba(255, 239, 178, 0.28);

    --gold: #ffefb2;
    --gold-rgb: 255, 239, 178;
    --gold-mid: #d9c27a;
    --gold-deep: #968339;

    --text: #f5f2e8;
    --muted: #a9a496;
    --dim: #6f6b61;

    --f-display: "Syne", "Copperplate Gothic Light", sans-serif;
    --f-body: "Manrope", system-ui, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, monospace;

    --radius: 20px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --container: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(1000px 600px at 85% -10%, rgba(var(--gold-rgb), 0.08), transparent 60%),
        radial-gradient(800px 500px at -10% 40%, rgba(150, 131, 57, 0.08), transparent 60%);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--f-display);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

::selection {
    background: var(--gold);
    color: #121212;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Fond : particules + grain ---------- */
#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.footer,
.nav {
    position: relative;
    z-index: 2;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font: 700 15px/1 var(--f-body);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}

.btn i {
    transition: transform .3s var(--ease);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-mid));
    color: #15140f;
    box-shadow: 0 8px 30px -8px rgba(var(--gold-rgb), .55);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -8px rgba(var(--gold-rgb), .7);
}

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, .02);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 14px;
}

.btn--block {
    width: 100%;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 18px;
    transition: border-color .3s, color .3s, background .3s;
}

.icon-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(var(--gold-rgb), .06);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--container), calc(100% - 2 * var(--gutter)));
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 12px 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background .4s, border-color .4s, backdrop-filter .4s, top .4s var(--ease);
}

.nav.is-scrolled {
    top: 10px;
    background: rgba(20, 19, 17, .72);
    border-color: var(--line);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 800 17px/1 var(--f-display);
    letter-spacing: .02em;
}

.nav__brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(var(--gold-rgb), .5), 0 0 20px rgba(var(--gold-rgb), .35);
}

.nav__brand em {
    font-style: normal;
    color: var(--gold);
}

.nav__links {
    display: flex;
    gap: 4px;
}

.nav__links a {
    position: relative;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--muted);
    transition: color .3s, background .3s;
}

.nav__links a:hover,
.nav__links a.is-active {
    color: var(--gold);
    background: rgba(var(--gold-rgb), .08);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: transparent;
    cursor: pointer;
    position: relative;
}

.nav__toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform .35s var(--ease), top .35s var(--ease);
}

.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }

.nav.is-open .nav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    max-width: var(--container);
    margin: 0 auto;
    padding: 130px var(--gutter) 90px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(var(--gold-rgb), .04);
    font: 500 13px/1 var(--f-mono);
    color: var(--muted);
    margin-bottom: 28px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7be08f;
    box-shadow: 0 0 0 0 rgba(123, 224, 143, .6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 10px rgba(123, 224, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(123, 224, 143, 0); }
}

.hero__hello {
    font: 500 16px/1 var(--f-mono);
    color: var(--gold);
    margin-bottom: 14px;
}

.hero__name {
    font-size: clamp(48px, 8.4vw, 104px);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}

.hero__name span {
    display: block;
    background: linear-gradient(100deg, var(--gold) 10%, var(--gold-mid) 50%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__role {
    font: 600 clamp(20px, 2.4vw, 28px)/1.3 var(--f-display);
    color: var(--text);
    margin-bottom: 22px;
    min-height: 1.3em;
}

.typed {
    color: var(--gold);
}

.caret {
    display: inline-block;
    width: 3px;
    height: 1em;
    margin-left: 4px;
    vertical-align: -0.12em;
    background: var(--gold);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero__pitch {
    max-width: 52ch;
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 34px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 52px;
}

.hero__stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: clamp(20px, 4vw, 48px);
}

.hero__stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__stats li + li {
    padding-left: clamp(20px, 4vw, 48px);
    border-left: 1px solid var(--line);
}

.hero__stats strong {
    font: 800 34px/1 var(--f-display);
    color: var(--gold);
}

.hero__stats strong::after {
    content: "+";
    font-size: .6em;
    vertical-align: super;
    margin-left: 2px;
    color: var(--gold-deep);
}

.hero__stats span {
    font-size: 14px;
    color: var(--muted);
}

/* Portrait */
.hero__visual {
    display: flex;
    justify-content: center;
}

.portrait {
    position: relative;
    width: min(400px, 100%);
    aspect-ratio: 4 / 5;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform .8s var(--ease);
}

.portrait::before {
    content: "";
    position: absolute;
    inset: -25%;
    background: radial-gradient(closest-side, rgba(var(--gold-rgb), .2), transparent);
    filter: blur(10px);
    pointer-events: none;
}

.portrait .chip {
    transform: translateZ(60px);
}

.portrait__frame {
    position: absolute;
    inset: 0;
    border-radius: 999px 999px 28px 28px;
    padding: 2px;
    background: linear-gradient(160deg, var(--gold), rgba(var(--gold-rgb), .1) 45%, var(--gold-deep));
    box-shadow:
        0 0 40px rgba(var(--gold-rgb), .25),
        0 0 100px rgba(var(--gold-rgb), .12),
        0 40px 80px -30px rgba(0, 0, 0, .8);
    animation: neon 4s ease-in-out infinite alternate;
}

/* Hommage à l'effet néon du premier portfolio, en plus doux */
@keyframes neon {
    to {
        box-shadow:
            0 0 60px rgba(var(--gold-rgb), .4),
            0 0 130px rgba(var(--gold-rgb), .2),
            0 40px 80px -30px rgba(0, 0, 0, .8);
    }
}

.portrait__frame picture,
.portrait__frame img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.portrait__frame img {
    object-fit: cover;
    object-position: 50% 20%;
    filter: saturate(1.05) contrast(1.03);
}

.portrait__frame::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(to top, rgba(18, 18, 18, .55), transparent 35%);
    pointer-events: none;
}

.portrait__ring {
    position: absolute;
    inset: -22px;
    border-radius: 999px 999px 40px 40px;
    border: 1px dashed rgba(var(--gold-rgb), .3);
}

.chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(27, 26, 23, .82);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font: 600 13px/1 var(--f-body);
    white-space: nowrap;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7);
    animation: float 6s ease-in-out infinite;
}

.chip i {
    color: var(--gold);
}

.chip--a { top: 12%; left: -20%; }
.chip--d { top: 4%; right: -10%; animation-delay: -1s; }
.chip--e { top: 38%; left: -26%; animation-delay: -3s; }
.chip--b { top: 30%; right: -20%; animation-delay: -2s; }
.chip--f { top: 58%; right: -14%; animation-delay: -5s; }
.chip--g { top: 64%; left: -18%; animation-delay: -1.5s; }
.chip--c { bottom: 4%; left: 0; right: 0; margin-inline: auto; width: max-content; animation-delay: -4s; }

@keyframes float {
    50% { translate: 0 -10px; }
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 28px;
    height: 46px;
    border: 2px solid var(--line-strong);
    border-radius: 999px;
}

.scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 4px;
    background: var(--gold);
    animation: scroll 1.8s var(--ease) infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- Marquee ---------- */
.marquee {
    position: relative;
    overflow: hidden;
    padding: 22px 0;
    border-block: 1px solid var(--line);
    background: rgba(var(--gold-rgb), .025);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
    display: flex;
    gap: 36px;
    width: max-content;
    animation: marquee 40s linear infinite;
    font: 700 clamp(20px, 2.6vw, 30px)/1 var(--f-display);
    color: var(--dim);
}

.marquee__track i {
    font-style: normal;
    color: var(--gold-deep);
}

.marquee__track span:nth-of-type(3n+1) {
    color: var(--gold);
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(80px, 12vw, 140px) var(--gutter) 0;
}

.section__head {
    margin-bottom: clamp(40px, 6vw, 64px);
}

.section__index {
    display: inline-block;
    font: 500 14px/1 var(--f-mono);
    color: var(--gold);
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--gold);
    min-width: 48px;
}

.section__head h2 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section__sub {
    margin-top: 14px;
    color: var(--muted);
    font-size: 18px;
}

.smile {
    color: var(--gold);
}

/* ---------- À propos ---------- */
.about {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.about__text p {
    color: var(--muted);
}

.about__text strong {
    color: var(--text);
}

.about__text .langs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font: 500 14px/1 var(--f-mono);
    color: var(--gold);
}

.about__text .lead {
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.5;
    color: var(--text);
}

.about__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-card {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    transition: transform .4s var(--ease), border-color .4s;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.info-card i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--gold-rgb), .1);
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 18px;
}

.info-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

/* ---------- Projets phares ---------- */
.featured {
    display: flex;
    flex-direction: column;
    gap: clamp(56px, 8vw, 96px);
    margin-bottom: clamp(80px, 10vw, 120px);
}

.feature {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.feature--flip .feature__shot {
    order: 2;
}

.feature__shot {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}

.feature__shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(var(--gold-rgb), .12) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .9s var(--ease);
}

.feature__shot:hover {
    transform: translateY(-6px) rotate(-.4deg);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(var(--gold-rgb), .35);
}

.feature__shot:hover::after {
    transform: translateX(100%);
}

.feature__shot img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
}

.browser {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #1f1e1a;
    border-bottom: 1px solid var(--line);
}

.browser span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3a382f;
}

.browser span:first-child { background: #e0705f; }
.browser span:nth-child(2) { background: #e2bb4f; }
.browser span:nth-child(3) { background: #6cc072; }

.browser em {
    flex: 1;
    margin-left: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .04);
    font: 400 12px/1.4 var(--f-mono);
    font-style: normal;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 500 13px/1 var(--f-mono);
    color: var(--muted);
    margin-bottom: 16px;
}

.badge {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.badge--live {
    background: rgba(123, 224, 143, .1);
    color: #8fe6a0;
    border: 1px solid rgba(123, 224, 143, .25);
}

.badge--live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge--wip {
    background: rgba(var(--gold-rgb), .1);
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), .3);
    margin-right: 6px;
}

.badge--wip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: blink 1.4s steps(1) infinite;
}

.feature__body h3 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}

.feature__body > p {
    color: var(--muted);
}

.tags {
    list-style: none;
    padding: 0;
    margin: 22px 0 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags li {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(var(--gold-rgb), .04);
    font: 500 12.5px/1.2 var(--f-mono);
    color: var(--gold);
}

.tags--sm {
    margin: 16px 0 0;
    gap: 6px;
}

.tags--sm li {
    padding: 4px 9px;
    font-size: 11.5px;
}

.feature__links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--gold);
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 3px;
    transition: background-size .35s var(--ease), color .3s;
}

.link:hover {
    background-size: 100% 2px;
}

.link--muted {
    color: var(--muted);
    font-weight: 600;
}

.link--muted:hover {
    color: var(--text);
}

/* ---------- Filtres + grille ---------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font: 600 14px/1 var(--f-body);
    cursor: pointer;
    transition: all .3s var(--ease);
}

.filter:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.filter.is-active {
    background: var(--gold);
    border-color: var(--gold);
    color: #15140f;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 18px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: transform .45s var(--ease), border-color .45s, box-shadow .45s, opacity .35s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}

.card.is-hidden {
    display: none;
}

.card__cover {
    position: relative;
    height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 46px;
    color: rgba(var(--gold-rgb), .9);
}

.card__cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--gold-rgb), .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--gold-rgb), .07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}

.grid {
    counter-reset: card;
}

.card:not(.is-hidden) {
    counter-increment: card;
}

.card__cover::after {
    content: "0" counter(card);
    position: absolute;
    top: 14px;
    left: 16px;
    font: 500 12px/1 var(--f-mono);
    color: var(--gold-deep);
}

.card__cover i {
    position: relative;
    filter: drop-shadow(0 0 22px rgba(var(--gold-rgb), .45));
    transition: transform .6s var(--ease);
}

.card:hover .card__cover i {
    transform: scale(1.12) rotate(-4deg);
}

/* Teintes de couverture, toutes dérivées de l'or */
.cover--stgi   { background: radial-gradient(circle at 30% 20%, #4a3f1c, #1b1a17 70%); }
.cover--micro  { background: radial-gradient(circle at 70% 30%, #3d3520, #17160f 70%); }
.cover--med    { background: radial-gradient(circle at 50% 10%, #35302a, #141311 70%); }
.cover--vision { background: radial-gradient(circle at 20% 80%, #463a18, #171611 70%); }
.cover--ocaml  { background: radial-gradient(circle at 80% 70%, #3f3015, #16140f 70%); }
.cover--rpc    { background: radial-gradient(circle at 40% 40%, #383022, #141310 70%); }
.cover--mobile { background: radial-gradient(circle at 60% 20%, #48401f, #181611 70%); }
.cover--linux  { background: radial-gradient(circle at 30% 70%, #3a3524, #141310 70%); }

.card__body {
    position: relative;
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__meta {
    font: 500 12px/1 var(--f-mono);
    color: var(--dim);
    margin-bottom: 12px;
}

.card h3 {
    font-size: 21px;
    margin-bottom: 10px;
    padding-right: 40px;
}

.card__body > p:not(.card__meta) {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.card__body .tags {
    margin-top: auto;
    padding-top: 16px;
}

.card__link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--muted);
    transition: all .3s;
}

.card__link:hover {
    color: #15140f;
    background: var(--gold);
    border-color: var(--gold);
}

/* ---------- Compétences ---------- */
.skills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.skill-group {
    padding: 26px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.skill-group header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.skill-group header i {
    color: var(--gold);
    font-size: 18px;
}

.skill-group h3 {
    font-size: 18px;
}

.skill-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-group li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    transition: background .3s, color .3s, transform .3s var(--ease);
}

.skill-group li:hover {
    background: rgba(var(--gold-rgb), .06);
    color: var(--text);
    transform: translateX(4px);
}

.skill-group li img,
.skill-group li > i {
    width: 24px;
    height: 24px;
    flex: none;
    object-fit: contain;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: var(--gold);
}

/* ---------- Parcours ---------- */
.journey {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 80px);
}

.journey__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    margin-bottom: 32px;
}

.journey__title i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(var(--gold-rgb), .1);
    color: var(--gold);
    font-size: 17px;
}

.timeline strong {
    color: var(--gold);
    font-weight: 700;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 36px;
    position: relative;
    max-width: 820px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-deep) 60%, transparent);
}

.timeline li {
    position: relative;
    padding-bottom: 44px;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--gold);
    box-shadow: 0 0 16px rgba(var(--gold-rgb), .5);
}

.timeline li:first-child::before {
    background: var(--gold);
}

.timeline::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-mid));
    box-shadow: 0 0 12px rgba(var(--gold-rgb), .7);
    transform-origin: top;
    transform: scaleY(0);
    display: none;
}

.timeline--live::before {
    background: var(--line);
}

.timeline--live::after {
    display: block;
    transform: scaleY(var(--fill, 0));
}

.timeline--live li::before {
    background: var(--bg);
    border-color: var(--line-strong);
    box-shadow: none;
    transition: border-color .4s, box-shadow .4s, background .4s, transform .4s var(--ease);
}

.timeline--live li.is-lit::before {
    border-color: var(--gold);
    box-shadow: 0 0 16px rgba(var(--gold-rgb), .6);
    transform: scale(1.1);
}

.timeline--live li.is-lit:first-child::before {
    background: var(--gold);
}

.timeline__date {
    display: inline-block;
    font: 500 13px/1 var(--f-mono);
    color: var(--gold);
    margin-bottom: 10px;
}

.timeline h3 {
    font-size: clamp(20px, 2.4vw, 26px);
    margin-bottom: 8px;
}

.timeline p {
    color: var(--muted);
    margin: 0;
}

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 72px);
    padding: clamp(28px, 5vw, 56px);
    border-radius: 28px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(var(--gold-rgb), .12), transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
}

.contact h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.contact h2 span {
    color: var(--gold);
}

.contact__intro > p {
    color: var(--muted);
    max-width: 40ch;
}

.contact__list {
    list-style: none;
    padding: 0;
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact__list a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    transition: color .3s;
}

.contact__list a:hover {
    color: var(--gold);
}

.contact__list i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(var(--gold-rgb), .08);
    color: var(--gold);
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    font-size: 18px;
    transition: all .3s var(--ease);
}

.socials a:hover {
    background: var(--gold);
    color: #15140f;
    transform: translateY(-3px);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    position: relative;
}

.field input,
.field textarea {
    width: 100%;
    padding: 24px 18px 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .25);
    color: var(--text);
    font: 500 16px/1.4 var(--f-body);
    resize: vertical;
    transition: border-color .3s, background .3s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(0, 0, 0, .35);
}

.field label {
    position: absolute;
    left: 18px;
    top: 17px;
    color: var(--dim);
    pointer-events: none;
    transition: all .25s var(--ease);
}

.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 11px;
    font-family: var(--f-mono);
    color: var(--gold);
}

.form-note {
    margin: 0;
    font-size: 13px;
    color: var(--dim);
    text-align: center;
}

/* ---------- Footer ---------- */
.footer {
    max-width: var(--container);
    margin: clamp(80px, 10vw, 120px) auto 0;
    padding: 32px var(--gutter) 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
}

.footer img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(var(--gold-rgb), .35);
}

.footer p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

/* ---------- Apparition au défilement ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Intro ---------- */
.intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: radial-gradient(600px 400px at 50% 45%, #201d14, #0c0c0b 70%);
    animation: introOut 1s cubic-bezier(.76, 0, .24, 1) 1.9s forwards;
}

.intro-seen .intro {
    display: none;
}

.intro__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    animation: introFade .5s ease 1.75s forwards;
}

.intro__logo {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, var(--gold), transparent 30%, var(--gold-deep) 60%, var(--gold));
    animation: spin 1.6s linear infinite, popIn .7s var(--ease) both;
    box-shadow: 0 0 60px rgba(var(--gold-rgb), .35);
}

.intro__logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: spin 1.6s linear infinite reverse;
}

.intro__name {
    margin: 0;
    display: flex;
    overflow: hidden;
    font: 800 clamp(24px, 7vw, 52px)/1.1 var(--f-display);
    letter-spacing: .02em;
}

.intro__name span {
    display: inline-block;
    transform: translateY(110%);
    animation: letterUp .7s var(--ease) forwards;
    animation-delay: calc(var(--n) * 60ms + .25s);
}

.intro__name .g {
    color: var(--gold);
}

.intro__bar {
    width: 160px;
    height: 2px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
}

.intro__bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    transform-origin: left;
    transform: scaleX(0);
    animation: barFill 1.3s cubic-bezier(.65, 0, .35, 1) .3s forwards;
}

.intro__sub {
    margin: 0;
    font: 500 12px/1 var(--f-mono);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dim);
    opacity: 0;
    animation: introFadeIn .6s ease .8s forwards;
}

@keyframes introOut {
    to {
        transform: translateY(-100%);
        border-radius: 0 0 50% 50% / 0 0 18% 18%;
        visibility: hidden;
    }
}

@keyframes introFade { to { opacity: 0; transform: translateY(-20px) scale(.96); } }
@keyframes introFadeIn { to { opacity: 1; } }
@keyframes letterUp { to { transform: none; } }
@keyframes barFill { to { transform: scaleX(1); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } }

/* Le contenu du hero attend la levée du rideau */
.has-intro .hero .reveal {
    transition-delay: calc(var(--d, 0s) + 2.2s);
}

/* ---------- Barre de progression ---------- */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    box-shadow: 0 0 12px rgba(var(--gold-rgb), .8);
    transform-origin: left;
    transform: scaleX(var(--progress, 0));
    pointer-events: none;
}

/* ---------- Dock mobile (masqué sur grand écran) ---------- */
.dock,
.swipe-hint,
.dots {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav__links a {
        padding: 9px 11px;
        font-size: 14px;
    }

    .skills {
        grid-template-columns: repeat(2, 1fr);
    }

    .chip--a { left: -8%; }
    .chip--e { left: -12%; }
    .chip--g { left: -8%; }
    .chip--b { right: -8%; }
    .chip--d { right: -4%; }
    .chip--f { right: -6%; }
}

@media (max-width: 900px) {
    .nav__links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 14px;
        border-radius: 22px;
        border: 1px solid var(--line);
        background: rgba(20, 19, 17, .96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    }

    .nav__links a {
        padding: 14px 18px;
        font-size: 17px;
    }

    .nav.is-open {
        background: rgba(20, 19, 17, .96);
        border-color: var(--line);
    }

    .nav.is-open .nav__links {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__toggle {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero__visual {
        order: -1;
    }

    .portrait {
        width: min(300px, 72vw);
    }

    .hero__pitch {
        margin-inline: auto;
    }

    .hero__cta,
    .hero__stats {
        justify-content: center;
    }

    .scroll-cue {
        display: none;
    }

    .about,
    .feature,
    .contact {
        grid-template-columns: 1fr;
    }

    .feature--flip .feature__shot {
        order: 0;
    }

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

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .nav__brand span,
    .nav__actions .icon-btn {
        display: none;
    }

    .hero__stats {
        gap: 16px;
    }

    .hero__stats li + li {
        padding-left: 16px;
    }

    .hero__stats strong {
        font-size: 26px;
    }

    .hero__stats span {
        font-size: 12px;
    }

    .hero__cta .btn {
        flex: 1 1 100%;
    }

    .portrait {
        width: min(240px, 64vw);
    }

    .eyebrow {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .chip {
        font-size: 11px;
        padding: 8px 12px;
    }

    .chip--a { left: -14%; }
    .chip--e { left: -18%; }
    .chip--g { left: -14%; }
    .chip--b { right: -14%; }
    .chip--d { right: -8%; }
    .chip--f { right: -12%; }

    .about__cards,
    .skills {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
    }
}


/* =========================================================
   EXPÉRIENCE MOBILE — pensée comme une application native
   ========================================================= */
@media (max-width: 900px) {
    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
        -webkit-tap-highlight-color: transparent;
    }

    /* Barre du haut épurée : le dock prend le relais */
    .nav__links,
    .nav__toggle {
        display: none !important;
    }

    .nav {
        top: calc(10px + env(safe-area-inset-top));
        padding: 8px 8px 8px 10px;
    }

    /* Dock flottant en verre */
    .dock {
        display: flex;
        position: fixed;
        left: 50%;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 60;
        width: min(440px, calc(100% - 24px));
        padding: 6px;
        border-radius: 26px;
        background: rgba(24, 23, 19, .72);
        border: 1px solid var(--line-strong);
        backdrop-filter: blur(20px) saturate(170%);
        -webkit-backdrop-filter: blur(20px) saturate(170%);
        box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(var(--gold-rgb), .1);
        transform: translateX(-50%);
        animation: dockIn .8s var(--ease) both;
    }

    .has-intro .dock {
        animation-delay: 2.4s;
    }

    @keyframes dockIn {
        from { transform: translate(-50%, 140%); }
    }

    .dock a {
        position: relative;
        z-index: 1;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 10px 0 8px;
        font: 600 10.5px/1 var(--f-body);
        color: var(--muted);
        transition: color .35s;
    }

    .dock a i {
        font-size: 17px;
        transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
    }

    .dock a.is-active {
        color: #15140f;
    }

    .dock a.is-active i {
        transform: translateY(-1px) scale(1.12);
    }

    .dock__pill {
        position: absolute;
        top: 6px;
        bottom: 6px;
        left: 0;
        width: var(--w, 0);
        border-radius: 20px;
        background: linear-gradient(135deg, var(--gold), var(--gold-mid));
        box-shadow: 0 8px 24px -6px rgba(var(--gold-rgb), .7);
        transform: translateX(var(--x, 6px));
        transition: transform .55s cubic-bezier(.34, 1.4, .64, 1), width .55s cubic-bezier(.34, 1.4, .64, 1);
    }

    /* Hero éditorial : la photo en vedette, le nom qui la chevauche */
    .hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding-top: calc(118px + env(safe-area-inset-top));
        padding-bottom: 56px;
        gap: 0;
    }

    .portrait {
        width: min(330px, 80vw);
    }

    .portrait__frame::after {
        background: linear-gradient(to top, var(--bg) 2%, rgba(18, 18, 18, .6) 22%, transparent 48%);
    }

    .chip--c {
        top: -16px;
        bottom: auto;
    }

    .chip--a, .chip--e, .chip--g { left: -4%; }
    .chip--b, .chip--d, .chip--f { right: -7%; }

    .hero__text {
        position: relative;
        z-index: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: -78px;
    }

    .hero__name {
        font-size: min(13.5vw, 76px);
        text-shadow: 0 8px 40px rgba(0, 0, 0, .8);
        margin-bottom: 16px;
    }

    .hero__role {
        font-size: 19px;
        margin-bottom: 16px;
    }

    .hero__pitch {
        font-size: 16px;
        margin-bottom: 26px;
    }

    .hero__cta {
        width: 100%;
        margin-bottom: 26px;
    }

    .eyebrow {
        order: 5;
        margin: 22px 0 0;
    }

    .hero__stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }

    .hero__stats li,
    .hero__stats li + li {
        align-items: center;
        padding: 16px 6px 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(var(--gold-rgb), .07), rgba(var(--gold-rgb), .01));
        text-align: center;
    }

    /* Sections plus aérées et titres plus compacts */
    .section {
        padding-top: 88px;
    }

    .section__head {
        margin-bottom: 32px;
    }

    .section__head h2 {
        font-size: clamp(26px, 7.4vw, 44px);
    }

    /* Indice de glissement */
    .swipe-hint {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 14px;
        font: 500 12px/1 var(--f-mono);
        color: var(--dim);
    }

    .swipe-hint i {
        color: var(--gold);
        animation: swipe 1.8s var(--ease) infinite;
    }

    @keyframes swipe {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(10px) rotate(-8deg); }
    }

    /* Projets phares : carrousel à faire glisser */
    .featured {
        flex-direction: row;
        gap: 14px;
        margin: 0 calc(-1 * var(--gutter)) 0;
        padding: 6px var(--gutter) 22px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .featured::-webkit-scrollbar,
    .skills::-webkit-scrollbar {
        display: none;
    }

    .featured .reveal,
    .skills .reveal {
        opacity: 1;
        transform: none;
    }

    .feature {
        flex: 0 0 86%;
        display: flex;
        flex-direction: column;
        gap: 0;
        scroll-snap-align: start;
        border-radius: 26px;
        border: 1px solid var(--line-strong);
        background: linear-gradient(180deg, var(--surface-2), var(--surface));
        overflow: hidden;
        box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
    }

    .feature__shot,
    .feature__shot:hover {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .feature__body {
        padding: 22px 20px 24px;
    }

    .tag-line {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }

    .feature__body h3 {
        font-size: 26px;
    }

    .feature__body > p {
        font-size: 15px;
    }

    .feature .tags {
        margin: 18px 0 22px;
    }

    .dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 4px 0 64px;
    }

    .dots button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 99px;
        background: var(--line-strong);
        cursor: pointer;
        transition: width .45s var(--ease), background .45s;
    }

    .dots button.is-active {
        width: 28px;
        background: var(--gold);
    }

    /* Filtres : une ligne qui défile */
    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .filter {
        flex: none;
    }

    /* Cartes projets : elles s'empilent au défilement */
    .grid {
        display: block;
    }

    .card {
        position: sticky;
        top: calc(86px + env(safe-area-inset-top) + var(--i, 0) * 12px);
        margin-bottom: 22px;
        border-color: var(--line-strong);
        background: linear-gradient(180deg, var(--surface-2), var(--surface) 40%);
        box-shadow: 0 -20px 40px -24px rgba(0, 0, 0, .95), 0 24px 50px -30px rgba(0, 0, 0, .9);
    }

    .card:hover {
        transform: none;
    }

    .card__cover {
        height: 116px;
        font-size: 40px;
    }

    /* À propos : cartes en mosaïque 2 × 2 */
    .about__cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .info-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .info-card i {
        width: 38px;
        height: 38px;
        margin-bottom: 14px;
    }

    .info-card h3 {
        font-size: 16px;
    }

    .info-card p {
        font-size: 13px;
    }

    /* Compétences : carrousel */
    .skills {
        display: flex;
        gap: 12px;
        margin-inline: calc(-1 * var(--gutter));
        padding: 4px var(--gutter) 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .skill-group {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    /* Contact : grandes tuiles tactiles */
    .contact {
        padding: 28px 20px;
        border-radius: 28px;
    }

    .contact__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .contact__list a {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 18px 6px 16px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(var(--gold-rgb), .04);
        font-size: 13px;
    }

    .contact__list a span {
        display: none;
    }

    .contact__list a::after {
        content: attr(data-label);
    }

    .contact__list i {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        font-size: 18px;
    }

    .socials {
        justify-content: center;
    }

    .footer {
        margin-top: 72px;
    }
}

/* Retour tactile : tout ce qui se touche réagit */
@media (hover: none) {
    .btn:active,
    .filter:active,
    .card__link:active,
    .socials a:active,
    .contact__list a:active,
    .dots button:active {
        transform: scale(.95);
        transition-duration: .1s;
    }

    .feature:active,
    .info-card:active,
    .skill-group:active {
        transform: scale(.985);
        transition: transform .15s;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .intro {
        display: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
