/* ===================================
   WILKAÏ+ HOMEPAGE - MODERN UI/UX
   Utilise les couleurs officielles Wilkaï
   =================================== */

/* Variables Wilkaï : héritées de wilkai-theme.css */
 
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
 
/* Reset et base styles */
body {
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    color: var(--wilkai-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.wilkai-homepage {
  min-height: 100vh;
  position: relative;
  margin-left: 0;
  width: 100%;
  background: #f8f9fe;
}

/* ==============================================================
   ACCUEIL WILKAÏ+ — Dashboard (maquette 2026)
   ============================================================== */

.wp-home-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.wp-home-brand-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wp-home-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wp-home-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.wp-home-tagline {
  margin: 0;
  color: var(--text-secondary, #6b7280);
  font-size: 0.95rem;
}

.wp-home-greeting {
  margin: 0;
  font-weight: 700;
  color: var(--text-primary, #1f2937);
  font-size: 1rem;
  white-space: nowrap;
}

/* Hero : carrousel + recherche */
.wp-home-hero-row {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 1.25rem;
  align-items: stretch;
}

.wp-home-carousel-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: 0 14px 44px rgba(91, 15, 140, 0.22);
  background: #5b0f8c;
}

.hero-carousel-viewport {
  position: relative;
  min-height: 320px;
  height: 100%;
}

.wp-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s;
}

.wp-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.wp-hero-slide-bg,
.wp-hero-slide-overlay {
  position: absolute;
  inset: 0;
}

.wp-hero-slide-overlay {
  background: linear-gradient(105deg, rgba(45, 8, 70, 0.88) 0%, rgba(91, 15, 140, 0.55) 45%, rgba(255, 107, 74, 0.25) 100%);
  z-index: 1;
}

.wp-hero-slide-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}

.wp-hero-left-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(58%, 580px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 3.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  color: #fff;
  box-sizing: border-box;
  text-align: left;
}

.wp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.wp-hero-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.wp-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  opacity: 0.95;
}

.wp-hero-desc {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.88;
  line-height: 1.5;
  max-width: 26rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-hero-cta {
  width: fit-content;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  background: #fff;
  color: var(--wilkai-purple, #7e1dbe);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  margin: 1.15rem 0 0;
  align-self: flex-start;
}

.wp-hero-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(1.5rem, 3vw, 2.25rem) 1.15rem;
  pointer-events: none;
}

.wp-hero-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-top: 1.15rem;
}

.wp-hero-indicators {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: auto;
  flex-shrink: 0;
}

.wp-hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, width 0.2s ease;
}

.wp-hero-indicator.active {
  width: 28px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  border-color: #fff;
}

.wp-hero-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wp-hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.75);
}

.wp-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

/* Carte recherche */
.wp-home-search-card {
  background: #fff;
  border: 1px solid var(--card-border, #ebe6f2);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wp-home-search-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary, #1f2937);
  line-height: 1.3;
}

.wp-home-search-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.45;
}

.wp-home-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f3edf9;
  border: 1px solid var(--card-border, #ebe6f2);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
}

