/**
 * ========================================================
 * Styles Personnalisés du Portfolio
 * ========================================================
 */

:root {
    --primaire: #3B82F6;
    --secondaire: #8B5CF6;
    --accent: #F59E0B;
    --sombre: #1E293B;
    --clair: #F8FAFC;
    --transition-rapide: 0.2s ease;
    --transition-normale: 0.3s ease;
    --transition-lente: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: var(--primaire);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primaire), var(--secondaire));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primaire);
}

    /* ========================================================
   NAVBAR - 768px à 940px
   ======================================================== */
@media screen and (min-width: 768px) and (max-width: 940px) {
    
    /* ========== CONTENEUR PRINCIPAL - MARGES MINIMALES ========== */
    #navbar > div,
    nav > div.container,
    nav > div.max-w-7xl,
    header .container,
    .nav-container {
        padding-left: 6px !important;
        padding-right: 6px !important;
        max-width: 100% !important;
    }
    
    /* ========== LOGO - TAILLE RÉDUITE ========== */
    #navbar .BackLogo {
        width: 30px !important;
        height: 30px !important;
    }

    .navbar-nav i,
    .nav-links i,
    nav i,
    .nav-link i,
    .lucide {
        width: 20px !important;
        height: 20px !important;
    }

    /* ========== TOUS LES LIENS DE NAVIGATION - STYLE UNIFORME ========== */
    #navbar .group {
        transform: scale(0.8);
        transform-origin: left center;
        margin-left: 10px !important;
    }

    /* ========== TEXTE PRES DU LOGO - TAILLE RÉDUITE ========== */
    
    #navbar .group span,
    .navbar-brand span,
    .logo span,
    nav .text-xl,
    nav .text-2xl {
        font-size: 18px !important;
        font-weight: 700;

    }
    
    /* ========== CONTENEUR DES LIENS - GAP MINIMAL ========== */
    #navbar .hidden.md\\:flex,
    .navbar-nav,
    .nav-links,
    .nav-menu,
    nav ul,
    header nav div[class*="flex"] {
        gap: 1px !important;
    }
    
    /* ========== BOUTON CONTACT - RÉDUIT ET UNIFORME  ========== */
    #navbar .btn-contact {
        padding: 8px 8px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        margin-left: 10px !important;
        border-radius: 9999px !important;
    }   
    
    /* Forcer le texte à l'intérieur du bouton */
    #navbar .hidden.md\\:flex > a.bg-gradient-to-r span,
    #navbar .hidden.md\\:flex > a[class*="bg-gradient"] span,
    #navbar .hidden.md\\:flex > a.px-5 span,
    #navbar .hidden.md\\:flex > a[href*="contact"] span,
    #navbar a.bg-gradient-to-r.from-primaire span,
    .btn-contact span,
    .nav-cta span {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
    }
}

/* ========================================================
   SLIDER / CARROUSEL
   ======================================================== */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 700ms ease-in-out;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    background: linear-gradient(to right, rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.4));
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-rapide);
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 640px) {
    .slider-container {
        min-height: 400px;
    }
    
    .slide-overlay {
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.6) 100%) !important;
    }
}

@media (max-width: 380px) {
    .slider-container h1 {
        font-size: 18px;
        line-height: 1.3;
    }
}

@media (min-width: 1920px) {
    .slider-container {
        height: 800px;
    }
}

/* Style spécial pour MonTitrePro Section mon profil */

@media (max-width: 345px) {
    .MonTitrePro {
        /* font-size: 8px; */
        line-height: 8px;
    }
}

/* ========================================================
   BOUTON AURELIA - CORRECTION COULEUR BLEUE
   ======================================================== */

.animate-pulse-glow {
    animation: pulse-glow-blue 2s ease-in-out infinite;
}

@keyframes pulse-glow-blue {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.2); 
    }
    50% { 
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.4); 
    }
}

/* Le bouton Aurelia garde ses couleurs bleues originales */
a[href="chat_aurelia.php"],
.group[href="chat_aurelia.php"] {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #3b82f6) !important;
    background-size: 200% auto !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    animation: gradient-shift-blue 3s ease infinite, pulse-glow-blue 2s ease-in-out infinite !important;
}

a[href="chat_aurelia.php"]:hover,
.group[href="chat_aurelia.php"]:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

@keyframes gradient-shift-blue {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========================================================
   CARTES DE COMPÉTENCES
   ======================================================== */
.carte-competence {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-normale);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.carte-competence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primaire), var(--secondaire));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normale);
}

