 /*  RESET & BASE  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #ff7a18;
  --violet: #6a0dad;
  --rose: #f2a1c7;
  --dark: #1a1a1a;
  --light: #ffffff;
  --gray: #f5f5f5;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.7;
}

.port{
  text-decoration: none;
}
.port p{
  color: black;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--violet);
}

/* HEADER  */
.header {
  position: sticky;
  height: 110px;
  padding-bottom: 120px;
  top: 0;
  background: var(--light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.Logo .logo{
  width: 150px;
  height: 150px;
  border: none;
}

.nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* Language switch */
.lang-switch button {
  border: none;
  background: none;
  font-weight: 600;
  margin-left: 10px;
  cursor: pointer;
  color: var(--dark);
}

.lang-switch .active {
  color: var(--orange);
}

/*  HERO  */
.hero {
  background: linear-gradient(120deg, #fdfbff, #f7f1ff);
  padding: 100px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text h2 {
  font-size: 2.8rem;
  color: var(--violet);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.05rem;
  margin-bottom: 30px;
  color: #444;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/*  BUTTONS  */
.btn {
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn.primary {
  background: linear-gradient(90deg, var(--orange), var(--rose));
  color: white;
  box-shadow: 0 10px 25px rgba(255,122,24,0.35);
}

.btn.primary:hover {
  transform: translateY(-3px);
}

.btn.secondary {
  border: 2px solid var(--violet);
  color: var(--violet);
  margin-left: 15px;
}

.btn.secondary:hover {
  background: var(--violet);
  color: white;
}

/*  ABOUT  */
.about p {
  max-width: 800px;
  margin: auto;
  text-align: center;
  font-size: 1.05rem;
}

/*  SERVICES */
.services {
  background: var(--gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-top: 5px solid var(--orange);
}

.service-card h4 {
  color: var(--violet);
  margin-bottom: 15px;
}

/* CONTACT  */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-qr img {
  width: 180px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/*  WHATSAPP FLOAT  */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(90deg, #25D366, #1ebe5d);
  color: white;
  font-size: 1.8rem;
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/*  FOOTER  */
.footer {
  background: var(--violet);
  color: white;
  text-align: center;
  padding: 25px 10px;
}
/*  JS ANIMATIONS */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.header.scrolled {
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

/* WhatsApp pulse */
.whatsapp-float.pulse {
  box-shadow: 0 0 0 15px rgba(37, 211, 102, 0.15);
}
/*  DARK MODE  */

.theme-toggle {
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg);
}

/* Variables dark */
body.dark {
  --light: #0f0f1a;
  --dark: #f5f5f5;
  --gray: #1b1b2f;
  background-color: var(--light);
  color: var(--dark);
}

/* Sections */
body.dark .header,
body.dark .service-card,
body.dark .footer {
  background-color: #14142b;
}

body.dark .hero {
  background: linear-gradient(120deg, #14142b, #1f1f3d);
}

body.dark .nav a {
  color: var(--dark);
}

body.dark .service-card {
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Buttons */
body.dark .btn.secondary {
  border-color: var(--rose);
  color: var(--rose);
}

body.dark .btn.secondary:hover {
  background: var(--rose);
  color: #000;
}

/* Footer */
body.dark .footer {
  color: #ddd;
}
/*  CONTACT FORM  */

.contact-form {
  margin-top: 25px;
}

.form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(106,13,173,0.15);
}

#formStatus {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Dark mode */
body.dark .contact-form input,
body.dark .contact-form textarea {
  background: #1f1f3d;
  color: white;
  border-color: #333;
}
/*  PORTFOLIO  */

.portfolio {
  background: var(--light);
}

.portfolio-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-10px);
}

.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-content {
  padding: 20px;
}

.portfolio-content h4 {
  color: var(--violet);
  margin-bottom: 8px;
}

.portfolio-content p {
  font-size: 0.9rem;
  color: #555;
}

/* Dark mode */
body.dark .portfolio {
  background: var(--gray);
}

body.dark .portfolio-card {
  background: #1f1f3d;
}

body.dark .portfolio-content p {
  color: #ccc;
}
/*  STATS  */

.stats {
  background: linear-gradient(120deg, var(--violet), #3a0a6a);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-box h3 {
  font-size: 2.8rem;
  color: var(--orange);
}

.stat-box p {
  font-size: 0.95rem;
  opacity: 0.9;
}
/* MENU TOGGLE (hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--dark);
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Animation vers X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
  }

  /* Empêche le débordement */
  html, body {
    overflow-x: hidden;
  }
}




/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-content,
  .contact-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .btn.secondary {
    margin-left: 0;
    margin-top: 15px;
    display: inline-block;
  }
}