@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--body-light);
}
/* *************************===== HERO SECTION ===== **************************************/
.container-hero-content {
  position: relative;
  background: var(--gradient-hero);
  height: 120vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-hero-content {
  margin: 0 40px;
  display: flex;
  gap: 15px;
  position: relative;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 120vh;
  object-fit: cover;
  z-index: 1;
  overflow: hidden;
  opacity: 0.2;
}
.cyber-overlay {
  position: absolute;
  background: var(--gradient-hero);
}
.card-hero-content .hero-content {
  position: relative;
  width: 100%;
}
.card-hero-content .image-hero {
  position: relative;
  width: 90%;
  height: 100%;
}
.card-hero-content .image-hero img {
  width: 100%;
  position: relative;
  height: auto;
  /*  enchaîner plusieurs animations */
  animation: appear 1s ease-out forwards, wave 2s ease-in-out 1s 1 forwards,
    /* commence après 1s, joue une seule fois */ float 4s ease-in-out 3s
      infinite; /* commence après 3s, puis boucle */
  transform-origin: center bottom;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.cyber-title {
  font-size: 45px;
  margin-bottom: 30px;
  line-height: 1.2;
  font-family: inter;
  font-weight: 900;
  font-style: normal;
  text-shadow: hoff voff blur var(--black);
  background: linear-gradient(90deg, var(--bg-white), var(--color-blue));
  -webkit-background-clip: text;
  background-clip: text;
  background-clip: text;
  color: transparent;
}

.cyber-title span {
  background: linear-gradient(90deg, var(--accent-orange), var(--neon-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cyber-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--text-subtile);
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.cyber-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cyber-button i {
  transition: transform 0.3s;
}

.cyber-button:hover i {
  transform: translateX(5px);
  color: var(--accent-orange);
}

.cyber-button.primary {
  background: var(--gradient-blue);
  color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.345);
  cursor: pointer;
}
.cyber-button.primary::before {
  content: "";
  position: absolute;
  width: 100%;
  border-radius: 15px;
  height: 120%;
  background: var(--gradient-mix);
  box-shadow: 0 0 15px var(--primary-blue);
  animation: rotate 4s linear infinite;
  transition: all 0.1s linear;
  z-index: -4;
}
.cyber-button.primary::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  background: var(--gradient-orange);
  z-index: -4;
}
.cyber-button.primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--primary-blue);
}

.cyber-button.secondary {
  position: relative;
  background: transparent;
  border: 3px solid var(--primary-blue);
  transition: ease-in 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 255, 0.58);
  overflow: hidden;
}
.cyber-button.secondary:hover {
  box-shadow: 0 0 20px var(--primary-blue);
}
.cyber-button.secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary-blue);
  box-shadow: 0 0 15px var(--primary-blue);
  transition: width 0.5s ease;
  z-index: -1;
}
.cyber-button.secondary:hover::before {
  width: 100%;
  box-shadow: 0 0 20px var(--primary-blue);
}

.hero-scroll {
  position: absolute;
  bottom: -170px;
  left: 48%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  opacity: 0.5;
  animation: bounce 2s infinite;
}

.scroll-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, var(--primary-blue), transparent);
  margin-top: 10px;
}

/* =====  section hero responsive  ===== ******/
@media (max-width: 768px) {
  .container-hero-content {
    position: relative;
    height: 100vh;
  }

  .card-hero-content {
    display: flex;
    gap: 10px;
  }
  .card-hero-content .hero-content {
    position: relative;
    width: 100%;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .card-hero-content {
    margin: 0 20px;
    display: flex;
    gap: 40px;
    flex-direction: column;
  }
  .card-hero-content .hero-content {
    position: relative;
    top: 0px;
    width: 100%;
  }
  .card-hero-content .image-hero {
    position: relative;
    width: 100%;
    display: none;
  }
  .card-hero-content .image-hero img {
    width: 100%;
    position: relative;
    right: 0px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .cyber-button {
    padding: 15px;
  }

  .image-hero-bottom {
    width: 100%;
    display: none;
    padding: 10px;
  }
  .image-hero-bottom img {
    width: 100%;
    /*  enchaîner plusieurs animations */
    animation: appear 1s ease-out forwards, wave 2s ease-in-out 1s 1 forwards,
      /* commence après 1s, joue une seule fois */ float 4s ease-in-out 3s
        infinite; /* commence après 3s, puis boucle */
    transform-origin: center bottom;
  }
}
/*======pour les petit ecran======*/
@media (max-width: 560px) {
  .container-hero-content {
    position: relative;
    height: 100vh;
    overflow: hidden;
  }
  .hero-video {
    height: 100vh;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }
  .hero-content {
    position: relative;
    top: -40px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
}
@media (max-width: 200px) {
  .container-hero-content {
    position: relative;
    height: 120vh;
  }
}
/* **********************===== SERVICES SECTION ===== ***************************************/
.cyber-services {
  padding: 40px 10px;
  position: relative;
  background: var(--bg-dark-services);
  color: var(--color-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.cyber-services .container {
  margin: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-white);
}

.title-line {
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
  margin: 20px auto;
  border-radius: 3px;
}

.services-grid {
  display: flex;
  gap: 20px;
}

.service-card {
  background: var(--bg-card-services);
  border: var(--border-card-blue-light);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 102, 255, 0.1),
    transparent
  );
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 102, 255, 0.2);
  border: var(--border-card-orangered);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-icon-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  border: var(--border-icon-blue);
  animation: pulse 2.5s infinite ease-out;
}

.service-icon i {
  font-size: 30px;
  color: var(--color-darker);
}

.icon-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-blue);
  opacity: 0;
  animation: pulse 2s infinite;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-features {
  list-style: none;
  margin-bottom: 25px;
}

