@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');
/* DataSAI - Cartes experts v3, version premium claire : papier ivoire, un seul accent or, nom en serif,
   fonction en petites capitales, bio d'une phrase, « Ce que X vous apporte » en citation, deux repères.
   Balisage : experts_v3.py. */
.x3-grille { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 0; }
.x3-grille > .x3 { flex: 0 1 calc((100% - 44px) / 3); min-width: 0; }
@media (max-width: 1000px) { .x3-grille > .x3 { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .x3-grille > .x3 { flex-basis: 100%; } }

.x3 { --or: #c9a86a; --bronze: #9a6a31; --encre: #0b1426; position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 30px 28px 24px; border-radius: 22px; text-align: center;
  background: radial-gradient(100% 60% at 50% 0%, #fbf3e2 0%, rgba(251,243,226,0) 70%), #fffdf8;
  border: 1px solid #eadfc6; box-shadow: 0 1px 0 #fff inset, 0 18px 40px -22px rgba(60,42,12,.28);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, border-color .5s; }
.x3::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--or), transparent); }
.x3:hover { transform: translateY(-6px); border-color: #dcc79b; box-shadow: 0 1px 0 #fff inset, 0 30px 56px -26px rgba(60,42,12,.38); }

.x3-tete { display: flex; flex-direction: column; align-items: center; }
.x3-photo { flex: none; width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 18px;
  box-shadow: 0 0 0 4px #fffdf8, 0 0 0 5px var(--or), 0 14px 28px rgba(60,42,12,.25); }
.x3-initiales { display: grid; place-items: center; font-family: 'Instrument Serif', Georgia, serif; font-size: 36px; color: #fffdf8;
  background: linear-gradient(160deg, #d8ad5a, #a87727); }
.x3-nom { margin: 0 0 10px; font-family: 'Instrument Serif', Georgia, serif !important; font-weight: 400; font-size: 29px; line-height: 1.08; color: var(--encre) !important; }
.x3-nom em { font-style: italic; color: var(--bronze) !important; -webkit-text-fill-color: var(--bronze) !important; background: none !important; animation: none !important; }
.x3-fonction { margin: 0; font: 600 11px/1.5 'IBM Plex Mono', monospace; letter-spacing: .13em; text-transform: uppercase; color: var(--bronze); }
.x3-lieu { display: block; margin-top: 5px; font: 400 13px/1.4 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #7a7f8c; }

.x3-bio { position: relative; margin: 20px 0 0; padding-top: 20px; font-size: 15px; line-height: 1.65; color: #3a4252; }
.x3-bio::before { content: ""; position: absolute; left: 50%; top: 0; width: 40px; height: 1px; margin-left: -20px; background: var(--or); }

.x3-apport { margin: 18px 0 0; padding: 16px 18px; border-radius: 16px; background: rgba(201,168,106,.09); border: 1px solid rgba(201,168,106,.22); }
.x3-apport span { display: block; margin-bottom: 6px; font: 600 10.5px 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.x3-apport p { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.36; color: var(--encre); }

.x3-reperes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: auto 0 0; padding: 18px 0 0; list-style: none; }
.x3-reperes li { padding: 6px 12px; border-radius: 999px; border: 1px solid #e3d3ad; background: #fff;
  font: 500 11.5px/1.2 'IBM Plex Mono', monospace; color: #5a4a2c; }

@media (max-width: 640px) {
  .x3 { padding: 26px 20px 22px; }
  .x3-photo { width: 90px; height: 90px; }
  .x3-nom { font-size: 26px; }
  .x3-apport p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .x3 { transition: none; } }

/* Polices verrouillées : certaines pages (Dubaï, Afrique) imposent Inter et Manrope à tous les textes */
html body .x3 .x3-nom, html body .x3 .x3-nom em { font-family: 'Instrument Serif', Georgia, serif !important; font-weight: 400 !important; }
html body .x3 .x3-apport p { font-family: 'Instrument Serif', Georgia, serif !important; font-style: italic !important; font-weight: 400 !important; }
html body .x3 .x3-fonction, html body .x3 .x3-apport span, html body .x3 .x3-reperes li, html body .x3 .x3-initiales { font-family: 'IBM Plex Mono', ui-monospace, monospace !important; }
html body .x3 .x3-initiales { font-family: 'Instrument Serif', Georgia, serif !important; }
html body .x3 .x3-lieu, html body .x3 .x3-bio { font-family: Inter, system-ui, sans-serif !important; }

/* Variante sombre (grille .x3-sombre) : carte de nuit, accent champagne */
html body .x3-sombre .x3 { color: #e8edf6; border-color: rgba(231,217,182,.2);
  background: radial-gradient(90% 55% at 50% 0%, rgba(231,217,182,.14), transparent 70%), linear-gradient(170deg, #16233f 0%, #0d1730 55%, #080d1c 100%);
  box-shadow: 0 30px 60px -28px rgba(8,13,28,.55); }
html body .x3-sombre .x3:hover { border-color: rgba(231,217,182,.45); box-shadow: 0 40px 70px -30px rgba(8,13,28,.65); }
html body .x3-sombre .x3::before { background: linear-gradient(90deg, transparent, #c9a86a, transparent); height: 1px; }
html body .x3-sombre .x3-photo { box-shadow: 0 0 0 4px #0f1a33, 0 0 0 5px rgba(231,217,182,.75), 0 18px 34px rgba(0,0,0,.45); }
html body .x3-sombre .x3-nom { color: #fff !important; }
html body .x3-sombre .x3-nom em { color: #e7d9b6 !important; -webkit-text-fill-color: #e7d9b6 !important; }
html body .x3-sombre .x3-fonction { color: #e7d9b6; }
html body .x3-sombre .x3-lieu { color: rgba(232,237,246,.55); }
html body .x3-sombre .x3-bio { color: rgba(232,237,246,.82); }
html body .x3-sombre .x3-bio::before { background: #c9a86a; }
html body .x3-sombre .x3-apport { background: rgba(231,217,182,.06); border-color: rgba(231,217,182,.2); }
html body .x3-sombre .x3-apport span { color: rgba(231,217,182,.8); }
html body .x3-sombre .x3-apport p { color: #fff; }
html body .x3-sombre .x3-reperes li { background: rgba(231,217,182,.05); border-color: rgba(231,217,182,.28); color: rgba(232,237,246,.85); }

/* En-tête renforcé de la grille (bootcamps) : petite ligne dorée, titre en serif, phrase de sélection, nombre en grand */
html body .xp-entete.x3-entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 54px 0 26px; padding-bottom: 22px; border-bottom: 1px solid #e3d3ad; }
html body .xp-entete.x3-entete::after { display: none; }
html body .x3-entete .x3-kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12px 'IBM Plex Mono', monospace !important; letter-spacing: .14em; text-transform: uppercase; color: #9a6a31; }
html body .x3-entete .x3-kicker::before { content: ""; width: 26px; height: 1px; background: #c9a86a; }
html body .x3-entete .x3-titre { margin: 10px 0 8px; font-family: 'Instrument Serif', Georgia, serif !important; font-weight: 400 !important; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; color: #0b1426 !important; letter-spacing: -.01em; }
html body .x3-entete .x3-titre em { font-style: italic; color: #9a6a31 !important; -webkit-text-fill-color: #9a6a31 !important; background: none !important; animation: none !important; }
html body .x3-entete .x3-sous { margin: 0; max-width: 560px; font: 400 15.5px/1.6 Inter, system-ui, sans-serif !important; color: #5b6475; }
html body .xp-entete.x3-entete > b { flex: none; font-family: 'Instrument Serif', Georgia, serif !important; font-weight: 400; font-size: clamp(64px, 7vw, 96px); line-height: .85; color: #c9a86a; }
@media (max-width: 640px) {
  html body .xp-entete.x3-entete { margin: 40px 0 20px; padding-bottom: 18px; gap: 14px; }
  html body .xp-entete.x3-entete > b { font-size: 56px; }
}