.carte-competence:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: var(--primaire);
}

.carte-competence:hover::before {
    transform: scaleX(1);
}

.icone-competence {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all var(--transition-normale);
}

.carte-competence:hover .icone-competence {
    transform: scale(1.1) rotate(5deg);
}

.barre-progression {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.barre-progression-remplissage {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
    position: relative;
}

.barre-progression-remplissage::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================================
   CARTES D'EXPÉRIENCES
   ======================================================== */
.carte-experience {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all var(--transition-normale);
    border-left: 4px solid var(--primaire);
    position: relative;
}

.carte-experience::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: -8px;
    width: 12px;
    height: 12px;
    background: var(--primaire);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.carte-experience:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.badge-technologie {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primaire);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-rapide);
}

.badge-technologie:hover {
    background: var(--primaire);
    color: white;
}

/* ========================================================
   CARTES DE FORMATIONS
   ======================================================== */
.carte-formation {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normale);
    border: 1px solid #e2e8f0;
}

.carte-formation:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.entete-formation {
    background: linear-gradient(135deg, var(--primaire), var(--secondaire));
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.entete-formation::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.icone-formation {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* ========================================================
   FORMULAIRE DE CONTACT
   ======================================================== */
.formulaire-contact {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.groupe-champ {
    position: relative;
    margin-bottom: 1.5rem;
}

.champ-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all var(--transition-normale);
    background: transparent;
}

.champ-input:focus {
    outline: none;
    border-color: var(--primaire);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.champ-input:focus + .icone-champ,
.champ-input:not(:placeholder-shown) + .icone-champ {
    color: var(--primaire);
}

.icone-champ {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color var(--transition-normale);
}

.champ-textarea {
    min-height: 150px;
    resize: vertical;
    padding-top: 1rem;
}

.champ-textarea + .icone-champ {
    top: 1.5rem;
    transform: none;
}

.etiquette-flottante {
    position: absolute;
    left: 3rem;
    top: 1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: all var(--transition-normale);
    background: white;
    padding: 0 0.25rem;
}

.champ-input:focus ~ .etiquette-flottante,
.champ-input:not(:placeholder-shown) ~ .etiquette-flottante {
    top: -0.6rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--primaire);
}

.bouton-envoi {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primaire), var(--secondaire));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normale);
    position: relative;
    overflow: hidden;
}

.bouton-envoi::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.bouton-envoi:hover::before {
    left: 100%;
}

.bouton-envoi:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.bouton-envoi:active {
    transform: translateY(0);
}

.bouton-envoi:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================================
   NOTIFICATIONS
   ======================================================== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.4s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #10B981, #059669);
}

.notification.error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.notification.info {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

/* ========================================================
   BOUTON RETOUR EN HAUT
   ======================================================== */
#btn-retour-haut {
    transition: all var(--transition-normale);
}

#btn-retour-haut.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#btn-retour-haut:hover {
    animation: bounce 0.5s;
}

/* ========================================================
   ANIMATIONS
   ======================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 768px) {
    .carte-experience:hover {
        transform: translateX(5px);
    }
    
    .carte-competence:hover {
        transform: translateY(-5px);
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ========================================================
   ADMIN
   ======================================================== */
.tableau-admin {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tableau-admin th {
    background: linear-gradient(135deg, var(--sombre), #334155);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.tableau-admin th:first-child {
    border-radius: 12px 0 0 0;
}

.tableau-admin th:last-child {
    border-radius: 0 12px 0 0;
}

.tableau-admin td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.tableau-admin tr:hover td {
    background: #f8fafc;
}

.badge-statut {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-statut.lu {
    background: #D1FAE5;
    color: #065F46;
}

.badge-statut.non-lu {
    background: #FEE2E2;
    color: #991B1B;
}

.carte-stat {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normale);
}

.carte-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ========================================================
   SECTION PARTENAIRE OFFICIEL - VERSION BLEUE UNIFORME
   ======================================================== */

/* ======================================================== */
/* SECTION RÉALISATIONS - STYLES SPÉCIFIQUES */
/* ======================================================== */

/* Carte de réalisation */
.realisations-carte {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.realisations-carte:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Effet sur l'image au hover */
.realisations-carte .group:hover img {
    transform: scale(1.1);
}

/* Line clamp pour la description */
.line-clamp-3 {
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

/* Animation pulse pour les badges "En cours" */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .realisations-carte {
        margin-bottom: 1.5rem;
    }
}