:root {
  --gold: #c5a46d;
  --ivory: #f9f6f1;
  --beige: #e8dfd0;
  --gray: #7a7a7a;
  --dark: #333;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
  font-family: "poppins", sans-serif;
  background-color: var(--ivory);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: var(--dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "poppins", sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 0.9rem;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--gold);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover {
  color: white;
}

.btn:hover::before {
  width: 100%;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.section-title h2 {
  font-size: 3rem;
  display: inline-block;
  position: relative;
  padding-bottom: 20px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--gold);
}

/* preloader  */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ivory);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.shimmer-loader {
  display: flex;
  align-items: center;
}

.shimmer-dot {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 5px;
  animation: shimmer 1.2s infinite;
}

.shimmer-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.shimmer-dot:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.3s;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.7);
  }
}


/* Header & Navigation  */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 25px 0;
  transition: var(--transition);
  background: transparent;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "playfair Display", serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 40px;
}

.nav-links a {
  font-family: "poppins", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section  */

#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f9f6f1 0%, #f0e9e0 100%);
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-content .btn {
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.right{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.right .hero-img img{
  width: 700px;
  height: auto;
  animation: fadeInRight 1s ease 0.9s forwards;
}



/* About Section  */

#about {
  background: var(--ivory);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  position: relative;
  border: 1px solid rgba(197, 164, 109, 0.3);
  padding: 20px;
  transition: var(--transition);
  background: white;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.about-img::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  z-index: -1;
  transition: var(--transition);
}

.about-img:hover::before {
  top: 10px;
  left: 10px;
}

.about-img .bg-gray-200 {
  width: 100%;
  height: 450px;
  background: linear-gradient(45deg, #e8dfd0, #f0e9e0);
  border: 1px solid rgba(197, 164, 109, 0.2);
}

.about-text h3 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
}

.about-text h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gold);
}

.about-text p {
  margin-bottom: 25px;
  color: var(--gray);
  font-size: 1.1rem;
}

/* Skill Section  */

#skills {
  background: #f0e9e0;
  position: relative;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  background: white;
  border: 1px solid rgba(197, 164, 109, 0.3);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 25px;
  color: var(--gold);
  font-size: 2rem;
  transition: var(--transition);
}

/* ici lorsque tu survoles la carte de compétence, l'icône change de couleur et de fond */

.skill-card:hover .skill-icon {
  background: var(--gold);
  color: white;
  transform: scale(1.1);
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.skill-card p {
  color: var(--gray);
  font-size: 0.95rem;
}


/* Portfolio Section  */

#portfolio {
  background: var(--ivory);
  position: relative;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 300px;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #e8dfd0, #f0e9e0);
  border: 1px solid rgba(197, 164, 109, 0.2);
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(197, 164, 109, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
  text-align: center;
  color: white;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(197, 164, 109, 0.5);
}

.portfolio-overlay h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.portfolio-overlay p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.portfolio-overlay .btn:hover {
  background: white;
}

/* Contact Section  */

#contact {
  background: #f0e9e0;
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
}

.contact-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gold);
}

.contact-info p {
  margin-bottom: 40px;
  color: var(--gray);
  font-size: 1.1rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  color: var(--gold);
  font-size: 1.5rem;
  transition: var(--transition);
}

.contact-detail:hover .contact-icon {
  background: var(--gold);
  color: white;
  transform: scale(1.1);
}

.contact-form .form-group {
  margin-bottom: 30px;
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 20px;
  background: white;
  border: 1px solid rgba(197, 164, 109, 0.3);
  border-radius: 30px;
  color: var(--dark);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 5px 15px rgba(197, 164, 109, 0.2);
}

.contact-form textarea {
  height: 180px;
  resize: vertical;
  border-radius: 20px;
}

.contact-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border-radius: 30px;
}

/* Footer */
footer {
  background: var(--beige);
  padding: 50px 0 30px;
  border-top: 1px solid rgba(197, 164, 109, 0.2);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  display: flex;
  margin: 30px 0;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin: 0 10px;
  color: var(--gold);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-5px);
}

.copyright {
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
  margin-top: 20px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: white;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.back-to-top:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-5px);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  position: relative;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 30px;
  background: var(--beige);
  position: relative;
}

.modal-header h3 {
  font-size: 2rem;
  color: var(--gold);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--gold);
}

.modal-body {
  padding: 30px;
}

.modal-body p {
  margin-bottom: 20px;
  color: var(--gray);
}

.modal-img {
  width: 100%;
  height: 300px;
  background: linear-gradient(45deg, #e8dfd0, #f0e9e0);
  margin-bottom: 20px;
  border: 1px solid rgba(197, 164, 109, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 4rem;
  }

  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-img {
    max-width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: rgba(249, 246, 241, 0.95);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    padding: 30px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .section {
    padding: 80px 0;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .portfolio-container {
    grid-template-columns: 1fr;
  }

  .portfolio-item.wide {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.8rem;
  }
}
