/* ==========================================================================
   BNTIC Sujets de mémoire
   Identité : encre profonde (savoir), ambre (énergie), turquoise (numérique).
   Tout passe par des variables : le thème sombre du site les redéfinit.
   ========================================================================== */
.sm {
  --sm-encre: #0F1B33;
  --sm-encre-2: #24324F;
  --sm-texte: #1A2236;
  --sm-texte-2: #4A5468;
  --sm-discret: #6B7488;
  --sm-fond: #F6F7FA;
  --sm-surface: #FFFFFF;
  --sm-surface-2: #F1F3F8;
  --sm-ligne: #E1E5EE;
  --sm-ligne-forte: #C9D0DE;
  --sm-ambre: #B86E00;
  --sm-ambre-vif: #F2A93B;
  --sm-ambre-voile: #FFF4E0;
  --sm-turquoise: #0E7C86;
  --sm-turquoise-voile: #E3F4F5;
  --sm-ok: #1F7A4D;
  /* Graphiques : trois emplacements catégoriels validés ensemble (clair). */
  --sm-serie-licence: #2a78d6;
  --sm-serie-master: #eb6834;
  --sm-serie-doctorat: #1baf7a;
  --sm-barre: #2a78d6;
  --sm-graph-surface: #fcfcfb;
  --sm-repere: #2a78d6;
  --sm-focus: #eb6834;
  --sm-r: 16px;
  --sm-r-lg: 24px;
  --sm-ombre: 0 1px 2px rgba(15, 27, 51, .05), 0 6px 18px -8px rgba(15, 27, 51, .12);
  --sm-ombre-haute: 0 24px 50px -24px rgba(15, 27, 51, .45);
  --sm-titre: var(--font-display, "Playfair Display", Georgia, serif);
  --sm-police: var(--font-sans, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--sm-texte);
  font-family: var(--sm-police);
}
[data-bs-theme="dark"] .sm {
  --sm-texte: #E8ECF4;
  --sm-texte-2: #B8C0D0;
  --sm-discret: #98A1B4;
  --sm-fond: #0E1424;
  --sm-surface: #151D31;
  --sm-surface-2: #1B2540;
  --sm-ligne: #27324D;
  --sm-ligne-forte: #34416A;
  --sm-ambre: #F2B45A;
  --sm-ambre-voile: #2A2312;
  --sm-turquoise: #4CC3CB;
  --sm-turquoise-voile: #10292E;
  --sm-ok: #4FC48A;
  --sm-serie-licence: #3987e5;
  --sm-serie-master: #d95926;
  --sm-serie-doctorat: #199e70;
  --sm-barre: #3987e5;
  --sm-graph-surface: #1a1a19;
  --sm-repere: #3987e5;
  --sm-focus: #d95926;
}

.sm a { color: var(--sm-turquoise); }
.sm h1, .sm h2, .sm h3 { color: var(--sm-texte); }
.sm-section { margin: clamp(2.2rem, 5vw, 3.6rem) 0 0; }
.sm-surtitre { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .5rem;
  color: var(--sm-ambre); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sm-titre-section { font-family: var(--sm-titre); font-weight: 800; font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.2; margin: 0 0 .6rem; }
.sm-intro { max-width: 760px; color: var(--sm-texte-2); font-size: 1.04rem; line-height: 1.65; margin: 0 0 1.4rem; }
.sm-note { color: var(--sm-discret); font-size: .86rem; line-height: 1.55; }
.sm-carte { background: var(--sm-surface); border: 1px solid var(--sm-ligne); border-radius: var(--sm-r);
  box-shadow: var(--sm-ombre); }

/* Fil d'Ariane */
.sm-ariane ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 1rem; padding: 0;
  font-size: .84rem; color: var(--sm-discret); }
.sm-ariane li + li::before { content: "›"; margin-right: .35rem; }
.sm-ariane a { color: var(--sm-discret); text-decoration: none; }
.sm-ariane a:hover { color: var(--sm-turquoise); }

/* ---------------------------------------------------------------- en-tête */
.sm-hero { position: relative; overflow: hidden; padding: clamp(1.8rem, 5vw, 3.4rem);
  border-radius: var(--sm-r-lg); color: #FFFFFF;
  background:
    radial-gradient(1200px 400px at 110% -10%, rgba(242, 169, 59, .32), transparent 60%),
    radial-gradient(900px 420px at -20% 120%, rgba(14, 124, 134, .45), transparent 60%),
    linear-gradient(135deg, #0F1B33 0%, #172A4F 55%, #0F2F3D 100%);
  box-shadow: var(--sm-ombre-haute); }
.sm-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.sm-hero > * { position: relative; z-index: 1; }
.sm-hero h1 { color: #FFFFFF; font-family: var(--sm-titre); font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.1; margin: .2rem 0 .8rem; max-width: 22ch; }
.sm-hero__lead { color: rgba(255,255,255,.86); font-size: clamp(1.02rem, 1.8vw, 1.22rem); line-height: 1.6;
  max-width: 62ch; margin: 0 0 1.2rem; }
.sm-hero .sm-surtitre { color: var(--sm-ambre-vif); }
.sm-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: rgba(255,255,255,.78); font-size: .88rem; }
.sm-hero__meta i { margin-right: .3rem; }
.sm-hero__grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center; }

/* Chiffres clés */
.sm-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: .8rem; margin-top: 1.4rem; }
.sm-chiffre { padding: .9rem 1rem; border-radius: 14px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.sm-chiffre b { display: block; font-family: var(--sm-titre); font-size: 1.7rem; line-height: 1.1; color: #FFFFFF; }
.sm-chiffre span { font-size: .8rem; color: rgba(255,255,255,.78); }

/* ------------------------------------------------------------- assistant */
.sm-assistant { padding: clamp(1.1rem, 2.6vw, 1.6rem); border-radius: 20px; background: var(--sm-surface);
  color: var(--sm-texte); box-shadow: var(--sm-ombre-haute); border: 1px solid var(--sm-ligne); }
.sm-assistant h2 { font-family: var(--sm-titre); font-size: 1.3rem; margin: 0 0 .2rem; }
.sm-assistant p { color: var(--sm-texte-2); font-size: .9rem; margin: 0 0 1rem; }
.sm-champ { display: grid; gap: .3rem; margin-bottom: .8rem; }
.sm-champ label, .sm-champ legend { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sm-texte-2); }
.sm-champ select, .sm-champ input[type="search"] { width: 100%; min-height: 46px; padding: .6rem .8rem;
  border: 1px solid var(--sm-ligne-forte); border-radius: 12px; background: var(--sm-surface-2); color: var(--sm-texte);
  font: inherit; }
.sm-champ select:focus, .sm-champ input:focus { outline: 3px solid rgba(14, 124, 134, .3); border-color: var(--sm-turquoise); }
.sm-niveaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; border: 0; padding: 0; margin: 0; }
.sm-niveaux label { position: relative; text-transform: none; letter-spacing: 0; font-size: inherit; color: var(--sm-texte); }
.sm-niveaux input { position: absolute; opacity: 0; pointer-events: none; }
.sm-niveaux span { display: block; padding: .55rem .4rem; text-align: center; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--sm-ligne-forte); font-weight: 700; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
.sm-niveaux input:checked + span { background: var(--sm-encre); color: #FFFFFF; border-color: var(--sm-encre); }
[data-bs-theme="dark"] .sm-niveaux input:checked + span { background: var(--sm-turquoise); color: #0E1424; }
.sm-niveaux input:focus-visible + span { outline: 3px solid var(--sm-ambre-vif); outline-offset: 2px; }
.sm-ou { display: flex; align-items: center; gap: .6rem; color: var(--sm-discret); font-size: .8rem; margin: .4rem 0 .8rem; }
.sm-ou::before, .sm-ou::after { content: ""; flex: 1; height: 1px; background: var(--sm-ligne); }
.sm-bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  min-height: 48px; padding: .7rem 1.2rem; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--sm-ambre-vif), #E4892A); color: #1B1205 !important;
  font-weight: 800; font-size: 1rem; text-decoration: none; }
.sm-bouton:hover { filter: brightness(1.04); }
.sm-bouton:focus-visible { outline: 3px solid var(--sm-turquoise); outline-offset: 3px; }
.sm-bouton--secondaire { background: transparent; color: #FFFFFF !important; border: 1px solid rgba(255,255,255,.4); width: auto; }
.sm-bouton--sobre { background: var(--sm-surface-2); color: var(--sm-texte) !important; border: 1px solid var(--sm-ligne-forte); width: auto; }

/* ------------------------------------------------------------------ pôles */
.sm-poles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.sm-pole { padding: 1.2rem 1.25rem; }
.sm-pole h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.08rem; font-weight: 800; margin: 0 0 .8rem; }
.sm-pole h3 i { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 12px;
  background: var(--sm-turquoise-voile); color: var(--sm-turquoise); font-size: 1.1rem; }
