/* ==========================================================================
   PORTFOLIO & SOLUTIONS NUMÉRIQUES - CHEIKH MOUSSA BOYE
   Design System : Thème Sombre & Or Luxueux (Glassmorphism Haut de Gamme)
   Responsive Multi-écrans : Ordinateur, Tablette & Smartphone
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Palette Or Doré / Ambre */
    --gold-primary: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --gold-pastel: #fef08a;
    --gold-glow: rgba(251, 191, 36, 0.35);
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --gold-gradient-hover: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #f59e0b 100%);

    /* Couleurs de fond & Surfaces Glassmorphism */
    --bg-dark: #090d16;
    --bg-darker: #05070d;
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-bg-hover: rgba(30, 41, 59, 0.85);
    --glass-card: rgba(17, 24, 39, 0.78);
    --glass-border: rgba(245, 158, 11, 0.18);
    --glass-border-hover: rgba(251, 191, 36, 0.45);

    /* Textes & Typographie */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* États & Accents */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --info: #3b82f6;

    /* Rayons & Ombres */
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-glass: 0 10px 35px 0 rgba(0, 0, 0, 0.45);
    --shadow-gold: 0 12px 30px rgba(245, 158, 11, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   2. RESET & STYLES DE BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Barre de défilement personnalisée */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.35);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* Conteneur Global */
.portfolio-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* EFFETS LUMINEUX D'AMBIANCE */
.ambient-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(70px);
    transition: transform 0.2s ease-out;
}
.glow-1 { top: -120px; left: -120px; }
.glow-2 { bottom: -120px; right: -120px; }

/* HALO DORÉ INTERACTIF SUIVANT LE CURSEUR (POUR SOURIS) */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.08) 40%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    mix-blend-mode: screen;
    will-change: left, top, opacity;
}

@media (pointer: fine) {
    .cursor-glow.active {
        opacity: 1;
    }
}

@media (pointer: coarse) {
    .cursor-glow {
        display: none !important;
    }
}

/* COMPOSANT GLASS CARDS */
.glass-card {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
}

/* TYPOGRAPHIE & UTILITAIRES */
.gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
    font-weight: 400;
}

/* ==========================================================================
   3. NAVIGATION SUPÉRIEURE ÉPURÉE (SANS LOGO, ÉQUILIBRÉE ET AÉRÉE)
   ========================================================================== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.85rem 0.55rem 1.4rem;
    margin-bottom: 2.2rem;
    background: rgba(9, 13, 22, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    position: sticky;
    top: 15px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    box-sizing: border-box;
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.2rem, 0.6vw, 0.75rem);
    flex-grow: 1;
    justify-content: space-between;
    width: 100%;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.76rem, 0.8vw, 0.86rem);
    transition: var(--transition);
    position: relative;
    padding: 0.32rem 0.52rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.12);
}

.nav-links a.active::after {
    display: none;
}

.nav-links a.nav-auth-btn,
.nav-auth-btn {
    background: var(--gold-gradient) !important;
    color: #05070d !important;
    font-weight: 700 !important;
    font-size: clamp(0.76rem, 0.8vw, 0.84rem) !important;
    padding: 0.38rem 0.85rem !important;
    border-radius: 20px !important;
    margin-left: auto;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
    text-shadow: none !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.nav-links a.nav-auth-btn:hover,
.nav-auth-btn:hover {
    background: var(--gold-gradient-hover) !important;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(245, 158, 11, 0.45);
}

.nav-links a.nav-admin-badge,
.nav-admin-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
}

/* BURGER MENU (MOBILE & TABLETTE) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
    position: relative;
    transition: var(--transition);
}

.burger-menu:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.burger-bar {
    width: 20px;
    height: 2px;
    background-color: var(--gold-light);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 10px;
}

.burger-bar:nth-child(1) {
    transform: translateY(-6px);
}

.burger-bar:nth-child(2) {
    transform: translateY(0);
}

.burger-bar:nth-child(3) {
    transform: translateY(6px);
}

/* ÉTAT OUVERT : CROIX DE FERMETURE 'X' PARFAITEMENT SYMÉTRIQUE */
.burger-menu.open {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

.burger-menu.open .burger-bar:nth-child(1) {
    transform: rotate(45deg);
    background-color: #ffffff;
}

.burger-menu.open .burger-bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger-menu.open .burger-bar:nth-child(3) {
    transform: rotate(-45deg);
    background-color: #ffffff;
}

/* ==========================================================================
   4. BOUTONS & CONTRÔLES INTERACTIFS
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold-gradient);
    color: #05070d !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
    text-shadow: none;
}

.btn-primary:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
    color: #000000 !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(251, 191, 36, 0.12);
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.cta-group {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   5. SECTION HERO & BADGES FLOTTANTS
   ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
    padding: 3.5rem;
    margin-bottom: 4rem;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.status-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    display: inline-block;
    animation: pulse 2s infinite;
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 16px var(--success); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1rem;
    letter-spacing: -0.8px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gold-pastel);
    font-weight: 600;
    margin-bottom: 1rem;
}

.bio-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-stats-row {
    display: flex;
    gap: 2.2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Image Hero & Badges */
.image-card-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.img-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1.15;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.img-frame:hover .profile-img {
    transform: scale(1.03);
}

.floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 5;
    animation: float 4s ease-in-out infinite;
}

