/* Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #7000ff;
    --accent-hover: #8c33ff;
    --border: #333333;
    --card-bg: #1a1a1a;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  
  /* Reset & Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
  }
  
  a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  section {
    padding: 100px 0;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Custom Cursor */
  .cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: difference;
  }
  
  .cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: 0.1s ease;
    opacity: 0.5;
  }
  
  /* Button Styles */
  .btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    font-size: 0.9rem;
  }
  
  .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
  }
  
  .btn:hover::before {
    width: 100%;
  }
  
  .btn.primary {
    background-color: var(--accent);
    color: white;
    border: none;
  }
  
  .btn.primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(112, 0, 255, 0.3);
  }
  
  .btn.secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
    margin-left: 15px;
  }
  
  .btn.secondary:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(112, 0, 255, 0.3);
  }
  
  .btn.small {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
  
  /* Header & Navigation */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
  }
  
  header.scrolled {
    padding: 15px 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
  }
  
  .logo span {
    color: var(--accent);
  }
  
  .nav-links {
    display: flex;
    gap: 30px;
  }
  
  .nav-links a {
    position: relative;
    font-weight: 500;
  }
  
  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
  }
  
  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 100%;
  }
  
  .burger {
    display: none;
    cursor: pointer;
  }
  
  .burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px;
    transition: var(--transition);
  }
  
  /* Hero Section */
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    max-width: 600px;
    z-index: 1;
  }
  
  .hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
  }
  
  .glitch {
    position: relative;
    color: var(--text-primary);
  }
  
  .glitch::before,
  .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
  }
  
  .glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
  }
  
  @keyframes glitch-anim-1 {
    0% {
      clip: rect(2px, 9999px, 28px, 0);
    }
    4% {
      clip: rect(65px, 9999px, 59px, 0);
    }
    8% {
      clip: rect(51px, 9999px, 93px, 0);
    }
    12% {
      clip: rect(66px, 9999px, 91px, 0);
    }
    16% {
      clip: rect(25px, 9999px, 55px, 0);
    }
    20% {
      clip: rect(82px, 9999px, 73px, 0);
    }
    /* ... more keyframes ... */
    100% {
      clip: rect(48px, 9999px, 35px, 0);
    }
  }
  
  @keyframes glitch-anim-2 {
    0% {
      clip: rect(65px, 9999px, 91px, 0);
    }
    4% {
      clip: rect(24px, 9999px, 44px, 0);
    }
    8% {
      clip: rect(86px, 9999px, 39px, 0);
    }
    12% {
      clip: rect(67px, 9999px, 70px, 0);
    }
    16% {
      clip: rect(24px, 9999px, 13px, 0);
    }
    20% {
      clip: rect(24px, 9999px, 80px, 0);
    }
    /* ... more keyframes ... */
    100% {
      clip: rect(53px, 9999px, 59px, 0);
    }
  }
  
  .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
  }
  
  .hero-cta {
    display: flex;
    align-items: center;
  }
  
  .hero-image {
    position: relative;
    width: 40%;
    height: 500px;
  }
  
  .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), #ff00ff);
    filter: blur(30px);
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
  }
  
  .shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 60%;
    animation-delay: 2s;
  }
  
  .shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 70%;
    left: 40%;
    animation-delay: 4s;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-20px) rotate(10deg);
    }
    100% {
      transform: translateY(0) rotate(0deg);
    }
  }
  
  /* Section Headers */
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
  }
  
  .separator {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent), #ff00ff);
    margin: 0 auto;
    border-radius: 2px;
  }
  
  /* About Section */
  .about {
    background-color: var(--bg-secondary);
    padding: 120px 5%;
  }
  
  .about-content {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  .about-image {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .image-container {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .image-container::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--accent);
    border-radius: 10px;
    z-index: -1;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 0.5;
    }
    50% {
      transform: scale(1.05);
      opacity: 0.8;
    }
    100% {
      transform: scale(1);
      opacity: 0.5;
    }
  }
  
  .about-text {
    flex: 1;
  }
  
  .about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent);
  }
  
  .about-text p {
    margin-bottom: 30px;
    color: var(--text-secondary);
  }
  
  .skills {
    margin-top: 30px;
  }
  
  .skill {
    margin-bottom: 20px;
  }
  
  .skill span {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
  }
  
  .skill-bar {
    height: 10px;
    background-color: var(--border);
    border-radius: 5px;
    overflow: hidden;
  }
  
  .skill-level {
    height: 100%;
    background: linear-gradient(to right, var(--accent), #ff00ff);
    border-radius: 5px;
    position: relative;
    animation: skill-fill 2s ease-out forwards;
  }
  
  @keyframes skill-fill {
    from {
      width: 0;
    }
  }
  
  /* Projects Section */
  .projects {
    padding: 120px 5%;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  }
  
  .project-image {
    height: 200px;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.1);
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .project-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.9rem;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .project-tags span {
    background-color: rgba(112, 0, 255, 0.2);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
  }
  
  /* Contact Section */
  .contact {
    background-color: var(--bg-secondary);
    padding: 120px 5%;
  }
  
  .contact-container {
    display: flex;
    gap: 50px;
  }
  
  .contact-info,
  .contact-form {
    flex: 1;
  }
  
  .contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent);
  }
  
  .contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
  }
  
  .contact-details {
    margin-bottom: 30px;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .contact-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
  }
  
  .social-links {
    display: flex;
    gap: 15px;
  }
  
  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: var(--transition);
  }
  
  .social-link:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
  }
  
  .form-group {
    position: relative;
    margin-bottom: 30px;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
  }
  
  .form-group textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  .form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
    pointer-events: none;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
  }
  
  .form-group input:focus + label,
  .form-group textarea:focus + label,
  .form-group input:not(:placeholder-shown) + label,
  .form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--bg-secondary);
    padding: 0 5px;
    color: var(--accent);
  }
  
  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: transparent;
  }
  
  /* Footer */
  footer {
    background-color: var(--bg-primary);
    padding: 60px 5% 20px;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  
  .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .footer-links {
    display: flex;
    gap: 20px;
  }
  
  .footer-links a:hover {
    color: var(--accent);
  }
  
  .footer-social {
    display: flex;
    gap: 15px;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  /* Responsive Design */
  @media screen and (max-width: 992px) {
    .hero {
      flex-direction: column;
      text-align: center;
      justify-content: center;
      gap: 50px;
    }
  
    .hero-content {
      max-width: 100%;
    }
  
    .hero h1 {
      font-size: 3rem;
    }
  
    .hero-image {
      width: 80%;
    }
  
    .about-content {
      flex-direction: column;
    }
  
    .contact-container {
      flex-direction: column;
    }
  }
  
  @media screen and (max-width: 768px) {
    .nav-links {
      position: absolute;
      right: 0;
      top: 70px;
      background-color: var(--bg-secondary);
      flex-direction: column;
      align-items: center;
      width: 100%;
      transform: translateY(-150%);
      transition: transform 0.5s ease;
      padding: 20px 0;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
  
    .nav-links.active {
      transform: translateY(0);
    }
  
    .burger {
      display: block;
      cursor: pointer;
    }
  
    .burger.active .line1 {
      transform: rotate(-45deg) translate(-5px, 6px);
    }
  
    .burger.active .line2 {
      opacity: 0;
    }
  
    .burger.active .line3 {
      transform: rotate(45deg) translate(-5px, -6px);
    }
  
    .hero h1 {
      font-size: 2.5rem;
    }
  
    .subtitle {
      font-size: 1.2rem;
    }
  
    .hero-cta {
      flex-direction: column;
      gap: 15px;
    }
  
    .btn.secondary {
      margin-left: 0;
    }
  
    .projects-grid {
      grid-template-columns: 1fr;
    }
  
    .footer-content {
      flex-direction: column;
      gap: 20px;
      text-align: center;
    }
  }
  
  @media screen and (max-width: 480px) {
    .hero h1 {
      font-size: 2rem;
    }
  
    section {
      padding: 80px 0;
    }
  
    .section-header h2 {
      font-size: 2rem;
    }
  }
  
  .skills-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  
  .skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 2rem;
    color: var(--accent);
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  .skill-icon i {
    font-size: 6rem;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out;
  }
  
  .skill-icon span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
  }
  
  .skill-icon:hover {
    transform: scale(1.2);
    color: var(--accent-hover);
  }
  
  .skill-icon:hover i {
    transform: rotate(10deg);
  }
  
  /* Styles de validation du formulaire */
  .form-group input.is-valid,
  .form-group textarea.is-valid {
    border-color: #4caf50;
  }
  
  .form-group input.is-invalid,
  .form-group textarea.is-invalid {
    border-color: #f44336;
  }
  
  /* Spinner pour le bouton d'envoi */
  .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Toast Notifications */
  .toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 300px;
    padding: 15px 20px;
    border-radius: 8px;
    background: #333;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
  }
  
  .toast.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .toast-success {
    background: linear-gradient(135deg, #4caf50, #45a049);
  }
  
  .toast-error {
    background: linear-gradient(135deg, #f44336, #e53935);
  }
  
  .toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .toast-content i {
    font-size: 20px;
  }
  
  /* Animation du formulaire */
  .form-group input:focus,
  .form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 0, 255, 0.1);
  }
  
  .btn[type="submit"] {
    position: relative;
    overflow: hidden;
  }
  
  .btn[type="submit"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
  }
  
  .btn[type="submit"]:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
  
  /* Responsive Toast */
  @media screen and (max-width: 480px) {
    .toast {
      left: 20px;
      right: 20px;
      min-width: auto;
    }
  }
  
/* Personnalisation de la pop-up */
.custom-popup {
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.8);
    font-family: 'Poppins', sans-serif;
}

/* Style du texte */
.swal2-title {
    font-size: 22px;
    font-weight: bold;
    color: #fff !important;
}

.swal2-popup {
    background-color: #2c2c2c !important;
    color: #fff !important;
}

/* Style des boutons */
.swal2-confirm {
    background-color: #8e44ad !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
}