.service-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.service-features li::before {
  content: "▹";
  font-size: 20px;
  position: absolute;
  left: 0;
  color: var(--accent-orange);
}

.service-link {
  color: var(--accent-orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
  font-size: 14px;
}

.service-link:hover {
  color: var(--primary-blue);
  gap: 10px;
}

/************** ===== PORTFOLIO SECTION graphisme ===== ******************************/
.portfolio-section-design {
  padding: 20px 0;
  background-color: white;
  color: black;
}
.portfolio-section-design .section-title {
  color: var(--accent-orange);
}
.portfolio-section-design .section-subtitle {
  color: black;
}
.portfolio-grid-design {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 10px;
}
.portfolio-section-design .portfolio-item {
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  height: 100%;
  overflow: hidden;
}

.portfolio-section-design .portfolio-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.portfolio-section-design .portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: solid 12px rgba(4, 4, 134, 0.224);
  border-radius: 10px;
  transition: transform 0.3s;
}

.portfolio-section-design .portfolio-item:hover img {
  transform: scale(1.05);
  cursor: pointer;
}
/* =======pour cacher les projet hidden =======*/
/* Bouton  */
.button-projet-hidden {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.button-projet-hidden a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.button-projet-hidden a:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  background: linear-gradient(-145deg, #6a11cb, #2575fc);
}
/* Div cachée */
.hidden-projects {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.5s ease;
}

/* Quand actif */
.hidden-projects.show {
  max-height: 3000px;
  opacity: 1;
}

/***************lightbox****************/
/* Lightbox Base */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  text-align: center;
  cursor: grab;
  user-select: none;
  margin: 60px 0;
}

.lightbox-content.grabbing {
  cursor: grabbing;
}

.lightbox-img {
  max-width: 95%;
  max-height: 80vh;
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
  object-fit: contain;
}

.lightbox:target .lightbox-img {
  transform: scale(1);
}

.lightbox-img.dragging {
  transition: none;
}

.lightbox-caption {
  color: var(--white);
  margin-top: 15px;
  font-size: 1.2em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  color: var(--white);
  font-size: 2.5em;
  text-decoration: none;
  transition: transform 0.2s ease;
  z-index: 10;
  padding: 10px;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.lightbox-nav a {
  color: var(--white);
  font-size: 3em;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  pointer-events: auto;
  padding: 0 20px;
}

.lightbox-nav a:hover {
  opacity: 1;
}

/* Thumbnails */
.lightbox-thumbnails {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.thumbnails-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0 20px;
  transition: transform 0.3s ease;
}

.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
  border-radius: 3px;
}

.thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--white);
  transform: scale(1.1);
}

/* Scrollbar */
.lightbox-thumbnails::-webkit-scrollbar {
  height: 5px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
}

