/* Base Styles */
:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #4f6fd1; /* plus doux */
  --primary-700: #405bb1;
  --primary-800: #36478e;
 --primary-900: #2f3d6c;
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--primary-700);
  max-width: 36rem;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-600);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-700);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-300);
  color: var(--primary-700);
}

.btn-outline:hover {
  background-color: var(--primary-50);
}

.btn-full {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
/*  transition: all 0.3s ease;*/
}


/* .navbar.scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
} */

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-900);
}

.desktop-nav {
  display: none;
}

.nav-link {
  margin-left: 1.5rem;
  color: var(--primary-800);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-600);
}

.language-switcher {
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--primary-200);
  border-radius: 0.375rem;
  color: var(--primary-700);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.language-switcher:hover {
  background-color: var(--primary-50);
}

.mobile-menu-container {
  display: flex;
  align-items: center;
}

.mobile-menu-button {
  margin-left: 0.5rem;
  background: none;
  border: none;
  color: var(--primary-800);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 1rem 0;
  background-color: var(--white);
  position: absolute;
  top: 100%;
  width: 100vw; /* largeur complète de l’écran */
}

.mobile-nav.active {
  display: block;
}

.mobile-nav .nav-link {
  display: block;
  margin: 0;
  padding: 0.75rem 0;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    align-items: center;
  }

  .mobile-menu-container {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 7rem; /* marge au dessus (mobile) */
  padding-bottom:1rem; /* marge en dessous (mobile) */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--primary-50), var(--white));
  z-index: -1;
}

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

.hero-text {
  margin-bottom: 2.5rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--primary-700);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.main-image {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: rotate(2deg);
  transition: transform 0.5s ease;
}

.main-image:hover {
  transform: rotate(0);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--primary-500);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .hero-text {
    width: 50%;
    margin-bottom: 0;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-image {
    width: 50%;
  }

  .secondary-image {
    display: block;
  }
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: linear-gradient(to bottom, var(--white), var(--primary-50));
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--primary-100);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-image {
  width: 100%;  /* Ajouté pour s'assurer que l'image prend toute la largeur du conteneur */
  aspect-ratio: 1; /* Crée un ratio de 1:1 pour que l'image soit carrée */
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-800);
  margin-bottom: 0.5rem;
}

.service-content p {
  color: var(--primary-600);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Detailed Offers Section */
.detailed-offers {
  padding: 5rem 0;
  background-color: var(--white);
}

.offers-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.offer-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.offer-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.offer-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 1rem;
}

.offer-content p {
  font-size: 1.125rem;
  color: var(--primary-700);
  margin-bottom: 1.5rem;
}

.advantages-list {
  margin-bottom: 1.5rem;
}

.advantages-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-800);
}

.advantages-list li i {
  color: var(--primary-500);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.satisfaction {
  font-weight: 500;
  color: var(--primary-600);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .offer-item {
    flex-direction: row;
    align-items: center;
  }

  .offer-item.reverse {
    flex-direction: row-reverse;
  }

  .offer-image,
  .offer-content {
    width: 50%;
  }
}

/* Creation Process Section */
.creation-process {
  padding: 5rem 0;
  background-color: var(--primary-50);
}

.process-timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--primary-200);
  transform: translateX(-50%);
  display: none;
}

.process-step {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-card {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--primary-200);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem 1.5rem;
  width: 100%;
  max-width: 32rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.step-number {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-600);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

.step-card p {
  color: var(--primary-700);
}

@media (min-width: 768px) {
  .timeline-line {
    display: block;
  }

  .process-step {
    justify-content: flex-start;
    width: 50%;
    padding-right: 2rem;
  }

  .process-step.right {
    margin-left: auto;
    padding-right: 0;
    padding-left: 2rem;
  }

  .step-card {
    max-width: none;
  }
}

/* Portfolio Section */
.portfolio {
  padding: 5rem 0;
  background-color: var(--primary-50);
}

.portfolio-tabs {
  max-width: 1000px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-100);
  color: var(--primary-700);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: var(--primary-200);
}

.tab-btn.active {
  background-color: var(--primary-600);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.portfolio-item {
  background-color: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 64, 175, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  pointer-events: none;
}

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

.portfolio-overlay h3 {
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.portfolio-info {
  padding: 1rem;
}

.portfolio-info h3 {
  font-weight: 600;
  color: var(--primary-800);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.portfolio-info p {
  color: var(--primary-600);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--white);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-image {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.image-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--primary-200);
  border-radius: 50%;
  transform: translate(-1rem, 1rem);
}

.image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.about-text h3 {
  font-size: 1.25rem;
  color: var(--primary-700);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--primary-800);
  margin-bottom: 1.5rem;
}

.skills h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-100);
  color: var(--primary-800);
  border-radius: 9999px;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
  }

  .about-image {
    width: 40%;
    margin: 0;
  }

  .about-text {
    width: 60%;
  }
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.quote-icon {
  color: var(--primary-300);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--primary-800);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  margin-top: auto;
}

.author-name {
  font-weight: 600;
  color: var(--primary-900);
}

.author-position {
  color: var(--primary-600);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: linear-gradient(to bottom, var(--primary-50), var(--white));
}

.contact-form-container {
  max-width: 48rem;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--primary-200);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--primary-900);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-400);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--primary-400);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
.footer {
  background-color: var(--primary-900);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.footer-link {
  color: var(--primary-200);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  color: var(--primary-200);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--white);
  background-color: var(--primary-800);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--primary-800);
}

.copyright {
  color: var(--primary-300);
  font-size: 0.875rem;
  text-align: center;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  border: 1px solid var(--primary-700);
  color: var(--primary-300);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--primary-800);
  color: var(--white);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .copyright {
    text-align: left;
  }
}



.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -2rem;
  right: 0;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.lightbox-prev {
  left: -3rem;
}

.lightbox-next {
  right: -3rem;
}
