/* =============================================
   VARIABLES & RESET - AMÉLIORÉES
============================================= */
:root {
  --primary-color: #2563eb;
  --secondary-color: #3b82f6;
  --accent-color: #60a5fa;
  --professional-color: #1e3a8a;
  --dark-color: #0f172a;
  --light-color: #ffffff;
  --gray-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-professional: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  --gradient-modern: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Dark Theme */
body.dark-theme {
  --light-color: #0f172a;
  --gray-light: #1e293b;
  --dark-color: #f8fafc;
  --text-dark: #f1f5f9;
  --text-light: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  background-color: #0f172a;
  color: #f1f5f9;
}

/* =============================================
   TYPOGRAPHIE AMÉLIORÉE
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

.text-muted {
  color: var(--text-muted) !important;
}

/* =============================================
   LOADER
============================================= */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =============================================
   PROGRESS BAR
============================================= */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.progress-bar-scroll {
  height: 100%;
  background: var(--gradient-professional);
  width: 0%;
  transition: width 0.1s;
}

/* =============================================
   NAVBAR AMÉLIORÉE
============================================= */
.navbar-custom {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.brand-text {
  background: var(--gradient-professional);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.8rem;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(37, 99, 235, 0.08);
}

.nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(37, 99, 235, 0.12);
  font-weight: 600;
}

.theme-toggle button {
  background: var(--gray-light);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle button:hover {
  background: var(--primary-color);
  color: white;
  transform: rotate(180deg);
}

/* =============================================
   HERO SECTION AMÉLIORÉE
============================================= */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s infinite linear;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.badge-text {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-name-highlight {
  background: linear-gradient(135deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.typing-text::after {
  content: "|";
  animation: blink 1s infinite;
  color: var(--accent-color);
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons .btn {
  margin: 0.5rem;
}

.hero-social {
  margin-top: 3rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  margin: 0 0.5rem;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: white;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* =============================================
   SECTIONS AMÉLIORÉES
============================================= */
.section-padding {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.title-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-professional);
  margin: 0 auto;
  border-radius: 2px;
}

/* =============================================
   ABOUT SECTION AMÉLIORÉE
============================================= */
.about-image {
  position: relative;
  padding: 20px;
}

.about-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}

.about-image-bg {
  position: absolute;
  top: 0;
  left: -20px;
  width: 100%;
  height: 100%;
  background: var(--gradient-professional);
  border-radius: 20px;
  opacity: 0.1;
}

.about-content h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--gray-light);
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.info-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.info-item h6 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.info-item p {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
}

/* Progress Bars */
.skill-item {
  margin-bottom: 1.5rem;
}

.progress {
  height: 10px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-professional);
  border-radius: 10px;
  animation: progressAnimation 2s ease-out;
}

@keyframes progressAnimation {
  from {
    width: 0;
  }
}

/* =============================================
   SKILLS SECTION AMÉLIORÉE
============================================= */
.skill-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.skill-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-professional);
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
}

.skill-card h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  padding: 0.5rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.skill-list li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* =============================================
   CV SECTION AMÉLIORÉE
============================================= */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-content h5 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.timeline-content p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.cv-section-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.3rem;
}

/* =============================================
   CERTIFICATES SECTION AMÉLIORÉE
============================================= */
.certificate-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.certificate-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--primary-color);
}

.certificate-icon.aws {
  background: rgba(255, 153, 0, 0.1);
  color: #ff9900;
}

.certificate-icon.security {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.certificate-card h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.certificate-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* =============================================
   PROJECTS SECTION AMÉLIORÉE
============================================= */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.8rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 0 0.5rem;
  transform: scale(0);
  transition: var(--transition);
}

.project-card:hover .project-link {
  transform: scale(1);
}

.project-content {
  padding: 1.5rem;
}

.project-content h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.project-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.tag {
  padding: 0.25rem 0.75rem;
  background: var(--gray-light);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

/* =============================================
   CONTACT SECTION MODERNE AMÉLIORÉE
============================================= */
.contact-section-modern {
  background: linear-gradient(135deg, var(--gray-light) 0%, rgba(255, 255, 255, 0.5) 100%);
  position: relative;
  overflow: hidden;
}

.contact-section-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-info-cards {
  height: 100%;
}

.contact-info-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.contact-icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-professional);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
}

.contact-info-card h4 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  color: var(--text-light);
  margin: 0;
}

.contact-social-links {
  margin-top: 2rem;
  text-align: center;
}

.contact-social-links h4 {
  color: var(--text-dark);
  font-size: 1.1rem;
}

