/* ===== NOUVEAUX STYLES DE BOUTONS - THÈME SITE ===== */

/* ===== STYLE 1 - CARTE FLOTTANTE ===== */
.tool-selector-grid[data-active-style="style1"] .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 28px;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tool-selector-grid[data-active-style="style1"] .tool-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.tool-selector-grid[data-active-style="style1"] .tool-card:hover {
  transform: translateY(-16px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

.tool-selector-grid[data-active-style="style1"] .tool-card:hover::before {
  transform: scaleX(1);
}

.tool-selector-grid[data-active-style="style1"] .tool-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: auto;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-selector-grid[data-active-style="style1"] .tool-card:hover .tool-card-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.tool-selector-grid[data-active-style="style1"] .tool-card-icon svg {
  stroke: #000000;
}

.tool-selector-grid[data-active-style="style1"] .tool-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 24px 0 8px 0;
}

.tool-selector-grid[data-active-style="style1"] .tool-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ===== STYLE 2 - OUTLINE ANIMÉ ===== */
.tool-selector-grid[data-active-style="style2"] .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 220px;
}

.tool-selector-grid[data-active-style="style2"] .tool-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(45deg, #ffffff, transparent, #ffffff);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 3s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tool-selector-grid[data-active-style="style2"] .tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  border-radius: 16px;
  z-index: -1;
  transition: all 0.4s ease;
}

.tool-selector-grid[data-active-style="style2"] .tool-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-8px);
}

.tool-selector-grid[data-active-style="style2"] .tool-card:hover::before {
  opacity: 1;
}

.tool-selector-grid[data-active-style="style2"] .tool-card:hover::after {
  background: rgba(15, 15, 15, 0.9);
}

.tool-selector-grid[data-active-style="style2"] .tool-card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-bottom: 24px;
  transition: all 0.4s ease;
  position: relative;
}

.tool-selector-grid[data-active-style="style2"] .tool-card:hover .tool-card-icon {
  border-color: #ffffff;
  transform: rotate(180deg);
}

.tool-selector-grid[data-active-style="style2"] .tool-card-icon svg {
  stroke: #ffffff;
}

.tool-selector-grid[data-active-style="style2"] .tool-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.tool-selector-grid[data-active-style="style2"] .tool-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ===== STYLE 3 - SPLIT REVEAL ===== */
.tool-selector-grid[data-active-style="style3"] .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 220px;
}

.tool-selector-grid[data-active-style="style3"] .tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, transparent 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 0;
}

.tool-selector-grid[data-active-style="style3"] .tool-card:hover::before {
  transform: translateX(0);
}

.tool-selector-grid[data-active-style="style3"] .tool-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.tool-selector-grid[data-active-style="style3"] .tool-card-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  margin-bottom: 24px;
  transition: all 0.6s ease;
  position: relative;
  z-index: 1;
}

.tool-selector-grid[data-active-style="style3"] .tool-card:hover .tool-card-icon {
  background: #000000;
}

.tool-selector-grid[data-active-style="style3"] .tool-card-icon svg {
  stroke: #ffffff;
  transition: all 0.6s ease;
}

.tool-selector-grid[data-active-style="style3"] .tool-card:hover .tool-card-icon svg {
  stroke: #ffffff;
}

.tool-selector-grid[data-active-style="style3"] .tool-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  position: relative;
  z-index: 1;
  transition: all 0.6s ease;
}

.tool-selector-grid[data-active-style="style3"] .tool-card:hover h3 {
  color: #000000;
}

.tool-selector-grid[data-active-style="style3"] .tool-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  position: relative;
  z-index: 1;
  transition: all 0.6s ease;
}

.tool-selector-grid[data-active-style="style3"] .tool-card:hover p {
  color: rgba(0, 0, 0, 0.6);
}

/* ===== STYLE 4 - CORNER ACCENT ===== */
.tool-selector-grid[data-active-style="style4"] .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 220px;
}

.tool-selector-grid[data-active-style="style4"] .tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  transition: all 0.4s ease;
}

.tool-selector-grid[data-active-style="style4"] .tool-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-bottom: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
  transition: all 0.4s ease;
}

.tool-selector-grid[data-active-style="style4"] .tool-card:hover {
  background: rgba(20, 20, 20, 0.95);
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.tool-selector-grid[data-active-style="style4"] .tool-card:hover::before {
  width: 100%;
  height: 100%;
}

.tool-selector-grid[data-active-style="style4"] .tool-card:hover::after {
  width: 100%;
  height: 100%;
}

.tool-selector-grid[data-active-style="style4"] .tool-card-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 24px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.tool-selector-grid[data-active-style="style4"] .tool-card:hover .tool-card-icon {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.tool-selector-grid[data-active-style="style4"] .tool-card-icon svg {
  stroke: #ffffff;
}

.tool-selector-grid[data-active-style="style4"] .tool-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px 0;
  position: relative;
  z-index: 1;
}

.tool-selector-grid[data-active-style="style4"] .tool-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ===== STYLE 5 - DOUBLE BORDER ===== */
.tool-selector-grid[data-active-style="style5"] .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: visible;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 220px;
}

.tool-selector-grid[data-active-style="style5"] .tool-card::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transition: all 0.4s ease;
}

.tool-selector-grid[data-active-style="style5"] .tool-card::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  transition: all 0.4s ease;
}

.tool-selector-grid[data-active-style="style5"] .tool-card:hover {
  background: #0f0f0f;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.tool-selector-grid[data-active-style="style5"] .tool-card:hover::before {
  border-color: rgba(255, 255, 255, 0.15);
  inset: -8px;
}

.tool-selector-grid[data-active-style="style5"] .tool-card:hover::after {
  border-color: rgba(255, 255, 255, 0.08);
  inset: -16px;
}

.tool-selector-grid[data-active-style="style5"] .tool-card-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin-bottom: 24px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.tool-selector-grid[data-active-style="style5"] .tool-card:hover .tool-card-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.tool-selector-grid[data-active-style="style5"] .tool-card-icon svg {
  stroke: #ffffff;
}

.tool-selector-grid[data-active-style="style5"] .tool-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px 0;
  position: relative;
  z-index: 1;
}

.tool-selector-grid[data-active-style="style5"] .tool-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ===== NOUVEAU LAYOUT CENTRÉ AVEC SIDEBAR CACHÉE ===== */

/* Cacher la sidebar */
.modern-sidebar {
  display: none !important;
}

/* Forcer le main-content à ne pas avoir de margin */
.main-content {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

/* Centrer le contenu principal */
.centered-search-layout {
  margin: 0 auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 100px 40px 40px;
  max-width: 100%;
  width: 100%;
}

/* Centrer les résultats */
#heroResults,
.hero-result {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 auto !important;
}

.results-stats-card {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Masonry 3 colonnes style OSINT */
.apple-results-container {
  column-count: 3 !important;
  column-gap: 12px !important;
  overflow-x: hidden !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px 40px !important;
}

.apple-results-container > .result-bubble-draggable {
  display: inline-block !important;
  width: 100% !important;
  margin-bottom: 12px !important;
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
}
