/* ===========================================
   JÉRÔME STÉPHAN - Développeur .NET Senior
   CSS Principal - Design Professionnel
   =========================================== */

/* Variables CSS */
:root {
    --primary: #0078d4;
    --primary-dark: #005a9e;
    --primary-light: #e6f2ff;
    --secondary: #512bd4;
    --accent: #25d366;
    --text: #1a1a1a;
    --text-light: #555;
    --text-muted: #777;
    --bg: #f8f9fa;
    --bg-card: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===========================================
   HEADER
   =========================================== */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    position: relative;
}

/* Photo de profil */
.photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,120,212,0.2);
    flex-shrink: 0;
}

/* Info principale */
header > div:first-of-type {
    flex: 1;
    min-width: 250px;
}

header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

header h1 span:last-child {
    color: var(--primary);
    font-weight: 600;
}

header > div > p,
header > div > div:first-of-type:not(.chips) {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Chips / Tags de compétences */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chips span {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.chips span:hover {
    background: var(--primary);
    color: white;
}

/* Sélecteur de langue */
.language-switcher {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.language-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.language-switcher a:hover,
.language-switcher a.active {
    opacity: 1;
    border-color: var(--primary);
    background: var(--primary-light);
}

.lang-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===========================================
   CARDS
   =========================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Liste stylisée */
.li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.li:last-child {
    border-bottom: none;
}

.li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===========================================
   BOUTON WHATSAPP / CTA
   =========================================== */
.cta-button,
#btnWhats,
a[href*="wa.me"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white !important;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    margin-top: 0.5rem;
}

.cta-button:hover,
#btnWhats:hover,
a[href*="wa.me"]:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,211,102,0.4);
}

.cta-button::before,
#btnWhats::before,
a[href*="wa.me"]::before {
    content: '💬';
    font-size: 1.1rem;
}

/* ===========================================
   ARTICLE (premier bloc pitch)
   =========================================== */
article.card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

article.card h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

article.card h2::before {
    background: white;
}

article.card p {
    color: rgba(255,255,255,0.95);
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    header > div:first-of-type {
        min-width: 100%;
        order: 2;
    }
    
    .photo {
        order: 1;
    }
    
    .language-switcher {
        order: 0;
        margin: 0 auto 0.5rem auto;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    .chips {
        justify-content: center;
    }
    
    .card {
        padding: 1.25rem 1.5rem;
    }
    
    .photo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }
    
    .chips span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .card h2 {
        font-size: 1.1rem;
    }
    
    .cta-button,
    #btnWhats,
    a[href*="wa.me"] {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, header {
    animation: fadeIn 0.4s ease forwards;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }

/* ===========================================
   DARK MODE (optionnel - suit les préférences système)
   =========================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f0f0f0;
        --text-light: #c0c0c0;
        --text-muted: #999;
        --bg: #121212;
        --bg-card: #1e1e1e;
        --border: #333;
        --primary-light: rgba(0,120,212,0.15);
    }
    
    .photo {
        border-color: var(--primary);
    }
    
    .chips span {
        background: rgba(0,120,212,0.2);
    }
    
    .language-switcher a {
        background: var(--bg-card);
    }
}

/* ===========================================
   PRINT
   =========================================== */
@media print {
    body {
        background: white;
    }
    
    .card, header {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .language-switcher,
    .cta-button,
    #btnWhats {
        display: none;
    }
}
