@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:        #0b0f1a;
  --bg-2:      #0f1424;
  --bg-card:   #131828;
  --bg-card-2: #161d30;
  --border:    rgba(255,255,255,.07);
  --border-h:  rgba(83,145,255,.35);
  --blue:      #1563a1;
  --blue-b:    #1e7ece;
  --accent:    #4f9cf9;
  --accent-l:  rgba(79,156,249,.15);
  --white:     #ffffff;
  --text:      #e2e8f4;
  --text-2:    #8896b3;
  --text-3:    #556080;
  --font:      'Outfit', sans-serif;
  --font-b:    'Inter', sans-serif;
  --radius:    12px;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  margin: 0;
  padding: 86px 6% 4rem;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font); color: var(--white); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.9rem; margin: 1.2rem 0 .8rem; }
h2 { font-size: 1.4rem; margin: 1.2rem 0 .7rem; }
h3 { font-size: 1.1rem; margin: 1rem 0 .5rem; }

p { color: var(--text-2); }

/* Les editeurs TinyMCE (mode inline) vivent directement dans la page depuis le
   passage necessaire a la compatibilite Antidote -- sans ceci, la regle "p"
   ci-dessus rend le texte tape pale au lieu de la couleur voulue par l'editeur. */
.mce-content-body p, .mce-content-body li { color: inherit; }

/* Coins carres pour la barre d'outils TinyMCE (par defaut arrondie par le skin) --
   pour un raccord net avec le champ de texte juste en dessous. */
.tox-tinymce, .tox-editor-header { border-radius: 0 !important; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1rem 0;
}
th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: .9rem;
  color: var(--text);
}
th { color: var(--text-2); font-family: var(--font); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; background: var(--bg-card-2); }
tr:last-child td { border-bottom: none; }

form { margin-bottom: 1rem; }
label { font-family: var(--font); font-size: .82rem; font-weight: 600; color: var(--text-2); display: inline-block; margin-bottom: .3rem; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], input[type=url], input[type=date], textarea, select {
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .6rem .9rem;
  color: var(--white);
  font-family: var(--font-b);
  font-size: .9rem;
  margin: 4px 0;
  width: 100%;
  max-width: 420px;
}
input[type=checkbox] { margin-right: 6px; width: auto; }
textarea { min-height: 100px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; background: rgba(79,156,249,.04); }

button, input[type=submit] {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: .65rem 1.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(21,99,161,.35);
}
button:hover, input[type=submit]:hover { background: var(--blue-b); }

.file-upload { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; min-width: 0; margin: 4px 0; }
.file-upload input[type="file"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.file-upload-btn {
  display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
  background: var(--blue); color: var(--white); border: none;
  border-radius: 8px; padding: .6rem 1.2rem;
  font-family: var(--font); font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: background .2s; box-shadow: none;
}
.file-upload-btn:hover { background: var(--blue-b); }
.file-upload-name { font-size: .85rem; color: var(--text-2); min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

ul, ol { color: var(--text); padding-left: 1.3rem; }
li { margin-bottom: .4rem; }

blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-l);
  padding: .8rem 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

div[style*="border:1px solid #ccc"],
div[style*="border: 1px solid #ccc"] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

/* ── Harmonisation des pages Breeze (Tailwind) : dashboard, profil ── */
.bg-gray-100 { background: var(--bg) !important; }
.bg-white { background: var(--bg-card) !important; }
.shadow, .shadow-sm, .shadow-md { box-shadow: none !important; border-bottom: 1px solid var(--border); }
.text-gray-900, .text-gray-800 { color: var(--text) !important; }
.text-gray-600, .text-gray-500, .text-gray-400 { color: var(--text-2) !important; }
.border-gray-200, .divide-gray-200 { border-color: var(--border) !important; }
input.border-gray-300 { background: rgba(255,255,255,.04) !important; border-color: var(--border) !important; color: var(--white) !important; }

/* ── Grille de cartes (documentation façon Freshdesk/Zoho) ── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0 2rem;
}
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-decoration: none;
  display: block;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.doc-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  text-decoration: none;
}
.doc-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-l); border: 1px solid rgba(79,156,249,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.doc-card h3 { margin: 0 0 .3rem; font-size: 1.02rem; color: var(--white); }
.doc-card p { margin: 0; font-size: .8rem; color: var(--text-3); }

/* ── Bandeau de recherche (accueil documentation) ── */
.doc-hero {
  background: linear-gradient(135deg, rgba(21,99,161,.25) 0%, rgba(79,156,249,.08) 100%);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  padding: 2.8rem 2rem;
  text-align: center;
  margin: 1.5rem 0 2rem;
}
.doc-hero h1 { margin-top: 0; }
.doc-hero p { max-width: 480px; margin: 0 auto; }
.doc-search { display: flex; justify-content: center; max-width: 480px; margin: 1.4rem auto 0; }
.doc-search input { max-width: none; flex: 1; border-radius: 8px 0 0 8px; margin: 0; }
.doc-search button { border-radius: 0 8px 8px 0; box-shadow: none; }

.doc-badge {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  margin-bottom: 1rem;
}

.doc-article-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.doc-article-list li {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: .75rem 1.1rem; margin-bottom: .5rem;
  transition: border-color .2s;
}
.doc-article-list li:hover { border-color: var(--border-h); }
.doc-article-list a { color: var(--text); display: block; }
.doc-article-list a:hover { color: var(--accent); text-decoration: none; }

select option {
  background: var(--bg-card-2);
  color: var(--white);
}



.msg-body { max-width: 100%; overflow-x: auto; overflow-wrap: break-word; }
.msg-body p { margin: 0.25em 0; }
.msg-body div { margin: 0; }
.msg-body table { border-collapse: collapse; max-width: 100%; width: 100%; box-sizing: border-box; }
.msg-body td, .msg-body th { padding: 2px 4px; }
.msg-body table table { margin: 0; }
.msg-body img { max-width: 100%; height: auto; }
.msg-body p.readable-p { margin: 0 0 0.9em; }
.msg-body p.readable-p:last-child { margin-bottom: 0; }
.msg-body .ticket-forwarded-details { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 8px 10px; background: rgba(255,255,255,.02); }
.msg-body .ticket-forwarded-details summary { cursor: pointer; color: #8896b3; font-size: .85rem; user-select: none; }
.msg-body .ticket-forwarded-details[open] summary { margin-bottom: 8px; }
.msg-body .ticket-forwarded-content { font-size: .9rem; }
.msg-body table.device-summary-table { width: 100%; margin-bottom: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; border-collapse: separate; overflow: hidden; }
.msg-body table.device-summary-table th { background: rgba(255,255,255,.06); text-align: left; padding: 6px 10px; font-size: .85rem; }
.msg-body table.device-summary-table td { padding: 6px 10px; border-top: 1px solid rgba(255,255,255,.06); font-size: .85rem; }
