/* ==========================================
   VARIABLES (Harmonisation Palette & Design System)
========================================== */

:root {
    --primary: #875A7B;         /* Violet Odoo Officiel */
    --primary-light: #D8B4FE;   /* Amélioration du contraste sur fond sombre */
    --primary-glow: rgba(135, 90, 123, 0.3);

    --dark: #0F172A;            /* Slate 900 (Fond principal) */
    --dark-2: #1E293B;          /* Slate 800 (Cartes & Surfaces) */
    --dark-3: #334155;          /* Slate 700 (Bordures & États) */

    --white: #F8FAFC;           /* Blanc cassé reposant pour les yeux */
    --gray: #94A3B8;            /* Texte secondaire lisible */
    --text-muted: #CBD5E1;      /* Texte de paragraphe pour conformité WCAG */

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 20px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    --radius: 16px;             /* Plus moderne et élégant pour des cartes */
}

/* ==========================================
   GLOBAL
========================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Évite que la navbar fixe ne cache les titres au scroll */
}

body {
    background-color: var(--dark);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.section {
    padding: 100px 0; /* Équilibre parfait pour éviter les zones vides excessives */
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    color: var(--white) !important;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto 50px auto;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Trait décoratif sous les titres pour asseoir le design */
.heading-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 12px;
}

/* ==========================================
   NAVBAR PREMIUM (Finition Verre / Glassmorphism)
========================================== */

.custom-navbar {
    padding: 16px 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-scrolled {
    padding: 12px 0;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(135, 90, 123, 0.2);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white) !important;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav {
    gap: 4px;
}

.nav-link {
    color: var(--gray) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
}

.nav-link:hover, 
.nav-link:focus {
    color: var(--white) !important;
    background: rgba(135, 90, 123, 0.12);
}

.btn-navbar {
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-navbar:hover {
    background: #98658b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(135, 90, 123, 0.4);
}

/* ==========================================
   HERO SECTION
========================================== */

.hero {
    min-height: 100vh;
    padding-top: 100px;
    background: radial-gradient(circle at 85% 20%, rgba(135, 90, 123, 0.15), transparent 45%),
                radial-gradient(circle at 15% 80%, rgba(192, 132, 252, 0.05), transparent 40%);
}

.hero-badge {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(135, 90, 123, 0.15);
    border: 1px solid rgba(135, 90, 123, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
}

.gradient {
    background: linear-gradient(135deg, #FFF, #C084FC, #875A7B);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p.lead {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Wrapper Photo Synchrone avec le HTML nettoyé */
.hero-photo-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease;
}

.hero-photo-wrapper:hover .hero-image {
    transform: scale(1.02);
}

.hero-status-badge {
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--dark-2) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

/* ==========================================
   STATS SECTION
========================================== */

.stats-section {
    background: linear-gradient(180deg, transparent, rgba(30, 41, 59, 0.4), transparent);
    border-y: 1px solid rgba(255, 255, 255, 0.02);
}

.stats-section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

/* ==========================================
   CARDS COMMUNES (Optimisation UI/UX Squelette)
========================================== */

.service-card,
.skill-card,
.case-card,
.cert-card,
.testimonial-card {
    background: var(--dark-2) !important;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: var(--shadow-sm);
    will-change: transform;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover,
.skill-card:hover,
.case-card:hover,
.cert-card:hover,
.testimonial-card:hover {
    transform: translateY(-6px);
    background: #243149 !important;
    border-color: rgba(135, 90, 123, 0.5) !important;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(135, 90, 123, 0.1);
}

.icon-wrapper i {
    font-size: 2.25rem;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.service-card:hover .icon-wrapper i {
    transform: scale(1.1);
}

/* ==========================================
   EXPERIENCE & TIMELINE
========================================== */

.experience-section {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding-left: 32px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 2px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, var(--primary), rgba(192, 132, 252, 0.2));
}

.experience-card {
    position: relative;
    background: var(--dark-2) !important;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.experience-card::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 38px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dark);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(135, 90, 123, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.experience-card:hover::before {
    background: var(--primary-light);
    box-shadow: 0 0 0 6px rgba(192, 132, 252, 0.3);
}

.experience-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.experience-badge {
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(135, 90, 123, 0.2) !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(135, 90, 123, 0.2);
}

.experience-card p, 
.experience-card li {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tech-stack .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    background-color: var(--dark) !important;
    transition: all 0.2s ease;
}

.tech-stack .badge:hover {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

/* ==========================================
   AVAILABILITY SECTION (Design Premium Asymétrique)
========================================== */

.availability-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 48px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #18181B, #27272A);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
}

.green-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    margin-bottom: 16px;
}

.availability-right {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 400px;
}

.availability-item {
    background: rgba(135, 90, 123, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(135, 90, 123, 0.3);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.availability-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================
   CONTACT SECTION
========================================== */

.contact-box {
    background: var(--dark-2);
    padding: 60px 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
    max-width: 750px;
    margin: 0 auto;
}

.social-links a {
    color: var(--gray);
    font-size: 1.75rem;
    margin: 0 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover,
.social-links a:focus {
    color: var(--primary-light);
    transform: translateY(-4px);
}

/* ==========================================
   BUTTONS (Améliorations UI Bootstrap Overrides)
========================================== */

.btn-primary {
    background-color: var(--primary) !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 10px !important;
    font-weight: 600;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #98658b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(135, 90, 123, 0.4);
}

.btn-outline-secondary {
    border-radius: 10px !important;
    padding: 12px 32px !important;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--white) !important;
}

.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================
   EXPERTISE CARD (Factorisation & Nettoyage)
========================================== */

.expertise-card {
    background: var(--dark-2);
    border-radius: var(--radius);
    padding: 32px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-card:hover {
    transform: translateY(-6px);
    background: #243149;
    border-color: rgba(135, 90, 123, 0.5);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(135, 90, 123, 0.1);
}

/* Force la couleur sur les titres des cartes d'expérience et certifications */
.experience-card h3, 
.experience-card h5,
.cert-card h4 {
    color: var(--white) !important;
}

/* Améliore la visibilité du texte de description des certifications */
.cert-card p {
    color: var(--text-muted) !important;
}

/* Assure que le fond des cartes d'expérience reste sombre et contrasté */
.experience-card, .cert-card {
    background: var(--dark-2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================
   FOOTER
========================================== */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(15, 23, 42, 0.6);
    padding: 40px 0;
    margin-top: 80px;
}

/* ==========================================
   RESPONSIVE DESIGN (Media Queries fluides)
========================================== */

@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding-top: 140px;
    }

    .hero-photo-wrapper {
        margin-top: 40px;
    }

    .hero-image {
        max-width: 300px;
        aspect-ratio: 1/1;
        border-radius: 50% !important;
    }

    .hero-status-badge {
        top: 10px !important;
        end: 15% !important;
    }

    .availability-box {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .availability-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .experience-card {
        padding: 24px;
    }

    .experience-card::before {
        left: -27px;
        top: 32px;
        width: 12px;
        height: 12px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-box {
        padding: 40px 20px;
    }
}

