/* --- CONFIGURATION LIQUID GLASS & SOFT UI --- */
:root {
    --cesi-yellow: #FFD300;     /* Jaune CESI */
    --text-black: #1a1a1a;      /* Noir profond pour le texte */
    --bg-light: #eef1f5;        /* Fond gris clair chaud (Studio) */
    --glass-bg: rgba(255, 255, 255, 0.4); 
    --glass-border: rgba(255, 255, 255, 0.8);
    
    /* Ombres Soft-Depth pour l'effet "sculpté" */
    --soft-shadow: 20px 20px 60px #d1d9e6, -20px -20px 60px #ffffff;
    --inner-shadow: inset 6px 6px 12px #d1d9e6, inset -6px -6px 12px #ffffff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top left, #ffffff 0%, #eef1f5 50%, #e0e7f0 100%);
    background-attachment: fixed;
    color: var(--text-black);
    min-height: 100vh;
}

/* --- NAV BAR STYLE VISION PRO --- */
header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 1000px;
    height: 65px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 10px 10px 30px rgba(166, 180, 200, 0.2);
}

.logo { font-weight: 800; font-size: 1.1rem; letter-spacing: 1px; }
.logo span { color: var(--cesi-yellow); }

.nav-links { display: flex; list-style: none; gap: 35px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-black);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.5;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover { opacity: 1; color: var(--cesi-yellow); }

/* --- CARTES & MODALES (EFFET VERRE LIQUIDE) --- */
.glass-modal, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: var(--soft-shadow);
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.6);
}

/* --- BOUTONS PILLS (STYLE TES IMAGES) --- */
.liquid-button {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 14px 30px;
    text-decoration: none;
    color: var(--text-black);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.liquid-button:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 12px 12px 24px #cbd5e1, -12px -12px 24px #ffffff;
}

.liquid-button:active {
    transform: translateY(1px);
    box-shadow: var(--inner-shadow);
}

.liquid-button.active {
    background: var(--cesi-yellow);
    border-color: var(--cesi-yellow);
    box-shadow: 0 10px 20px rgba(255, 211, 0, 0.25);
}

/* --- ÉLÉMENTS DE DESIGN --- */
.yellow-text { color: var(--cesi-yellow); }

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-black);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.05);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-img-container {
    width: 100%;
    height: 220px;
    background: #e0e7f0;
    border-radius: 25px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: var(--inner-shadow);
    border: 1px solid rgba(255,255,255,0.5);
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply; /* Pour intégrer l'image au style liquid */
    opacity: 0.9;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    text-align: center;
    opacity: 0.4;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Ajoute ou vérifie ces points dans ton style.css */

.project-img-container {
    width: 100%;
    height: 200px;
    background: #eef1f5; /* Fond neutre si l'image ne charge pas */
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: inset 5px 5px 15px rgba(0,0,0,0.05); /* Effet de creux */
    border: 1px solid rgba(255,255,255,0.8);
}

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

.glass-card:hover .project-img-container img {
    transform: scale(1.1); /* Zoom léger sur l'image au survol de la carte */
}

/* On s'assure que le header flottant est bien blanc/verre */
header {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 10px 10px 40px rgba(166, 180, 200, 0.15) !important;
}