:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --dark-bg: #0f172a;
    --light-gray: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-gray);
    color: #334155;
    scroll-behavior: smooth;
}

.main{
    margin-left: 30px;
    margin-right: 30px;
}
/* Navbar stylisée */
.navbar {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}
.dot-live {
    height: 10px;
    width: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    position: relative;
    vertical-align: middle;
}


.dot-live::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
    animation: live-pulse 1.5s infinite ease-out;
}

@keyframes live-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* Cartes et sections */
.card-modern {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: white;
}

.section-padding {
    padding: 80px 0;
}

/* Photo de profil */
.profile-img-container {
    position: relative;
    display: inline-block;
}

.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 30px;
    border: 8px solid white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Boutons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Timeline CV */
.timeline-item {
    padding-left: 30px;
    border-left: 2px solid #e2e8f0;
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.hobby-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hobby-image-wrapper .carousel,
.hobby-image-wrapper .carousel-inner,
.hobby-image-wrapper .carousel-item {
    height: 100%;
}
.hobby-image-wrapper {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    height: 350px;
    overflow: hidden;
}

.hobby-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hobby-card:hover .hobby-img {
    transform: scale(1.1);
}

/* Le dégradé sur l'image pour que le texte soit lisible */
.hobby-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.hobby-title {
    color: white;
    font-weight: 800;
    font-size: 1.75rem;
    margin: 0;
}

.hobby-description {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #64748b;
    font-style: italic;
}

.caption {
    color: rgba(65, 65, 85, 0.44);
    font-size: 1rem;
    font-style: italic;
}

.project-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-2 {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.btn-project {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-demo {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-demo:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.tech-badge {
    background-color: #f1f5f9;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    text-transform: uppercase;
}

.project-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card {
    background: transparent;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 30px 30px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}
.feature-card-pb {
    background: transparent;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 30px 30px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}


.feature-card-sol {
    background: transparent;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 1px 30px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.feature-card-pb:hover {
    background-color: rgba(230, 22, 22, 0.49);
    transform: translateY(-5px);
}

.feature-card-sol:hover {
    background-color: rgba(28, 128, 17, 0.49);
    transform: translateY(-5px);
}

.feature-card:hover {
    transform: translateY(-5px);
}
.eco-line {
    border-left: 2px dashed #e2e8f0;
    padding-left: 2rem;
    margin-left: 1rem;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.terminal-badge {
    background: #1e293b;
    color: #38bdf8;
    font-family: 'Courier New', Courier, monospace;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
}

.ia:hover{
    background: radial-gradient(circle, rgba(49, 139, 213, 0.39) 0%, rgba(198, 26, 204, 0.38) 70%);
}

.vs:hover{
    background:radial-gradient(circle, rgba(49, 139, 213, 0.39) 0%, rgba(26, 204, 162, 0.38) 70%);
}

/* Print optimization */
@media print {
    .navbar, .btn, footer, .no-print {
        display: none !important;
    }
    .card-modern {
        box-shadow: none;
        border: 1px solid #eee;
    }
    body { background: white; }
}

