/* ===========================
   Styles Globaux
   =========================== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ===========================
   Navigation Header
   =========================== */

.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    margin: 0 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

/* ===========================
   Section Hero
   =========================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 60px 40px;
    margin-top: 20px;
    animation: slideInUp 0.8s ease;
}

.hero-image img {
    border: 5px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ===========================
   Statistiques
   =========================== */

.stats-section .card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.stats-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stats-section h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
}

/* ===========================
   Projets
   =========================== */

.project-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.tech-badges .badge {
    display: inline-block;
    padding: 6px 12px !important;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===========================
   Compétences
   =========================== */

.skill-item {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    transition: width 1s ease;
}

.skill-card {
    transition: all 0.3s ease;
    background-color: white;
}

.skill-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* ===========================
   Framework Cards
   =========================== */

.framework-card {
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.framework-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
}

.framework-card i {
    transition: transform 0.3s ease;
}

.framework-card:hover i {
    transform: scale(1.2);
}

/* ===========================
   Footer
   =========================== */

footer {
    background-color: #1a1a1a;
    border-top: 3px solid var(--primary-color);
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===========================
   Formulaire de Contact
   =========================== */

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* ===========================
   Timeline (À propos)
   =========================== */

.timeline-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    border-left-color: var(--info-color);
}

.timeline-item .badge {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
}

/* ===========================
   Filtres de Projets
   =========================== */

.filter-buttons button {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.filter-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.filter-buttons button.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* ===========================
   Animations
   =========================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===========================
   Cartes généralistes
   =========================== */

.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Soft Skills Cards
   =========================== */

.soft-skill-card {
    transition: all 0.3s ease;
    background-color: white;
}

.soft-skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--light-color), #fff);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .stats-section h3 {
        font-size: 2rem;
    }

    .project-card img {
        height: 150px;
    }

    .nav-link {
        margin: 10px 0;
    }

    .nav-link.active {
        border-bottom: none;
        border-left: 3px solid var(--primary-color);
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .stats-section .row {
        display: grid;
        gap: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

/* ===========================
   Utilitaires
   =========================== */

.main {
    flex: 1;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ===========================
   Dark Mode (optionnel)
   =========================== */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .card, .skill-card, .framework-card, .soft-skill-card {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }

    .form-control, .form-select {
        background-color: #333;
        color: #e0e0e0;
        border-color: #444;
    }

    .form-control:focus, .form-select:focus {
        background-color: #333;
        color: #e0e0e0;
    }

    .timeline-item {
        border-left-color: var(--primary-color);
    }
}

/* Tag Colors */
.tag-cyan {
    background-color: #17a2b8 !important;
}

.tag-blue {
    background-color: #0056b3 !important;
}

.tag-red {
    background-color: #dc3545 !important;
}

.tag-magenta {
    background-color: #e83e8c !important;
}

.tag-yellow {
    background-color: #ffc107 !important;
    color: #333 !important;
}

.tag-green {
    background-color: #28a745 !important;
}

.tag-teal {
    background-color: #20c997 !important;
}

/* Social Icons - Horizontal Layout */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links .icon-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    background-color: #212529;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.social-links .icon-content:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.social-links .icon-content svg {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    transition: all 0.3s ease-in-out;
}

.social-links .icon-content .filled {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
    border-radius: 50%;
}

.social-links .icon-content:hover .filled {
    height: 100%;
}

.social-links .icon-content .tooltip {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-links .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* GitHub color */
.social-links .icon-content[data-social="github"] .filled,
.social-links .icon-content[data-social="github"] .tooltip {
    background: #333;
}

/* LinkedIn color */
.social-links .icon-content[data-social="linkedin"] .filled,
.social-links .icon-content[data-social="linkedin"] .tooltip {
    background: #0077b5;
}

/* Email color */
.social-links .icon-content[data-social="email"] .filled,
.social-links .icon-content[data-social="email"] .tooltip {
    background: #ea4335;
}
ul.social-icons {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.social-icons .icon-content {
  margin: 0 6px;
  position: relative;
}

.social-icons .icon-content .tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 5px 8px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 12px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.social-icons .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -45px;
}

.social-icons .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background-color: #212529;
  transition: all 0.3s ease-in-out;
}

.social-icons .icon-content a:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  color: white;
}

.social-icons .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}

.social-icons .icon-content a .filled {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
}

.social-icons .icon-content a:hover .filled {
  height: 100%;
}

/* GitHub color */
.social-icons .icon-content a[data-social="github"] .filled,
.social-icons .icon-content a[data-social="github"] ~ .tooltip {
  background: #333;
}

/* LinkedIn color */
.social-icons .icon-content a[data-social="linkedin"] .filled,
.social-icons .icon-content a[data-social="linkedin"] ~ .tooltip {
  background: #0077b5;
}

/* Email color */
.social-icons .icon-content a[data-social="email"] .filled,
.social-icons .icon-content a[data-social="email"] ~ .tooltip {
  background: #ea4335;
}