.sm-pole--energie h3 i, .sm-pole--innovation h3 i { background: var(--sm-ambre-voile); color: var(--sm-ambre); }
.sm-pole ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.sm-pole a { display: flex; justify-content: space-between; gap: .6rem; padding: .42rem .5rem; border-radius: 9px;
  color: var(--sm-texte) !important; text-decoration: none; font-weight: 600; font-size: .95rem; }
.sm-pole a:hover { background: var(--sm-surface-2); }
.sm-pole small { color: var(--sm-discret); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Étapes « comment ça marche » */
.sm-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; counter-reset: e; }
.sm-etape { padding: 1.2rem; counter-increment: e; }
.sm-etape::before { content: counter(e); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .7rem;
  border-radius: 50%; background: var(--sm-encre); color: #FFFFFF; font-weight: 800; }
[data-bs-theme="dark"] .sm-etape::before { background: var(--sm-turquoise); color: #0E1424; }
.sm-etape h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 .35rem; }
.sm-etape p { margin: 0; color: var(--sm-texte-2); font-size: .93rem; line-height: 1.55; }

/* Puces de pays et de filières */
.sm-puces { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.sm-puces a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid var(--sm-ligne-forte); background: var(--sm-surface); color: var(--sm-texte) !important;
  text-decoration: none; font-weight: 600; font-size: .9rem; }
.sm-puces a:hover { border-color: var(--sm-turquoise); }
.sm-puces small { color: var(--sm-discret); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- graphes */
.sm-graph-carte { padding: 1.2rem 1.2rem .8rem; background: var(--sm-graph-surface); }
.sm-graph-carte h3 { font-size: 1rem; font-weight: 800; margin: 0 0 .2rem; }
.sm-graph-carte p { margin: 0 0 .6rem; }
.sm-graph { display: block; width: 100%; max-width: 620px; height: auto; margin: 0 auto; overflow: visible; font-family: var(--sm-police); }
.sm-graph__grille { stroke: var(--sm-ligne); stroke-width: 1; }
.sm-graph__grille--v { stroke-dasharray: 2 4; }
.sm-graph__base { stroke: var(--sm-ligne-forte); stroke-width: 1; }
.sm-graph__axe { fill: var(--sm-discret); font-size: 11px; font-variant-numeric: tabular-nums; }
.sm-graph__titre-axe { fill: var(--sm-texte-2); font-size: 10.5px; font-weight: 600; }
.sm-graph__barre { fill: var(--sm-barre); }
.sm-graph__cible { fill: transparent; }
.sm-graph__point { cursor: default; outline: none; }
.sm-graph__point:hover .sm-graph__barre, .sm-graph__point:focus .sm-graph__barre { opacity: .8; }
.sm-graph__point:focus-visible .sm-marque, .sm-graph__point:focus-visible .sm-graph__barre { stroke: var(--sm-texte); stroke-width: 2; }
.sm-marque { stroke: var(--sm-graph-surface); stroke-width: 2; }
.sm-niveau--licence .sm-marque { fill: var(--sm-serie-licence); }
.sm-niveau--master .sm-marque { fill: var(--sm-serie-master); }
.sm-niveau--doctorat .sm-marque { fill: var(--sm-serie-doctorat); }
.sm-legende { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: .6rem 0 0; font-size: .86rem; color: var(--sm-texte-2); }
.sm-legende li { display: inline-flex; align-items: center; gap: .45rem; }
.sm-legende svg { width: 14px; height: 14px; }
.sm-infobulle { position: fixed; z-index: 2000; max-width: 300px; padding: .55rem .7rem; border-radius: 10px; pointer-events: none;
  background: var(--sm-encre); color: #FFFFFF; font-size: .82rem; line-height: 1.45; box-shadow: var(--sm-ombre-haute); }
[data-bs-theme="dark"] .sm-infobulle { background: #E8ECF4; color: #0E1424; }
.sm-tableau-bascule { margin-top: .4rem; font-size: .86rem; }
.sm-tableau { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: .6rem; }
.sm-tableau th, .sm-tableau td { padding: .45rem .5rem; border-bottom: 1px solid var(--sm-ligne); text-align: left; }
.sm-tableau td.sm-n, .sm-tableau th.sm-n { text-align: right; font-variant-numeric: tabular-nums; }
.sm-tableau-defile { overflow-x: auto; }

/* ------------------------------------------------------------ niveaux */
.sm-onglets { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.sm-onglets button { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--sm-ligne-forte); background: var(--sm-surface); color: var(--sm-texte); font-weight: 700; font-size: .9rem; }
.sm-onglets button[aria-pressed="true"] { background: var(--sm-encre); border-color: var(--sm-encre); color: #FFFFFF; }
[data-bs-theme="dark"] .sm-onglets button[aria-pressed="true"] { background: var(--sm-turquoise); border-color: var(--sm-turquoise); color: #0E1424; }
.sm-onglets svg { width: 12px; height: 12px; }
.sm-niveau-bloc { margin-bottom: 1.6rem; }
.sm-niveau-bloc[hidden] { display: none; }
.sm-niveau-bloc > h3 svg, .sm-onglets svg, .sm-legende svg { flex: 0 0 auto; }
.sm-niveau-bloc > h3 { font-family: var(--sm-police); display: flex; align-items: center; gap: .55rem; font-size: 1.12rem; font-weight: 800; margin: 0 0 .25rem; }
.sm-niveau-bloc > p { margin: 0 0 .8rem; color: var(--sm-texte-2); font-size: .93rem; }

/* --------------------------------------------------------------- pistes */
.sm-pistes { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.sm-piste { position: relative; padding: 1.1rem 1.15rem 1rem; border-top: 4px solid var(--sm-serie-licence); display: flex; flex-direction: column; gap: .55rem; }
.sm-piste--master { border-top-color: var(--sm-serie-master); }
.sm-piste--doctorat { border-top-color: var(--sm-serie-doctorat); }
.sm-piste:target, .sm-piste.sm-surligne { box-shadow: 0 0 0 3px var(--sm-ambre-vif), var(--sm-ombre); }
.sm-piste__tete { display: flex; align-items: flex-start; gap: .7rem; }
.sm-piste__num { flex: 0 0 auto; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--sm-surface-2); border: 1px solid var(--sm-ligne-forte); font-weight: 800; font-size: .9rem; }
.sm-piste h4 { font-family: var(--sm-police); margin: 0; font-size: 1.04rem; font-weight: 800; line-height: 1.3; }
.sm-piste__niveau { display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; font-size: .74rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--sm-texte-2); }
.sm-piste__niveau svg { width: 11px; height: 11px; }
.sm-piste__pourquoi { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--sm-texte); }
.sm-piste__desc { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--sm-texte-2); }
.sm-piste__mots { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.sm-piste__mots li { padding: .2rem .55rem; border-radius: 999px; background: var(--sm-turquoise-voile); color: var(--sm-turquoise);
  font-size: .76rem; font-weight: 700; }
.sm-piste__actions { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: auto; padding-top: .4rem; font-size: .86rem; font-weight: 700; }
.sm-piste__actions a { text-decoration: none; }
.sm-vide { padding: 1.2rem; border: 1px dashed var(--sm-ligne-forte); border-radius: var(--sm-r); color: var(--sm-texte-2); }

/* ------------------------------------------------------- colonnes / blocs */
.sm-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.sm-bloc { padding: 1.2rem 1.25rem; }
.sm-bloc h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 800; margin: 0 0 .7rem; }
.sm-bloc h3 i { color: var(--sm-turquoise); }
.sm-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sm-liste li { line-height: 1.45; }
.sm-liste--travaux li { padding-bottom: .55rem; border-bottom: 1px solid var(--sm-ligne); }
.sm-liste--travaux li:last-child { border-bottom: 0; }
.sm-liste small { display: block; color: var(--sm-discret); font-size: .8rem; margin-top: .15rem; }
.sm-badge-oa { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border-radius: 6px; font-size: .7rem; font-weight: 800;
  background: var(--sm-turquoise-voile); color: var(--sm-turquoise); vertical-align: middle; }
.sm-rang { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; align-items: center; }
.sm-rang__barre { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--sm-surface-2); overflow: hidden; }
.sm-rang__barre span { display: block; height: 100%; border-radius: 6px; background: var(--sm-barre); }
.sm-rang__n { font-variant-numeric: tabular-nums; color: var(--sm-texte-2); font-size: .88rem; }
.sm-guide-liste { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; line-height: 1.55; }
.sm-dl { display: grid; gap: .7rem; margin: 0; }
.sm-dl dt { font-weight: 800; }
.sm-dl dd { margin: .15rem 0 0; color: var(--sm-texte-2); line-height: 1.5; }

/* Écosystème */
.sm-eco { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .7rem; }
.sm-eco a { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; text-decoration: none;
  background: var(--sm-surface); border: 1px solid var(--sm-ligne); color: var(--sm-texte) !important; box-shadow: var(--sm-ombre); }
.sm-eco a:hover { border-color: var(--sm-turquoise); }
.sm-eco i { display: grid; place-items: center; flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 10px;
  background: var(--sm-ambre-voile); color: var(--sm-ambre); }
.sm-eco strong { display: block; font-size: .95rem; }
.sm-eco span { display: block; color: var(--sm-texte-2); font-size: .84rem; line-height: 1.4; }

/* FAQ */
.sm-faq details { padding: .95rem 1.1rem; border: 1px solid var(--sm-ligne); border-radius: 14px; background: var(--sm-surface); }
.sm-faq details + details { margin-top: .55rem; }
.sm-faq summary { cursor: pointer; font-weight: 800; }
.sm-faq p { margin: .6rem 0 0; color: var(--sm-texte-2); line-height: 1.6; }

/* Guides */
.sm-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: .9rem; }
.sm-guide-carte { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem; text-decoration: none; color: var(--sm-texte) !important; }
.sm-guide-carte i { font-size: 1.4rem; color: var(--sm-ambre); }
.sm-guide-carte strong { font-size: 1.02rem; line-height: 1.3; }
.sm-guide-carte span { color: var(--sm-texte-2); font-size: .9rem; line-height: 1.5; }
.sm-article { max-width: 760px; }
.sm-article h2 { font-family: var(--sm-titre); font-size: 1.45rem; margin: 2rem 0 .6rem; }
.sm-article p { line-height: 1.75; font-size: 1.04rem; }

/* Avertissement de source */
.sm-source { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--sm-surface-2);
  border: 1px solid var(--sm-ligne); color: var(--sm-texte-2); font-size: .88rem; line-height: 1.55; }
