/* ==========================================================================
   PLINK — langage « espace » commun à tout le site (chargé par toutes les pages,
   après les feuilles propres à la page).
   Thème sombre (par défaut) : ciel étoilé, verre sombre, filets et lueurs bleus.
   Thème clair (choisi avec le bouton soleil/lune) : même langage en lumière.
   Les couleurs viennent de tokens.css (--verre, --verre-ligne, --filet-haut…).
   ========================================================================== */

/* ---------- Fond : ciel étoilé (sombre), blanc pur (clair) ---------- */
html { background-color: var(--bg); }
body { background: transparent; }
:root:not([data-theme="light"]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='613' height='613'%3E%3Ccircle cx='146.4' cy='560.0' r='0.55' fill='%23fff' fill-opacity='0.76'/%3E%3Ccircle cx='524.6' cy='221.3' r='0.55' fill='%23B8CEFF' fill-opacity='0.24'/%3E%3Ccircle cx='596.3' cy='325.7' r='0.55' fill='%23fff' fill-opacity='0.53'/%3E%3Ccircle cx='476.6' cy='478.0' r='0.55' fill='%23B8CEFF' fill-opacity='0.48'/%3E%3Ccircle cx='222.2' cy='295.2' r='0.55' fill='%23B8CEFF' fill-opacity='0.65'/%3E%3Ccircle cx='219.5' cy='109.6' r='1.1' fill='%23fff' fill-opacity='0.27'/%3E%3Ccircle cx='279.7' cy='66.2' r='0.55' fill='%23fff' fill-opacity='0.57'/%3E%3Ccircle cx='51.8' cy='371.2' r='0.8' fill='%23fff' fill-opacity='0.36'/%3E%3Ccircle cx='216.2' cy='191.7' r='0.55' fill='%23fff' fill-opacity='0.63'/%3E%3Ccircle cx='97.0' cy='535.8' r='0.55' fill='%23B8CEFF' fill-opacity='0.43'/%3E%3Ccircle cx='297.0' cy='109.2' r='0.55' fill='%23fff' fill-opacity='0.75'/%3E%3Ccircle cx='302.1' cy='107.2' r='0.55' fill='%23fff' fill-opacity='0.31'/%3E%3Ccircle cx='424.0' cy='465.9' r='0.55' fill='%23fff' fill-opacity='0.53'/%3E%3Ccircle cx='541.2' cy='227.6' r='0.55' fill='%23B8CEFF' fill-opacity='0.58'/%3E%3Ccircle cx='308.7' cy='295.4' r='0.55' fill='%23fff' fill-opacity='0.77'/%3E%3Ccircle cx='542.4' cy='127.0' r='0.55' fill='%23fff' fill-opacity='0.77'/%3E%3Ccircle cx='128.0' cy='32.0' r='0.55' fill='%23fff' fill-opacity='0.70'/%3E%3Ccircle cx='129.1' cy='312.2' r='0.55' fill='%23fff' fill-opacity='0.45'/%3E%3Ccircle cx='215.9' cy='126.0' r='0.8' fill='%23fff' fill-opacity='0.32'/%3E%3Ccircle cx='428.9' cy='269.9' r='0.55' fill='%23fff' fill-opacity='0.51'/%3E%3Ccircle cx='61.6' cy='236.6' r='0.55' fill='%23B8CEFF' fill-opacity='0.65'/%3E%3Ccircle cx='474.3' cy='142.0' r='0.55' fill='%23fff' fill-opacity='0.55'/%3E%3Ccircle cx='455.1' cy='504.4' r='0.55' fill='%23fff' fill-opacity='0.71'/%3E%3Ccircle cx='457.9' cy='267.1' r='1.1' fill='%23fff' fill-opacity='0.75'/%3E%3Ccircle cx='172.8' cy='519.7' r='0.55' fill='%23B8CEFF' fill-opacity='0.79'/%3E%3Ccircle cx='18.0' cy='541.7' r='0.55' fill='%23fff' fill-opacity='0.79'/%3E%3Ccircle cx='566.7' cy='511.3' r='0.55' fill='%23fff' fill-opacity='0.54'/%3E%3Ccircle cx='114.0' cy='16.5' r='0.55' fill='%23fff' fill-opacity='0.28'/%3E%3Ccircle cx='53.7' cy='224.6' r='0.55' fill='%23fff' fill-opacity='0.80'/%3E%3Ccircle cx='339.4' cy='310.6' r='0.55' fill='%23fff' fill-opacity='0.52'/%3E%3Ccircle cx='415.0' cy='143.8' r='0.55' fill='%23fff' fill-opacity='0.31'/%3E%3Ccircle cx='458.8' cy='264.5' r='0.55' fill='%23fff' fill-opacity='0.75'/%3E%3Ccircle cx='359.7' cy='93.5' r='0.55' fill='%23fff' fill-opacity='0.42'/%3E%3Ccircle cx='283.5' cy='165.0' r='0.55' fill='%23fff' fill-opacity='0.61'/%3E%3Ccircle cx='8.4' cy='482.7' r='0.55' fill='%23fff' fill-opacity='0.56'/%3E%3Ccircle cx='326.3' cy='176.7' r='0.55' fill='%23fff' fill-opacity='0.77'/%3E%3Ccircle cx='17.2' cy='199.4' r='0.55' fill='%23fff' fill-opacity='0.24'/%3E%3Ccircle cx='557.8' cy='261.9' r='0.8' fill='%23B8CEFF' fill-opacity='0.20'/%3E%3Ccircle cx='150.3' cy='264.0' r='0.8' fill='%23fff' fill-opacity='0.35'/%3E%3Ccircle cx='579.1' cy='84.2' r='0.55' fill='%23fff' fill-opacity='0.22'/%3E%3Ccircle cx='110.4' cy='417.9' r='0.8' fill='%23fff' fill-opacity='0.46'/%3E%3Ccircle cx='533.8' cy='278.0' r='0.55' fill='%23fff' fill-opacity='0.51'/%3E%3Ccircle cx='177.4' cy='242.7' r='0.55' fill='%23B8CEFF' fill-opacity='0.72'/%3E%3Ccircle cx='381.5' cy='66.4' r='0.55' fill='%23B8CEFF' fill-opacity='0.32'/%3E%3Ccircle cx='357.0' cy='496.5' r='0.55' fill='%23fff' fill-opacity='0.64'/%3E%3Ccircle cx='402.8' cy='138.2' r='0.55' fill='%23fff' fill-opacity='0.74'/%3E%3Ccircle cx='225.5' cy='532.2' r='0.55' fill='%23fff' fill-opacity='0.54'/%3E%3Ccircle cx='250.8' cy='509.9' r='0.8' fill='%23fff' fill-opacity='0.67'/%3E%3Ccircle cx='597.5' cy='0.5' r='1.1' fill='%23fff' fill-opacity='0.34'/%3E%3Ccircle cx='535.2' cy='254.0' r='0.55' fill='%23B8CEFF' fill-opacity='0.64'/%3E%3Ccircle cx='295.9' cy='160.8' r='0.55' fill='%23fff' fill-opacity='0.43'/%3E%3Ccircle cx='438.1' cy='515.2' r='0.55' fill='%23fff' fill-opacity='0.27'/%3E%3Ccircle cx='255.3' cy='404.7' r='0.55' fill='%23B8CEFF' fill-opacity='0.30'/%3E%3Ccircle cx='467.7' cy='284.8' r='0.55' fill='%23fff' fill-opacity='0.40'/%3E%3Ccircle cx='190.1' cy='273.6' r='0.55' fill='%23fff' fill-opacity='0.62'/%3E%3Ccircle cx='513.6' cy='597.6' r='0.55' fill='%23fff' fill-opacity='0.22'/%3E%3Ccircle cx='531.2' cy='107.7' r='0.55' fill='%23fff' fill-opacity='0.42'/%3E%3Ccircle cx='93.2' cy='493.6' r='0.55' fill='%23fff' fill-opacity='0.21'/%3E%3Ccircle cx='248.0' cy='300.4' r='0.55' fill='%23fff' fill-opacity='0.39'/%3E%3Ccircle cx='47.7' cy='343.1' r='0.55' fill='%23fff' fill-opacity='0.56'/%3E%3Ccircle cx='144.1' cy='269.7' r='0.8' fill='%23fff' fill-opacity='0.72'/%3E%3Ccircle cx='267.4' cy='111.6' r='0.55' fill='%23B8CEFF' fill-opacity='0.61'/%3E%3Ccircle cx='523.6' cy='468.9' r='0.8' fill='%23fff' fill-opacity='0.28'/%3E%3Ccircle cx='438.3' cy='224.5' r='0.55' fill='%23B8CEFF' fill-opacity='0.64'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='997' height='997'%3E%3Ccircle cx='273.6' cy='257.5' r='0.55' fill='%23fff' fill-opacity='0.27'/%3E%3Ccircle cx='643.2' cy='16.3' r='0.55' fill='%23fff' fill-opacity='0.50'/%3E%3Ccircle cx='713.4' cy='532.4' r='0.55' fill='%23fff' fill-opacity='0.18'/%3E%3Ccircle cx='656.2' cy='867.4' r='0.55' fill='%23fff' fill-opacity='0.53'/%3E%3Ccircle cx='939.6' cy='261.0' r='0.55' fill='%23fff' fill-opacity='0.28'/%3E%3Ccircle cx='4.7' cy='316.0' r='0.55' fill='%23fff' fill-opacity='0.40'/%3E%3Ccircle cx='514.3' cy='378.1' r='0.55' fill='%23fff' fill-opacity='0.31'/%3E%3Ccircle cx='974.5' cy='409.1' r='0.55' fill='%23fff' fill-opacity='0.52'/%3E%3Ccircle cx='740.6' cy='158.1' r='1.1' fill='%23B8CEFF' fill-opacity='0.52'/%3E%3Ccircle cx='76.0' cy='396.0' r='0.8' fill='%23fff' fill-opacity='0.46'/%3E%3Ccircle cx='177.5' cy='281.3' r='0.8' fill='%23fff' fill-opacity='0.48'/%3E%3Ccircle cx='317.2' cy='967.7' r='0.55' fill='%23fff' fill-opacity='0.26'/%3E%3Ccircle cx='215.1' cy='159.4' r='0.55' fill='%23fff' fill-opacity='0.48'/%3E%3Ccircle cx='440.3' cy='226.8' r='0.55' fill='%23fff' fill-opacity='0.47'/%3E%3Ccircle cx='575.5' cy='865.6' r='0.55' fill='%23fff' fill-opacity='0.21'/%3E%3Ccircle cx='961.8' cy='9.6' r='0.8' fill='%23B8CEFF' fill-opacity='0.42'/%3E%3Ccircle cx='319.8' cy='318.7' r='0.8' fill='%23fff' fill-opacity='0.42'/%3E%3Ccircle cx='800.0' cy='472.6' r='0.55' fill='%23fff' fill-opacity='0.23'/%3E%3Ccircle cx='117.1' cy='256.7' r='0.55' fill='%23fff' fill-opacity='0.30'/%3E%3Ccircle cx='771.5' cy='368.7' r='0.55' fill='%23B8CEFF' fill-opacity='0.32'/%3E%3Ccircle cx='749.8' cy='970.5' r='0.55' fill='%23fff' fill-opacity='0.22'/%3E%3Ccircle cx='397.9' cy='927.5' r='0.55' fill='%23fff' fill-opacity='0.19'/%3E%3Ccircle cx='435.7' cy='337.2' r='0.55' fill='%23fff' fill-opacity='0.35'/%3E%3Ccircle cx='965.4' cy='314.0' r='0.55' fill='%23B8CEFF' fill-opacity='0.52'/%3E%3Ccircle cx='382.2' cy='364.4' r='0.55' fill='%23fff' fill-opacity='0.32'/%3E%3Ccircle cx='509.6' cy='476.2' r='0.55' fill='%23fff' fill-opacity='0.44'/%3E%3Ccircle cx='470.4' cy='172.7' r='0.8' fill='%23fff' fill-opacity='0.17'/%3E%3Ccircle cx='80.0' cy='10.2' r='0.55' fill='%23fff' fill-opacity='0.35'/%3E%3Ccircle cx='606.3' cy='416.4' r='0.55' fill='%23B8CEFF' fill-opacity='0.51'/%3E%3Ccircle cx='237.4' cy='212.7' r='0.55' fill='%23fff' fill-opacity='0.40'/%3E%3Ccircle cx='762.2' cy='119.2' r='0.55' fill='%23fff' fill-opacity='0.54'/%3E%3Ccircle cx='869.2' cy='209.5' r='0.55' fill='%23B8CEFF' fill-opacity='0.50'/%3E%3Ccircle cx='589.3' cy='840.7' r='0.55' fill='%23fff' fill-opacity='0.54'/%3E%3Ccircle cx='17.1' cy='638.2' r='1.1' fill='%23fff' fill-opacity='0.22'/%3E%3Ccircle cx='161.4' cy='485.4' r='0.55' fill='%23fff' fill-opacity='0.32'/%3E%3Ccircle cx='310.4' cy='170.0' r='0.55' fill='%23fff' fill-opacity='0.54'/%3E%3Ccircle cx='694.5' cy='57.9' r='0.55' fill='%23fff' fill-opacity='0.14'/%3E%3Ccircle cx='575.7' cy='53.9' r='0.55' fill='%23fff' fill-opacity='0.37'/%3E%3Ccircle cx='290.0' cy='812.5' r='0.55' fill='%23fff' fill-opacity='0.39'/%3E%3Ccircle cx='931.1' cy='48.6' r='0.55' fill='%23B8CEFF' fill-opacity='0.46'/%3E%3Ccircle cx='607.8' cy='591.2' r='0.55' fill='%23fff' fill-opacity='0.31'/%3E%3Ccircle cx='287.2' cy='523.2' r='0.55' fill='%23B8CEFF' fill-opacity='0.43'/%3E%3Ccircle cx='451.3' cy='96.8' r='0.55' fill='%23fff' fill-opacity='0.15'/%3E%3Ccircle cx='162.5' cy='309.7' r='0.55' fill='%23fff' fill-opacity='0.44'/%3E%3Ccircle cx='911.0' cy='957.6' r='0.55' fill='%23fff' fill-opacity='0.17'/%3E%3Ccircle cx='99.1' cy='105.7' r='0.55' fill='%23fff' fill-opacity='0.37'/%3E%3Ccircle cx='824.5' cy='526.5' r='0.55' fill='%23fff' fill-opacity='0.38'/%3E%3Ccircle cx='421.7' cy='903.0' r='0.55' fill='%23fff' fill-opacity='0.36'/%3E%3Ccircle cx='143.6' cy='177.9' r='0.55' fill='%23fff' fill-opacity='0.24'/%3E%3Ccircle cx='530.9' cy='168.5' r='0.55' fill='%23fff' fill-opacity='0.42'/%3E%3Ccircle cx='126.3' cy='602.4' r='0.55' fill='%23fff' fill-opacity='0.27'/%3E%3Ccircle cx='118.8' cy='229.6' r='0.55' fill='%23fff' fill-opacity='0.44'/%3E%3Ccircle cx='576.5' cy='403.1' r='0.8' fill='%23fff' fill-opacity='0.44'/%3E%3Ccircle cx='418.6' cy='994.8' r='0.8' fill='%23fff' fill-opacity='0.28'/%3E%3Ccircle cx='92.5' cy='652.9' r='0.55' fill='%23fff' fill-opacity='0.46'/%3E%3Ccircle cx='812.2' cy='141.2' r='0.55' fill='%23B8CEFF' fill-opacity='0.14'/%3E%3Ccircle cx='282.7' cy='381.1' r='0.55' fill='%23fff' fill-opacity='0.48'/%3E%3Ccircle cx='349.0' cy='39.0' r='0.55' fill='%23fff' fill-opacity='0.21'/%3E%3Ccircle cx='469.6' cy='131.4' r='0.55' fill='%23B8CEFF' fill-opacity='0.45'/%3E%3Ccircle cx='180.2' cy='537.9' r='0.55' fill='%23fff' fill-opacity='0.36'/%3E%3Ccircle cx='182.8' cy='655.9' r='0.55' fill='%23fff' fill-opacity='0.40'/%3E%3Ccircle cx='19.4' cy='443.0' r='0.55' fill='%23fff' fill-opacity='0.25'/%3E%3Ccircle cx='359.4' cy='235.8' r='0.55' fill='%23fff' fill-opacity='0.45'/%3E%3Ccircle cx='549.6' cy='279.7' r='1.1' fill='%23fff' fill-opacity='0.27'/%3E%3Ccircle cx='160.0' cy='759.4' r='0.55' fill='%23fff' fill-opacity='0.29'/%3E%3Ccircle cx='941.6' cy='795.6' r='0.8' fill='%23fff' fill-opacity='0.41'/%3E%3Ccircle cx='75.2' cy='709.6' r='0.55' fill='%23fff' fill-opacity='0.41'/%3E%3Ccircle cx='155.5' cy='440.6' r='0.55' fill='%23fff' fill-opacity='0.45'/%3E%3Ccircle cx='460.3' cy='813.6' r='0.55' fill='%23fff' fill-opacity='0.16'/%3E%3Ccircle cx='236.7' cy='169.7' r='0.55' fill='%23fff' fill-opacity='0.40'/%3E%3Ccircle cx='906.8' cy='873.5' r='0.55' fill='%23fff' fill-opacity='0.25'/%3E%3Ccircle cx='363.2' cy='197.8' r='0.55' fill='%23fff' fill-opacity='0.47'/%3E%3Ccircle cx='917.7' cy='267.2' r='0.55' fill='%23fff' fill-opacity='0.39'/%3E%3Ccircle cx='397.6' cy='882.7' r='0.55' fill='%23fff' fill-opacity='0.18'/%3E%3Ccircle cx='443.1' cy='230.7' r='0.55' fill='%23fff' fill-opacity='0.32'/%3E%3Ccircle cx='513.1' cy='827.8' r='0.8' fill='%23fff' fill-opacity='0.21'/%3E%3Ccircle cx='759.4' cy='698.8' r='0.55' fill='%23B8CEFF' fill-opacity='0.19'/%3E%3Ccircle cx='328.1' cy='645.0' r='0.55' fill='%23fff' fill-opacity='0.18'/%3E%3Ccircle cx='292.9' cy='216.2' r='1.1' fill='%23fff' fill-opacity='0.31'/%3E%3Ccircle cx='158.9' cy='623.9' r='0.55' fill='%23fff' fill-opacity='0.50'/%3E%3Ccircle cx='5.8' cy='925.8' r='0.55' fill='%23B8CEFF' fill-opacity='0.16'/%3E%3Ccircle cx='13.6' cy='907.2' r='0.55' fill='%23B8CEFF' fill-opacity='0.22'/%3E%3Ccircle cx='419.3' cy='940.6' r='0.55' fill='%23fff' fill-opacity='0.38'/%3E%3Ccircle cx='800.9' cy='693.0' r='0.55' fill='%23fff' fill-opacity='0.43'/%3E%3Ccircle cx='734.9' cy='822.1' r='0.55' fill='%23fff' fill-opacity='0.35'/%3E%3Ccircle cx='582.3' cy='638.9' r='0.55' fill='%23fff' fill-opacity='0.28'/%3E%3Ccircle cx='420.9' cy='979.6' r='0.55' fill='%23fff' fill-opacity='0.29'/%3E%3Ccircle cx='461.5' cy='958.8' r='0.55' fill='%23fff' fill-opacity='0.40'/%3E%3Ccircle cx='749.1' cy='588.5' r='0.8' fill='%23fff' fill-opacity='0.45'/%3E%3Ccircle cx='705.2' cy='852.5' r='0.55' fill='%23B8CEFF' fill-opacity='0.20'/%3E%3C/svg%3E");
  background-size: 613px 613px, 997px 997px;
}
::selection { background: rgba(0, 87, 255, .42); color: #fff; }

/* ---------- Bande de ciel en haut des pages (bord de planète peint par plink-ciel.js) ---------- */
main { position: relative; }
.ciel-bande {
  position: absolute; z-index: -1; left: 0; right: 0; top: -73px; height: 520px;
  pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.ciel-bande canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.ciel-bande canvas.est-peint { opacity: 1; }
@media (max-width: 1199px) { .ciel-bande { top: -65px; height: 420px; } }
/* le premier bloc de la page descend sous le bord de planète */
.ciel-bande ~ section:first-of-type, .st-main > .ciel-bande + .wrap { padding-top: 148px; }
@media (max-width: 639px) { .ciel-bande ~ section:first-of-type, .st-main > .ciel-bande + .wrap { padding-top: 108px; } }

/* ---------- Titres ---------- */
.page-head h1, .st-head h1 {
  background: var(--titre-degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.035em; padding-bottom: .04em;
}
.accent {
  background: var(--accent-degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h2 { letter-spacing: -0.025em; }
.kicker { color: var(--accent-text); letter-spacing: .02em; }

/* ---------- En-tête (toutes les pages) ---------- */
.site-header {
  background: var(--entete-fond); border-bottom-color: color-mix(in srgb, var(--verre-ligne) 70%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
@media (min-width: 1200px) {
  .nav { padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--text) 4%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent); }
  .nav a { padding: 8px 14px; border-radius: 999px; }
  .nav a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
  .nav a[aria-current="page"] { background: color-mix(in srgb, var(--text) 11%, transparent); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
}
.icon-btn { border-radius: 999px; border-color: color-mix(in srgb, var(--text) 14%, transparent); }
.header-actions .btn-ghost { border-radius: 999px; }
.header-actions .btn-secondary, .mobile-nav .btn-secondary {
  border-color: transparent; background: var(--plink-blue); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(77, 141, 255, .5);
}
.header-actions .btn-secondary:hover, .mobile-nav .btn-secondary:hover { background: #1766FF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px #6FA0FF, 0 0 24px rgba(0, 87, 255, .55); }
.profil-btn { border-radius: 999px; }
.site-header:has(.mobile-nav:not([hidden])) { background: var(--bg); }

/* ---------- Boutons : pilules, lueur bleue au survol ---------- */
.btn { border-radius: 999px; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease); }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(77, 141, 255, .45), 0 10px 26px -14px rgba(0, 87, 255, .9); }
.btn-primary:hover { background: #1766FF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px #6FA0FF, 0 0 26px rgba(0, 87, 255, .5), 0 10px 30px -10px rgba(0, 87, 255, .9); }
.btn-secondary { background: color-mix(in srgb, var(--text) 4%, transparent); border-color: color-mix(in srgb, var(--text) 18%, transparent); }
.btn-secondary:hover { background: color-mix(in srgb, var(--plink-blue) 12%, transparent); border-color: rgba(111, 160, 255, .65); box-shadow: 0 0 22px -4px rgba(0, 87, 255, .4); }
.btn[disabled], .btn[aria-disabled="true"] { box-shadow: none; }
.chat-form button, .chat-form input, .quick button { border-radius: 999px; }
.chat-form input { padding-left: 18px; }

/* ---------- Cartes de verre ---------- */
.convert-card, .card, .plan, .cpt-card, .cpt-stat, .cpt-nav, .cpt-dialog, .result, .step, .value, .clips-visual, .ad-gate,
.mini-vide, .mini-taille, .mini-suite, .mini-etapes li, .tr-progres, .tr-offre, .tr-etapes-guide li, .tr-usages article,
.os-carte, .guide-step, .etat-service, .batch, .table-scroll, .mascot-states figure, .legal-toc, .help-grid > div, .tile,
.days li, .vitrine-tel, .st-tuile, .st-carte, .st-message, .board, .cta, .profil-pop, .chat-panel, .bubble-tip {
  background: var(--verre); border-color: var(--verre-ligne); box-shadow: var(--verre-ombre);
}
.bubble-tip { box-shadow: 0 10px 30px -16px rgba(0, 87, 255, .6); }
/* panneaux principaux : filet lumineux et halo bleu sur le bord haut */
.convert-card, .card, .plan.featured, .ad-gate, .cta, .mini-vide, .tr-progres, .st-carte, .cpt-card:first-child, .clips-visual {
  background:
    var(--filet-haut) 50% 0 / 74% 1px no-repeat,
    radial-gradient(52% 120px at 50% 0, var(--lueur-haut), transparent) 50% 0 / 100% 160px no-repeat,
    var(--verre);
}
.plan.featured { border: 1px solid rgba(77, 141, 255, .7); box-shadow: 0 0 0 1px rgba(0, 87, 255, .25), 0 30px 80px -40px rgba(0, 87, 255, .8); }
.plan:hover { border-color: rgba(111, 160, 255, .55); }
.plan.featured:hover { border-color: #6FA0FF; }
.convert-card { box-shadow: var(--verre-ombre), 0 -10px 60px -30px rgba(0, 87, 255, .55); }
.compare th { background: color-mix(in srgb, var(--plink-blue) 6%, transparent); }

/* champs */
.url-input input, .select select, .chat-form input { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.url-input input:hover, .select select:hover { border-color: color-mix(in srgb, var(--plink-blue) 55%, var(--field)); }
.seg, .seg-tabs, .billing { background: color-mix(in srgb, var(--text) 4%, transparent); border-color: var(--verre-ligne); }
.seg [role="radio"][aria-checked="true"] { box-shadow: 0 0 0 1px rgba(111, 160, 255, .5), 0 6px 18px -8px rgba(0, 87, 255, .9); }

/* sections en bandeau : plus de grand aplat gris, un voile léger */
.section-surface { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 0%, transparent), var(--surface) 90px, var(--surface) calc(100% - 90px), color-mix(in srgb, var(--surface) 0%, transparent)); }
:root:not([data-theme="light"]) .section-surface { background: linear-gradient(180deg, rgba(10, 16, 32, 0), rgba(10, 16, 32, .72) 110px, rgba(10, 16, 32, .72) calc(100% - 110px), rgba(10, 16, 32, 0)); }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: transparent; border-top-color: var(--verre-ligne); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: var(--filet-haut); opacity: .7; }
:root:not([data-theme="light"]) .site-footer { background: linear-gradient(180deg, rgba(8, 13, 26, .6), rgba(4, 6, 12, 0) 60%); }

/* ---------- Assistant, toasts, bandeau cookies ---------- */
.chat-fab { box-shadow: 0 0 0 1px rgba(111, 160, 255, .5), 0 12px 32px -10px rgba(0, 87, 255, .9); transition: background-color .2s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease); }
.chat-fab:hover { box-shadow: 0 0 0 1px #8DB4FF, 0 0 30px rgba(0, 87, 255, .6), 0 12px 32px -10px rgba(0, 87, 255, .9); }
.chat-panel { -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
:root:not([data-theme="light"]) .chat-panel { background: linear-gradient(180deg, rgba(14, 21, 38, .94), rgba(7, 11, 21, .96)); }
.msg { background: color-mix(in srgb, var(--text) 6%, transparent); }
:root:not([data-theme="light"]) .toast { background: #0E1526; color: var(--text); box-shadow: 0 0 0 1px rgba(77, 141, 255, .35), 0 18px 40px -16px rgba(0, 0, 0, .9); }
.toast { border-radius: 999px; padding-inline: 20px; }
.pc-banniere { background: var(--verre) !important; border-color: var(--verre-ligne) !important; box-shadow: var(--verre-ombre), 0 -8px 40px -24px rgba(0, 87, 255, .6) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
:root:not([data-theme="light"]) .pc-banniere { background: linear-gradient(180deg, rgba(17, 25, 46, .95), rgba(9, 14, 26, .97)) !important; }

/* ---------- Mascotte : bras et jambes lisibles sur le ciel ---------- */
:root:not([data-theme="light"]) .mascot path[stroke="#0F1B3D"][stroke-width="11"] { stroke: #C9D6F2; }
:root:not([data-theme="light"]) .mascot > g > ellipse[fill="#0F1B3D"], :root:not([data-theme="light"]) .mascot circle[fill="#0F1B3D"], :root:not([data-theme="light"]) .mascot .m-wave ellipse[fill="#0F1B3D"] { fill: #C9D6F2; }
:root:not([data-theme="light"]) .mascot .m-body > ellipse[fill="#0F1B3D"] { fill: #C9D6F2; }

/* ---------- Thème clair : même langage, en lumière ---------- */
:root[data-theme="light"] .site-header { border-bottom-color: #E4EAF5; }
:root[data-theme="light"] .btn-secondary { background: #fff; border-color: #CBD5E6; }
:root[data-theme="light"] .btn-secondary:hover { background: #F3F7FF; border-color: #6FA0FF; box-shadow: 0 0 0 3px rgba(0, 87, 255, .08), 0 8px 22px -12px rgba(0, 87, 255, .5); }
:root[data-theme="light"] .header-actions .btn-secondary, :root[data-theme="light"] .mobile-nav .btn-secondary { background: var(--plink-blue); border-color: transparent; color: #fff; }
:root[data-theme="light"] .header-actions .btn-secondary:hover, :root[data-theme="light"] .mobile-nav .btn-secondary:hover { background: #1766FF; }
:root[data-theme="light"] .section-surface { background: linear-gradient(180deg, rgba(240, 245, 254, 0), #F2F6FD 90px, #F2F6FD calc(100% - 90px), rgba(240, 245, 254, 0)); }

@media (prefers-reduced-motion: reduce) { .ciel-bande canvas { transition: none; } }

/* ---------- Choix sélectionnés (onglets, segments) : pastille bleue lisible sur le verre sombre ---------- */
:root:not([data-theme="light"]) .seg-pilule,
:root:not([data-theme="light"]) .choix-seg:not(.a-pilule) input:checked + span,
:root:not([data-theme="light"]) .onglets:not(.a-pilule) [role="tab"][aria-selected="true"],
:root:not([data-theme="light"]) .seg-tabs [role="tab"][aria-selected="true"],
:root:not([data-theme="light"]) .billing [role="radio"][aria-checked="true"] {
  background: linear-gradient(180deg, rgba(0, 87, 255, .32), rgba(0, 87, 255, .16));
  box-shadow: inset 0 0 0 1px rgba(111, 160, 255, .45), 0 6px 18px -10px rgba(0, 87, 255, .9);
}

/* ---------- Menu « Outils » (en-tête, ordinateur) ---------- */
.nav-outils { position: relative; display: flex; }
.nav-outils-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); font: 600 14px/20px var(--font); cursor: pointer; white-space: nowrap;
  transition: color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease);
}
@media (min-width: 1200px) { .nav-outils-btn { padding: 8px 12px 8px 14px; } }
.nav-outils-btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-outils-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-outils-btn:hover, .nav-outils-btn[aria-expanded="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav-outils-btn.est-courant { color: var(--text); background: color-mix(in srgb, var(--text) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.nav-outils-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.menu-outils {
  position: absolute; z-index: 60; top: calc(100% + 12px); left: -4px; width: 580px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 8px;
  border: 1px solid var(--verre-ligne); border-radius: 18px;
  background: var(--filet-haut) 50% 0 / 70% 1px no-repeat, #FFFFFF;
  box-shadow: 0 24px 60px -24px rgba(0, 35, 110, .35), 0 2px 6px rgba(17, 19, 24, .06);
  animation: menu-outils-in .16s var(--ease);
}
:root:not([data-theme="light"]) .menu-outils, :root:not([data-theme="light"]) .sur-ciel .menu-outils {
  background: var(--filet-haut) 50% 0 / 70% 1px no-repeat, linear-gradient(180deg, rgba(16, 24, 44, .98), rgba(8, 12, 22, .98));
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .9), 0 -10px 40px -24px rgba(0, 87, 255, .6);
}
:root[data-theme="light"] .sur-ciel .menu-outils { background: var(--filet-haut) 50% 0 / 70% 1px no-repeat, #FFFFFF; }
@keyframes menu-outils-in { from { opacity: 0; transform: translateY(-6px); } }
.nav .menu-outils a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 12px; border-radius: 12px; color: var(--text); white-space: normal; background: none; box-shadow: none;
}
.nav .menu-outils a:hover, .nav .menu-outils a:focus-visible { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.nav .menu-outils a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.nav .menu-outils a[aria-current="page"] { background: color-mix(in srgb, var(--plink-blue) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--plink-blue) 30%, transparent); }
.nav .menu-outils a:last-child { grid-column: 1 / -1; }
.mo-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--plink-blue) 14%, transparent); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--plink-blue) 24%, transparent); }
.mo-ic svg { width: 20px; height: 20px; }
.mo-txt { display: block; min-width: 0; }
.mo-txt strong { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.mo-txt > span:last-child { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--text-2); }
.mo-pro { margin-left: 8px; padding: 1px 8px; font-size: 11px; vertical-align: 1px; }
@media (prefers-reduced-motion: reduce) { .menu-outils { animation: none; } }

/* ---------- Outils dans le menu mobile ---------- */
.mobile-nav .mnav-outils { display: grid; gap: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mobile-nav .mnav-titre { padding: 14px 4px 6px; color: var(--text-2); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mobile-nav .mnav-outils a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 0; }
.mobile-nav .mnav-outils a svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); }
.mobile-nav .mnav-outils a[aria-current="page"] { color: var(--accent-text); }

/* ---------- Accueil : cartes des autres outils ---------- */
.outils-section { padding-top: 24px; }
.outils-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 899px) { .outils-grille { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }
.outil-carte {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 28px; border: 1px solid var(--verre-ligne); border-radius: var(--r-card);
  background: var(--filet-haut) 50% 0 / 60% 1px no-repeat, radial-gradient(60% 110px at 50% 0, var(--lueur-haut), transparent) 50% 0 / 100% 150px no-repeat, var(--verre);
  box-shadow: var(--verre-ombre); color: var(--text); text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.outil-carte:hover { border-color: rgba(111, 160, 255, .6); box-shadow: var(--verre-ombre), 0 0 0 1px rgba(0, 87, 255, .18), 0 24px 60px -30px rgba(0, 87, 255, .75); transform: translateY(-2px); }
.outil-carte:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.outil-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #3F82FF, #0047D6); box-shadow: 0 10px 24px -12px rgba(0, 87, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.outil-ic svg { width: 22px; height: 22px; }
.outil-tete { display: flex; align-items: center; gap: 10px; }
.outil-tete strong { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.outil-desc { color: var(--text-2); font-size: 15px; line-height: 23px; }
.outil-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--accent-text); font-size: 14px; font-weight: 600; }
.outil-cta svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.outil-carte:hover .outil-cta svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .outil-carte, .outil-carte:hover, .outil-cta svg { transition: none; transform: none; } }

/* ---------- Raccourcis après une conversion YouTube ---------- */
.raccourcis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.raccourcis-titre { color: var(--text-2); font-size: 14px; line-height: 20px; margin-right: 2px; }
.raccourci {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--verre-ligne); background: color-mix(in srgb, var(--plink-blue) 8%, transparent);
  color: var(--text); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.raccourci svg { width: 16px; height: 16px; color: var(--accent-text); }
.raccourci:hover { border-color: rgba(111, 160, 255, .65); background: color-mix(in srgb, var(--plink-blue) 14%, transparent); box-shadow: 0 0 18px -6px rgba(0, 87, 255, .6); }
.raccourci:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
