/* ============================================================
   PORTFOLIO — Danny Berger Delorme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ————————————————————————————————
   Reset & Base
   ———————————————————————————————— */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    line-height: 1.65;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

.accent {
    background: linear-gradient(120deg, #0071e3, #5ac8fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ————————————————————————————————
   Navbar
   ———————————————————————————————— */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: #1d1d1f;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.6;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    display: inline-block;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: #6e6e73;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: #1d1d1f;
    background: #f0f0f2;
}

/* ————————————————————————————————
   Hero
   ———————————————————————————————— */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 64px 0 150px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    animation: heroIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Photo */
.photo-side {
    flex-shrink: 0;
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    animation: photoIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes photoIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Texte */
.text-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 113, 227, 0.08);
    color: #0071e3;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 113, 227, 0.14);
    margin-bottom: 18px;
    animation: fadeUp 0.5s ease 0.25s both;
}

.dot {
    width: 6px;
    height: 6px;
    background: #0071e3;
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.65);
    }
}

.hero-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.06;
    color: #1d1d1f;
    margin: 0 0 16px;
    animation: fadeUp 0.55s ease 0.35s both;
}

.description {
    font-size: 1.05rem;
    color: #6e6e73;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeUp 0.55s ease 0.45s both;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.55s ease 0.55s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* ————————————————————————————————
   Boutons
   ———————————————————————————————— */
.btn-main {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 999px;
    background: #0071e3;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(0, 113, 227, 0.28);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, box-shadow 0.15s ease;
}

.btn-main:hover {
    background: #0077ed;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 34px rgba(0, 113, 227, 0.34);
}

.btn-outline {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 999px;
    background: #f5f5f7;
    color: #1d1d1f;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, box-shadow 0.15s ease;
}

.btn-outline:hover {
    background: #ebebed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

/* ————————————————————————————————
   Section
   ———————————————————————————————— */
.section {
    padding: 40px 0 120px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: #1d1d1f;
    margin-bottom: 48px;
}

/* ————————————————————————————————
   Tags techniques
   ———————————————————————————————— */
.tech-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tech-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0071e3;
    background: rgba(0, 113, 227, 0.05);
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 113, 227, 0.1);
    letter-spacing: 0.02em;
}

/* ————————————————————————————————
   Showcase
   ———————————————————————————————— */
.showcase-bg {
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.showcase-bg::before,
.showcase-bg::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}

.showcase-bg::before {
    top: 0;
}

.showcase-bg::after {
    bottom: 0;
}

.showcase-bg .container {
    position: relative;
    z-index: 2;
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 180px;
    align-items: center;
    text-align: center;
}

.showcase-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 2000px;
}

.image-wrapper {
    margin-top: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: transform 0.8s cubic-bezier(0.15, 0, 0.15, 1), box-shadow 0.8s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18);
}

.app-window {
    max-width: 640px;
    margin: 40px auto 0;
    border-radius: 5px;
    transform: translateZ(0);
    animation: floatApp 6s ease-in-out infinite;
    -webkit-font-smoothing: subpixel-antialiased;
}

@keyframes floatApp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.mobile-trio {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.mobile-frame {
    position: relative;
    max-width: 210px;
    flex: 1;
    border-radius: 35px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.15, 0, 0.15, 1);
}

.mobile-trio .mobile-frame:nth-child(2) {
    transform: scale(1.1);
    z-index: 5;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.mobile-trio .mobile-frame:nth-child(1) {
    transform: rotate(-3deg) translateY(10px);
}

.mobile-trio .mobile-frame:nth-child(3) {
    transform: rotate(3deg) translateY(10px);
}

.mobile-trio:hover .mobile-frame {
    transform: rotate(0) translateY(0) scale(1);
}

.showcase-img {
    width: 100%;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.mobile-frame .showcase-img {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    margin: -1px;
    object-fit: cover;
    border-radius: 22px;
}

/* ————————————————————————————————
   Status Section
   ———————————————————————————————— */
.version-badge-pill {
    position: fixed;
    top: 80px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 22px;
    /* Bulle plus grande */
    border-radius: 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    /* Texte plus lisible */
    font-weight: 700;
    color: #0071e3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 1050;
    /* Au-dessus du contenu mais sous la navbar */
    /* Passe par dessus la navbar et le contenu */
    animation: badgeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    /* Délai pour apparaître après la navbar */
    white-space: nowrap;
    pointer-events: none;
}

@keyframes badgeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -30px) scale(0.9);
        /* Vient du haut et du centre */
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
        /* Reste centré */
    }
}

/* ————————————————————————————————
   Footer
   ———————————————————————————————— */
.footer {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #f5f5f7;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #1d1d1f;
    margin-bottom: 14px;
}

.footer p {
    color: #6e6e73;
    font-size: 1rem;
    margin-bottom: 36px;
}

.footer .footer-brand {
    display: inline-block;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(180deg, #1d1d1f 0%, #434345 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    letter-spacing: -0.06em;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.footer .footer-brand:hover {
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    /* Centrer les liens dans la colonne */
}

.footer-col a {
    text-decoration: none;
    color: #6e6e73;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #0071e3;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #86868b;
    font-size: 0.75rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    text-decoration: none;
    color: #86868b;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* ————————————————————————————————
   Améliorations de mise en page
   ———————————————————————————————— */

/* Amélioration de la showcase section */
.showcase-item {
    animation: fadeInUp 0.7s ease-out both;
}

.showcase-item:nth-child(2) {
    animation-delay: 0.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Amélioration des badges de technologie */
.tech-tag {
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(0, 113, 227, 0.12);
    transform: translateY(-1px);
}

/* ————————————————————————————————
   Utilitaires & Stats
   ———————————————————————————————— */
.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* ————————————————————————————————
   Cartes de fonctionnalités
   ———————————————————————————————— */
.feature-card {
    background: #ffffff;
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 113, 227, 0.1);
    border-color: rgba(0, 113, 227, 0.3);
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.feature-desc {
    color: #6e6e73;
    margin: 10px 0 20px;
    font-size: 0.95rem;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, rgba(0, 113, 227, 0.2), #0071e3, rgba(0, 113, 227, 0.2));
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid #0071e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0071e3;
    box-shadow: 0 0 0 8px #ffffff, 0 10px 20px rgba(0, 113, 227, 0.15);
    margin-bottom: 24px;
}

.step-item h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #1d1d1f;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.step-item p {
    color: #6e6e73;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ————————————————————————————————
   Bento Grid & Badges MP4
   ———————————————————————————————— */
.features-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    grid-auto-flow: dense;
}

.feature-card.large {
    grid-column: span 2;
}

.badge-mp4 {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #5731ff, #21a6ff);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Unified Stats Banner */
.stats-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    padding: 40px 60px;
    max-width: 1000px;
    margin: -80px auto 60px auto;
    position: relative;
    z-index: 10;
}

.stats-banner-item {
    text-align: center;
    flex: 1;
}

.stats-banner-divider {
    width: 1px;
    height: 60px;
    background: rgba(0, 0, 0, 0.06);
}

.stat-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0071e3;
    margin-bottom: 6px;
}

.stat-unit {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0071e3;
    margin-left: 2px;
}

.stat-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6e6e73;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}