/* ===================== */
/* VARIABLES */
/* ===================== */
:root {
    --font: 'Outfit', sans-serif;

    /* Accent dégradé or/champagne */
    --grad: linear-gradient(120deg, #e0e0e0 0%, #f0f0f0 40%, #e0e0e0 70%, #d0d0d0 100%);
    --grad-text: linear-gradient(120deg, #555555 0%, #888888 45%, #444444 100%);
    --apple-blue: #0071e3;

    /* Ombres */
    --sh: 0 10px 30px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(0, 0, 0, 0.04);
    --shh: 0 20px 50px rgba(0, 0, 0, 0.12), 0 6px 15px rgba(0, 0, 0, 0.08);
    --shi: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    --sh-gold: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.03);

    /* Rayons */
    --r-sm: 14px;
    --r-md: 22px;
    --r-lg: 30px;
    --r-xl: 36px;
    --r-pill: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================== */
/* RESET */
/* ===================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* ===================== */
/* BODY */
/* ===================== */
body {
    font-family: var(--font);
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    background: #fbfbfd;
    position: relative;
}

body::before,
body::after {
    display: none;
}

.bg-orbs,
.bg-orbs::before,
.bg-orbs::after,
.bg-orb3 {
    display: none;
}

/* ===================== */
/* LAYOUT */
/* ===================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 48px;
}

/* ===================== */
/* HERO */
/* ===================== */
.hero {
    margin-bottom: 140px;
    position: relative;
}

.hero-profile {
    margin-top: 80px;
    display: flex;
    align-items: center;
    gap: 40px;
    animation: fadeUp 0.7s var(--ease) both;
}

/* Nom en dégradé or */
.hero .name {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero .tagline {
    color: rgba(0, 0, 0, 0.6);
}

/* ===================== */
/* PHOTO */
/* ===================== */
.profile-photo {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    box-shadow:
        /* Remplacé les couleurs or par des gris subtils */
        0 0 0 2px rgba(0, 0, 0, 0.1),
        0 0 0 5px rgba(0, 0, 0, 0.05),
        0 12px 40px rgba(0, 0, 0, 0.12);
}

.profile-photo::before {
    display: none;
}

.profile-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a1a;
}

/* ===================== */
/* HERO TEXT */
/* ===================== */
.hero-text {
    max-width: 840px;
}

.name {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.0;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.tagline {
    font-size: 18px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.72;
    max-width: 680px;
    letter-spacing: -0.01em;
}

/* ===================== */
/* HERO SOCIALS */
/* ===================== */
.hero-socials {
    margin-top: 40px;
    display: flex;
    gap: 14px;
    justify-content: center;
    animation: fadeUp 0.7s var(--ease) 0.2s both;
}

.hero-socials .social-link {
    width: auto;
    height: 46px;
    padding: 0 22px;
    gap: 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.7);
    /* Plus clair */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Bordure neutre */
    color: rgba(0, 0, 0, 0.7);
    /* Texte plus sombre */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Ombre subtile */
    font-size: 13.5px;
    font-weight: 500;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s var(--spring);
}

.hero-socials .social-link:hover {
    background: rgba(0, 113, 227, 0.05);
    /* Fond bleu très clair */
    border-color: rgba(0, 113, 227, 0.3);
    /* Bordure bleue subtile */
    color: var(--apple-blue);
    /* Texte bleu Apple */
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.12), 0 2px 8px rgba(0, 113, 227, 0.08);
}

/* ===================== */
/* CATEGORIES */
/* ===================== */
.category-block {
    margin-top: 80px;
    margin-bottom: 96px;
    animation: fadeUp 0.6s var(--ease) 0.1s both;
}

.category-info {
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

/* Titre de catégorie en dégradé */
.category-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-count {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    /* Texte gris */
    background: rgba(0, 0, 0, 0.03);
    /* Fond très léger */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Bordure grise */
    padding: 3px 10px;
    border-radius: var(--r-pill);
    letter-spacing: 0.04em;
    -webkit-text-fill-color: rgba(0, 0, 0, 0.5);
    /* Texte gris */
}

/* ===================== */
/* GRID */
/* ===================== */
.flex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ===================== */
/* CARD */
/* ===================== */
.card {
    position: relative;
    height: 420px;
    perspective: 1200px;
    cursor: pointer;
    border-radius: var(--r-xl);
}

.card:nth-child(1) {
    animation: fadeUp 0.5s var(--ease) 0.05s both;
}

.card:nth-child(2) {
    animation: fadeUp 0.5s var(--ease) 0.10s both;
}

.card:nth-child(3) {
    animation: fadeUp 0.5s var(--ease) 0.15s both;
}

.card:nth-child(4) {
    animation: fadeUp 0.5s var(--ease) 0.20s both;
}

.card:nth-child(5) {
    animation: fadeUp 0.5s var(--ease) 0.25s both;
}

.card:nth-child(6) {
    animation: fadeUp 0.5s var(--ease) 0.30s both;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.55s var(--ease);
    will-change: transform;
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Face avant — verre sombre */
.card-front {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    box-shadow: var(--sh), var(--shi);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.card:hover .card-front {
    box-shadow: var(--shh), 0 0 0 1px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.08);
    /* Ombre plus prononcée */
    border-color: rgba(0, 0, 0, 0.2);
    /* Bordure plus visible */
}

/* Face arrière */
.card-back {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    box-shadow: var(--shh), var(--sh-gold);
    border-color: rgba(0, 0, 0, 0.1);
    /* Bordure neutre */
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px;
}

.card-back-title {
    font-size: 17px;
    font-weight: 600;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

/* ===================== */
/* LIENS SOCIAUX (dos carte) */
/* ===================== */
.social-links-row {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.social-link {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Bordure neutre */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Ombre subtile */
    color: rgba(0, 0, 0, 0.7);
    /* Texte plus sombre */
    transition: all 0.3s var(--spring);
}

.social-link:hover {
    background: rgba(0, 113, 227, 0.05);
    border-color: rgba(0, 113, 227, 0.3);
    color: var(--apple-blue);
    transform: translateY(-6px) scale(1.07);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ===================== */
/* BANNER */
/* ===================== */
.card-banner {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    background: #111;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s var(--ease);
    color: transparent;
    text-indent: -9999px;
    filter: brightness(0.88) contrast(1.05);
}

.card:hover .banner-img {
    transform: scale(1.05);
    filter: brightness(0.95) contrast(1.05);
}

.card-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(10, 8, 6, 0.55) 100%);
    pointer-events: none;
}

/* ===================== */
/* OVERLAY */
/* ===================== */
.banner-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 2;
}

.overlay-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, 0.349);
    /* Fond clair */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 8px 13px;
    border-radius: var(--r-md);
    /* Bordure neutre remplacée par une ombre interne pour un rendu plus stable */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s var(--ease);
    /* Force l'accélération matérielle pour éviter les artefacts de rendu */
    transform: translateZ(0);
}

.overlay-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.349);
    /* Fond clair */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 9px;
    border-radius: var(--r-md);
    /* Bordure neutre remplacée par une ombre interne pour un rendu plus stable */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s var(--ease);
    /* Force l'accélération matérielle pour éviter les artefacts de rendu */
    transform: translateZ(0);
}