.sm-source i { color: var(--sm-turquoise); font-size: 1.2rem; }


@media (max-width: 900px) {
  .sm-hero__grille, .sm-deux { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sm-hero { border-radius: 18px; }
  .sm-chiffre b { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .sm * { transition: none !important; } }
@media print {
  .sm-assistant, .sm-onglets, .sm-eco, .sm-infobulle { display: none !important; }
  .sm-hero { background: none !important; color: #000 !important; box-shadow: none; }
  .sm-hero h1, .sm-hero__lead { color: #000 !important; }
}

/* ---------------------------------------------------------------- palmarès
   Une ligne par thème : nom lisible, volumes, barre de croissance mondiale et
   trait du domaine. En HTML : le texte garde sa taille sur téléphone. */
.sm-palmares { --sm-col-nom: minmax(0, 1.15fr); --sm-col-piste: minmax(0, 1fr);
  display: flex; flex-direction: column; font-size: .92rem; }
.sm-palmares__tete, .sm-palmares__ligne { display: grid; grid-template-columns: 2rem var(--sm-col-nom) var(--sm-col-piste);
  gap: .2rem .9rem; align-items: center; }
.sm-palmares__tete { padding: 0 .5rem .35rem; font-size: .74rem; font-weight: 700; color: var(--sm-discret);
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--sm-ligne); }
.sm-palmares__tete > span:first-child { grid-column: 1 / 3; }
.sm-palmares__tete .sm-palmares__piste { height: 1.1rem; }
.sm-palmares__repere { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap;
  text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sm-palmares__repere--domaine { color: var(--sm-texte-2); }
.sm-palmares__groupe { margin: .9rem 0 .15rem; padding: 0 .5rem; font-size: .78rem; font-weight: 800; color: var(--sm-texte-2); }
.sm-palmares__ligne { position: relative; padding: .5rem; border-radius: 10px; color: var(--sm-texte) !important;
  text-decoration: none; outline: none; border-bottom: 1px solid var(--sm-ligne); }
.sm-palmares__ligne:last-child { border-bottom: 0; }
a.sm-palmares__ligne { cursor: pointer; }
.sm-palmares__ligne:hover, .sm-palmares__ligne:focus-visible { background: var(--sm-surface-2); }
.sm-palmares__ligne:focus-visible { box-shadow: 0 0 0 2px var(--sm-turquoise); }
.sm-palmares__num { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 8px;
  font-size: .8rem; font-weight: 800; color: #fff; background: var(--sm-barre); }
.sm-niveau--licence .sm-palmares__num { background: var(--sm-serie-licence); border-radius: 50%; }
.sm-niveau--master .sm-palmares__num { background: var(--sm-serie-master); border-radius: 4px; }
.sm-niveau--doctorat .sm-palmares__num { background: var(--sm-serie-doctorat);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); width: 2rem; height: 2rem; font-size: .74rem; }
.sm-palmares__nom { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sm-palmares__nom > span { font-weight: 700; overflow-wrap: anywhere; }
.sm-palmares__nom small { color: var(--sm-discret); font-size: .78rem; font-variant-numeric: tabular-nums; }
.sm-palmares__nom small b { color: var(--sm-texte-2); }
.sm-palmares__piste { position: relative; display: block; height: 1.9rem; }
.sm-palmares__zero { position: absolute; top: -.5rem; bottom: -.5rem; width: 1px; background: var(--sm-ligne-forte); }
.sm-palmares__ref { position: absolute; top: -.5rem; bottom: -.5rem; width: 0; border-left: 2px dashed var(--sm-texte-2); opacity: .7; }
.sm-palmares__barre { position: absolute; top: 50%; height: 12px; transform: translateY(-50%);
  border-radius: 0 4px 4px 0; background: var(--sm-barre); }
.sm-palmares__barre--neg { border-radius: 4px 0 0 4px; }
.sm-palmares__barre--coupee { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent); }
.sm-niveau--licence .sm-palmares__barre { background: var(--sm-serie-licence); }
.sm-niveau--master .sm-palmares__barre { background: var(--sm-serie-master); }
.sm-niveau--doctorat .sm-palmares__barre { background: var(--sm-serie-doctorat); }
.sm-palmares__val { position: absolute; top: 50%; transform: translateY(-50%); font-size: .82rem; font-weight: 800;
  white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--sm-texte); }
.sm-palmares__vide { position: absolute; inset: 0; display: flex; align-items: center; font-size: .78rem;
  color: var(--sm-discret); font-style: italic; line-height: 1.25; }
.sm-palmares .sm-graph__point.sm-attenue { opacity: .3; }
.sm-palmares--simple .sm-palmares__tete, .sm-palmares--simple .sm-palmares__ligne {
  grid-template-columns: var(--sm-col-nom) var(--sm-col-piste); }
.sm-palmares--simple .sm-palmares__tete > span:first-child { grid-column: auto; }
@media (max-width: 640px) {
  .sm-palmares__tete, .sm-palmares__ligne { grid-template-columns: 2rem minmax(0, 1fr); }
  .sm-palmares--simple .sm-palmares__tete, .sm-palmares--simple .sm-palmares__ligne { grid-template-columns: minmax(0, 1fr); }
  .sm-palmares--simple .sm-palmares__tete .sm-palmares__piste,
  .sm-palmares--simple .sm-palmares__ligne > * { grid-column: 1; }
  .sm-palmares__tete > span:first-child { display: none; }
  .sm-palmares__tete .sm-palmares__piste, .sm-palmares__ligne .sm-palmares__piste { grid-column: 2; }
  .sm-palmares__ligne > .sm-palmares__nom { grid-column: 2; }
  .sm-palmares__ligne > .sm-palmares__num { grid-row: 1 / 3; align-self: start; }
}
/* Sur téléphone, le texte des SVG est agrandi pour rester lisible une fois le graphique réduit. */
@media (max-width: 640px) {
  .sm-graph .sm-graph__axe { font-size: 15px; }
  .sm-courbe__etiquette { font-size: 13px; }
  .sm-courbe__valeur { font-size: 15px; }
}

/* Courbes base 100 : le monde en repère (tirets), le pays ou l'Afrique en trait plein. */
.sm-courbe { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sm-courbe--repere { stroke: var(--sm-repere); stroke-dasharray: 5 4; }
.sm-courbe--focus { stroke: var(--sm-focus); }
circle.sm-courbe--repere { fill: var(--sm-repere); stroke: var(--sm-graph-surface); stroke-width: 2; stroke-dasharray: none; }
circle.sm-courbe--focus { fill: var(--sm-focus); stroke: var(--sm-graph-surface); stroke-width: 2; }
.sm-courbe__etiquette { fill: var(--sm-texte-2); font-size: 11px; font-weight: 600; }
.sm-courbe__valeur { fill: var(--sm-texte); font-size: 12px; font-weight: 800; stroke: none; font-variant-numeric: tabular-nums; }
.sm-courbes .sm-graph__point:hover .sm-graph__cible, .sm-courbes .sm-graph__point:focus .sm-graph__cible { fill: var(--sm-ligne); opacity: .45; }

/* Légendes complémentaires. */
.sm-legende__trait { display: inline-block; width: 0; height: 14px; border-left: 2px dashed var(--sm-texte-2); }
.sm-legende__barre { display: inline-block; width: 18px; height: 10px; border-radius: 0 3px 3px 0; background: var(--sm-barre); }
.sm-legende__ligne { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--sm-focus); }
.sm-legende__ligne--repere { border-top: 2px dashed var(--sm-repere); }
.sm-tableau__repere td { font-weight: 700; color: var(--sm-texte-2); }

/* Sources ouvertes d'une piste, et passerelle Radar (équipe de rédaction). */
.sm-sources { margin-top: .5rem; font-size: .84rem; }
.sm-sources summary { cursor: pointer; font-weight: 700; color: var(--sm-texte-2); }
.sm-sources ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.sm-sources li { display: flex; flex-direction: column; }
.sm-sources a { font-weight: 700; text-decoration: none; }
.sm-sources small { color: var(--sm-discret); }
.sm-radar { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; padding: .3rem .6rem;
  border-radius: 8px; border: 1px dashed var(--sm-ambre); color: var(--sm-ambre) !important; font-size: .8rem;
  font-weight: 800; text-decoration: none; }

/* ------------------------------------------------------------ fiabilité */
.sm-piste__verif { font-size: .82rem; font-weight: 700; margin: -.2rem 0 .5rem; }
.sm-piste__verif a { text-decoration: none; }
.sm-citation { padding: .7rem .9rem; border-left: 3px solid var(--sm-turquoise); background: var(--sm-surface-2);
  border-radius: 0 10px 10px 0; font-size: .86rem; line-height: 1.55; color: var(--sm-texte-2); }
.sm-orcid { display: inline-block; margin-left: .25rem; padding: 0 .35rem; border-radius: 5px; font-size: .68rem;
  font-weight: 800; background: #A6CE39; color: #1A2236 !important; text-decoration: none; vertical-align: middle; }
.sm-tableau__sup td:first-child { font-weight: 800; }
.sm-tableau__sup td:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .4rem;
  border-radius: 50%; background: var(--sm-turquoise); vertical-align: middle; }
.sm-motif { display: block; color: var(--sm-discret); }
.sm-tableau th[scope="row"] { font-weight: 600; color: var(--sm-texte-2); }

/* ------------------------------------------------- fiche de pré-validation */
.sm-fiche { max-width: 860px; margin: 0 auto; }
.sm-fiche__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding-bottom: .8rem; border-bottom: 2px solid var(--sm-texte); margin-bottom: .8rem; }
.sm-fiche__tete h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .2rem 0; }
.sm-fiche__meta { margin: 0; font-weight: 700; color: var(--sm-texte-2); }
.sm-fiche__bloc { margin-top: 1.4rem; break-inside: avoid; }
.sm-fiche__bloc h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .6rem; padding-bottom: .3rem;
  border-bottom: 1px solid var(--sm-ligne-forte); }
