:root {
    --bg-primary: #e8e9ed;
    --bg-card: #f5f5f7;
    --text-primary: #1a1a1a;
    --text-secondary: #a0a0a8;
    --text-light: #b8b8c0;
    --accent-green: #22ff61;
    --accent-dark: #000000;
    --card-border: #e0e0e4;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a{
    text-decoration: none;
}
/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo span {
    color: var(--text-secondary);
    font-weight: 400;
}

.logo sup {
    font-size: 0.6rem;
    font-weight: 400;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* --- LOGIQUE DE PLACEMENT --- */

/* LIGNE 1 : Hauteur 320px */
/* Carte 1 : Large (40%) */
.main-container > .card:nth-child(1) {
    grid-column: span 4;
    min-height: 320px;
}

/* Carte 2 (Photo) : Petite (20%) - Carré */
.main-container > .card:nth-child(2) {
    grid-column: span 2;
    min-height: 320px;
}

/* Carte 3 : Large (40%) */
.main-container > .card:nth-child(3) {
    grid-column: span 4;
    min-height: 320px;
}

/* LIGNE 2 : Hauteur 320px */
/* Carte 4 (Projet 1) : Large (40%) */
.main-container > .card:nth-child(4) {
    grid-column: span 4;
    min-height: 320px;
}

/* Carte 5 (Projet 2) : Large (40%) */
.main-container > .card:nth-child(5) {
    grid-column: span 4;
    min-height: 320px;
}

/* Carte 6 (See Last Projects) : Petite (20%) - Carré comme la 2 */
.main-container > .card:nth-child(6) {
    grid-column: span 2;
    min-height: 320px;
}


/* Cards General Styling */
.card {
    background: var(--bg-card);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
    position: relative;
}

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

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hero Card (Card 1) */
.card-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 3vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-title-light {
    font-weight: 400;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 2px solid var(--card-border);
}

.social-icon:hover {
    background-color: var(--text-primary);
    color: white;
    transform: translateY(-3px);
}

/* Profile Card (Card 2) */
.card-profile {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.profile-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.profile-circle {
    position: relative;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e4 0%, #f0f0f2 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.profile-text-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 20s linear infinite;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-text-circle::before {
    content: attr(data-text);
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

/* About Card (Card 3) */

.card-about {
    display: flex;
    flex-direction: column;
}

.card-about .card-content {
    display: flex;
    flex-direction: column;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.dot-available {
    width: 12px;
    height: 12px;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation: blink-green 1.4s infinite;
}

@keyframes blink-green {
    0%, 100% {
        box-shadow: 0 0 0 rgba(196, 255, 13, 0);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 12px rgba(196, 255, 13, 1);
        opacity: 0.7;
    }
}

.availability-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.formation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.3rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-discover {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    background-color: transparent;
    border: 2px solid var(--card-border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-discover:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-discover i {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-discover:hover i {
    background-color: var(--text-primary);
    color: white;
}

/* Project Cards (Cards 4 & 5) */
.card-project {
    padding: 0;
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.4s ease;
}

/* Fallback backgrounds */
.project-royal:not([style*="background-image"]) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), #d8d8dc;
}

.project-crafty:not([style*="background-image"]) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)), #e8e9ed;
}

.card-project:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.project-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: white;
}

.btn-project {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-dark);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-project:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Work Card (Card 6) */
.card-work {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
}

.work-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: auto;
}

.work-title-light {
    font-weight: 300;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--bg-card);
    padding: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link:hover,
.footer-link.active {
    color: var(--text-primary);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.footer-link:hover::after,
.footer-link.active::after {
    width: 100%;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* --- RESPONSIVE DESIGN (MOBILE & TABLETTE) --- */

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr 1fr;
    }

    .main-container > .card:nth-child(n) {
        grid-column: span 1;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        padding: 100px 1.5rem 2rem;
        gap: 1.5rem;
    }
    
    /* Force toutes les cartes à prendre toute la largeur */
    .main-container > .card:nth-child(n) {
        grid-column: span 1 !important;
        min-height: 300px;
    }
    
    /* Carte photo un peu plus petite */
    .main-container > .card:nth-child(2) {
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .profile-circle {
        max-width: 200px;
    }
    
    .card-content {
        padding: 2rem;
    }
    
    .footer-nav {
        gap: 1.5rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }
}
/* --- CURSOR EFFECT ULTRA SMOOTH --- */
.custom-cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.8);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
    box-shadow: 0 0 20px rgba(26, 26, 26, 0.4);
    mix-blend-mode: difference;
}

.custom-cursor.active {
    width: 25px;
    height: 25px;
}

@media (max-width: 1352px) and (min-width: 1025px) {
    .profile-circle {
        max-width: 160px;
    }
    
    .profile-text-circle {
        font-size: 0.55rem;
    }
}


/* ========================================
   PAGE CONTACT
======================================== */
.contact-page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 80px;
    background: var(--bg-primary);
}

.contact-page-container {
    max-width: 700px;
    text-align: center;
}

.contact-page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.contact-page-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-page-methods {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-page-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-page-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-page-btn i {
    font-size: 2rem;
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-page-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.contact-page-btn-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-page-btn-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-page-email:hover {
    background: var(--text-primary);
}

.contact-page-email:hover i {
    background: white;
    color: var(--text-primary);
}

.contact-page-email:hover .contact-page-btn-label,
.contact-page-email:hover .contact-page-btn-value {
    color: white;
}

.contact-page-linkedin:hover {
    background: #0077b5;
}

.contact-page-linkedin:hover i {
    background: white;
    color: #0077b5;
}

.contact-page-linkedin:hover .contact-page-btn-label,
.contact-page-linkedin:hover .contact-page-btn-value {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-page-section {
        padding: 120px 20px 60px;
    }

    .contact-page-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-page-btn {
        width: 100%;
        max-width: 350px;
    }
}