.social-links-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link-modern {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link-modern:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.contact-form-modern {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.form-group-modern {
  position: relative;
}

.form-label-modern {
  display: block;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control-modern {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--gray-light);
}

.form-control-modern:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: white;
}

.form-icon-modern {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(2px);
  color: var(--text-light);
  transition: var(--transition);
}

textarea.form-control-modern {
  padding-top: 1rem;
  resize: vertical;
}

textarea + .form-icon-modern {
  top: 3rem;
}

.form-control-modern:focus + .form-icon-modern {
  color: var(--primary-color);
}

.btn-contact-modern {
  background: var(--gradient-professional);
  color: white;
  padding: 1rem 3rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-contact-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-contact-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-contact-modern:hover::before {
  width: 300px;
  height: 300px;
}

.btn-contact-modern span {
  position: relative;
  z-index: 1;
}

/* =============================================
   FOOTER AMÉLIORÉ
============================================= */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 3rem 0;
  margin-top: 80px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

/* =============================================
   PROFESSIONAL BUTTONS AMÉLIORÉS
============================================= */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-professional {
  background: var(--gradient-professional);
  color: white;
  border: none;
}

.btn-professional:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
  color: white;
}

.btn-outline-professional {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-professional:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
}

/* =============================================
   BACK TO TOP AMÉLIORÉ
============================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--secondary-color);
  box-shadow: var(--shadow-xl);
}

/* =============================================
   MODALS AMÉLIORÉS
============================================= */
.modal-content {
  border-radius: 16px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: var(--gradient-professional);
  color: white;
  border-radius: 16px 16px 0 0;
  border: none;
  padding: 1.5rem;
}

.modal-footer {
  border: none;
  padding: 1.5rem;
  background: var(--gray-light);
}

/* =============================================
   UTILITIES AMÉLIORÉES
============================================= */
.text-gradient {
  background: var(--gradient-professional);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-light {
  background-color: var(--gray-light) !important;
}

/* =============================================
   SCROLLBAR PERSONNALISÉE
============================================= */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  border: 2px solid var(--gray-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* =============================================
   SELECTION
============================================= */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* =============================================
   FIX TÉLÉPHONE & EMAIL - VERSION FINALE
============================================= */

/* Supprimer le soulignement SANS casser les couleurs */
a[href^="tel:"],
a[href^="mailto:"],
.info-item-link,
.contact-link {
    text-decoration: none !important;
}

/* Sur desktop, désactiver UNIQUEMENT le clic téléphone */
@media (min-width: 769px) {
    a[href^="tel:"] {
        pointer-events: none;
        cursor: default;
    }
    
    /* IMPORTANT: Réactiver le hover sur la carte */
    a[href^="tel:"]:hover .info-item,
    a[href^="tel:"]:hover .contact-info-card {
        pointer-events: auto;
    }
}

/* Animation hover sur les CARTES (pas les liens) */
.info-item-link:hover .info-item,
.contact-link:hover .contact-info-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESTAURER les animations des ICÔNES */
.info-item i,
.contact-info-card i {
    transition: all 0.3s ease;
}

/* Animation PULSE (battement de cœur) */
.info-item .pulse,
.contact-icon-wrapper .pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Animation GLOW (lueur) */
.info-item .glow,
.contact-icon-wrapper .glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.8), 
                    0 0 30px rgba(37, 99, 235, 0.6);
    }
}

/* Animation HEARTBEAT */
.info-item .heartbeat,
.contact-icon-wrapper .heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.05);
    }
    45% {
        transform: scale(1);
    }
}

/* Hover sur les ICÔNES - Effet de rotation */
.info-item-link:hover .info-item i,
.contact-link:hover .contact-icon-wrapper i {
    transform: rotate(10deg) scale(1.1);
    color: var(--primary-color);
}

/* Couleur normale du texte (sans !important pour laisser les animations) */
.info-item p,
.contact-info-card p {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

/* Mode sombre */
body.dark-theme .info-item p,
body.dark-theme .contact-info-card p {
    color: #f1f5f9;
}

/* Hover sur le texte */
.info-item-link:hover .info-item p,
.contact-link:hover .contact-info-card p {
    color: var(--primary-color);
}

/* Animation de la bordure au hover */
.info-item,
.contact-info-card {
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item-link:hover .info-item,
.contact-link:hover .contact-info-card {
    border-color: var(--primary-color);
}

/* FIX ESPACEMENT LINKEDIN MOBILE */
.linkedin-badge-section {
    margin-top: 2rem !important;
}

@media (max-width: 768px) {
    .linkedin-badge-section {
        margin-top: 2.5rem !important;
        padding-top: 1rem;
    }
    
    .about-content h3 {
        margin-bottom: 2rem !important;
    }
}
