/* Nettoyage : suppression des couleurs hors charte et des classes inutiles */

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 10s linear infinite;
}

/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Couleurs */
:root {
  --mk-green: #00bf63;
  --mk-navy: #080b0a;
  --mk-lightgray: #f5f5f5;
  --mk-black: #222;
}

/* Typo */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--mk-black);
  background: var(--mk-lightgray);
}
h1, h2, h3, h4, .section-heading, nav a {
  font-family: 'Orbitron', Arial, sans-serif;
  color: var(--mk-navy);
  letter-spacing: 0.5px;
}
.section-heading {
  color: var(--mk-green);
  font-weight: 700;
}

/* Header */
header {
  background: #fff;
  border-bottom: 2px solid var(--mk-lightgray);
}
nav a {
  color: var(--mk-navy);
  transition: color 0.2s;
}
nav a:hover {
  color: var(--mk-green);
}

/* Boutons */
.btn, .carousel-btn, .fixed.bottom-5 {
  background: var(--mk-green);
  color: #fff;
  border-radius: 9999px;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,191,99,0.08);
  transition: background 0.2s;
}
.btn:hover, .carousel-btn:hover, .fixed.bottom-5:hover {
  background: #00994c;
}

/* === Cercles secteur (style de base) === */
.circle-sector {
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  font-weight: 600;
  transition: transform 0.3s ease-in-out;
}
.circle-sector:hover {
  transform: scale(1.05);
}
.circle-sector-icon {
  position: absolute;
  top: 10%;
  right: 10%;
  font-size: 1.8rem;
  color: var(--mk-green);
  animation: pulse-icons 3s infinite;
}
@keyframes pulse-icons {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* === Section background alternate === */
.bg-section-alt {
  background-color: #f0f0f0;
}

/* === Responsive utils === */
@media (max-width: 768px) {
  .circle-sector {
    width: 14rem;
    height: 14rem;
    margin: 1rem auto;
  }
  h1, h2 {
    font-size: 1.8rem;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Montserrat:wght@400;600&display=swap');

.font-orbitron {
  font-family: 'Orbitron', sans-serif;
}

#accueil .circle {
  position: relative;
  background: white;
  border-radius: 50%;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#accueil .circle-1 { border: 5px solid #00bf63; }
#accueil .circle-2 { border: 5px solid #00bf63; } /* Nettoyé : vert */
#accueil .circle-3 { border: 5px solid #080b0a; } /* Nettoyé : navy */
#accueil .circle-4 { border: 5px solid #00bf63; } /* Nettoyé : vert */

@media(min-width: 1024px) {
  #accueil .circle-1 { grid-column: 1; grid-row: 1; }
  #accueil .circle-2 { grid-column: 2; grid-row: 1; margin-left: -20%; }
  #accueil .circle-3 { grid-column: 1; grid-row: 2; margin-top: -20%; }
  #accueil .circle-4 { grid-column: 2; grid-row: 2; margin-top: -20%; margin-left: -20%; }
}
@media(max-width: 1023px) {
  #accueil .circle {
    grid-column: span 2;
    margin: 1rem auto;
  }
}

.logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: #080b0a;
}
.logo-text .accent-tech {
  color: #00bf63;
}
.logo-text .accent-innovation {
  color: #00bf63; /* Nettoyé : vert */
}
.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #080b0a;
}
.card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Montserrat', sans-serif;
}
h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
}

/* === Témoignages Carrousel === */
.temoignages-carousel-section {
  padding: 4rem 1rem;
  background-color: var(--mk-light-gray);
  text-align: center;
}
.temoignages-title {
  font-size: 2.2rem;
  font-family: 'Orbitron', sans-serif;
  color: var(--mk-black);
  margin-bottom: 2rem;
}
.carousel-container {
  position: relative;
  max-width: 650px;
  margin: auto;
  overflow: hidden;
}
.carousel-track-wrapper {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  align-items: center;
}
.carousel-slide {
  min-width: 320px;
  max-width: 350px;
  margin: 0 16px;
  opacity: 0.4;
  transform: scale(0.85);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 1;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px #0001;
  padding: 2rem 1.5rem;
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 8px 32px #0002;
}
.carousel-slide.prev,
.carousel-slide.next {
  opacity: 0.7;
  transform: scale(0.95);
  z-index: 1;
}
.temoignage-texte {
  font-style: italic;
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}
.temoignage-auteur {
  color: var(--mk-green);
  font-weight: bold;
}
.temoignage-fonction {
  font-size: 0.85rem;
  color: #888;
}
/* Flèches */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1;
  transition: background 0.3s;
}
.carousel-btn:hover {
  background: var(--mk-green);
  color: white;
}
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
@media (max-width: 640px) {
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
}
.service-pillar-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--mk-black);
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
}
.card-content {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === Section Services === */
#services {
  background: var(--mk-light-gray);
}
#services .intro-text {
  text-align: center;
  font-size: 1.125rem;
  margin-bottom: 4rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--mk-text);
}
.pilier {
  margin-bottom: 4rem;
}
.service-pillar-heading {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--mk-black);
}
.pilier-desc {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.125rem;
  color: var(--mk-text);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}
