/* --- VARIABLES STYLE DYNAMIQUE & LUMINEUX --- */
:root {
    --bg-gradient: linear-gradient(135deg, #f0f4ff 0%, #f6f0ff 100%); /* Fond dégradé moderne */
    --card-bg: #ffffff;        /* Cartes blanches pour le contraste */
    --card-hover: #ffffff;     
    --text-main: #1e293b;      /* Gris ardoise foncé pour la lisibilité */
    --text-muted: #475569;     /* Gris intermédiaire */
    --accent-blue: #2563eb;    /* Bleu dynamique */
    --accent-purple: #7c3aed;  /* Violet moderne */
    --accent-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- RESET & STRUCTURE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(190px, auto);
}

/* --- BLOCS COMMUNS (EFFET DE PROFONDEUR) --- */
.bento-item {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 4px 20px rgba(37, 99, 219, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Effet Hover dynamique */
.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.08), 0 4px 12px rgba(37, 99, 219, 0.03);
    border-color: rgba(124, 58, 237, 0.2);
}

/* --- TYPOGRAPHIE --- */
h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.desc-text {
    margin-bottom: 1.2rem;
}

/* --- BADGES COLORÉS ET ÉNERGIQUES --- */
.badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1.5rem;
    align-self: flex-start;
    border: 1px solid #bfdbfe;
}

.badge-seo {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

/* --- LOGO PROFIL --- */
.profile-logo-container {
    text-align: left;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

.profile-logo {
    max-width: 130px;
    height: auto;
    display: block;
}

/* --- ACCENTS ET TOUCHES DE COULEUR SUR CERTAINS BLOCS --- */
.item-profile {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(145deg, #ffffff 50%, #eff6ff 100%);
    justify-content: center;
    border: 1px solid rgba(37, 99, 219, 0.1);
}

.item-web { grid-column: span 2; }
.item-ecommerce { grid-column: span 2; grid-row: span 2; }
.item-management { grid-column: span 2; }

/* Le bloc IA prend une vraie identité tech/futuriste douce */
.item-ia { 
    grid-column: span 2; 
    background: linear-gradient(145deg, #ffffff 50%, #f5f3ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

/* --- LISTES D'ACTIVITÉS PUNCHY --- */
.skills-list {
    list-style: none;
}
.skills-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: #334155;
    font-size: 0.98rem;
}

/* Remplacement des puces grises par des puces colorées dynamiques */
.skills-list li::before {
    content: "✦";
    color: var(--accent-purple);
    font-size: 0.85rem;
    position: absolute;
    left: 0;
    top: 1px;
}

.item-web .skills-list li::before,
.item-ecommerce .skills-list li::before {
    color: var(--accent-blue);
}

/* --- LIENS --- */
.site-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(37, 99, 219, 0.4);
    transition: all 0.2s;
}
.site-link:hover {
    color: #1d4ed8;
    border-bottom-style: solid;
}

/* --- ACCROCHE / CITATION --- */
.header-quote {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--accent-purple);
    margin-top: 1.2rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent-blue);
}

/* --- FOOTER --- */
footer {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

footer p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- RESPONSIVE TABLETTES --- */
@media (max-width: 1024px) {
    .bento-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .item-profile, .item-web, .item-ecommerce, .item-management, .item-ia {
        grid-column: span 2;
        grid-row: auto;
    }
}

/* --- RESPONSIVE MOBILES --- */
@media (max-width: 640px) {
    body { 
        padding: 2rem 0.5rem; 
    }
    .bento-grid { 
        grid-template-columns: 1fr; 
        gap: 1.25rem; 
    }
    .item-profile, .item-web, .item-ecommerce, .item-management, .item-ia { 
        grid-column: span 1; 
    }
    h1 { 
        font-size: 2.2rem; 
    }
}