body {
  font-family: "Times New Roman", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8fafc;
}

/* Cache l'iframe et toute trace de la barre de traduction */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-menu-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Empêche le décalage forcé du body */
body {
    top: 0 !important;
    position: static !important;
}

/* Supprime la barre d'outils Google si elle s'injecte en haut de l'HTML */
html {
    margin-top: 0 !important;
}

/* Style pour le contenu des étapes */
.step-content img,
.step-content video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.step-content img:hover,
.step-content video:hover {
  transform: scale(1.01);
}

.step-content pre {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step-content code {
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 0.875rem;
}

.step-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-content th,
.step-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  text-align: left;
}

.step-content th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #374151;
}

.step-content tr:hover {
  background-color: #f9fafb;
}

.step-content ul,
.step-content ol {
  padding-left: 1.75rem;
  margin: 0.75rem 0;
}

.step-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.step-content li::marker {
  color: #3b82f6;
}

/* Cartes et animations */
.step-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.step-card:hover {
  border-left-color: #3b82f6;
  transform: translateX(4px);
}

.category-card, 
.article-card,
.article-link {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-width: 2px;
}

.category-card:hover, 
.article-card:hover {
  transform: translateY(-4px);
}

.article-link:hover {
  transform: translateX(4px);
  border-color: #3b82f6;
}

/* Boutons */
.btn-hover-effect {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

/* Barre de recherche */
#search {
  border-width: 2px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#search:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Suggestions de recherche */
#suggestions {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
}

/* Boutons de navigation */
#back-to-categories button,
#back-to-home {
  transition: all 0.2s ease;
}

#back-to-categories button:hover,
#back-to-home:hover {
  transform: translateX(-4px);
}

/* Catégories et articles */
.category-section {
  transition: opacity 0.3s ease;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Scroll smooth */
html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 640px) {
  .step-content img,
  .step-content video {
    border-radius: 8px;
  }
  
  .step-content pre {
    padding: 1rem;
    font-size: 0.85rem;
  }
  
  .step-content table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .step-content img,
  .step-content video {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  .step-content pre {
    page-break-inside: avoid;
    background: #f5f5f5 !important;
    color: #333 !important;
  }
}

/* --- LECTURE ET ESPACEMENT --- */
.plesk-content-wrapper {
    line-height: 1.8 !important;
    color: #374151; /* Un gris foncé plus doux que le noir pur */
    font-size: 16px;
}

.document p {
    margin-bottom: 1.5rem !important;
}

/* --- RÉPARATION DES LISTES (PUCES ET NUMÉROS) --- */
.document ul {
    list-style-type: disc !important;
    margin: 1.5rem 0 1.5rem 1.5rem !important;
    padding-left: 1rem !important;
}

.document ol {
    list-style-type: decimal !important;
    margin: 1.5rem 0 1.5rem 1.5rem !important;
    padding-left: 1rem !important;
}

.document li {
    margin-bottom: 0.75rem !important;
    display: list-item !important; /* Force l'affichage du point/numéro */
}

/* Listes imbriquées (listes dans des listes) */
.document li > ul, .document li > ol {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* --- STYLE DES BLOCS DE NOTES / ADMONITIONS --- */
.admonition, .note, .tip, .important, .warning, .remark {
    margin: 2rem 0 !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 12px !important;
    border-left: 6px solid !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Note standard (Bleu TDS) */
.admonition.note, .note, .remark {
    background-color: #eff6ff !important;
    border-left-color: #267bf1 !important;
}

/* Astuces (Vert) */
.admonition.tip, .tip {
    background-color: #f0fdf4 !important;
    border-left-color: #22c55e !important;
}

/* Attention / Important (Orange) */
.admonition.warning, .warning, .important {
    background-color: #fffbeb !important;
    border-left-color: #f59e0b !important;
}

/* Style des titres à l'intérieur des notes */
.admonition-title, .title {
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* --- LIENS ET ÉLÉMENTS REMARQUABLES --- */
.document a {
    color: #267bf1 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    text-underline-offset: 3px;
}

.document a:hover {
    color: #1e40af !important;
    text-decoration-thickness: 2px;
}

/* Mise en évidence des touches de clavier ou boutons cités */
.document .guilabel, .document .menuselection {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    font-weight: 600;
    font-size: 0.9em;
}