@media screen and (max-width: 768px) {
    body {
      padding: 0;
      margin: 0;
    }
  
    nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: auto;
      background-color: #9b1b30; 
      display: flex;
      flex-direction: column;
      align-items: center;
      z-index: 999;
    }
  
    nav ul {
      flex-direction: column;
      padding: 0;
    }
  
    nav ul li {
      margin: 10px 0;
    }
  
    main {
      margin-left: 0;
      padding-top: 80px; 
    }
  
    section {
      padding: 40px 20px;
      text-align: center;
    }
  
    .projets-grid {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  
    img, .photo, .project-preview {
      max-width: 100%;
      height: auto;
    }
  
    .contact-form {
      width: 100%;
    }
  
    
    .accueil h1 {
      font-size: 1.8rem;
    }
  
    .accueil p {
      font-size: 1rem;
    }
  }
* 
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Permanent Marker', cursive;
    color: #9b1b30; 
}

a {
    text-decoration: none;
    color: #8b0a2f; 
    transition: color 0.3s ease;
}

a:hover {
    color: #b08d5f;
}

header {
    background: #9b1b30; 
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav ul li {
    list-style: none;
}

header nav ul li a {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #fff;
}


#about {
    position: relative;
    padding: 50px 20px;
    text-align: center;
    background: none; 
}

#about::before {
    content: ''; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/fondd.png'); 
    background-size: cover;
    background-position: center;
    opacity: 0.3; 
    z-index: -1; 
}

.about-content {
    position: relative; 
    z-index: 2; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-img {
    width: 200px;
    height:200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #9b1b30;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#about p {
    max-width: 600px;
    font-size: 18px;
    margin-top: 20px;
    color: #333; 
}


#projects {
    padding: 50px 20px;
    background-color: #fff; 
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
}

.project-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-item h3 {
    font-family: 'Poppins', sans-serif;
    color: #8b0a2f;
}


.project-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 75px; 
    height: 75px; 
    background-image: url('images/cerise.png'); 
    background-size: cover;
    transform: rotate(-45deg); 
}


.tech-icons {
    margin-top: 10px;
}

.icon {
    font-size: 14px;
    background-color: #9b1b30;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 10px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.icon:hover {
    background-color: #b08d5f; 
}


/* CONTACT */
#contact {
  background-color: #fdf8f4; /* beige très clair */
  padding: 60px 20px 30px;
  color: #3a2b2b;
  font-family: 'Lora', serif;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-left {
  flex: 1;
  min-width: 250px;
}

.footer-left h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #8b0a2f;
}

.footer-left p {
  line-height: 1.6;
  font-size: 1rem;
  color: #5c4a4a;
}

.footer-links {
  flex: 1;
  min-width: 250px;
}

.footer-links h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #8b0a2f;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #3a2b2b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #8b0a2f;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #7a6d6d;
}