.floating-badge-1 { top: -15px; left: -20px; }
.floating-badge-2 { bottom: -15px; right: -20px; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.badge-icon-box {
    width: 38px;
    height: 38px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text-box strong {
    display: block;
    font-size: 0.85rem;
    color: #ffffff;
}

.badge-text-box span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   6. SECTION À PROPOS & VALEURS
   ========================================================================== */
.about-section {
    margin-bottom: 5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
}

.about-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-lead {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-pastel);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.about-paragraph {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.side-projects-box {
    margin-top: 1.8rem;
    padding: 1.3rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
}

.side-projects-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.side-projects-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.values-grid {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.value-card {
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.value-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-info h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.value-info p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   7. PROJETS & ÉTUDES DE CAS
   ========================================================================== */
.projects-section {
    margin-bottom: 5rem;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.3rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold-gradient);
    color: #090d16;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    margin-left: 0.4rem;
    font-weight: 700;
}

.filter-btn.active .filter-count {
    background: rgba(9, 13, 22, 0.3);
    color: #090d16;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-light);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.15);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.project-card:hover .project-img-wrapper img {
    transform: scale(1.06);
}

.project-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.12);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 0.8rem;
}

.project-category {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.project-tags span {
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.project-case-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.project-case-btn:hover {
    background: var(--gold-gradient);
    color: #090d16;
    border-color: transparent;
}

.link-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.link-icon:hover {
    background: var(--gold-light);
    color: #090d16;
    transform: scale(1.1);
}

.more-projects-wrapper {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   8. MODAL ÉTUDE DE CAS & MODAL CV
   ========================================================================== */
.case-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 13, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.case-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.case-modal-container {
    background: #0f172a;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    transform: scale(0.95);
    transition: transform 0.35s ease;
}

.case-modal-overlay.active .case-modal-container {
    transform: scale(1);
}

.case-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.case-modal-close:hover {
    background: var(--gold-gradient);
    color: #090d16;
}

.case-modal-header {
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-category-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.case-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 0.4rem;
    color: #ffffff;
}

.case-modal-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.case-grid-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.case-detail-item strong {
    display: block;
    font-size: 0.8rem;
    color: var(--gold-pastel);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.case-detail-item span {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

.case-section-block h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.case-section-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.98rem;
}

.case-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.case-step-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold-light);
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.step-number {
    font-weight: 800;
    color: var(--gold-light);
    flex-shrink: 0;
}

.case-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.case-metric-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
}

.case-metric-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-light);
}

.case-metric-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.case-modal-footer {
    padding: 1.5rem 2.5rem 2.5rem 2.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Modal CV */
.cv-preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 13, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cv-preview-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cv-preview-card {
    background: #0f172a;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    position: relative;
}

.cv-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.cv-summary-block {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.cv-summary-block h4 {
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.cv-summary-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.cv-summary-list li {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    line-height: 1.6;
}

.cv-summary-list li strong {
    white-space: nowrap;
    color: #ffffff;
    flex-shrink: 0;
}

.cv-summary-list li i {
    color: var(--gold-light);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   9. COMPÉTENCES & STACK TECHNIQUE
   ========================================================================== */
.skills-section {
    margin-bottom: 5rem;
}

.skills-wrapper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.skill-category-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.8rem;
}

.skill-cat-icon {
    width: 42px;
    height: 42px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-category-header h3 {
    font-size: 1.25rem;
    color: #ffffff;
}

.skill-bars-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}

.skill-percent {
    color: var(--gold-light);
    font-weight: 700;
}

.skill-progress-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 10px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.tech-stack-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.tech-stack-pill:hover {
    border-color: var(--gold-light);
    color: #ffffff;
    transform: translateY(-2px);
}

.tech-pill-dot {
    width: 6px;
    height: 6px;
    background: var(--gold-light);
    border-radius: 50%;
}

.soft-skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.soft-skill-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.soft-skill-icon {
    color: var(--gold-light);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.soft-skill-box strong {
    display: block;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.soft-skill-box p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   10. PARCOURS & EXPÉRIENCES (RESUME)
   ========================================================================== */
.resume-section {
    margin-bottom: 5rem;
}

.resume-header-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.resume-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
}

.timeline-card,
.education-card {
    padding: 2.5rem;
}

.card-inner-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(245, 158, 11, 0.25);
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2.45rem;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--gold-light);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 10px var(--gold-glow);
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.timeline-role {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 0.88rem;
    color: var(--gold-pastel);
    margin-bottom: 0.6rem;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.timeline-achievements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.timeline-achievements li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.2rem;
}

.timeline-achievements li::before {
    content: '•';
    color: var(--gold-light);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.edu-item {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
}

.edu-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.3rem;
}

.edu-degree {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.edu-school {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.certif-badge-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.certif-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #ffffff;
}

.certif-icon {
    color: var(--gold-light);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   11. TÉMOIGNAGES & BANDEAU DE CONFIANCE
   ========================================================================== */
.testimonials-section {
    margin-bottom: 5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.testimonial-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars-rating {
    display: flex;
    gap: 4px;
    color: var(--gold-light);
    margin-bottom: 1.2rem;
}

.stars-rating svg {
    width: 18px;
    height: 18px;
    fill: var(--gold-light);
}

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #090d16;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.author-info h4 {
    font-size: 0.98rem;
    color: #ffffff;
}

.author-info span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.trust-banner {
    padding: 2rem;
    text-align: center;
}

.trust-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.trust-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-logo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1.05rem;
    opacity: 0.8;
    transition: var(--transition);
}

.trust-logo-item:hover {
    opacity: 1;
    color: var(--gold-light);
}

/* ==========================================================================
   12. FORMULAIRE DE CONTACT & COORDONNÉES
   ========================================================================== */
.contact-section {
    margin-bottom: 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
}

.contact-info-card,
.contact-form-card {
    padding: 2.5rem;
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.info-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.info-link:hover {
    color: var(--gold-light);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.72rem;
    cursor: pointer;
    margin-left: 8px;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--gold-light);
    color: #090d16;
}

.social-links-grid {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: var(--transition);
}

.social-icon-btn:hover {
    background: var(--gold-gradient);
    color: #090d16;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.social-icon-btn:hover svg {
    stroke: #090d16;
}

/* FORMULAIRES */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-light);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.form-submit-btn {
    width: 100%;
    padding: 0.95rem;
    font-size: 1rem;
}

.cta-banner {
    padding: 3rem;
    text-align: center;
    margin-bottom: 5rem;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.cta-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.cta-banner p {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 1.8rem auto;
}

/* ==========================================================================
   13. PAGE DEVIS INTERACTIF & ESTIMATEUR DE PRIX
   ========================================================================== */
.quote-card {
    padding: 3rem;
    margin-bottom: 3rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.section-num {
    width: 28px;
    height: 28px;
    background: var(--gold-gradient);
    color: #090d16;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.checkbox-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.checkbox-card:hover {
    border-color: var(--gold-light);
    background: rgba(245, 158, 11, 0.05);
}

.checkbox-card input[type="checkbox"],
.checkbox-card input[type="radio"] {
    accent-color: var(--gold-light);
    width: 18px;
    height: 18px;
}

.checkbox-card.selected {
    border-color: var(--gold-light);
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* Estimateur en direct */
.live-estimate-box {
    margin: 2.5rem 0 1.5rem 0;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.estimate-price-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-light);
}

.whatsapp-cta {
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.whatsapp-cta h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.whatsapp-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   14. TARIFS IPTV, COMMUNITY MANAGEMENT & GRILLES DE PRIX
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.pricing-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.pricing-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: var(--radius-lg);
}

.pricing-card.featured {
    border-color: var(--gold-light);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.25);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: #090d16;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.plan-duration {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-pastel);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0.4rem;
}

.plan-price .currency {
    font-size: 1rem;
    color: var(--gold-light);
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.check-icon {
    width: 18px;
    height: 18px;
    color: var(--gold-light);
    flex-shrink: 0;
}

/* Moyens de Paiement */
.payment-methods-section {
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.payment-badges-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.payment-badge-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.wave-icon { background: #1dc4eb; color: #ffffff; }
.om-icon { background: #ff7900; color: #ffffff; }

/* FAQ Accordion */
.faq-section {
    margin-bottom: 4rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.3rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    user-select: none;
}

.faq-question:hover {
    color: var(--gold-light);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--gold-light);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.8rem 1.3rem 1.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   15. PAGES SPÉCIFIQUES : THANKS & ADMIN LOGIN
   ========================================================================== */
.thanks-container {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.thanks-card {
    max-width: 580px;
    width: 100%;
    padding: 3.5rem;
    text-align: center;
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--success);
}

.success-icon-wrapper svg {
    width: 36px;
    height: 36px;
}

.thanks-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.thanks-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.thanks-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.redirect-notice {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.timer-count {
    color: var(--gold-light);
    font-weight: 700;
}

/* Page Admin Login */
.login-page-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.login-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    max-width: 440px;
    width: 100%;
    padding: 2.8rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: var(--gold-light);
}

.admin-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.login-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toggle-password-btn:hover {
    color: var(--gold-light);
    transform: scale(1.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.forgot-link {
    color: var(--gold-light);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    text-align: center;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-status.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   16. CONSOLE D'ADMINISTRATION COMPLÈTE (ADMIN DASHBOARD)
   ========================================================================== */
.admin-body {
    background-color: #060911;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Sidebar */
.admin-sidebar {
    background: rgba(11, 16, 28, 0.96);
    border-right: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 1.4rem 1.1rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: 100;
    box-sizing: border-box;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.admin-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #090d16;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-height: 0; /* Permet le défilement interne sur flex child */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-bottom: 0.8rem;
}

/* Barre de défilement discrète et élégante pour les onglets */
.admin-nav::-webkit-scrollbar {
    width: 4px;
}

.admin-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.admin-nav::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 4px;
}

.admin-nav::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.85rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    flex-shrink: 0;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.admin-nav-item.active {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--gold-light);
}

.admin-nav-item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-badge-count {
    margin-left: auto;
    background: var(--gold-light);
    color: #090d16;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.admin-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    background: transparent;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Main Content Area */
.admin-main-content {
    padding: 2rem 2.5rem;
    overflow-y: auto;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.8rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--gold-light);
    cursor: pointer;
}

.admin-page-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-status-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--success);
}

/* Panes */
.admin-tab-pane {
    display: none;
}

.admin-tab-pane.active {
    display: block;
}

/* KPIs */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    padding: 1.8rem;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.3rem;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.kpi-trend {
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.4rem;
}

.kpi-trend.positive { color: var(--success); }

.admin-double-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.admin-panel-box {
    padding: 2rem;
}

.admin-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
}

.admin-box-header h2,
.admin-box-header h3 {
    font-size: 1.2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Recent items list */
.recent-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.recent-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.quick-action-btn i {
    width: 28px;
    height: 28px;
    color: var(--gold-light);
}

/* Tables */
.admin-table-container {
    overflow-x: auto;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-data-table th {
    padding: 1rem;
    color: var(--gold-pastel);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-data-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.admin-data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
}

.status-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--gold-light); }
.status-active { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-completed { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-expired { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.table-action-btn {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.table-action-btn:hover {
    background: var(--gold-light);
    color: #090d16;
}

/* ==========================================================================
   17. COMPOSANTS ADDITIONNELS (BACK TO TOP, CLOCK, TOAST)
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--gold-gradient);
    color: #090d16;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45);
}

.live-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.live-time-badge strong,
.footer-clock-box strong,
.live-clock,
#liveClockDakar {
    color: var(--gold-light);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    display: inline-block;
    min-width: 66px;
    text-align: center;
    letter-spacing: 0.5px;
}

.toast-notice {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    border: 1px solid var(--gold-light);
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.toast-notice.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* FOOTER UNIFIÉ & MODERNE */
.footer {
    padding: 3.5rem 0 2rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5rem;
    background: rgba(9, 13, 22, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.footer-brand-col .logo {
    margin-bottom: 0.8rem;
    display: inline-block;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    max-width: 340px;
}

.footer-clock-box {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.82rem;
    color: #ffffff;
    white-space: nowrap;
}

.footer-clock-box strong {
    color: #10b981;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-links,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--gold-light);
    transform: translateX(4px);
    display: inline-block;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-contact-list li:hover {
    color: #ffffff;
}

.footer-contact-list .contact-phone-val,
.footer-contact-list .contact-email-val {
    cursor: pointer;
    transition: var(--transition);
}

.footer-contact-list .contact-phone-val:hover,
.footer-contact-list .contact-email-val:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.footer-contact-list li i {
    width: 16px;
    height: 16px;
    color: var(--gold-light);
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-admin-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.82rem;
}

.footer-admin-link:hover {
    color: var(--gold-light);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   18. RESPONSIVE MULTI-ÉCRANS : ORDINATEUR, TABLETTE & SMARTPHONE
   ========================================================================== */

/* Tablette & Petits Écrans Portables (1024px et moins) */
@media (max-width: 1024px) {
    .hero-section {
        display: flex;
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-section .image-card-container {
        order: -1;
        width: 100%;
        margin-bottom: 0.5rem;
        justify-content: center;
    }

    .hero-section .hero-text-content {
        order: 1;
        width: 100%;
    }

    .header-status {
        justify-content: center;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-stats-row {
        justify-content: center;
    }

    .about-grid,
    .resume-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .floating-badge-1 { left: 0; }
    .floating-badge-2 { right: 0; }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        z-index: 1200;
        width: 280px;
        transition: left 0.35s ease;
    }

    .admin-sidebar.open {
        left: 0;
    }

    .admin-menu-toggle {
        display: block;
    }

    .admin-double-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablettes & Mobiles (1100px et moins : passage en menu burger fluide) */
@media (max-width: 1100px) {
    .top-nav {
        padding: 0.75rem 1.2rem;
        border-radius: 30px;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        width: 100%;
        background: #080d1a;
        border: 1px solid rgba(245, 158, 11, 0.3);
        border-radius: var(--radius-lg);
        flex-direction: column;
        padding: 1.2rem;
        gap: 0.4rem;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
        z-index: 1500;
    }

    .nav-links.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .nav-auth-btn {
        width: 100%;
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }
}

/* Tablettes Portrait & Mobiles (768px et moins) */
@media (max-width: 768px) {
    .portfolio-container {
        padding: 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .case-metrics-grid {
        grid-template-columns: 1fr;
    }

    .case-modal-header,
    .case-modal-body,
    .case-modal-footer,
    .quote-card,
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }

    .back-to-top-btn {
        bottom: 20px;
        left: 20px;
    }

    .admin-main-content {
        padding: 1.2rem;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .image-card-container {
        max-width: 280px;
        margin: 0 auto 1rem auto;
    }

    .img-frame {
        max-width: 260px;
        margin: 0 auto;
        border-radius: var(--radius-lg);
    }

    .floating-badge {
        display: none;
    }
}

/* Smartphones Étroits (480px et moins) */
@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .image-card-container {
        max-width: 230px;
        margin: 0 auto 0.5rem auto;
    }

    .img-frame {
        max-width: 210px;
    }

    .hero-title {
        font-size: 1.95rem;
    }

    .hero-stats-row {
        gap: 1.2rem;
    }

    .pricing-card {
        padding: 1.5rem 1.2rem;
    }

    .plan-price {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   17. CMS & ADMIN ENHANCEMENTS (TOASTS, CRUD ACTIONS & TABLE UI)
   ========================================================================== */
.admin-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.admin-toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--gold-light);
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(12px);
}

.admin-toast.success {
    border-color: var(--success);
    color: #ffffff;
}

.admin-toast.error {
    border-color: var(--danger);
    color: #ffffff;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-table-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 32px;
    min-height: 32px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-table-action svg,
.btn-table-action i {
    width: 15px;
    height: 15px;
    stroke-width: 2.2px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.btn-table-action:hover {
    background: rgba(245, 158, 11, 0.18);
    color: var(--gold-light);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}

.btn-table-action.delete {
    color: #f87171;
}

.btn-table-action.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.admin-badge-category {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-tag-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin: 2px 2px 2px 0;
}

/* ==========================================================================
   26. ÉDITEUR GLOBAL DE TEXTES CMS (STUDIO PROFESSIONNEL DE CONTENU)
   ========================================================================== */

.admin-studio-box {
    position: relative;
    padding: 2.2rem;
    border-radius: var(--radius-lg);
}

.studio-header-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 0.4rem;
    max-width: 680px;
}

/* Barre de recherche avec icône et raccourci clavier */
.studio-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.studio-search-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--gold-light);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.studio-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 6rem 0.9rem 3rem;
    font-size: 0.95rem;
    color: #ffffff;
    transition: var(--transition);
}

.studio-search-input:focus {
    outline: none;
    border-color: var(--gold-light);
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.studio-search-actions {
    position: absolute;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.clear-search-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

.search-shortcut-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Filtres par catégorie en pilules élégantes */
.studio-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0 1.8rem 0;
}

.studio-filter-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.studio-filter-pill:hover {
    border-color: rgba(245, 158, 11, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.studio-filter-pill.active {
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--gold-light);
    color: var(--gold-light);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.studio-pill-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 0.72rem;
}

.studio-filter-pill.active .studio-pill-badge {
    background: var(--gold-light);
    color: #000;
    font-weight: 800;
}

/* Grille des cartes de champs */
.studio-texts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.admin-text-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    transition: all 0.25s ease;
    position: relative;
}

.admin-text-item-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.admin-text-item-card.is-modified {
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(245, 158, 11, 0.03);
}

.admin-text-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.admin-text-item-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-text-item-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.admin-text-item-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-text-item-meta code {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 5px;
    border-radius: 3px;
    color: #cbd5e1;
}

.admin-text-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-text-item-cat {
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-weight: 600;
    white-space: nowrap;
}

.btn-field-preview,
.btn-field-revert {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.btn-field-preview:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

.btn-field-revert:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.admin-text-item-card textarea,
.admin-text-item-card input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    padding: 0.75rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.55;
    font-family: inherit;
    transition: var(--transition);
}

.admin-text-item-card textarea:focus,
.admin-text-item-card input:focus {
    outline: none;
    border-color: var(--gold-light);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.admin-text-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.text-char-counter {
    font-family: monospace;
}

/* Barre d'actions sticky / flottante en bas */
.studio-sticky-bar {
    position: sticky;
    bottom: 1.5rem;
    margin-top: 2rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.studio-sticky-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #ffffff;
}

.studio-sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* État vide élégant */
.studio-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

.studio-empty-icon {
    width: 56px;
    height: 56px;
    color: var(--gold-light);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.studio-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.studio-empty-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 1.5rem auto;
}

/* ==========================================================================
   27. BOÎTE MODALE DE CHOIX DE CONTACT (APPEL TÉLÉPHONIQUE DIRECT / WHATSAPP)
   ========================================================================== */
.phone-contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.phone-contact-modal-card {
    background: #0b111e;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    padding: 2.2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.15);
    transform: scale(0.92) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-contact-modal-overlay.active .phone-contact-modal-card {
    transform: scale(1) translateY(0);
}

.phone-modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.phone-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.phone-modal-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.phone-modal-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.phone-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.phone-modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Encart numéro de téléphone mis en valeur */
.phone-modal-number-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.phone-modal-number-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-modal-copy-btn {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.phone-modal-copy-btn:hover {
    background: var(--gold-light);
    color: #000000;
}

/* Grille des choix de contact */
.phone-modal-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-choice-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.25s ease;
}

.phone-choice-card:hover {
    border-color: var(--gold-light);
    background: rgba(245, 158, 11, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.phone-choice-card.phone-direct:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.phone-choice-card.whatsapp-direct:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.08);
}

.phone-choice-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-choice-icon.call-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.phone-choice-icon.wa-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.phone-choice-texts h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.phone-choice-texts p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.phone-choice-arrow {
    color: var(--text-muted);
    transition: var(--transition);
}

.phone-choice-card:hover .phone-choice-arrow {
    color: var(--gold-light);
    transform: translateX(4px);
}

.phone-modal-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.phone-modal-cancel-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.6rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.phone-modal-cancel-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* ==========================================================================
   28. BOÎTE MODALE DU FORMULAIRE DE CONTACT DIRECT (EMAIL)
   ========================================================================== */
.email-contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 13, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.email-contact-modal-card {
    background: #0b111e;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.15);
    transform: scale(0.92) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-contact-modal-overlay.active .email-contact-modal-card {
    transform: scale(1) translateY(0);
}

.email-modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.email-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.email-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.email-modal-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.9rem auto;
}

.email-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.email-modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Encart adresse email officielle avec options */
.email-modal-pill-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.email-modal-address-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-modal-actions-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-modal-action-btn {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

.email-modal-action-btn:hover {
    background: var(--gold-light);
    color: #000000;
}

/* Formulaire interne */
.email-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.email-modal-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.email-modal-form input,
.email-modal-form select,
.email-modal-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

.email-modal-form input:focus,
.email-modal-form select:focus,
.email-modal-form textarea:focus {
    outline: none;
    border-color: var(--gold-light);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.email-modal-form select option {
    background: #0d1322;
    color: #ffffff;
}

.email-modal-submit-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

/* Écran de succès dans la modale */
.email-modal-success-card {
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.email-modal-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    border: 2px solid #10b981;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}

.email-modal-success-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.email-modal-success-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
}