/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #1f2937;
}

body:not(.home) {
    background: linear-gradient(180deg, #eef3fb 0%, #f8fafc 100%);
}

body.home {
    background: #1e3a8a; /* même base que ton hero */
}



html {
    background: #1e3a8a;
}


/* ================= NAVIGATION ================= */

.topnav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 1100px;
    padding: 15px 40px;
    border-radius: 50px;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 1000;
}

.nav-logo {
    font-weight: 700;
    font-size: 20px;
    color: #1e3a8a;
}

.topnav nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: 0.3s;
}

.topnav nav a:hover,
.topnav nav .active {
    color: #2563eb;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}


/* ================= HERO ================= */

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    top: -200px;
    right: -200px;
    animation: lightMove 18s infinite ease-in-out;
}

@keyframes lightMove {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(-100px, 80px); }
}

.hero {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: white;

    background: linear-gradient(-45deg, #1e3a8a, #2563eb, #1e40af, #1d4ed8);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-size: 52px;
    font-weight: 700;
    text-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    margin-top: 20px;
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.buttons {
    margin-top: 40px;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ================= BUTTONS ================= */

.btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
    transition: 0.3s;
}

.btn:first-child {
    background: white;
    color: #1e3a8a;
}

.btn.secondary {
    background: #f97316;
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
}

/* ================= CLOUDS ================= */

.cloud {
    position: absolute;
    background: white;
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(15px);
}

.cloud1 {
    width: 350px;
    height: 140px;
    top: 120px;
    left: -120px;
    animation: cloudMove 25s infinite linear;
}

.cloud2 {
    width: 450px;
    height: 180px;
    bottom: 100px;
    right: -150px;
    animation: cloudMove 35s infinite linear reverse;
}

@keyframes cloudMove {
    0% { transform: translateX(0); }
    50% { transform: translateX(40px); }
    100% { transform: translateX(0); }
}

/* ================= ANIMATION ================= */

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================= CONTAINER ================= */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


.container h1 {
    margin-bottom: 40px;
    font-size: 36px;
    color: #1e3a8a;
    font-weight: 700;
}

/* ================= CARDS ================= */

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* ================= PORTFOLIO ================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}


.project {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.project:hover {
    transform: translateY(-6px);
}

.project img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project h3 {
    margin-bottom: 10px;
    color: #1e3a8a;
}

/* ================= MODAL ================= */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    animation: zoomIn 0.3s ease;
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ================= CV LAYOUT ================= */

.cv-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 30%;
    background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 40px 30px;
}

.sidebar h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 6px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
    font-size: 14px;
}

.photo {
    text-align: center;
    margin-bottom: 30px;
}

.photo img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
}

.content {
    width: 70%;
    padding: 60px;
    background: #f8fafc;
}

.header-cv h1 {
    font-size: 40px;
}

.header-cv span {
    color: #1e3a8a;
}

section {
    margin-top: 40px;
}

section h3 {
    font-size: 20px;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.job {
    margin-bottom: 25px;
}

.date {
    font-size: 13px;
    background: #1e3a8a;
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.video-card {
    position: relative;
    padding-bottom: 56.25%; /* format 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #f97316;
    margin: 15px auto 0;
    border-radius: 10px;
}

.cv-actions {
    margin-top: 20px;
    margin-bottom: 30px;
}

.print-btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.print-btn:hover {
    transform: translateY(-3px);
}

@media print {

    .topnav,
    .print-btn {
        display: none !important;
    }

    body {
        background: white;
    }

    .cv-container {
        display: block;
    }

    .sidebar {
        width: 100%;
    }

    .content {
        width: 100%;
    }
}

.project-content {
    text-align: center;
    padding: 30px;
}

.project-content h3 {
    margin-bottom: 20px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.vae-category {
    margin-top: 80px;
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
}

/* ================= SERVICES ================= */

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    transition: 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #1e3a8a;
}

.service-card p {
    margin-bottom: 20px;
    color: #475569;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #f97316;
}

.services-section {
    padding: 180px 20px 120px 20px;
    background: linear-gradient(180deg, #eef3fb 0%, #f8fafc 100%);
    min-height: 100vh;
}

/* ================= CONTACT PAGE FIX ================= */

.contact-simple {
    text-align: center;
    color: white;
}

.contact-text {
    margin-top: 30px;
    font-size: 18px;
    opacity: 0.9;
}

.contact-email {
    display: inline-block;
    margin-top: 25px;
    font-size: 24px;
    font-weight: 700;
    background: white;
    color: #1e3a8a;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
}

.contact-email:hover {
    transform: translateY(-3px);
}

.contact-sub {
    margin-top: 20px;
    opacity: 0.7;
}





