/* --- 1. CONFIGURATION GLOBALE (THEME CLAIR) --- */
:root {
    --bg-color: #f3f4f6;        /* Gris très clair (apaisant) */
    --card-bg: #ffffff;         /* Blanc pur pour les éléments */
    --text-main: #111827;       /* Gris anthracite foncé (lisible) */
    --text-muted: #6b7280;      /* Gris moyen */
    --accent: #4f46e5;          /* Indigo vibrant */
    --accent-glow: rgba(79, 70, 229, 0.15);
    --gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --font-main: 'Outfit', sans-serif;
    --nav-height: 70px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- 2. NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.85); /* Fond blanc semi-transparent */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Ligne subtile */
    z-index: 1000;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-main);
}
.accent-dot { color: var(--accent); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-main); font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
/* Ajout spécifique pour le lien jeu */
.nav-links a.accent-link { color: var(--accent); font-weight: 600; }

.btn-nav {
    background: var(--text-main);
    color: white !important; /* Force le blanc */
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
}
.btn-nav:hover { background: var(--accent); transform: translateY(-1px); }

/* --- 3. HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 0;
}

.badge {
    background: var(--accent-glow);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 25px;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--text-main);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-buttons { display: flex; gap: 15px; justify-content: center; }

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23); }

.btn-secondary {
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--text-main);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* --- 3b. SECTION A PROPOS --- */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: var(--card-bg); /* Fond blanc comme les autres cartes */
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

/* Conteneur de l'image */
.about-image {
    flex: 1;
    max-width: 400px; /* Limite la largeur pour ne pas écraser le texte */
    position: relative;
}

/* L'image elle-même */
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s ease;
    object-fit: cover;
}

/* Petit effet au survol de l'image */
.about-image:hover img {
    transform: scale(1.02) rotate(-1deg);
}

/* Partie Texte */
.about-text {
    flex: 1.5; /* Le texte prend plus de place que l'image */
}

.about-text h2 {
    margin-bottom: 30px; /* Espace sous le titre spécifique à cette section */
    font-size: 2.2rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Signature stylisée */
.signature {
    display: block;
    margin-top: 30px;
    font-family: 'Outfit', sans-serif; /* Ou une police manuscrite si tu en ajoutes une */
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent); /* Couleur indigo */
    transform: rotate(-2deg); /* Légère inclinaison pour faire "signature" */
    display: inline-block;
}

/* --- RESPONSIVE POUR A PROPOS --- */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column; /* Empile l'image et le texte sur mobile */
        padding: 40px 30px;
        text-align: center;
        gap: 40px;
    }

    .about-image {
        max-width: 100%;
        width: 80%; /* Un peu plus petit sur mobile */
        margin: 0 auto; /* Centrer l'image */
    }

    .about-text {
        width: 100%;
    }
    
    .about-text h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
}

/* --- 4. SECTION EXPERIENCE (TIMELINE) --- */
section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
h2 { font-size: 2.5rem; margin-bottom: 60px; color: var(--text-main); font-weight: 700; }

.timeline {
    border-left: 2px solid #e5e7eb; /* Ligne grise claire */
    margin-left: 10px;
    padding-left: 40px;
}

.timeline-item { position: relative; margin-bottom: 60px; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -47px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: white;
    border: 3px solid var(--accent);
    border-radius: 50%;
    transition: 0.3s;
    z-index: 1;
}

.timeline-item:hover::before {
    background-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline-date {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content h3 { font-size: 1.5rem; margin-bottom: 5px; color: var(--text-main); }
.timeline-content .company { font-style: italic; color: var(--text-muted); font-size: 0.95rem; display: block; margin-bottom: 15px;}
.timeline-content p { color: var(--text-muted); font-size: 1.05rem; max-width: 700px; }

/* --- 5. SECTION PROJETS (GRID) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    /* On remplace la bordure par une ombre douce en thème clair */
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent; 
    transition: all 0.3s ease;
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.1); /* Légère bordure colorée au survol */
}

.card-image {
    height: 220px;
    background: #e5e7eb; /* Placeholder gris clair */
    /* background-image: url('assets/projet1.jpg'); background-size: cover; */
}

.card-info { padding: 30px; }
.card-info h3 { margin-bottom: 10px; font-size: 1.25rem; color: var(--text-main); }
.card-info p { color: var(--text-muted); font-size: 1rem; margin-bottom: 25px; }

.tags span {
    font-size: 0.8rem;
    background: #f3f4f6; /* Badge gris clair */
    padding: 6px 14px;
    border-radius: 20px;
    margin-right: 8px;
    color: var(--text-main);
    font-weight: 500;
}

/* --- 6. SECTION JEU DU MENTALISTE (NOUVEAU) --- */
.game-wrapper {
    display: flex;
    justify-content: center;
}

.game-card {
    background: white;
    border-radius: 30px;
    padding: 50px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

/* Décoration de fond subtile */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient);
}

.game-header { margin-bottom: 30px; }

/* Barre de progression du jeu */
.progress-track {
    width: 100%;
    height: 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenu du jeu */
.game-step-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-step-desc {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 500;
}

.game-step-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    display: block;
    margin-bottom: 30px;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Animation de transition entre étapes */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Le chiffre 4 final */
.big-number-reveal {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
    filter: drop-shadow(0 4px 10px rgba(79, 70, 229, 0.3));
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Loader custom */
.game-loader {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f4f6;
    border-bottom-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 7. FOOTER --- */
footer {
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid #e5e7eb;
    color: var(--text-muted);
    background: white;
}
.socials { margin-top: 20px; display: flex; justify-content: center; gap: 20px; }
.socials a { color: var(--text-main); font-weight: 500; }
.socials a:hover { color: var(--accent); }

/* --- 8. ANIMATIONS --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }

/* --- 9. RESPONSIVE --- */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    
    nav { flex-direction: column; padding: 15px; gap: 15px; background: rgba(255,255,255,0.95); }
    .nav-links { flex-wrap: wrap; justify-content: center; font-size: 0.9rem; gap: 15px; }
    
    .timeline { margin-left: 0; padding-left: 20px; }
    .timeline-item::before { left: -28px; }

    .game-card { padding: 30px 20px; }
    .game-step-title { font-size: 2rem; }
    .big-number-reveal { font-size: 6rem; }
}

/* --- NOUVEAUTÉ : STYLE DES COMPÉTENCES --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-pill {
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.skill-pill img {
    width: 20px;
    height: 20px;
}

.skill-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
/* --- NOUVEAUTÉ : STYLE DU CONTACT --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info prend moins de place que le form */
    gap: 60px;
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.contact-info h3 { margin-bottom: 15px; font-size: 1.5rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 30px; }

.detail-item { margin-bottom: 20px; }
.detail-item strong { display: block; color: var(--text-main); font-size: 0.9rem; }
.detail-item a, .detail-item span { color: var(--accent); font-weight: 500; }

/* Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, 
.form-group textarea {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-main);
    transition: 0.3s;
    outline: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* --- RESPONSIVE UPDATE --- */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        padding: 30px;
        gap: 40px;
    }
}