/* Portfolio items */
.portfolio-image {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.portfolio-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-image:hover img {
  transform: scale(1.05);
}

/* Zoom System */
.zoom-active {
  cursor: zoom-in;
  transform-origin: center center;
}

.zoom-active.zoomed {
  cursor: grab;
  transform: scale(2);
  max-width: none !important;
  max-height: none !important;
}

/* Image Counter */
.lightbox-header {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 15px;
  z-index: 10;
}

.image-counter {
  color: var(--white);
  font-size: 1.2em;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
}

.zoom-btn {
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2em;
  transition: all 0.3s ease;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Advanced Transitions */
.lightbox-img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease,
    filter 0.3s ease;
}

.image-change {
  animation: fadeIn 0.6s both;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .lightbox-content {
    margin: 10px 0;
  }
  .lightbox-nav a {
    font-size: 2em;
    padding: 0 10px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 2em;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 80vh;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }

  .lightbox-content {
    margin-bottom: 60px;
  }
}
/* Responsive */
@media (max-width: 500px) {
  .lightbox {
    justify-content: center;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }
  .lightbox-content {
    margin: 40px;
  }
  .lightbox-nav a {
    font-size: 1.5em;
    padding: 0 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 2em;
  }

  .lightbox-img {
    max-width: 100%;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }
}
/* PORTFOLIO SECTION WEB*/
/* ====================================================== */
.portfolio-section-web {
  padding: 20px 0;
  background: var(--bg-light1);
  color: black;
}
.portfolio-section-web .section-title {
  color: var(--accent-orange);
  text-shadow: hoff voff blur var(--black);
}
.portfolio-section-web p {
  color: black;
}

.portfolio-grid-web {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-section-web .portfolio-item {
  transition: all 0.3s ease;
}

.portfolio-section-web .portfolio-card {
  background: var(--bg-light);
  border-radius: 8px;
  border-bottom: solid 8px var(--primary-blue);
  box-shadow: var(--shadow-black);
  overflow: hidden;
  height: 100%;
  color: black;
  position: relative;
  transition: ease 0.3s;
}

.portfolio-section-web .portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-black-light);
}

.portfolio-section-web .portfolio-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.portfolio-section-web .portfolio-image img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-section-web .portfolio-image:hover img {
  transform: scale(1.05);
}

.portfolio-section-web .portfolio-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  background: var(--gradient-orange);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: ease 0.3s;
  opacity: 0;
}
.portfolio-section-web .portfolio-card:hover .portfolio-badge {
  opacity: 1;
}

.portfolio-section-web .portfolio-content {
  padding: 20px;
}

.portfolio-section-web .portfolio-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.portfolio-section-web .portfolio-content p {
  color: black;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.portfolio-section-web .portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gradient-mix);
  padding: 10px;
  border-radius: 6px;
  color: var(--color-darker);
  font-weight: 500;
  transition: all 0.3s ease;
  animation: pulse 2.5s infinite ease-out;
}

.portfolio-section-web .portfolio-link:hover {
  gap: 10px;
  background: var(--gradient-mix-orange);
}

/**************************************************************/
/****section bouton intermediaire *******/

.bouton-intermediaire {
  background: var(--gradient-cta);
  background-image: url("https://i.pinimg.com/736x/cb/70/d2/cb70d271f2af2cc5f5c283fd021c8d50.jpg");
  padding: 60px 0;
  justify-content: center;
  align-items: center;
  position: relative; /* important pour que ::before reste dans ce container */
  overflow: hidden;
}

.bouton-intermediaire::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-cta-overlay);
  z-index: 1; /* derrière le contenu */
}

.bouton-intermediaire.cta-company {
  margin-bottom: 50px;
}

.bouton-intermediaire .content-section {
  position: relative; /* permet de passer au-dessus de ::before */
  z-index: 2; /* contenu visible au-dessus de l'overlay */
  background: var(--gradient-cta);
  padding: 40px;
  border-radius: 10px;
  border: var(--border-card-blue);
  box-shadow: var(--shadow-blue);
}

.bouton-intermediaire h2 {
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  font-family: inter;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.258);
}

.bouton-intermediaire h3 {
  font-size: 20px;
  margin: 50px 0;
}

.bouton-intermediaire h3 span,
.bouton-intermediaire .title-section-btn span {
  color: var(--accent-orange);
}

.bouton-intermediaire p {
  font-size: 20px;
}

.bouton-intermediaire .cyber-button.secondary {
  background: var(--gradient-mix-orange);
  border: solid 2px var(--accent-orange);
  color: white;
  margin: 20px 0;
  animation: pulse 2.5s infinite ease-out;
}

.bouton-intermediaire .faq-contact-buttons {
  margin-top: 100px;
}

/* ========================
   CONTAINER GENERAL ADVANTAGES
======================== */

/* Container général */
.advantages-section {
  background: var(--bg-card);
  padding: 25px 0 50px 0;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: black;
  font-family: "Poppins", sans-serif;
}