.cards-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 6px 32px rgba(8,11,10,0.07);
  border: 2px solid transparent;
  transition: border 0.2s, box-shadow 0.2s;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card:hover {
  border: 2px solid var(--mk-green);
  box-shadow: 0 12px 40px rgba(0,191,99,0.12);
}
.card-title {
  color: var(--mk-navy);
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 600;
}
.card-text {
  color: var(--mk-black);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Popups */
.card-tooltip-center {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  min-width: 280px;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  color: var(--mk-black);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,191,99,0.18);
  padding: 2rem 1.5rem;
  font-size: 1rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--mk-green);
}
.card.group:hover .card-tooltip-center,
.card.group:focus-within .card-tooltip-center {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Footer */
footer {
  background: var(--mk-navy);
  color: #fff;
}
footer a {
  color: #fff;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--mk-green);
}

/* Icônes */
.icon {
  color: var(--mk-green);
  font-size: 2rem;
}
/* .icon-alt supprimé (hors charte) */

/* Section alternance */
.section-alt {
  background: var(--mk-lightgray);
}
.section-divider {
  border-top: 2px solid #e5e5e5;
}

/* Responsive et détails */
@media (max-width: 768px) {
  .section-heading { font-size: 2rem; }
  .card { padding: 1rem; }
}
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.rotate-text-svg {
  animation: spinText 30s linear infinite;
}
@keyframes spinText {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.text-anim-wrapper {
  animation: rotateText 30s linear infinite;
}
.text-anim {
  position: absolute;
  white-space: nowrap;
  transform-origin: center;
  animation: fadeText 1s ease-in-out forwards;
}
@keyframes fadeText {
  0% { opacity: 0; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

header.scrolled {
  background-color: rgba(8, 11, 10);
  backdrop-filter: blur(8px);
}
header.smaller {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.scroll-mt-28 {
  scroll-margin-top: 7rem;
}

.zoom-on-scroll {
  transition: transform 0.4s ease;
}
[data-aos].aos-animate .zoom-on-scroll {
  transform: scale(1.1);
}
.swiper-slide {
  width: 260px;
  max-width: 80vw;
  transition: transform 0.4s ease;
  transform: scale(0.9);
  opacity: 0.5;
}
.swiper-slide-active {
  transform: scale(1.2);
  opacity: 1;
  z-index: 10;
}
.swiper-coverflow {
  padding-left: 40px;
  padding-right: 40px;
}
#notre-approche-collaborative {
  scroll-margin-top: 100px;
}


@media (max-width: 767px) {
  .cloud-pos {
    left: 20% !important;
  }
  .devops-pos {
    left: 80% !important;
  }
}

@media (max-width: 640px) {
  .cercles-mobile-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4vw;   /* Ajuste ici pour plus ou moins d'espace */
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
    justify-items: center;
    align-items: center;
  }
  .cercles-mobile-grid > a {
    width: 50vw !important;   /* Ajuste entre 40vw et 44vw pour le rendu optimal */
    height: 55vw !important;
    margin: 0 !important;
    box-sizing: border-box;
    border-radius: 50%;
    overflow: hidden;
    transform: none !important;  /* Neutralise tout translate */
    left: auto !important;       /* Neutralise tout positionnement */
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }
  .cercle-infonuagique {
    margin-top: 0 !important;  /* Si besoin, ajuste à -2vw ou -4vw pour léger effet */
  }
}


.trusted-by-block {
  margin-top: 32px;
  padding: 24px 0 0 0;
}

.trusted-by-block h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #3a3a3a;
  letter-spacing: 0.5px;
}

/* Carousel styling */
.trusted-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 32px;
  animation: scroll-logos 12s linear infinite;
}

/* Uniform logo size */
.trusted-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: grayscale(0.85);
  transition: filter 0.3s;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.03);
  flex-shrink: 0;
}

.trusted-logo:hover {
  filter: grayscale(0);
}

/* Keyframes for horizontal scrolling */
@keyframes scroll-logos {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .trusted-logo {
    width: 70px;
    height: 70px;
    padding: 5px;
  }
  .carousel-track {
    gap: 18px;
  }




#services-nav.sticky {
  position: fixed;
  top: 25%;
  left: 0;
  right: 0;
  z-index: 100; /* Mets une valeur élevée */
  width: 100%;
  margin: 0 auto;
  max-width: 100vw;
}


}