/* ============================================================
   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;
}

.btn-nav {
    background: #1d1d1f !important;
    color: #ffffff !important;
    padding: 7px 18px !important;
    border-radius: 999px !important;
    font-size: 0.85rem !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
}

.btn-nav:hover {
    background: #333333 !important;
    transform: scale(1.03) !important;
}

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

.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: 50px 0;
}

.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;
}

/* ————————————————————————————————
   Timeline
   ———————————————————————————————— */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
}

.timeline-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 26px 28px 26px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #0071e3, rgba(0, 113, 227, 0.15));
    border-radius: 3px 0 0 3px;
}

.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0071e3;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
    display: block;
}

.timeline-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #6e6e73;
    line-height: 1.6;
}

.specialite {
    display: inline-flex;
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(0, 113, 227, 0.08);
    color: #0071e3;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(0, 113, 227, 0.13);
}

/* ————————————————————————————————
   Projets
   ———————————————————————————————— */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.project-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.project-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.04);
}

.project-content {
    padding: 22px 24px 26px;
}

.project-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.project-content p {
    font-size: 0.9rem;
    color: #6e6e73;
    line-height: 1.65;
}

.tag {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 12px;
    background: #f5f5f7;
    color: #6e6e73;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
}

.tech-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    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;
}

/* ————————————————————————————————
   Compétences
   ———————————————————————————————— */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-category {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.skill-category h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #1d1d1f;
}

/* ————————————————————————————————
   Footer
   ———————————————————————————————— */
.footer {
    padding: 100px 0 60px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f7;
}

.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;
}

.email-link {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0071e3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.email-link:hover {
    color: #0071e3;
}

.email-link:hover::after {
    transform: scaleX(1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    margin-bottom: 8px;
}

.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;
}

.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;
}

.social-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: #6e6e73;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.social-link:hover {
    border-color: #0071e3;
    color: #0071e3;
    background: rgba(0, 113, 227, 0.06);
    transform: translateY(-2px);
}

.copy {
    margin-top: 52px;
    color: #aeaeb2;
    font-size: 0.8rem;
}


.section:nth-child(2n) {
    background: #ffffff;
    position: relative;
}

.section:nth-child(2n)::before {
    display: none;
}

.section:nth-child(2n)::after {
    display: none;
}

/* Meilleur spacing entre sections */
.section {
    position: relative;
    z-index: 1;
}

/* Amélioration des cartes de projet */
.project-card {
    position: relative;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 28px 64px rgba(0, 113, 227, 0.16);
    border-color: rgba(0, 113, 227, 0.1);
}

.project-content {
    padding: 32px 28px 28px;
}

.project-content h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: #1d1d1f;
    font-weight: 700;
}

.project-content p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #6e6e73;
}

/* 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);
}

.hamburger {
    display: none;
}