/* Header de section */
.advantages-section .section-header {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.advantages-section h2 {
  font-size: 36px;
  font-weight: 900;
  text-shadow: 0 0 10px #0000002f;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.advantages-section .section-subtitle {
  display: block;
  font-size: 18px;
  color: orangered;
}

.advantages-section .section-description {
  max-width: 700px;
  margin: 0px auto;
  line-height: 1.6;
}

/* Divider étoilé */
.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}
.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, orangered, blue);
}
.divider-icon i {
  font-size: 30px;
  color: var(--neon-orange);
  margin: 0 10px;
  transition: animation 0.2s;
}
/* ========================
   GRID CARTES
======================== */
.advantages-grid-3d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
  position: relative;
}

/* Carte 3D */
.card-3d {
  width: 100%;
  height: 360px;
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d; /* essentiel pour le flip */
  cursor: pointer;
}

.card-3d .card-face {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  backface-visibility: hidden;
  transition: transform 0.6s;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  padding: 20px;
}

/* Face avant */
.card-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

/* Face arrière */
.card-back {
  background: var(--gradient-orange);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Flip hover */
.card-3d:hover .card-front {
  transform: rotateY(180deg);
}
.card-3d:hover .card-back {
  transform: rotateY(0deg);
}

/* Icone ronde */
.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-orange);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.351);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 15px;
  color: white;
  animation: pulse 2s infinite ease-out;
}

/* Stats */
.card-stats {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 10px;
}
.stat-item {
  text-align: center;
}
.chiffre {
  display: flex;
  font-size: 30px;
  color: orangered;
  font-weight: 800;
}

.stat-label {
  font-size: 14px;
}
.card-3d h3,
h4 {
  font-size: 20px;
}
.card-3d .back-content li {
  font-size: 16px;
}
/* Expertise back */
.expertise-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}
.expertise-list li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}
.expertise-list li i {
  color: var(--primary-blue);
  margin-right: 8px;
}

/* Connecteurs */
.connecteur {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--neon-orange);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
  .advantages-grid-3d {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-section .section-title {
    font-size: 30px;
  }
  .card-3d {
    width: 100%;
  }
  .card-3d h3,
  h4 {
    font-size: 18px;
  }
}
@media (max-width: 568px) {
  .advantages-section .section-title {
    font-size: 20px;
  }

  .advantages-grid-3d {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .connecteur {
    transform: rotate(90deg);
    margin: 10px auto;
    display: flex;
  }
  .card-3d {
    width: 100%;
    margin: 0 auto;
  }

  .stat-number {
    font-size: 30px;
  }
}
/***********section de temoinage*****************/
.testimonials-section {
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
  color: black;
  transition: all 0.4s ease;
  height: 100%;
  padding: 40px 0;
  display: none;
}
.testimonials-section h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}
.list-card {
  padding: 25px 0;
  user-select: none;
  width: 100%;
  position: relative;
}

.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  width: 95%;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  height: 400px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: scroll;
  cursor: grab;
}

.testimonials-section .testimonial::-webkit-scrollbar {
  width: 4px;
}
/* Icônes clients*/
.testimonial-card .client-img i {
  font-size: 80px;
  color: rgba(0, 0, 0, 0.874);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.333);
  padding: 4px;
  margin: 0 auto 10px;
  opacity: 0.5;
}

.client-details h4 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: gray;
}

.client-details p {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 10px;
  opacity: 0.7;
}