.card:hover .overlay-text,
.card:hover .overlay-logo-wrapper {
    transform: translateY(-3px);
}

.overlay-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 9px;
}

.overlay-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    /* Texte noir */
    letter-spacing: -0.01em;
}

.overlay-type {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 700;
}

.overlay-type.type-entreprenariat,
.overlay-type.type-association,
.overlay-type.type-benevolat,
.overlay-type.type-projet,
.overlay-type.type-stage {
    color: #0003a070;
    /* Un bleu subtil pour les types */
}

/* ===================== */
/* CORPS CARTE */
/* ===================== */
.card-body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-description {
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    /* Texte gris foncé */
    line-height: 1.58;
    letter-spacing: -0.005em;
}

.card-date-badge {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    /* Texte gris */
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-date-badge::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    /* Point gris */
}

/* ===================== */
/* CONTACT */
/* ===================== */
#contact {
    width: 100%;
    padding: 0 80px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.contact-text {
    max-width: 640px;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.68;
    color: rgba(0, 0, 0, 0.65);
    /* Texte gris foncé */
    margin-bottom: 36px;
    letter-spacing: -0.01em;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    font-size: 14.5px;
    font-weight: 500;
    font-family: var(--font);
    color: rgba(0, 0, 0, 0.8);
    /* Texte gris foncé */
    border-radius: var(--r-pill);
    border: 1px solid rgba(0, 0, 0, 0.15);
    /* Bordure neutre */
    background: rgba(0, 0, 0, 0.03);
    /* Fond très léger */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s var(--spring),
        box-shadow 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
    letter-spacing: -0.01em;
}

.contact-button:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(0, 113, 227, 0.05);
    border-color: var(--apple-blue);
    color: var(--apple-blue);
    box-shadow:
        0 12px 36px rgba(0, 113, 227, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.contact-button:active {
    transform: scale(0.98);
}

/* ===================== */
/* FOOTER */
/* ===================== */
.site-footer {
    background: rgba(255, 255, 255, 0.8);
    /* Fond clair */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* Bordure neutre */
    margin-top: 80px;
    padding: 28px 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    /* Texte gris clair */
    letter-spacing: 0.02em;
}

/* ===================== */
/* ANIMATION */
/* ===================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== */
/* SCROLLBAR */
/* ===================== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    /* Gris subtil */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
    /* Gris légèrement plus foncé */
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */
@media (max-width: 900px) {
    .container {
        padding: 80px 20px;
    }

    .hero-profile {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        margin-top: 60px;
    }

    .profile-photo {
        width: 78px;
        height: 78px;
    }

    .name {
        font-size: 28px;
        margin-bottom: 0;
    }

    .tagline {
        margin-top: 10px;
        font-size: 15px;
    }

    .mobile-break {
        display: block;
        margin-top: 4px;
    }

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

    .card {
        height: auto;
        min-height: 380px;
    }

    .card-banner {
        height: 170px;
    }

    .banner-overlay {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .overlay-logo {
        width: 32px;
        height: 32px;
    }

    .overlay-logo-wrapper {
        padding: 6px;
        border-radius: var(--r-sm);
    }

    .overlay-text {
        border-radius: var(--r-sm);
    }

    .overlay-title {
        font-size: 12px;
    }

    .card-body {
        padding: 16px 18px;
    }

    #contact {
        padding: 0 20px 80px;
    }

    .contact-text {
        font-size: 17px;
    }
}