.wp-home-search-bar > .bi-search {
  color: var(--wilkai-purple, #7e1dbe);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.wp-home-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.92rem;
  min-width: 0;
  color: var(--text-primary, #1f2937);
}

.wp-home-search-submit {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--wilkai-purple, #7e1dbe);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wp-home-search-submit:hover {
  background: var(--wilkai-purple-dark, #5b0f8c);
  transform: scale(1.05);
}

.wp-home-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wp-home-search-tag {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(126, 29, 190, 0.1);
  color: var(--wilkai-purple, #7e1dbe);
  cursor: pointer;
  transition: background 0.2s ease;
}

.wp-home-search-tag:hover {
  background: rgba(126, 29, 190, 0.18);
}

/* Highlights */
.wp-home-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.wp-feature-card {
  background: #fff;
  border: 1px solid var(--card-border, #ebe6f2);
  border-radius: 24px;
  padding: 1.15rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.wp-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126, 29, 190, 0.1);
}

.wp-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.wp-feature-icon--purple {
  background: rgba(126, 29, 190, 0.12);
  color: var(--wilkai-purple, #7e1dbe);
}

.wp-feature-icon--coral {
  background: rgba(255, 107, 74, 0.12);
  color: var(--wilkai-coral, #ff6b4a);
}

.wp-feature-text {
  flex: 1;
  min-width: 0;
}

.wp-feature-text h4 {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary, #1f2937);
}

.wp-feature-text p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.35;
}

.wp-feature-arrow {
  color: #c4b8d4;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Services */
.wp-home-services {
  padding-bottom: 1rem;
}

.wp-home-services-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.wp-home-services-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #1f2937);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.wp-home-services-head h2 .bi {
  color: var(--wilkai-purple, #7e1dbe);
}

.wp-home-services-head > div > p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary, #6b7280);
}

.wp-home-services-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.wp-filter-pills .filter-pill {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--card-border, #ebe6f2);
  background: #fff;
  color: var(--text-primary, #1f2937);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wp-filter-pills .filter-pill.active {
  background: var(--wilkai-purple, #7e1dbe);
  border-color: var(--wilkai-purple, #7e1dbe);
  color: #fff;
  box-shadow: 0 4px 14px rgba(126, 29, 190, 0.3);
}

.wp-home-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
}

.wp-sort-select {
  border: 1px solid var(--card-border, #ebe6f2);
  border-radius: 12px;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  background: #fff;
  color: var(--text-primary, #1f2937);
}

.wp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.wp-service-card {
  background: #fff;
  border: 1px solid var(--card-border, #ebe6f2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.wp-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(126, 29, 190, 0.14);
}

.wp-service-visual {
  position: relative;
  height: 148px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.wp-service-visual--photo .wp-service-icon-badge {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.wp-service-icon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: var(--wilkai-purple, #7e1dbe);
  font-size: 1.15rem;
}

.wp-service-icon-badge .icon-svg,
.wp-service-icon-badge svg {
  width: 22px;
  height: 22px;
}

.wp-service-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.wp-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.wp-service-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary, #1f2937);
}

.wp-service-bookmark {
  border: none;
  background: transparent;
  color: #c4b8d4;
  padding: 0.15rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.wp-service-bookmark:hover {
  color: var(--wilkai-purple, #7e1dbe);
}

.wp-service-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.45;
  flex: 1;
}

.wp-service-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.wp-service-open {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-service-open--eats { background: linear-gradient(135deg, #ff6b4a, #e64d2e); }
.wp-service-open--musik { background: linear-gradient(135deg, #7e1dbe, #5b0f8c); }
.wp-service-open--market { background: linear-gradient(135deg, #e83e8c, #c2185b); }
.wp-service-open--education { background: linear-gradient(135deg, #5e35b1, #4527a0); }
.wp-service-open--auto { background: linear-gradient(135deg, #7e1dbe, #5b0f8c); }
.wp-service-open--immo { background: linear-gradient(135deg, #1976d2, #0d47a1); }
.wp-service-open--taxi { background: linear-gradient(135deg, #ff9800, #ef6c00); }
.wp-service-open--pay { background: linear-gradient(135deg, #00897b, #004d40); }
.wp-service-open--emploi { background: linear-gradient(135deg, #303f9f, #1a237e); }
.wp-service-open--default { background: linear-gradient(135deg, #7e1dbe, #5b0f8c); }

.wp-service-open:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.wp-home-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 24px;
  border: 1px dashed var(--card-border, #ebe6f2);
}

.wp-home-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: rgba(126, 29, 190, 0.1);
  color: var(--wilkai-purple, #7e1dbe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.wp-home-empty h3 {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.wp-home-empty p {
  margin: 0;
  color: var(--text-secondary, #6b7280);
}

@media (max-width: 1100px) {
  .wp-home-hero-row {
    grid-template-columns: 1fr;
  }

  .wp-home-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .wp-hero-left-panel {
    width: 100%;
    max-width: 100%;
  }

  .wp-hero-slide-photo {
    width: 100%;
    height: 40%;
    top: auto;
    opacity: 0.35;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .wp-home-features {
    grid-template-columns: 1fr;
  }

  .wp-home-services-toolbar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .wp-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Intégration avec le MainLayout et la navbar */
@media (min-width: 641px) {
  .wilkai-homepage .hero-section {
    margin: -2rem -2rem 0 -2rem; /* Étend le carrousel sur toute la largeur disponible */
  }
}

@media (max-width: 640px) {
  .wilkai-homepage .hero-section {
    margin: -1rem -1rem 0 -1rem; /* Mobile: étend avec moins de marge */
  }
}

/* ===================================
   HERO SECTION - CARROUSEL
   =================================== */

.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Logo flottant Wilkaï */
.wilkai-floating-logo {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--wilkai-transition-smooth);
}

.wilkai-floating-logo:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--wilkai-shadow-lg);
}

.logo-image {
  height: 50px;
  width: auto;
  position: relative;
  z-index: 2;
}

.logo-glow {
  position: absolute;
  inset: -10px;
  background: var(--wilkai-gradient-primary);
  border-radius: 50%;
  opacity: 0;
  filter: blur(20px);
  transition: var(--wilkai-transition-smooth);
}

.wilkai-floating-logo:hover .logo-glow {
  opacity: 0.3;
}

/* Carrousel principal */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 10s ease-out;
}

.hero-slide.active .slide-background {
  transform: scale(1.05);
}

.slide-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--wilkai-gradient-hero-overlay);
}

/* Contenu des slides */
.slide-content-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem;
  z-index: 10;
}

.slide-content {
  max-width: 600px;
  animation: slideInUp 0.8s ease-out 0.3s both;
}

.slide-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.slide-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Bouton d'exploration */
.btn-explore {
  position: relative;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--wilkai-transition-smooth);
  overflow: hidden;
  background: white;
  color: var(--wilkai-purple);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-explore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.95);
}

.btn-explore::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--wilkai-gradient-primary);
  transition: var(--wilkai-transition-smooth);
  z-index: -1;
}

.btn-explore:hover::before {
  left: 0;
}

.btn-explore:hover {
  color: white;
}

.btn-icon {
  transition: var(--wilkai-transition-fast);
}

.btn-explore:hover .btn-icon {
  transform: translateX(4px);
}

/* Titre de bienvenue */
.welcome-banner {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.welcome-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: white;
  line-height: 1.1;
}

.wilkai-brand {
  background: var(--wilkai-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
}

.plus-accent {
  color: var(--wilkai-coral);
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255, 107, 74, 0.6);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.welcome-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0 0 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Navigation du carrousel */
.carousel-navigation {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.carousel-indicators {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  transition: var(--wilkai-transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.indicator:hover {
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.indicator.active {
  background: white;
  border-color: white;
  width: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.indicator-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wilkai-purple);
  opacity: 0;
  transition: var(--wilkai-transition-fast);
}

.indicator.active .indicator-label {
  opacity: 1;
}

/* Boutons de navigation du carrousel côte à côte */
.carousel-standalone-nav {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.carousel-standalone-nav .carousel-nav-btn {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  border: 2px solid var(--wilkai-purple) !important;
  background: var(--wilkai-purple) !important;
  backdrop-filter: none !important;
  color: white !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--wilkai-transition-smooth) !important;
  position: relative !important;
  margin: 0 !important;
  float: none !important;
  font-weight: 500 !important;
}

/* Règle générale pour les autres boutons de carrousel */
.carousel-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--wilkai-transition-smooth);
}

.carousel-standalone-nav .carousel-nav-btn:hover {
  background: var(--wilkai-purple-dark) !important;
  border-color: var(--wilkai-purple-dark) !important;
  transform: scale(1.1) translateY(-1px) !important;
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.carousel-nav-btn:active {
  transform: scale(0.95);
}

/* ===================================
   SECTION APPLICATIONS
   =================================== */

.applications-showcase {
  padding: 4rem 0rem;
  background: linear-gradient(180deg, var(--wilkai-bg-light) 0%, var(--wilkai-bg-white) 100%);
  position: relative;
}



.showcase-container {
  max-width: 1400px;
  margin: 0 auto;
}

.showcase-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--wilkai-purple);
  margin: 0 0 1rem 0;
  position: relative;
}
/*
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0%;
  width: 60px;
  height: 3px;
  background: var(--wilkai-gradient-coral);
  border-radius: 2px;
}*/

.section-subtitle {
  font-size: 1.25rem;
  color: var(--wilkai-text-light);
  margin: 0;
}

/* Grille des applications */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.app-card {
  position: relative;
  background: var(--wilkai-bg-white);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--wilkai-transition-elastic);
  cursor: pointer;
  border: 1px solid rgba(126, 29, 190, 0.08);
}

.app-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--wilkai-shadow-xl);
}

.app-card-inner {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

.app-icon-container {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.app-icon {
  width: 80px;
  height: 80px;
  background: var(--wilkai-gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  position: relative;
  z-index: 2;
  transition: var(--wilkai-transition-smooth);
}

.app-card:hover .app-icon {
  transform: scale(1.1) rotate(5deg);
}

.icon-glow {
  position: absolute;
  inset: -20px;
  background: var(--wilkai-gradient-primary);
  border-radius: 50%;
  opacity: 0;
  filter: blur(30px);
  transition: var(--wilkai-transition-smooth);
}

.app-card:hover .icon-glow {
  opacity: 0.3;
}

.app-info {
  text-align: center;
  margin-bottom: 2rem;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wilkai-purple);
  margin: 0 0 0.75rem 0;
}

.app-description {
  color: var(--wilkai-text-light);
  margin: 0;
  line-height: 1.6;
}

.app-actions {
  display: flex;
  justify-content: center;
}

.app-cta {
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--wilkai-transition-smooth);
  position: relative;
  overflow: hidden;
}

.app-cta:hover {
  transform: translateY(-2px);
}

.app-cta:hover .btn-icon {
  transform: translateX(4px);
}

.card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--wilkai-gradient-primary);
  opacity: 0;
  transition: var(--wilkai-transition-smooth);
  pointer-events: none;
}

.app-card:hover .card-hover-overlay {
  opacity: 0.03;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
  .apps-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .slide-content-wrapper {
    padding: 3rem;
  }
  
  .slide-title {
    font-size: 2.5rem;
  }
  
  .hero-section {
    height: 65vh;
    min-height: 450px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }
  
  .wilkai-floating-logo {
    width: 60px;
    height: 60px;
    top: 1rem;
    right: 1rem;
  }
  
  .logo-image {
    height: 35px;
  }
  
  .slide-content-wrapper {
    padding: 2rem 1.5rem;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-description {
    font-size: 1rem;
  }
  
  .welcome-title {
    font-size: 2.5rem;
  }
  
  .welcome-subtitle {
    font-size: 1rem;
  }
  
  .carousel-navigation {
    bottom: 3rem;
    gap: 2rem;
  }
  
  .carousel-standalone-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .carousel-standalone-nav .carousel-nav-btn {
    width: 40px !important;
    height: 40px !important;
    position: relative !important;
    display: inline-flex !important;
    margin: 0 !important;
  }
  
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .app-card-inner {
    padding: 2rem;
  }
  
  .applications-showcase {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .slide-content-wrapper {
    padding: 1.5rem 1rem;
  }
  
  .slide-title {
    font-size: 1.75rem;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .carousel-navigation {
    bottom: 3rem;
    gap: 1.5rem;
  }
  
  .carousel-standalone-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .carousel-standalone-nav .carousel-nav-btn {
    width: 35px !important;
    height: 35px !important;
    position: relative !important;
    display: inline-flex !important;
    margin: 0 !important;
  }
  
  .app-card-inner {
    padding: 1.5rem;
  }
  
  .btn-explore,
  .app-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===================================
   FOCUS ET ACCESSIBILITÉ
   =================================== */

.app-card:focus,
.indicator:focus,
.carousel-nav-btn:focus,
.btn-explore:focus,
.app-cta:focus {
  outline: 2px solid var(--wilkai-purple);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-slide .slide-background {
    transform: none !important;
  }
  
  .plus-accent {
    animation: none !important;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  .wilkai-floating-logo,
  .carousel-navigation,
  .card-hover-overlay {
    display: none !important;
  }
  
  .hero-section {
    height: auto !important;
    min-height: auto !important;
  }
  
  .hero-slide {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* ==============================================================
   Carrousel accueil Wilkaï+ — surcharge styles legacy / Bootstrap
   ============================================================== */

.wp-home-carousel-card .wp-hero-left-panel {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
}

.wp-home-carousel-card .wp-hero-cta {
  margin: 1.15rem 0 0 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  align-self: flex-start !important;
  float: none !important;
  position: static !important;
}

.wp-home-carousel-card .wp-hero-bottom-bar {
  display: flex !important;
  justify-content: flex-end !important;
}

.wp-home-carousel-card .wp-hero-nav {
  margin-top: 1.15rem !important;
  align-self: flex-start !important;
}

.wp-home-carousel-card .wp-hero-indicators {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  justify-content: flex-end !important;
  pointer-events: auto;
}

.wp-home-carousel-card .wp-hero-nav-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  margin: 0 !important;
  position: static !important;
}

.wp-home-carousel-card .wp-hero-indicator {
  width: 10px !important;
  height: 10px !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.wp-home-carousel-card .wp-hero-indicator.active {
  width: 28px !important;
  height: 10px !important;
  border-radius: 999px !important;
}

/* ==============================================================
   ACCUEIL WILKAÏ+ — Refonte visuelle 2026-11 (surcharge les blocs précédents)
   Charte : violet #7e1dbe, violet foncé #4a0a72, magenta #c026d3, corail #ff6b4a, fond #f9f6fc
   ============================================================== */

.wilkai-homepage {
  --wp-font-display: 'Poppins', 'Inter', sans-serif;
  --wp-ink: #1f1530;
  --wp-muted: #6b6280;
  --wp-line: #ebe3f4;
  --wp-radius: 22px;
  background:
    radial-gradient(1200px 420px at 15% -120px, rgba(126, 29, 190, 0.10), transparent 70%),
    radial-gradient(900px 380px at 95% -80px, rgba(255, 107, 74, 0.08), transparent 70%),
    var(--wilkai-bg-light, #f9f6fc);
}

.wp-home-shell {
  max-width: 1320px;
  padding: clamp(1rem, 2.4vw, 2.25rem) clamp(1rem, 2.4vw, 2rem) 3rem;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

/* ---------- En-tête : salutation en titre ---------- */
.wp-home-brand-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "logo greet" "logo tag";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.1rem;
}

.wp-home-brand { display: contents; }

.wp-home-logo {
  grid-area: logo;
  width: 56px;
  height: 56px;
  padding: 6px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--wp-line);
  box-shadow: 0 6px 18px rgba(91, 15, 140, 0.10);
}

.wp-home-greeting {
  grid-area: greet;
  align-self: end;
  font-family: var(--wp-font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--wp-ink);
  white-space: normal;
}

.wp-home-tagline {
  grid-area: tag;
  align-self: start;
  font-size: 0.95rem;
  color: var(--wp-muted);
}

/* Sans salutation : le slogan prend la place du titre */
.wp-home-brand-bar:not(:has(.wp-home-greeting)) .wp-home-tagline {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--wp-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--wp-ink);
}

/* ---------- Hero ---------- */
.wp-home-hero-row {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.wp-home-carousel-card {
  border-radius: var(--wp-radius);
  min-height: 380px;
  background: #4a0a72;
  box-shadow: 0 22px 50px -18px rgba(74, 10, 114, 0.55);
}

.hero-carousel-viewport { min-height: 380px; }

/* Une seule image : quand la slide a une photo, le fond devient un dégradé net */
.wp-hero-slide:has(.wp-hero-slide-photo) .wp-hero-slide-bg {
  background: linear-gradient(120deg, #4a0a72 0%, #7e1dbe 55%, #c026d3 100%) !important;
}

.wp-hero-slide-overlay {
  background:
    radial-gradient(520px 320px at 100% 110%, rgba(255, 107, 74, 0.45), transparent 70%),
    linear-gradient(95deg, rgba(74, 10, 114, 0.92) 0%, rgba(74, 10, 114, 0.55) 42%, rgba(74, 10, 114, 0) 70%);
}

.wp-hero-slide-photo {
  width: 56%;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.85) 30%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.85) 30%, #000 60%);
}

.wp-home-carousel-card .wp-hero-left-panel {
  width: min(56%, 560px);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: 4.75rem;
}

.wp-hero-badge {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.wp-hero-badge .bi { color: #ffb4a3; }

.wp-hero-title {
  font-family: var(--wp-font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.wp-hero-subtitle {
  font-family: var(--wp-font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.wp-hero-desc { font-size: 0.95rem; opacity: 0.82; max-width: 28rem; }

/* Les enfants du panneau ne doivent pas être écrasés (la description disparaissait) */
.wp-hero-left-panel > * { flex-shrink: 0; }

.wp-home-carousel-card .wp-hero-cta {
  margin-top: 1.5rem !important;
  padding: 0.8rem 1.5rem;
  background: var(--wilkai-coral, #ff6b4a);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 26px -8px rgba(255, 107, 74, 0.75);
}

.wp-home-carousel-card .wp-hero-cta:hover {
  background: var(--wilkai-coral-dark, #e64d2e);
  box-shadow: 0 14px 30px -8px rgba(255, 107, 74, 0.85);
}

/* Flèches + puces regroupées en bas à gauche */
.wp-home-carousel-card .wp-hero-nav {
  position: absolute !important;
  left: clamp(1.75rem, 3vw, 2.75rem);
  bottom: 1.4rem;
  margin: 0 !important;
}

.wp-home-carousel-card .wp-hero-nav-btn {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(6px);
}

.wp-home-carousel-card .wp-hero-nav-btn:hover { background: rgba(255, 255, 255, 0.24) !important; }

.wp-home-carousel-card .wp-hero-bottom-bar {
  justify-content: flex-start !important;
  padding: 0 0 calc(1.4rem + 14px) calc(clamp(1.75rem, 3vw, 2.75rem) + 98px);
}

.wp-home-carousel-card .wp-hero-indicator {
  width: 8px !important;
  height: 8px !important;
  border: none;
  background: rgba(255, 255, 255, 0.45);
}

.wp-home-carousel-card .wp-hero-indicator.active {
  width: 26px !important;
  height: 8px !important;
  background: #fff;
}

/* ---------- Recherche ---------- */
.wp-home-search-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--wp-radius);
  border-color: var(--wp-line);
  padding: 1.75rem 1.5rem 1.5rem;
  gap: 1rem;
  box-shadow: 0 10px 30px -12px rgba(91, 15, 140, 0.16);
}

.wp-home-search-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #7e1dbe, #c026d3 55%, #ff6b4a);
}

.wp-home-search-card h3 {
  font-family: var(--wp-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--wp-ink);
}

.wp-home-search-lead { font-size: 0.9rem; color: var(--wp-muted); }

.wp-home-search-bar {
  background: #fff;
  border: 1.5px solid var(--wp-line);
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-home-search-bar:focus-within {
  border-color: #a144e8;
  box-shadow: 0 0 0 4px rgba(126, 29, 190, 0.12);
}

.wp-home-search-bar input { font-size: 0.95rem; padding: 0.55rem 0; }

.wp-home-search-submit {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #7e1dbe, #a144e8);
  box-shadow: 0 6px 16px -6px rgba(126, 29, 190, 0.7);
}

.wp-home-search-tags { gap: 0.5rem; }

.wp-home-search-tag {
  background: #f3edf9;
  color: #5b0f8c;
  border: 1px solid transparent;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.wp-home-search-tag:hover { background: #fff; border-color: #d9c4ee; }

/* ---------- Points forts (informatifs, non cliquables) ---------- */
.wp-home-features { gap: clamp(0.75rem, 1.2vw, 1rem); }

.wp-feature-card {
  border-radius: 18px;
  border-color: var(--wp-line);
  padding: 1rem 1.1rem;
  gap: 0.9rem;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.75);
}

.wp-feature-card:hover { transform: none; box-shadow: none; }

.wp-feature-arrow { display: none; }

.wp-feature-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 1.15rem; }

.wp-feature-text h4 {
  font-family: var(--wp-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wp-ink);
}

.wp-feature-text p { font-size: 0.8rem; color: var(--wp-muted); }

/* ---------- Services ---------- */
.wp-home-services { margin-top: 0.5rem; }

.wp-home-services-head { margin-bottom: 1.25rem; align-items: center; }

.wp-home-services-head h2 {
  font-family: var(--wp-font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wp-ink);
  gap: 0.6rem;
}

.wp-home-services-head h2 .bi {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #7e1dbe, #c026d3);
}

.wp-home-services-head > div > p { font-size: 0.9rem; color: var(--wp-muted); }

.wp-home-services-toolbar { gap: 0.75rem; }

.wp-filter-pills {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--wp-line);
  border-radius: 999px;
}

.wp-filter-pills .filter-pill {
  border: none;
  background: transparent;
  padding: 0.4rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--wp-muted);
}

.wp-filter-pills .filter-pill.active {
  background: #7e1dbe;
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(126, 29, 190, 0.6);
}

.wp-sort-select {
  border-radius: 999px;
  border-color: var(--wp-line);
  padding: 0.45rem 2rem 0.45rem 0.9rem;
}

.wp-services-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(0.9rem, 1.4vw, 1.25rem);
}

/* Couleur par module */
.wp-service-card { --mod: #7e1dbe; }
.wp-service-card--eats { --mod: #e64d2e; }
.wp-service-card--musik { --mod: #7e1dbe; }
.wp-service-card--market { --mod: #c2185b; }
.wp-service-card--education { --mod: #5e35b1; }
.wp-service-card--auto { --mod: #6a1aa6; }
.wp-service-card--immo { --mod: #1565c0; }
.wp-service-card--taxi { --mod: #ef6c00; }
.wp-service-card--pay { --mod: #00796b; }
.wp-service-card--emploi { --mod: #303f9f; }

.wp-service-card {
  border-radius: 20px;
  border-color: var(--wp-line);
  box-shadow: 0 2px 10px rgba(31, 21, 48, 0.04);
}

.wp-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -16px rgba(74, 10, 114, 0.35);
}

.wp-service-card:focus-visible {
  outline: 3px solid rgba(126, 29, 190, 0.45);
  outline-offset: 3px;
}

.wp-service-visual {
  height: 160px;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wp-service-card:hover .wp-service-visual { transform: scale(1.04); }

.wp-service-icon-badge,
.wp-service-visual--photo .wp-service-icon-badge {
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  color: var(--mod);
  backdrop-filter: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.wp-service-body { padding: 1rem 1.15rem 1.15rem; gap: 0.4rem; position: relative; background: #fff; }

.wp-service-head h3 {
  font-family: var(--wp-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wp-ink);
}

.wp-service-desc {
  font-size: 0.84rem;
  color: var(--wp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-service-open,
.wp-service-open[class*="wp-service-open--"] {
  margin-top: 0.6rem;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--mod);
  border: 1.5px solid color-mix(in srgb, var(--mod) 30%, transparent);
  font-weight: 600;
  font-size: 0.86rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-service-card:hover .wp-service-open,
.wp-service-open:hover {
  background: var(--mod);
  border-color: var(--mod);
  color: #fff;
  transform: none;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--mod) 80%, transparent);
}

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .wp-home-hero-row { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .wp-home-shell { padding: 1rem 1rem 2.5rem; gap: 1.1rem; }

  .wp-home-logo { width: 46px; height: 46px; border-radius: 14px; padding: 5px; }
  .wp-home-greeting { font-size: 1.3rem; }
  .wp-home-tagline { font-size: 0.85rem; }

  /* Hero : photo en bandeau, texte dessous */
  .wp-home-carousel-card,
  .hero-carousel-viewport { min-height: 400px; }

  .wp-hero-slide-photo {
    width: 100%;
    height: 170px;
    top: 0;
    bottom: auto;
    opacity: 1;
    mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  }

  .wp-hero-slide-overlay {
    background:
      radial-gradient(360px 240px at 100% 110%, rgba(255, 107, 74, 0.4), transparent 70%),
      linear-gradient(180deg, rgba(74, 10, 114, 0) 0%, rgba(74, 10, 114, 0.35) 30%, rgba(74, 10, 114, 0.9) 55%);
  }

  .wp-home-carousel-card .wp-hero-left-panel {
    width: 100%;
    justify-content: flex-end !important;
    padding: 1.25rem 1.25rem 4.5rem;
  }

  .wp-hero-title { font-size: 1.85rem; }
  .wp-hero-desc { font-size: 0.88rem; -webkit-line-clamp: 2; }
  .wp-home-carousel-card .wp-hero-cta { margin-top: 1rem !important; }

  .wp-home-carousel-card .wp-hero-nav { left: 1.25rem; bottom: 1.1rem; }
  .wp-home-carousel-card .wp-hero-bottom-bar { padding: 0 0 calc(1.1rem + 14px) calc(1.25rem + 98px); }

  .wp-home-search-card { padding: 1.4rem 1.15rem 1.2rem; }
  .wp-home-search-card h3 { font-size: 1.15rem; }

  /* Points forts : grille 2 × 2 compacte */
  .wp-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .wp-feature-card { flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 0.85rem; }
  .wp-feature-icon { width: 36px; height: 36px; border-radius: 11px; font-size: 1rem; }
  .wp-feature-text h4 { font-size: 0.88rem; }
  .wp-feature-text p { font-size: 0.75rem; }

  .wp-home-services-head { gap: 0.85rem; }
  .wp-home-services-toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .wp-home-sort label { display: none; }

  /* Cartes modules horizontales */
  .wp-services-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .wp-service-card { flex-direction: row; border-radius: 18px; }
  .wp-service-card:hover { transform: none; }
  .wp-service-visual { width: 108px; height: auto; min-height: 124px; flex-shrink: 0; }
  .wp-service-card:hover .wp-service-visual { transform: none; }
  .wp-service-icon-badge,
  .wp-service-visual--photo .wp-service-icon-badge { top: 10px; left: 10px; width: 32px; height: 32px; border-radius: 10px; }
  .wp-service-icon-badge svg { width: 18px; height: 18px; }
  .wp-service-body { padding: 0.8rem 0.9rem; gap: 0.25rem; min-width: 0; }
  .wp-service-head h3 { font-size: 1rem; }
  .wp-service-desc { font-size: 0.8rem; }
  .wp-service-open,
  .wp-service-open[class*="wp-service-open--"] { width: auto; align-self: flex-start; margin-top: 0.35rem; padding: 0.35rem 0.9rem; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-service-visual, .wp-service-card, .wp-hero-cta { transition: none !important; }
  .wp-service-card:hover .wp-service-visual { transform: none; }
}
