* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  background: #ebebeb;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

.mosaic-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.mosaic-container h1 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 2.2rem !important;
  text-align: center;
}

.mosaic-container .descriptif {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 200px);
  gap: 12px;
  margin-bottom: 40px;
}

/* Disposition en mosaïque avec tailles variées */
.service-card.analysis {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.service-card.design {
  grid-column: 2 / 3;
  grid-row: 2 / 3.5;
}

.desktop-mockup {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

.service-card.development {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
}

.service-card.seo {
  grid-column: 2 / 3;
  grid-row: 4 / 5;
}

.service-card.maintenance {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}

.service-card.cms {
  grid-column: 4 / 5;
  grid-row: 3 / 5;
}

.mobile-mockup {
  grid-column: 1 / 2;
  grid-row: 2 / 5;
}

.service-card {
  padding: 14px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, background-color 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backface-visibility: hidden;
  opacity: 1;
  border-radius: 6px;
}

.image-card {
  transition: none;
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.service-card.analysis {
  background: #f39200;
  color: #2c2c2c;
  border: 4px solid #f5f5f5;
}

.service-card.design {
  background: #f39200;
  color: #2c2c2c;
  border: 4px solid #f5f5f5;
}

.service-card.development {
  background: #f39200;
  color: #2c2c2c;
  border: 4px solid #f5f5f5;
}

.service-card.seo {
  background: #95c11f;
  color: #2c2c2c;
  border: 4px solid #f5f5f5;
}

.service-card.maintenance {
  background: #f39200;
  color: #2c2c2c;
  border: 4px solid #f5f5f5;
}

.service-card.cms {
  background: #f5f5f5;
  color: #2c2c2c;
  border: 4px solid #f39200;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  animation-delay: 1s;
}

.service-card {
  display: flex;
  flex-direction: column;
}

/* Icônes pour tous les blocs */
.service-card .icon {
  color: rgba(44, 44, 44, 0.9);
}

.service-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.icon {
  font-size: 1.5rem;
  margin-right: 10px;
  margin-bottom: 0;
  opacity: 0.95;
  flex-shrink: 0;
}

.service-card h2 {
  font-family: "Raleway", sans-serif;
  font-size: 1.2rem !important;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.3;
  flex: 1;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 5px;
}

.text-list {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  padding-left: 11px;
}

.text-list li {
  margin-bottom: 4px;
}

.text-list li:last-child {
  margin-bottom: 0;
}

/* Styles pour les mockups */
.image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
}

.device-frame {
  position: relative;
  margin-bottom: 10px;
}

.device-frame.desktop {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f5f5f5;
  padding: 6px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.device-frame.mobile {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #f5f5f5;
  padding: 12px 6px;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.screen {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
}

.mobile .screen {
  border-radius: 15px;
}

/* Barre de navigateur desktop */
.browser-bar {
  height: 25px;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #ddd;
}

.browser-dots {
  display: flex;
  gap: 5px;
  margin-right: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27ca3f;
}

.address-bar {
  background: #f5f5f5;
  padding: 2px 8px;
  font-size: 0.7rem;
  color: #666;
  border: 1px solid #ddd;
  flex: 1;
}

/* Contenu du site desktop */
.website-preview {
  padding: 0;
  height: calc(100% - 25px);
  background-image: url("/squelettes/img/amap.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header-line {
  display: none;
}

.content-lines {
  display: none;
}

.content-lines .line {
  height: 4px;
  background: #ecf0f1;
  margin-bottom: 8px;
}

.line.short {
  width: 40%;
}
.line.medium {
  width: 70%;
}

/* Status bar mobile */
.status-bar {
  height: 20px;
  background: #2c3e50;
  color: #f5f5f5;
  font-size: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.signal-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.signal-bars span {
  width: 3px;
  height: 4px;
  background: #f5f5f5;
}

.signal-bars span:nth-child(2) {
  height: 6px;
}
.signal-bars span:nth-child(3) {
  height: 8px;
}

/* Contenu mobile */
.website-preview.mobile {
  padding: 0;
  height: calc(100% - 20px);
  background-image: url("/squelettes/img/amap.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mobile-header {
  display: none;
}

.mobile-content {
  display: none;
}

.mobile-block {
  height: 25px;
  background: #ecf0f1;
}

.mobile-block.short {
  height: 15px;
  width: 60%;
}

/* Footer */

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animation delays pour les image-card */
.desktop-mockup {
  animation-delay: 0.2s;
}

.mobile-mockup {
  animation-delay: 0.4s;
}

/* Effets de rotation au survol */
/* .service-card.analysis:hover {
  transform: rotate(5deg);
  background: #f39200;
}

.service-card.design:hover {
  transform: rotate(-5deg);
  background: #f39200;
}

.service-card.development:hover {
  transform: rotate(5deg);
  background: #f39200;
}

.service-card.maintenance:hover {
  transform: rotate(-5deg);
  background: #f39200;
}

.service-card.seo:hover {
  transform: rotate(5deg);
  background: #7ba016;
} */

/* Styles pour la liste des CMS */
.cms-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cms-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.cms-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 58px;
}

.cms-logo-container i {
  font-size: 2rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 5px;
}

.cms-logo-container .fa-wordpress {
  color: black;
}

.cms-logo-container .fa-drupal {
  color: #0678be;
}

.cms-logo-container .spip-logo {
  width: 32px;
  height: 32px;
  opacity: 0.9;
  object-fit: contain;
  margin-bottom: 5px;
}

.cms-name {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.95;
}

.cms-description {
  font-size: 0.75rem;
  line-height: 1.3;
  flex: 1;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 180px);
  }

  .service-card.analysis {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .service-card.design {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .desktop-mockup {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

  .service-card.development {
    grid-column: 2 / 3;
    grid-row: 5 / 6;
  }

  .service-card.seo {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .service-card.maintenance {
    grid-column: 3 / 4;
    grid-row: 3 / 5;
  }

  .service-card.cms {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
  }

  .mobile-mockup {
    grid-column: 1 / 2;
    grid-row: 2 / 5;
  }
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2.2rem;
  }

  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 160px);
    gap: 10px;
  }

  .service-card.analysis {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .service-card.design {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .desktop-mockup {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
  }

  .service-card.development {
    grid-column: 1 / 3;
    grid-row: 6 / 7;
  }

  .service-card.seo {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
  }

  .service-card.maintenance {
    grid-column: 2 / 3;
    grid-row: 4 / 6;
  }

  .service-card.cms {
    grid-column: 1 / 2;
    grid-row: 5 / 6;
  }

  .mobile-mockup {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .service-card {
    padding: 18px;
  }

  .image-card {
    padding: 0;
  }

  .device-frame.desktop {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .device-frame.mobile {
    width: 80%;
    aspect-ratio: 9 / 19.5;
  }
}

@media (max-width: 480px) {
  .mosaic-container {
    padding: 15px;
  }

  .mosaic-container .descriptif {
    font-size: 1.15rem;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }

  .service-card.analysis,
  .service-card.design,
  .desktop-mockup,
  .service-card.development,
  .service-card.seo,
  .service-card.maintenance,
  .service-card.cms,
  .mobile-mockup {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .service-card h2 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }
}
