* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Poppins", Arial, sans-serif;
    background: #0d0d0d;
    color: #e5e5e5;
    line-height: 1.6;
  }
  
  :root {
    --secondary: #f87171;
    --bg: #0d0d0d;
    --card: rgba(20, 20, 20, 0.85);
    --text: #e5e5e5;
    --muted: #9ca3af;
    --radius: 14px;
    --shadow: 0 10px 25px rgba(0,0,0,0.7);
  }
  
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .site-header {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
  }
  
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
  }
  
  .logo {
    font-weight: 700;
    color: #ef4444;
    font-size: 1.5rem;
    text-decoration: none;
  }
  
  .main-nav {
    display: flex;
    gap: 1.5rem;
  }
  
  .main-nav a {
    color: #e5e5e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .main-nav a:hover {
    color: #ef4444;
  }
  
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.8rem;
    cursor: pointer;
  }
  
  .hero {
    padding: 6rem 0;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1f1f1f, #0d0d0d);
    border-radius: 14px;
    margin: 2rem;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
  
  .accent {
    color: #ef4444;
  }
  
  .lead {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
  }
  
  .hero-photo img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    border: 4px solid #ef4444;
    box-shadow: 0 0 20px #ef4444;
  }
  
  .btn {
    background: #ef4444;
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
  }
  
  .btn:hover {
    background: #f87171;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px #ef4444;
  }
  
  .btn.ghost {
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
  }
  
  .btn.ghost:hover {
    background: #ef4444;
    color: #fff;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #ef4444;
  }
  
  .quick-info li {
    margin-bottom: 0.5rem;
  }
  
  .quick-info a {
    color: #ef4444;
    text-decoration: none;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
  }
  
  .project-card {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(6px);
  }
  
  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.6);
  }
  
  .project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #2c2c2c;
  }
  
  .card-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
  }
  
  .card-meta {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0.5rem 0;
  }
  
  .card-links a {
    color: #ef4444;
    font-weight: 600;
  }
  
  .card-links a:hover {
    text-decoration: underline;
  }
  
  .skills-list {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .skill-bar {
    background: #2c2c2c;
    border-radius: 10px;
  }
  
  .skill-bar span {
    display: block;
    background: #ef4444;
    padding: 0.5rem;
    text-align: right;
    font-size: 0.9rem;
    color: #fff;
    border-radius: 10px;
  }
  
  .timeline-item {
    background: var(--card);
    border-left: 5px solid #ef4444;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  
  .timeline-item .date {
    font-size: 0.9rem;
    color: #9ca3af;
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #2c2c2c;
    border-radius: 14px;
    background: #1a1a1a;
    color: #e5e5e5;
  }
  
  .contact-form button {
    margin-top: 0.5rem;
    background: #ef4444;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.3s;
  }
  
  .contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px #ef4444;
  }
  
  .site-footer {
    background: #1a1a1a;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
  }
  
  .site-footer p {
    color: #9ca3af;
  }
  
  @media (max-width: 768px) {
    .main-nav {
      position: absolute;
      top: 60px;
      right: 0;
      background: #1a1a1a;
      flex-direction: column;
      width: 200px;
      text-align: right;
      padding: 1rem;
      border-radius: 0 0 0 14px;
      display: none;
      box-shadow: var(--shadow);
    }
  
    .main-nav.open {
      display: flex;
    }
  
    .menu-toggle {
      display: block;
    }
  }
  
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
  }
  
  .modal.open {
    display: flex;
  }
  
  .modal-content {
    background: var(--card);
    padding: 2rem;
    border-radius: 14px;
    max-width: 650px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow);
    animation: zoomIn 0.3s ease;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #9ca3af;
    cursor: pointer;
    transition: 0.2s;
  }
  
  .close-btn:hover {
    color: #ef4444;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  #btn-projet {
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s, transform 0.2s;
  }
  
  #btn-projet:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-2px);
  }
  
  /* Logo clickable dans la modale projet */
  .logo-clickable {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .logo-clickable img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #ef4444;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .logo-clickable img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px #ef4444;
  }
  
  /* Galerie modale */
  .gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #ef4444;
  }
  
  .thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
  }
  
  .thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #444;
    transition: transform 0.2s, border-color 0.2s;
  }
  
  .thumbnails img:hover {
    transform: scale(1.05);
    border-color: #ef4444;
  }
  