* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
html {
    scroll-behavior: auto;
    scroll-padding-top: 100px;
}

html,
body {
    background-color: #0C0454 !important;
}

:root {
    --bg-color: #0F056B;
    --card-bg: rgba(28, 28, 30, 0.65);
    --card-bg-hover: rgba(44, 44, 46, 0.75);
    --text-primary: #ffffff;
    --text-secondary: #86868b;
    --accent-color: #0F056B;
    --border-color: rgba(255, 255, 255, 0.12);
    --border-color-hover: rgba(255, 255, 255, 0.2);
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
        "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ===================== */
/* Profil / Hero */
/* ===================== */
.hero {
    margin-bottom: 180px;
    position: relative;
}

.hero-profile {
    margin-top: 100px;
    display: flex;
    align-items: center;
    gap: 48px;
}

/* PHOTO */
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.profile-photo::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255,255,255,0.35),
        rgba(255,255,255,0.05) 40%,
        transparent 60%
    );
    opacity: 0.85;
}

.profile-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.12),
        0 25px 60px rgba(0,0,0,0.7);
}

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

/* TEXTE */
.hero-text {
    max-width: 870px;
}

.name {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.95;
    margin-bottom: 18px;
}

.tagline {
    font-size: 19px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 1000px;
}


/* ===================== */
/* CATEGORIES */
/* ===================== */
.category-block {
    margin-top: 100px;
    margin-bottom: 120px;
}

.category-info {
    margin-bottom: 44px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

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

/* ===================== */
/* CARDS */
/* ===================== */
.card {
    position: relative;
    height: 420px;
    background: transparent;
    border: none;
    padding: 0;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-front {
    background: var(--card-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
}

.card-back {
    background: var(--card-bg-hover);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* Links in card back */
.social-link {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-8px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link svg {
    width: 24px;
    height: 24px;
    /* Respect original SVG fill/stroke unless they use currentColor */
}

.card-banner {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #49494b 0%, #49494b 100%);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* Hide broken image icon */
    color: transparent;
    text-indent: -9999px;
}

.banner-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.overlay-text {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.overlay-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

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

/* Types de badges */
.overlay-type.type-entreprenariat {
    color: #2d1cc4;
}

.overlay-type.type-association {
    color: #2d1cc4;
}

.overlay-type.type-benevolat {
    color: #2d1cc4;
}

.overlay-type.type-projet {
    color: #2d1cc4;
}

.overlay-type.type-stage {
    color: #2d1cc4;
}

/* Corps de carte */
.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Date de l'expérience */
.card-date-badge {
    margin-top: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Animation de survol */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at 50% 50%,
        rgba(255,255,255,0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

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

    .hero-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

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

    .name {
        font-size: 46px;
    }

    .tagline {
        font-size: 16px;
    }

    .hero::after {
        margin-top: 64px;
    }

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

    .card-banner {
        height: 180px;
    }

    .banner-overlay {
        padding: 0;
        bottom: 12px;
        left: 12px;
        right: 12px;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

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

    .overlay-logo-wrapper {
        padding: 6px;
        border-radius: 10px;
    }

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

    .card-body {
        padding: 20px;
    }
}

/* ===== SECTION CONTACT ===== */

#contact {
    width: 100%;
    padding: 0px 80px 80px; /* espace en haut MAIS PAS en bas excessif */
    
    display: flex;
    flex-direction: column;

    align-items: center;   /* CENTRAGE SUR X */
    justify-content: flex-start; /* PAS de centrage Y */

    box-sizing: border-box;
}

/* Texte */

.contact-text {
    max-width: 1000px;
    text-align: center;
    font-size: 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Bouton Apple / Liquid Glass */

.contact-button {
    padding: 14px 34px;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    text-decoration: none;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.site-footer {
    background-color: rgb(6, 1, 53);
    margin-top: 140px;
    padding: 40px 16px;
    text-align: center;
    font-size: 13px;
    color: rgb(255, 255, 255);
}
@media (max-width: 900px) {

    /* Ligne photo + prénom */
    .hero-profile {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    /* Texte */
    .hero-text {
        display: flex;
        flex-direction: column;
    }

    /* Prénom à droite de la photo */
    .name {
        font-size: 28px;
        margin: 0;
        line-height: 1.1;
    }

    /* Tagline forcée en dessous */
    .tagline {
        margin-top: 12px;
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .mobile-break {
        display: block;
        margin-top: 4px;
    }
}