.sm-fiche__champs { display: grid; gap: .9rem; }
.sm-fiche__champs span { display: block; font-size: .84rem; font-weight: 700; color: var(--sm-texte-2); }
.sm-fiche__champs i { display: block; height: 1.7rem; border-bottom: 1px dotted var(--sm-ligne-forte); }
.sm-fiche__deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.sm-fiche__sources { font-size: .84rem; padding-left: 1.1rem; margin-top: .6rem; }
.sm-fiche__url { color: var(--sm-discret); overflow-wrap: anywhere; font-size: .76rem; }
.sm-grille td:nth-child(3), .sm-grille td:nth-child(4) { width: 4.5rem; border-left: 1px solid var(--sm-ligne); }
@media (max-width: 640px) { .sm-fiche__deux { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .sm-pas-imprime, .sm-source, header.site-header, footer, nav, .navbar { display: none !important; }
  .sm-fiche { max-width: none; font-size: 10.5pt; color: #000; }
  .sm-fiche a { color: #000; text-decoration: none; }
  .sm-fiche__bloc { margin-top: .9rem; }
  .sm-tableau { font-size: 9.5pt; }
}
.sm-sommaire { padding: .9rem 1.1rem; border: 1px solid var(--sm-ligne); border-radius: 14px; background: var(--sm-surface-2);
  font-size: .9rem; margin-bottom: 1.4rem; }
.sm-sommaire ol { margin: 0; padding-left: 1.2rem; columns: 2 16rem; }
.sm-references { font-size: .9rem; padding-left: 1.1rem; }
.sm-references li { margin-bottom: .45rem; }
.sm-article code { font-size: .85em; padding: 0 .25rem; border-radius: 4px; background: var(--sm-surface-2); }

/* Mention de non-exhaustivité. */
.sm-non-exhaustif { padding: 1rem 1.15rem; border: 1px solid var(--sm-ambre); border-left-width: 4px; border-radius: 14px;
  background: var(--sm-ambre-voile); color: var(--sm-texte); font-size: .9rem; line-height: 1.6; }
.sm-non-exhaustif p { margin: 0 0 .55rem; }
.sm-non-exhaustif__titre { font-weight: 800; color: var(--sm-ambre); }
.sm-non-exhaustif--court { padding: .45rem .7rem; margin: .7rem 0; border: 0; border-left: 3px solid var(--sm-ambre);
  border-radius: 0 8px 8px 0; font-size: .82rem; line-height: 1.5; color: var(--sm-texte-2); }
.sm-non-exhaustif--court i { color: var(--sm-ambre); }
@media print { .sm-non-exhaustif, .sm-non-exhaustif--court { background: none; border-color: #000; color: #000; } }
.sm-verifie { color: var(--sm-ok); font-size: .85em; }

/* ==========================================================================
   v2 — navigation, outils du quotidien, sélection
   ========================================================================== */
.sm-nav { margin: 0 0 1.1rem; }
.sm-nav ul { display: flex; gap: .3rem; margin: 0; padding: .35rem; list-style: none; overflow-x: auto; scrollbar-width: none;
  background: var(--sm-surface); border: 1px solid var(--sm-ligne); border-radius: 14px; box-shadow: var(--sm-ombre); }
.sm-nav ul::-webkit-scrollbar { display: none; }
.sm-nav a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 10px; white-space: nowrap;
  color: var(--sm-texte-2) !important; font-size: .88rem; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.sm-nav a:hover { background: var(--sm-surface-2); color: var(--sm-texte) !important; }
.sm-nav a[aria-current="page"] { background: var(--sm-encre); color: #FFFFFF !important; }
[data-bs-theme="dark"] .sm-nav a[aria-current="page"] { background: var(--sm-turquoise); color: #0E1424 !important; }
.sm-nav i { color: var(--sm-ambre); }
.sm-nav a[aria-current="page"] i { color: var(--sm-ambre-vif); }
.sm-nav__selection { margin-left: auto; }
.sm-nav__compte { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--sm-ambre-vif); color: #1B1205; font-size: .72rem; font-weight: 800; }

/* Cartes d'outils */
.sm-outils { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.sm-outil { display: flex; flex-direction: column; gap: .45rem; padding: 1.25rem; color: var(--sm-texte) !important; text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.sm-outil:hover { transform: translateY(-3px); border-color: var(--sm-turquoise); box-shadow: var(--sm-ombre-haute); }
.sm-outil__icone { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 12px;
  background: linear-gradient(145deg, var(--sm-encre), #1E3A63); color: var(--sm-ambre-vif); font-size: 1.2rem; }
.sm-outil strong { font-size: 1.05rem; margin-top: .3rem; }
.sm-outil span { color: var(--sm-texte-2); font-size: .9rem; line-height: 1.55; }
.sm-outil em { margin-top: auto; padding-top: .4rem; color: var(--sm-turquoise); font-style: normal; font-weight: 800; font-size: .88rem; }
.sm-parcours { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .8rem; margin: 0; padding: 0;
  list-style: none; counter-reset: parcours; }
.sm-parcours li { position: relative; padding: 1rem 1rem 1rem 3.2rem; border-radius: 14px; background: var(--sm-surface);
  border: 1px solid var(--sm-ligne); counter-increment: parcours; }
.sm-parcours li::before { content: counter(parcours); position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--sm-encre); color: #FFFFFF; font-weight: 800; font-size: .85rem; }
.sm-parcours b { display: block; }
.sm-parcours span { color: var(--sm-texte-2); font-size: .9rem; line-height: 1.5; }

/* Mise en page des outils */
.sm-outil-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.2rem; align-items: start; }
.sm-formulaire { position: sticky; top: 1rem; padding: clamp(1.1rem, 2.4vw, 1.5rem); }
.sm-formulaire h2, .sm-resultat-outil .sm-bloc h2 { font-family: var(--sm-titre); font-size: 1.25rem; margin: 0 0 1rem; }
.sm-formulaire small { color: var(--sm-discret); font-size: .78rem; line-height: 1.45; }
.sm-champ input[type="text"], .sm-champ input[type="date"] { width: 100%; min-height: 46px; padding: .6rem .8rem;
  border: 1px solid var(--sm-ligne-forte); border-radius: 12px; background: var(--sm-surface-2); color: var(--sm-texte); font: inherit; }
.sm-champ label small { text-transform: none; letter-spacing: 0; font-weight: 600; }
fieldset.sm-champ { border: 0; padding: 0; margin: 0 0 .8rem; min-width: 0; }
.sm-approches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.sm-approches label { position: relative; text-transform: none; letter-spacing: 0; font-size: inherit; color: var(--sm-texte); }
.sm-approches input { position: absolute; opacity: 0; pointer-events: none; }
.sm-approches span { display: block; height: 100%; padding: .6rem .7rem; border: 1px solid var(--sm-ligne-forte); border-radius: 12px; cursor: pointer; }
.sm-approches b { display: block; font-size: .86rem; }
.sm-approches small { display: block; margin-top: .15rem; color: var(--sm-discret); font-size: .74rem; font-weight: 500; line-height: 1.35; }
.sm-approches input:checked + span { border-color: var(--sm-encre); background: var(--sm-encre); color: #FFFFFF; }
.sm-approches input:checked + span small { color: rgba(255,255,255,.75); }
.sm-approches input:focus-visible + span { outline: 3px solid var(--sm-ambre-vif); outline-offset: 2px; }
.sm-resultat-outil { display: grid; gap: 1rem; }
.sm-resultat-outil .sm-bloc { padding: clamp(1.1rem, 2.4vw, 1.5rem); }
.sm-resultat-outil .sm-bloc h3 { margin: 1rem 0 .3rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-ambre); }
.sm-resultat-outil .sm-bloc p, .sm-resultat-outil .sm-bloc li { line-height: 1.6; }
.sm-exemple { margin: 0; padding: .7rem 1rem; border-radius: 12px; background: var(--sm-ambre-voile); color: var(--sm-texte); font-size: .9rem; }
.sm-alerte { margin: 0 0 .8rem; padding: .7rem 1rem; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-size: .9rem; }
[data-bs-theme="dark"] .sm-alerte { background: #3A1717; color: #F6C6C6; }
.sm-intitules { margin: 0; padding: 0; list-style: none; counter-reset: intitule; }
.sm-intitules li { display: flex; align-items: flex-start; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--sm-ligne); counter-increment: intitule; }
.sm-intitules li:first-child { border-top: 0; padding-top: 0; }
.sm-intitules li::before { content: counter(intitule); flex: 0 0 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 8px;
  background: var(--sm-turquoise-voile); color: var(--sm-turquoise); font-weight: 800; font-size: .82rem; }
.sm-intitules span { flex: 1; font-family: var(--sm-titre); font-size: 1.08rem; font-weight: 700; line-height: 1.4; }
.sm-copier { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border: 1px solid var(--sm-ligne-forte); border-radius: 10px;
  background: var(--sm-surface); color: var(--sm-texte-2); cursor: pointer; }
.sm-copier:hover { border-color: var(--sm-turquoise); color: var(--sm-turquoise); }
.sm-autres { margin-top: .8rem; font-size: .9rem; }
.sm-autres summary { cursor: pointer; font-weight: 700; color: var(--sm-turquoise); }
.sm-autres ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.sm-autres li { margin: .35rem 0; color: var(--sm-texte-2); }
.sm-autres b { display: block; color: var(--sm-texte); font-size: .8rem; }
.sm-question { margin: 0; padding: .9rem 1rem; border-left: 4px solid var(--sm-ambre-vif); border-radius: 0 12px 12px 0;
  background: var(--sm-ambre-voile); font-family: var(--sm-titre); font-size: 1.1rem; font-weight: 700; line-height: 1.45; }
.sm-conseil { margin: 1rem 0 0; color: var(--sm-texte-2); font-size: .9rem; }
.sm-conseil i { color: var(--sm-turquoise); }
.sm-score { float: right; padding: .15rem .6rem; border-radius: 999px; background: var(--sm-turquoise-voile); color: var(--sm-turquoise);
  font-family: var(--sm-police); font-size: .85rem; font-weight: 800; }
.sm-controles { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.sm-controles li { display: flex; gap: .7rem; align-items: flex-start; }
.sm-controles i { font-size: 1.1rem; margin-top: .05rem; }
.sm-controles .is-ok i { color: var(--sm-ok); }
.sm-controles .is-ko i { color: var(--sm-ambre); }
.sm-controles small { display: block; color: var(--sm-texte-2); font-size: .85rem; }
.sm-recherches { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sm-recherches a { display: inline-flex; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--sm-ligne-forte);
  font-size: .86rem; font-weight: 700; text-decoration: none; }
.sm-actions-outil { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.sm-actions-outil .sm-bouton { min-height: 42px; font-size: .9rem; padding: .55rem 1rem; }
.sm-note-outil { color: var(--sm-discret); font-size: .82rem; margin: .8rem 0 0; }

/* Rétroplanning */
.sm-plan-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.sm-plan-tete h2 { margin: 0; }
.sm-plan-tete .sm-bouton { width: auto; }
.sm-plan-maintenant { margin: .35rem 0 0; color: var(--sm-texte-2); }
.sm-plan-maintenant i { color: var(--sm-ambre); }
.sm-gantt { display: grid; gap: .45rem; margin: 0 0 1.2rem; }
.sm-gantt__ligne { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: .8rem; align-items: center; font-size: .84rem; }
.sm-gantt__nom { color: var(--sm-texte-2); font-weight: 600; }
.sm-gantt__piste { position: relative; height: 14px; border-radius: 99px; background: var(--sm-surface-2); }
.sm-gantt__piste i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--sm-turquoise), #19A2AD); }
.sm-gantt__ligne.is-passee .sm-gantt__piste i { background: var(--sm-ligne-forte); }
.sm-gantt__ligne.is-courante .sm-gantt__piste i { background: linear-gradient(90deg, var(--sm-ambre-vif), #E4892A); }
.sm-gantt__ligne.is-courante .sm-gantt__nom { color: var(--sm-texte); font-weight: 800; }
.sm-gantt__jour { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--sm-encre); }
[data-bs-theme="dark"] .sm-gantt__jour { background: #FFFFFF; }
.sm-tableau-plan { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sm-tableau-plan th, .sm-tableau-plan td { padding: .6rem .5rem; border-bottom: 1px solid var(--sm-ligne); text-align: left; vertical-align: top; }
.sm-tableau-plan thead th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-discret); }
.sm-tableau-plan .n { text-align: right; white-space: nowrap; }
.sm-tableau-plan tr.is-courante th, .sm-tableau-plan tr.is-courante td { background: var(--sm-ambre-voile); }

/* Garder une piste */
.sm-piste__garder { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .7rem; }
.sm-garder, .sm-formuler-lien { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px;
  border: 1px solid var(--sm-ligne-forte); background: var(--sm-surface); color: var(--sm-texte) !important; font-size: .82rem;
  font-weight: 700; text-decoration: none; cursor: pointer; }
.sm-garder:hover, .sm-formuler-lien:hover { border-color: var(--sm-turquoise); }
.sm-garder[aria-pressed="true"] { background: var(--sm-ambre-voile); border-color: var(--sm-ambre-vif); }
.sm-garder[aria-pressed="true"] i { color: var(--sm-ambre); }

/* Reprise et sélection */
.sm-reprendre { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1rem 0 0; padding: .8rem 1.1rem;
  border-radius: 14px; background: var(--sm-turquoise-voile); color: var(--sm-texte); font-size: .92rem; }
.sm-reprendre > i { color: var(--sm-turquoise); font-size: 1.1rem; }
.sm-reprendre a { font-weight: 800; }
.sm-reprendre__selection { margin-left: auto; }
.sm-selection-outils { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.sm-selection { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.sm-gardee { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem; }
.sm-gardee__tete { display: flex; justify-content: space-between; align-items: center; }
.sm-gardee__niveau { padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--sm-surface-2); }
.sm-gardee__niveau.is-licence { color: var(--sm-serie-licence); }
.sm-gardee__niveau.is-master { color: var(--sm-serie-master); }
.sm-gardee__niveau.is-doctorat { color: var(--sm-serie-doctorat); }
.sm-gardee__retirer { width: 2rem; height: 2rem; border: 0; border-radius: 8px; background: transparent; color: var(--sm-discret); cursor: pointer; }
.sm-gardee__retirer:hover { background: #FDECEC; color: #B42318; }
.sm-gardee h3 { margin: 0; font-size: 1.06rem; font-weight: 800; }
.sm-gardee__contexte { margin: 0; color: var(--sm-texte-2); font-size: .86rem; }
.sm-gardee__note span { display: block; margin-bottom: .25rem; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-discret); }
.sm-gardee__note textarea { width: 100%; padding: .55rem .7rem; border: 1px solid var(--sm-ligne-forte); border-radius: 10px;
  background: var(--sm-surface-2); color: var(--sm-texte); font: inherit; font-size: .9rem; resize: vertical; }
.sm-gardee__liens { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .86rem; font-weight: 700; }
.sm-gardee__date { color: var(--sm-discret); }
.sm-selection-vide { padding: 2rem; text-align: center; }
.sm-selection-vide > i { font-size: 2rem; color: var(--sm-ambre); }
.sm-selection-vide h2 { font-family: var(--sm-titre); font-size: 1.35rem; margin: .5rem 0; }
.sm-selection-vide p { max-width: 520px; margin: 0 auto 1rem; color: var(--sm-texte-2); }

@media (max-width: 900px) {
  .sm-outil-grille { grid-template-columns: minmax(0, 1fr); }
  .sm-formulaire { position: static; }
}
@media (max-width: 575px) {
  .sm-approches { grid-template-columns: minmax(0, 1fr); }
  .sm-gantt__ligne { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .sm-nav__selection { margin-left: 0; }
}
@media print {
  .sm-nav, .sm-formulaire, .sm-actions-outil, .sm-garder, .sm-formuler-lien, .sm-reprendre, .sm-gardee__retirer,
  .sm-selection-outils, .sm-copier { display: none !important; }
  .sm-outil-grille { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v3 — taille d'échantillon, références, bibliographie, plan type
   ========================================================================== */
.sm-champ textarea { width: 100%; padding: .6rem .8rem; border: 1px solid var(--sm-ligne-forte); border-radius: 12px;
  background: var(--sm-surface-2); color: var(--sm-texte); font: inherit; font-size: .95rem; line-height: 1.5; resize: vertical; }
.sm-champ textarea:focus, .sm-champ input[type="text"]:focus, .sm-champ input[type="url"]:focus, .sm-champ input[type="date"]:focus {
  outline: 0; border-color: var(--sm-turquoise); box-shadow: 0 0 0 4px var(--sm-turquoise-voile); }
.sm-champ input[type="url"] { width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--sm-ligne-forte);
  border-radius: 12px; background: var(--sm-surface-2); color: var(--sm-texte); font: inherit; }
.sm-champs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .8rem; }
[data-pour][hidden] { display: none !important; }
.sm-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.sm-types label { position: relative; text-transform: none; letter-spacing: 0; font-size: inherit; color: var(--sm-texte); }
.sm-types input { position: absolute; opacity: 0; pointer-events: none; }
.sm-types span { display: block; padding: .55rem .7rem; border: 1px solid var(--sm-ligne-forte); border-radius: 10px;
  background: var(--sm-surface); font-size: .86rem; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.sm-types input:checked + span { border-color: var(--sm-encre); background: var(--sm-encre); color: #FFFFFF; }
.sm-types input:focus-visible + span { outline: 3px solid var(--sm-ambre-vif); outline-offset: 2px; }

/* Résultat chiffré */
.sm-resultat-chiffre { background: linear-gradient(150deg, var(--sm-encre), #1E3A63); color: #FFFFFF; border: 0; }
.sm-resultat-chiffre p { color: rgba(255,255,255,.82); }
.sm-resultat-chiffre__etiquette { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-ambre-vif) !important; }
.sm-resultat-chiffre__valeur { margin: .2rem 0 .5rem; font-family: var(--sm-titre); font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 800; line-height: 1;
  color: #FFFFFF !important; font-variant-numeric: tabular-nums; }
.sm-resultat-chiffre__valeur span { font-family: var(--sm-police); font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.75); }
.sm-resultat-chiffre b { color: #FFFFFF; }
.sm-calcul { margin: 0; padding: 0; list-style: none; counter-reset: calcul; }
.sm-calcul li { position: relative; padding: .75rem 0 .75rem 2.5rem; border-top: 1px solid var(--sm-ligne); font-variant-numeric: tabular-nums; }
.sm-calcul li:first-child { border-top: 0; }
.sm-calcul li::before { counter-increment: calcul; content: counter(calcul); position: absolute; left: 0; top: .7rem; display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem; border-radius: 8px; background: var(--sm-turquoise-voile); color: var(--sm-turquoise); font-weight: 800; font-size: .82rem; }
.sm-vigilance { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.sm-vigilance li { padding: .7rem .9rem; border-radius: 12px; background: var(--sm-ambre-voile); font-size: .9rem; }
.sm-vigilance i { color: var(--sm-ambre); }

/* Références */
.sm-reference__tete { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.sm-reference__tete h2 { margin: 0; }
.sm-reference__tete .sm-bouton { width: auto; min-height: 38px; padding: .4rem .8rem; font-size: .85rem; }
.sm-reference__texte { margin: 0; padding: .9rem 1rem .9rem 2rem; text-indent: -1rem; border-radius: 12px; background: var(--sm-surface-2);
  font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; line-height: 1.65; overflow-wrap: anywhere; }
.sm-bibtex { margin: 0; padding: .9rem 1rem; border-radius: 12px; background: #0F1B33; color: #E6EDF7; font-size: .82rem; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.sm-garder-ref { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.sm-garder-ref .sm-bouton { width: auto; }
.sm-garder-ref .sm-bouton[disabled] { opacity: .75; cursor: default; }
.sm-garder-ref a { font-weight: 700; }

/* Plan type */
.sm-plan-type { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.sm-plan-type li { padding: .55rem .8rem; border-radius: 10px; background: var(--sm-surface-2); font-size: .92rem; }
.sm-plan-type li:nth-child(n+2):not(:nth-last-child(-n+3)) { margin-left: 1rem; border-left: 3px solid var(--sm-turquoise); }

/* Sélection et bibliographie */
.sm-sommaire-selection { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.sm-sommaire-selection a { display: inline-block; padding: .45rem .85rem; border-radius: 999px;
  background: var(--sm-surface); border: 1px solid var(--sm-ligne-forte); font-size: .88rem; font-weight: 700; text-decoration: none; }
.sm-styles { display: flex; gap: .4rem; }
.sm-biblio { margin: 0; padding: .4rem 1.1rem; list-style: none; counter-reset: ref; }
.sm-biblio li { display: flex; align-items: flex-start; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--sm-ligne); }
.sm-biblio li:first-child { border-top: 0; }
.sm-biblio li > span { flex: 1; padding-left: 1rem; text-indent: -1rem; font-family: Georgia, "Times New Roman", serif; line-height: 1.6; overflow-wrap: anywhere; }
.sm-biblio li > pre { flex: 1; margin: 0; font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#pistes-gardees, #bibliographie { scroll-margin-top: 1rem; }
@media (max-width: 575px) {
  .sm-champs-2 { grid-template-columns: minmax(0, 1fr); }
}
/* Sur téléphone, le résultat d'abord : après « Calculer », la page se recharge en haut. */
@media (max-width: 900px) {
  .sm-outil-grille > .sm-resultat-outil { order: -1; }
}
@media print {
  .sm-garder-ref, .sm-reference__tete .sm-bouton, .sm-sommaire-selection, [data-sm-biblio-outils] { display: none !important; }
}
[data-bs-theme="dark"] .sm-types input:checked + span { background: var(--sm-turquoise); color: #0E1424; border-color: var(--sm-turquoise); }
.sm-outil-grille > *, .sm-resultat-outil > * { min-width: 0; }
@media (max-width: 575px) {
  .sm-tableau-plan { font-size: .8rem; }
  .sm-tableau-plan th, .sm-tableau-plan td { padding: .5rem .3rem; }
}
/* Boîte à outils (pages filière, filière × pays, guides) */
.sm-boite { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .7rem; }
.sm-boite a { display: flex; align-items: center; gap: .8rem; padding: .95rem 1rem; border: 1px solid var(--sm-ligne); border-radius: 14px;
  background: var(--sm-surface); color: var(--sm-texte) !important; text-decoration: none; box-shadow: var(--sm-ombre);
  transition: border-color .15s, transform .15s; }
.sm-boite a:hover { border-color: var(--sm-turquoise); transform: translateY(-2px); }
.sm-boite i { display: grid; place-items: center; flex: 0 0 2.4rem; height: 2.4rem; border-radius: 11px;
  background: linear-gradient(145deg, var(--sm-encre), #1E3A63); color: var(--sm-ambre-vif); font-size: 1.05rem; }
.sm-boite b { display: block; font-size: .95rem; }
.sm-boite small { display: block; color: var(--sm-texte-2); font-size: .8rem; }
@media print { .sm-boite { display: none !important; } }
.sm-rang__n { white-space: nowrap; }

/* ==========================================================================
   v4 — parcours des outils, équation, test statistique, check-list, espace
   ========================================================================== */
/* Fil des outils : sept étapes, de la piste à la soutenance */
.sm-fil-outils { margin: 1.4rem 0 0; }
.sm-fil-outils ol { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.sm-fil-outils ol::before { content: ""; position: absolute; left: 7%; right: 7%; top: 1.15rem; height: 2px;
  background: linear-gradient(90deg, var(--sm-turquoise), var(--sm-ambre-vif)); opacity: .35; }
.sm-fil-outils a { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 0 .2rem;
  color: var(--sm-texte-2) !important; text-decoration: none; font-size: .78rem; font-weight: 700; text-align: center; }
.sm-fil-outils a i { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--sm-ligne-forte);
  background: var(--sm-surface); color: var(--sm-turquoise); font-size: 1rem; transition: transform .15s, border-color .15s, background .15s; }
.sm-fil-outils a:hover i { border-color: var(--sm-turquoise); transform: translateY(-2px); }
.sm-fil-outils a[aria-current="page"] { color: var(--sm-texte) !important; }
.sm-fil-outils a[aria-current="page"] i { border-color: transparent; background: linear-gradient(145deg, var(--sm-encre), #1E3A63); color: var(--sm-ambre-vif);
  box-shadow: 0 0 0 4px var(--sm-ambre-voile); }
[data-bs-theme="dark"] .sm-fil-outils a[aria-current="page"] i { background: var(--sm-turquoise); color: #0E1424; }
@media (max-width: 575px) {
  .sm-fil-outils { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .sm-fil-outils::-webkit-scrollbar { display: none; }
  .sm-fil-outils ol { grid-template-columns: repeat(7, 4.6rem); padding: .3rem 0; width: max-content; }
}

/* Hub des outils par étapes */
.sm-etapes-outils { display: grid; gap: 2rem; }
.sm-outil--vedette { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.1rem; padding: 1.6rem 1.7rem; border: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(242,169,59,.28), transparent 55%), linear-gradient(140deg, var(--sm-encre), #1E3A63);
  color: #FFFFFF !important; box-shadow: var(--sm-ombre-haute); }
.sm-outil--vedette .sm-outil__icone { grid-row: span 3; background: rgba(255,255,255,.1); color: var(--sm-ambre-vif); }
.sm-outil--vedette strong { margin: 0; font-family: var(--sm-titre); font-size: 1.45rem; color: #FFFFFF; }
.sm-outil--vedette span { color: rgba(255,255,255,.82) !important; }
.sm-outil--vedette em { color: var(--sm-ambre-vif) !important; }
.sm-etape-outils { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 1.2rem 2rem; padding-top: 1.6rem; border-top: 1px solid var(--sm-ligne); }
.sm-etape-outils__tete { display: flex; gap: .9rem; align-items: flex-start; }
.sm-etape-outils__n { flex: 0 0 auto; font-family: var(--sm-titre); font-size: 2.6rem; font-weight: 800; line-height: .9;
  background: linear-gradient(160deg, var(--sm-ambre-vif), var(--sm-turquoise)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sm-etape-outils__tete h2 { margin: 0 0 .2rem; font-family: var(--sm-titre); font-size: 1.3rem; }
.sm-etape-outils__tete p { margin: 0; color: var(--sm-texte-2); font-size: .9rem; }
.sm-espace-lien { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.4rem; color: var(--sm-texte) !important; text-decoration: none;
  border: 1px dashed var(--sm-ambre-vif); background: var(--sm-ambre-voile); }
.sm-espace-lien > i { font-size: 1.7rem; color: var(--sm-ambre); }
.sm-espace-lien b { display: block; font-size: 1.05rem; }
.sm-espace-lien small { display: block; color: var(--sm-texte-2); }
.sm-espace-lien em { margin-left: auto; font-style: normal; font-weight: 800; white-space: nowrap; color: var(--sm-ambre); }
@media (max-width: 900px) { .sm-etape-outils { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) {
  .sm-outil--vedette { grid-template-columns: minmax(0, 1fr); padding: 1.3rem; }
  .sm-outil--vedette .sm-outil__icone { grid-row: auto; }
  .sm-espace-lien { flex-wrap: wrap; }
  .sm-espace-lien em { margin-left: 0; }
}

/* Équation de recherche */
.sm-concept { margin: 0 0 1rem; padding: .9rem 1rem .2rem; border: 1px solid var(--sm-ligne); border-radius: 14px; background: var(--sm-surface-2); }
.sm-concept legend { float: left; width: 100%; display: flex; align-items: baseline; gap: .5rem; margin-bottom: .6rem; font-size: .95rem; font-weight: 800; }
.sm-concept legend + * { clear: both; }
.sm-concept legend small { font-weight: 600; color: var(--sm-discret); font-size: .8rem; }
.sm-concept__n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--sm-encre); color: var(--sm-ambre-vif); font-size: .8rem; }
[data-bs-theme="dark"] .sm-concept__n { background: var(--sm-turquoise); color: #0E1424; }
.sm-equation { margin: 0; padding: 1rem 1.1rem; border-radius: 12px; background: #0F1B33; color: #E6EDF7; border-left: 4px solid var(--sm-ambre-vif);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.65; overflow-wrap: anywhere; }
.sm-equation--petite { font-size: .8rem; border-left-color: var(--sm-turquoise); }
.sm-equation-schema { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0 .4rem; }
.sm-equation-schema > span { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; flex: 1 1 180px; padding: .6rem .7rem;
  border: 1px solid var(--sm-ligne-forte); border-radius: 12px; background: var(--sm-surface); }
.sm-equation-schema small { width: 100%; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sm-discret); }
.sm-equation-schema i { padding: .15rem .5rem; border-radius: 999px; background: var(--sm-turquoise-voile); color: var(--sm-texte); font-style: normal; font-size: .8rem; }
.sm-equation-schema i[lang="en"] { background: var(--sm-ambre-voile); }
.sm-equation-schema > b { font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: var(--sm-ambre); }
.sm-bases { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sm-bases a { display: block; padding: .8rem 1rem; border: 1px solid var(--sm-ligne); border-radius: 12px; background: var(--sm-surface);
  color: var(--sm-texte) !important; text-decoration: none; transition: border-color .15s, transform .15s; }
.sm-bases a:hover { border-color: var(--sm-turquoise); transform: translateX(3px); }
.sm-bases b { display: flex; justify-content: space-between; gap: .5rem; font-size: .95rem; }
.sm-bases b i { color: var(--sm-turquoise); font-size: .8rem; }
.sm-bases span { display: block; color: var(--sm-texte-2); font-size: .84rem; }

/* Choix du test statistique */
.sm-options { display: grid; gap: .35rem; }
.sm-options label { position: relative; text-transform: none; letter-spacing: 0; font-size: inherit; color: var(--sm-texte); margin: 0; }
.sm-options input { position: absolute; opacity: 0; pointer-events: none; }
.sm-options span { display: block; padding: .55rem .8rem .55rem 2.1rem; border: 1px solid var(--sm-ligne-forte); border-radius: 10px;
  background: var(--sm-surface); font-size: .88rem; font-weight: 600; cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.sm-options span::before { content: ""; position: absolute; left: .75rem; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem;
  border: 2px solid var(--sm-ligne-forte); border-radius: 50%; }
.sm-options input:checked + span { border-color: var(--sm-turquoise); background: var(--sm-turquoise-voile); }
.sm-options input:checked + span::before { border-color: var(--sm-turquoise); background: var(--sm-turquoise); box-shadow: inset 0 0 0 2px var(--sm-surface); }
.sm-options input:focus-visible + span { outline: 3px solid var(--sm-ambre-vif); outline-offset: 2px; }
.sm-niveaux--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
fieldset.sm-champ { border: 0; padding: 0; min-width: 0; }
fieldset.sm-champ legend { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-discret); margin-bottom: .4rem; }
[data-sm-si][hidden] { display: none !important; }
.sm-resultat-test { margin: .3rem 0 .6rem; font-family: var(--sm-titre); font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; line-height: 1.1; color: #FFFFFF !important; }
.sm-code { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .6rem 1rem; margin: 0; }
.sm-code dt { padding-top: .45rem; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-discret); }
.sm-code dd { margin: 0; }
.sm-code code { display: block; padding: .5rem .75rem; border-radius: 10px; background: #0F1B33; color: #E6EDF7; font-size: .84rem; overflow-wrap: anywhere; }
.sm-redaction { display: block; padding: .6rem .9rem; border-left: 3px solid var(--sm-ambre-vif); background: var(--sm-ambre-voile); border-radius: 0 10px 10px 0;
  font-family: Georgia, "Times New Roman", serif; font-style: italic; line-height: 1.6; }
.sm-alternative { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: 12px; background: var(--sm-turquoise-voile); font-size: .9rem; }
.sm-alternative i { color: var(--sm-turquoise); }
.sm-alternative code { font-size: .8rem; overflow-wrap: anywhere; }
.sm-tableau-tests td:first-child { font-weight: 700; }
.sm-tableau-tests code { font-size: .78rem; white-space: nowrap; }
@media (max-width: 575px) {
  .sm-code { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .sm-code dt { padding-top: .5rem; }
  .sm-tableau-tests code { white-space: normal; overflow-wrap: anywhere; }
}

/* Check-list avant dépôt */
.sm-avancement { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.6rem; padding: 1.2rem 1.5rem;
  position: sticky; top: .5rem; z-index: 2; }
.sm-avancement__etiquette { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-discret); }
.sm-avancement__valeur { margin: 0; font-family: var(--sm-titre); font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.sm-avancement__valeur b { color: var(--sm-turquoise); }
.sm-avancement__barre { height: .7rem; border-radius: 99px; background: var(--sm-surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--sm-ligne); }
.sm-avancement__barre i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sm-turquoise), var(--sm-ambre-vif));
  transition: width .4s cubic-bezier(.2,.8,.2,1); }
.sm-avancement .sm-actions-outil { display: flex; gap: .5rem; margin: 0; }
.sm-avancement .sm-bouton { width: auto; }
.is-termine .sm-avancement { box-shadow: 0 0 0 2px var(--sm-ok), var(--sm-ombre); }
.is-termine .sm-avancement__valeur b { color: var(--sm-ok); }
.sm-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1rem; margin-top: 1rem; }
.sm-check-groupe { margin: 0; padding: 1.1rem 1.2rem; min-width: 0; }
.sm-check-groupe legend { float: left; width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
  margin-bottom: .5rem; font-family: var(--sm-titre); font-size: 1.15rem; font-weight: 800; }
.sm-check-groupe legend + * { clear: both; }
.sm-check-groupe legend small { font-family: var(--sm-police); font-size: .78rem; font-weight: 800; color: var(--sm-discret); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sm-check-groupe.is-complet legend small { color: var(--sm-ok); }
.sm-check-groupe.is-complet legend small::before { content: "✓ "; }
.sm-check { position: relative; display: block; margin: 0; padding: .6rem .2rem .6rem 2.2rem; border-top: 1px solid var(--sm-ligne);
  font-size: .92rem; line-height: 1.45; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--sm-texte); }
.sm-check input { position: absolute; left: .2rem; top: .65rem; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--sm-turquoise); cursor: pointer; }
.sm-check.is-fait span { color: var(--sm-discret); text-decoration: line-through; text-decoration-color: var(--sm-ligne-forte); }
@media (max-width: 575px) {
  .sm-avancement { grid-template-columns: auto minmax(0, 1fr); padding: 1rem; }
  .sm-avancement .sm-actions-outil { grid-column: 1 / -1; }
}

/* Mon espace mémoire : tableau de bord */
.sm-tableau-bord { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.sm-tuile-bord { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .8rem; align-items: center;
  padding: 1rem 1.1rem; border: 1px solid var(--sm-ligne); border-radius: var(--sm-r); background: var(--sm-surface); box-shadow: var(--sm-ombre);
  color: var(--sm-texte) !important; text-decoration: none; transition: border-color .15s, transform .15s; }
.sm-tuile-bord:hover { border-color: var(--sm-turquoise); transform: translateY(-2px); }
.sm-tuile-bord > i { grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  background: linear-gradient(145deg, var(--sm-encre), #1E3A63); color: var(--sm-ambre-vif); font-size: 1.15rem; }
.sm-tuile-bord > b { font-family: var(--sm-titre); font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.sm-tuile-bord > span { color: var(--sm-texte-2); font-size: .82rem; overflow-wrap: anywhere; }
@media (max-width: 900px) { .sm-tableau-bord { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .sm-tuile-bord { padding: .85rem; } .sm-tuile-bord > i { width: 2.2rem; height: 2.2rem; } }

/* Retroplanning : actions */
.sm-plan-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sm-plan-actions .sm-bouton { width: auto; }

@media print {
  .sm-fil-outils, .sm-avancement .sm-actions-outil, .sm-bases, .sm-plan-actions, .sm-tableau-bord, .sm-espace-lien { display: none !important; }
  .sm-avancement { position: static; }
  .sm-equation, .sm-code code { background: none; color: #000; border: 1px solid #999; }
  .sm-check input { accent-color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-avancement__barre i, .sm-fil-outils a i, .sm-bases a, .sm-tuile-bord { transition: none; }
}
/* Icône des cartes d'outil : « .sm-outil span » ne doit pas l'éteindre. */
.sm-outil .sm-outil__icone { color: var(--sm-ambre-vif); line-height: 1; }
/* Hub : dans chaque étape, des cartes horizontales qui occupent toute la ligne. */
.sm-etape-outils .sm-outils { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-content: start; }
.sm-etape-outils .sm-outil { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: .25rem; align-items: start; padding: 1.15rem 1.25rem; }
.sm-etape-outils .sm-outil .sm-outil__icone { grid-row: span 3; }
.sm-etape-outils .sm-outil strong { margin: 0; }
.sm-etape-outils .sm-outil { grid-template-rows: auto auto 1fr; }
.sm-etape-outils .sm-outil em { align-self: end; margin-top: 0; padding-top: .3rem; }
.sm-etape-outils__tete h2 { font-size: 1.4rem; }
/* Schéma de l'équation : concepts empilés, reliés par ET */
.sm-equation-schema { flex-direction: column; align-items: stretch; gap: .35rem; }
.sm-equation-schema > span { flex: none; }
.sm-equation-schema > b { align-self: center; padding: .1rem .7rem; border-radius: 999px; background: var(--sm-ambre-voile); }
.sm-alternative code, .sm-tableau-tests code { color: var(--sm-turquoise); background: var(--sm-surface); padding: .05rem .35rem; border-radius: 6px; }
.sm-tuile-bord > span { overflow-wrap: normal; hyphens: auto; }
@media (max-width: 575px) {
  .sm-tuile-bord { grid-template-columns: minmax(0, 1fr); row-gap: .3rem; }
  .sm-tuile-bord > i { grid-row: auto; width: 2.1rem; height: 2.1rem; font-size: 1rem; margin-bottom: .2rem; }
}
@media (min-width: 900px) { .sm-boite { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