.testimonial-text {
  font-style: italic;
  color: var(--light-dark);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Rating */
.rating {
  color: #ffc107;
  font-size: 1.2rem;
  margin: 15px 0;
}

/* Navigation */
.client-next,
.client-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 30px;
  transition: all 0.3s ease;
  font-weight: bold;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-next:hover,
.client-prev:hover {
  color: var(--accent-orange);
  transform: translateY(-50%) scale(1.1);
}

/* Pagination*/
.client-pagination .swiper-pagination-bullet {
  margin-top: 40px;
  background: var(--primary-blue);
  opacity: 0.6;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}
.list-card {
  padding-bottom: 60px;
}

.client-pagination .swiper-pagination-bullet-active {
  background: var(--neon-orange);
  opacity: 1;
  transform: scale(1.2);
}

/* ===== RESPONSIVE STYLES pour tablette=====*****/
/* ==================================================== */

@media screen and (min-width: 768px) and (max-width: 1224px) {
  .section-header h2 {
    font-size: 3.5rem;
  }
  /* **********************===== section hero responsive ===== ***************************************/
  .card-hero-content {
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .card-hero-content .hero-content {
    position: relative;
    top: 0px;
    width: 100%;
    z-index: 100;
  }
  .card-hero-content .image-hero {
    display: none;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content .cta-group {
    flex-direction: column;
    gap: 20px;
  }

  .hero-scroll {
    position: absolute;
    bottom: -180px;
    left: 45%;
  }

  .scroll-line {
    width: 4px;
    height: 80px;
  }
  /* **********************===== section service responsive ===== ***************************************/

  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card {
    height: 100%;
    width: 100%;
  }

  /************** ===== portfolio section design===== ******************************/

  .portfolio-grid-design {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .portfolio-section-design .portfolio-image img {
    border: solid 6px rgba(4, 4, 134, 0.224);
    border-radius: 4px;
  }
  .portfolio-grid-web {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* ===== RESPONSIVE STYLES pour mobile ===== ************************/
@media (max-width: 768px) {
  /* **********************===== section service responsive ===== ***************************************/
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card {
    height: 100%;
    width: 100%;
  }

  /************** ===== portfolio section design===== ******************************/

  .portfolio-grid-design {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .portfolio-section-design .portfolio-image img {
    border: solid 6px rgba(4, 4, 134, 0.224);
    border-radius: 4px;
  }
  .portfolio-grid-web {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 560px) {
  /* **********************===== section service responsive ===== ***************************************/
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  /****section bouton intermediaire *******/

  .bouton-intermediaire {
    padding: 40px 0;
    border-bottom: solid 10px var(--white);
  }
  .bouton-intermediaire .content-section {
    padding: 20px;
    border-left: none;
  }
  .bouton-intermediaire h2 {
    font-size: 20px;
  }
  .bouton-intermediaire p {
    font-size: 15px;
  }
  .bouton-intermediaire .faq-contact-buttons {
    margin-top: 80px;
  }
}

/* ===== SECTION RENDEZ-VOUS ===== */
.rendezvous-section {
  padding: 40px 0px;
  color: var(--white);
  background: var(--gradient-card);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.315);
  display: none;
}
.rendezvous-section .card-content {
  display: flex;
  gap: 30px;
  position: relative;
  padding: 20px;
  border-radius: 15px;
  transition: 0.3s;
  background: var(--gradient-card);
  border: 1px dashed white;
  animation: moveGradient 5s ease-in-out infinite alternate;
}
.rendezvous-section .card-content h2 {
  font-size: 40px;
}
.rendezvous-section .card-content h2 span {
  color: #ff6500;
}
.rendezvous-section .intro-text {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 30px;
}

.rendezvous-section .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.rendezvous-section .cta-buttons .btn-primary,
.rendezvous-section .cta-buttons .btn-secondary {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rendezvous-section .cta-buttons .btn-primary {
  background: var(--gradient-mix);
  border: none;
}

.rendezvous-section .cta-buttons .btn-primary:hover {
  background: var(--gradient-orange);
  transform: translateY(-3px);
  color: white;
}

.rendezvous-section .cta-buttons .btn-secondary {
  background: transparent;
  border: 2px solid #3b82f6;
  color: #3b82f6;
}

.rendezvous-section .cta-buttons .btn-secondary:hover {
  background: var(--gradient-mix);
  color: white;
  transform: translateY(-3px);
}
.rendezvous-section .revenus {
  width: 40%;
  border: 1px solid blue;
  padding: 10px;
  border-radius: 10px;
}
.rendezvous-section .revenus h3 {
  font-size: 30px;
  font-weight: 900;
  font-family: inter;
  margin-bottom: 10px;
  opacity: 0.9;
}

.rendezvous-section .revenus-montant {
  font-size: 2rem;
  font-weight: 700;
  color: #10b981; /* vert succès */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .rendezvous-section {
    padding: 30px 0px;
  }
  .rendezvous-section .card-content {
    display: flex;
    flex-direction: column;
  }
  .rendezvous-section .card-content h2 {
    font-size: 25px;
  }
  .rendezvous-section .revenus {
    width: 100%;
    border: 1px solid blue;
    padding: 10px;
  }
  .rendezvous-section .revenus h3 {
    font-size: 20px;
  }
  .rendezvous-section .intro-text {
    font-size: 1.2rem;
  }
  .rendezvous-section .cta-buttons {
    flex-direction: column;
  }
  .rendezvous-section .cta-buttons .btn-primary,
  .rendezvous-section .cta-buttons .btn-secondary {
    width: 100%;
  }
  .rendezvous-section .revenus-montant {
    font-size: 1.6rem;
  }
}
