/* ─────────────────────────────────────────────────────────────
   Charte Talyco 2026 (showroom + accueil V3), posée par-dessus Tailwind.
   Papier #F2F0EC, encre #15171c, marine #143584, vert #00E898 pour ce
   qui bouge ou qu'on met en avant, nuit #0B1B45. Manrope / Inter /
   JetBrains Mono. Chargée en dernier dans base.njk : les !important
   passent devant les classes Tailwind générées à la volée.
   ───────────────────────────────────────────────────────────── */
:root{--n:#143584;--m:#00E898;--ink:#15171c;--mute:#6b6d72;--paper:#F2F0EC;--paper2:#E9E6E0;--card:#F8F7F4;--line:#dcd8d0;--night:#0B1B45;--r:28px}

/* Fond et texte */
html body{background:var(--paper)!important;color:#3a3c41;font-family:Inter,-apple-system,sans-serif;letter-spacing:-.011em;-webkit-font-smoothing:antialiased}
body .bg-white,body .bg-gray-50,body .bg-slate-50,body .bg-\[\#f8fafc\],body .bg-\[\#F8FAFC\],body .bg-\[\#fafafa\]{background-color:var(--paper)!important}
body p{font-weight:300}
body p b,body p strong{font-weight:600;color:var(--ink)}
body .text-gray-600,body .text-gray-500,body .text-slate-600,body .text-\[\#373737\]\/70{color:var(--mute)!important}

/* Titres « piste C » : Manrope, encre, serrés ; <b> pour la fin, <u> souligné vert */
body h1,body h2{font-family:Manrope,sans-serif!important;font-weight:700!important;color:var(--ink)!important;letter-spacing:-.045em!important;line-height:1.02}
body h1{font-weight:300!important}
body h1 b,body h1 strong,body h2 b,body h2 strong{font-weight:800}
body h3,body h4{font-family:Manrope,sans-serif;font-weight:700!important;letter-spacing:-.02em}
body h3:not([class*="text-white"]),body h4:not([class*="text-white"]){color:var(--ink)}
body .font-black{font-weight:800!important}
body h1 u,body h2 u{text-decoration:none;background:linear-gradient(var(--m),var(--m)) 0 92%/100% .12em no-repeat}
/* Ancien mot vert ou en dégradé dans un titre : il devient encre soulignée vert */
body h1 [class*="text-[#00e898]"],body h2 [class*="text-[#00e898]"],
body h1 .text-transparent,body h2 .text-transparent,body h1 .bg-clip-text,body h2 .bg-clip-text{
  color:inherit!important;-webkit-text-fill-color:currentColor!important;background:linear-gradient(var(--m),var(--m)) 0 92%/100% .12em no-repeat!important;font-weight:800}

/* Sections sombres : nuit, titres blancs */
body .bg-\[\#143584\]:not(a):not(button):not(span),body .bg-\[\#0B1D45\],body .bg-\[\#0b1d45\],body .bg-\[\#0B1B45\],
body .bg-gradient-to-br.from-\[\#143584\],body div.bg-gradient-to-r.from-\[\#143584\],body section.bg-gradient-to-r.from-\[\#143584\],body .bg-gradient-to-b.from-\[\#143584\]{background:var(--night)!important;box-shadow:none!important}
body .bg-\[\#0B1D45\] h1,body .bg-\[\#0B1D45\] h2,body .bg-\[\#143584\] h1,body .bg-\[\#143584\] h2,
body .from-\[\#143584\] h1,body .from-\[\#143584\] h2,body h2.text-white,body h1.text-white,body h3.text-white{color:#fff!important}

/* Halos flous et dégradés décoratifs : retirés */
body [class*="blur-[1"],body [class*="blur-3xl"]{display:none!important}
body .bg-gradient-to-br.from-slate-50,body .bg-gradient-to-br.from-white,body .bg-gradient-to-b.from-white{background:var(--card)!important}

/* Cartes : fond carte, 28 px, sans bordure ni ombre */
body .rounded-2xl.bg-white,body .rounded-3xl.bg-white,body .rounded-xl.bg-white,
body .rounded-2xl.border.bg-white,body .rounded-3xl.from-slate-50{background:var(--card)!important;border-color:transparent!important;box-shadow:none!important}
body .rounded-2xl,body .rounded-3xl{border-radius:var(--r)!important}
body .shadow-xl,body .shadow-2xl,body .shadow-lg{box-shadow:none!important}
body .border-gray-100,body .border-gray-200,body .border-\[\#143584\]\/10{border-color:var(--line)!important}

/* Pastilles et surtitres : plus de fond, une étiquette mono discrète */
body span.uppercase.rounded-full[class*="tracking-[0.2em]"],body span.uppercase[class*="tracking-[0.2em]"]{
  background:none!important;border:0!important;padding:0!important;font:500 12px 'JetBrains Mono',monospace!important;letter-spacing:.04em!important;text-transform:none!important;color:var(--mute)!important}
body span.uppercase[class*="tracking-[0.2em]"] > .rounded-full{display:none!important}
body [class*="text-[#00e898]"]:not(h1 *):not(h2 *){color:var(--m)}

/* Boutons : marine plein, pilule, Inter 500, le point vert avance */
body a.rounded-full.bg-\[\#143584\],body button.rounded-full.bg-\[\#143584\],
body a.rounded-full.bg-\[\#00e898\],body button.rounded-full.bg-\[\#00e898\],
body a.rounded-xl.bg-\[\#143584\],body button.rounded-xl.bg-\[\#143584\],
body a.rounded-xl.bg-\[\#00e898\],body button.rounded-xl.bg-\[\#00e898\]{
  position:relative;border-radius:999px!important;background:var(--n)!important;color:#fff!important;font:500 16px Inter,sans-serif!important;letter-spacing:0!important;padding:15px 44px 15px 26px!important;box-shadow:none!important;transition:background .3s!important}
body a.rounded-full.bg-\[\#143584\]::after,body button.rounded-full.bg-\[\#143584\]::after,
body a.rounded-full.bg-\[\#00e898\]::after,body button.rounded-full.bg-\[\#00e898\]::after,
body a.rounded-xl.bg-\[\#143584\]::after,body button.rounded-xl.bg-\[\#143584\]::after,
body a.rounded-xl.bg-\[\#00e898\]::after,body button.rounded-xl.bg-\[\#00e898\]::after{
  content:"";position:absolute;right:20px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:var(--m);transition:transform .4s cubic-bezier(.23,1,.32,1)}
body a.rounded-full.bg-\[\#143584\]:hover,body button.rounded-full.bg-\[\#143584\]:hover,
body a.rounded-full.bg-\[\#00e898\]:hover,body button.rounded-full.bg-\[\#00e898\]:hover,
body a.rounded-xl.bg-\[\#143584\]:hover,body a.rounded-xl.bg-\[\#00e898\]:hover{background:#0f2a6b!important}
body a.rounded-full:hover::after,body button.rounded-full:hover::after,body a.rounded-xl:hover::after{transform:translateX(6px)}
body a.rounded-full.bg-\[\#143584\] i,body a.rounded-full.bg-\[\#00e898\] i,body button.rounded-full.bg-\[\#00e898\] i,body button.rounded-full.bg-\[\#143584\] i,
body a.rounded-xl.bg-\[\#143584\] i,body a.rounded-xl.bg-\[\#00e898\] i{display:none!important}

/* En-tête : papier translucide, sans filet */
header.fixed{background:rgba(242,240,236,.82)!important;border-bottom:0!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}
header.fixed nav,header.fixed nav button,header.fixed nav a{font-family:Inter,sans-serif;font-weight:500!important}
header.fixed .bg-white.rounded-2xl{background:var(--card)!important;box-shadow:0 20px 50px -20px rgba(21,23,28,.18)!important}

/* Pied : nuit, logo inchangé sur un cartouche papier */
footer.charte-pied{background:var(--night)!important;border:0!important;color:rgba(255,255,255,.72)}
footer.charte-pied .logo-cartouche{background:var(--paper);padding:8px 12px;border-radius:12px;display:inline-flex}
footer.charte-pied h4{color:#fff!important;font:500 12px 'JetBrains Mono',monospace!important;letter-spacing:.04em!important;text-transform:none!important}
footer.charte-pied a,footer.charte-pied button,footer.charte-pied li,footer.charte-pied p,footer.charte-pied div{color:rgba(255,255,255,.68)!important}
footer.charte-pied a:hover,footer.charte-pied button:hover{color:#fff!important}
footer.charte-pied .border-gray-100{border-color:rgba(255,255,255,.12)!important}

/* Surtitre posé juste au-dessus d'un titre : retiré (règle des trois étages).
   Une information utile se déplace sous le titre avec la classe .charte-note. */
body span[class*="tracking-[0.2em]"]:has(+ h1),body span[class*="tracking-[0.2em]"]:has(+ h2),
body p[class*="tracking-[0.2em]"]:has(+ h1),body p[class*="tracking-[0.2em]"]:has(+ h2){display:none!important}
body .charte-note{display:block;margin-top:18px;font:500 12px 'JetBrains Mono',monospace;letter-spacing:.04em;color:var(--mute)}

/* Boutons rectangulaires de l'ancien site : même pilule marine */
body a.rounded-lg.bg-\[\#143584\],body button.rounded-lg.bg-\[\#143584\],body a.rounded-lg.bg-\[\#00e898\],body button.rounded-lg.bg-\[\#00e898\],
body a.rounded-lg.bg-white,body button.rounded-lg.bg-white{
  position:relative;border-radius:999px!important;background:var(--n)!important;color:#fff!important;font:500 16px Inter,sans-serif!important;letter-spacing:0!important;padding:15px 44px 15px 26px!important;box-shadow:none!important;border:0!important}
body a.rounded-lg.bg-\[\#143584\]::after,body button.rounded-lg.bg-\[\#143584\]::after,body a.rounded-lg.bg-\[\#00e898\]::after,body button.rounded-lg.bg-\[\#00e898\]::after,
body a.rounded-lg.bg-white::after,body button.rounded-lg.bg-white::after{
  content:"";position:absolute;right:20px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:var(--m);transition:transform .4s cubic-bezier(.23,1,.32,1)}
body a.rounded-lg:hover::after,body button.rounded-lg:hover::after{transform:translateX(6px)}
body a.rounded-lg.bg-\[\#143584\] i,body button.rounded-lg.bg-\[\#143584\] i,body a.rounded-lg.bg-\[\#00e898\] i,body button.rounded-lg.bg-\[\#00e898\] i,body a.rounded-lg.bg-white i,body button.rounded-lg.bg-white i{display:none!important}

/* Bloc « les agents qui s'en chargent » (photos du showroom) */
.charte-agents-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:20px}
.charte-agents figure{margin:0;background:var(--card);border-radius:var(--r);overflow:hidden}
.charte-agents img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;transition:transform .6s cubic-bezier(.23,1,.32,1)}
.charte-agents figure:hover img{transform:scale(1.04)}
.charte-agents figcaption{padding:16px 18px 20px;display:flex;flex-direction:column;gap:4px}
.charte-agents figcaption b{font:700 17px Manrope,sans-serif;color:var(--ink);letter-spacing:-.02em}
.charte-agents figcaption span{font:300 14px Inter,sans-serif;color:var(--mute)}

/* Grand titre : début léger (300), fin en <b> 800 */
html body h1,html body h1.font-black,html body h1.font-extrabold,html body h1.font-bold{font-weight:300!important}
html body h1 b,html body h1 strong{font-weight:800!important}

/* Menu et pied « cj » de la version de relecture, repeints à la charte papier */
.cj-nav{--ink:#15171c;--ink-2:#3a3c41;--ink-3:#6b6d72;--line:transparent;--line-2:#dcd8d0;--glass:rgba(21,23,28,.04);--glass-2:rgba(21,23,28,.06);--mint:#143584;background:rgba(242,240,236,.82)!important;border-bottom:0!important}
.cj-nav .cj-liens{font-family:Inter,sans-serif;font-weight:500}
.cj-menu-in{background:#F8F7F4!important;border:0!important;box-shadow:0 24px 60px -24px rgba(21,23,28,.25)!important}
.cj-nav .cj-btn{background:#143584!important;color:#fff!important;font:500 15px Inter,sans-serif}
.cj-nav .cj-btn:hover{background:#0f2a6b!important}
.cj-mobile{background:#F2F0EC!important}
.cj-foot{--ink:#fff;--ink-2:rgba(255,255,255,.68);--ink-3:rgba(255,255,255,.5);--line:rgba(255,255,255,.12);--mint:#00E898;background:#0B1B45!important;border-top:0!important}
.cj-foot .cj-logo{background:#F2F0EC;color:#143584!important;padding:8px 14px;border-radius:12px;display:inline-flex}
.cj-foot h4{color:#fff!important;text-transform:none!important;letter-spacing:.04em!important}

/* Grand bot en haut de page (posé par le filtre charteHeroBot) */
.charte-hero:not(.charte-hero--marge){position:relative;width:100%;max-width:1200px!important;margin-left:auto!important;margin-right:auto!important;text-align:left!important;
  padding-right:min(44%,520px)!important;min-height:clamp(380px,38vw,520px);display:flex!important;flex-direction:column;justify-content:center;align-items:flex-start}
.charte-hero:not(.charte-hero--marge)>*:not(.charte-hero-bot){margin-left:0!important;margin-right:0!important;max-width:100%}
.charte-hero:not(.charte-hero--marge)>.charte-hero-bot{position:absolute;right:0;top:50%;width:min(42%,500px);margin:0;transform:translateY(-50%);pointer-events:none}
.charte-hero-bot img{display:block;width:100%;height:auto;mix-blend-mode:multiply;
  -webkit-mask-image:radial-gradient(closest-side,#000 72%,transparent 100%);mask-image:radial-gradient(closest-side,#000 72%,transparent 100%);
  animation:charte-flotte 7s ease-in-out infinite}
@keyframes charte-flotte{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@media (prefers-reduced-motion:reduce){.charte-hero-bot img{animation:none}}
/* Sur fond nuit, pas de mélange : le bot garde son fond clair adouci */
.bg-\[\#0B1D45\] .charte-hero-bot img,.from-\[\#143584\] .charte-hero-bot img{mix-blend-mode:normal}
@media (max-width:900px){
  .charte-hero:not(.charte-hero--marge){padding-right:0!important;min-height:0;display:block!important}
  .charte-hero:not(.charte-hero--marge)>.charte-hero-bot{position:static;transform:none;width:min(260px,70%);margin:0 auto 8px}
}

/* Bot en mode « marge » (pages article : guides, lexiques, légal) : il flotte à droite du titre */
.charte-hero.charte-hero--marge{position:relative}
.charte-hero--marge>.charte-hero-bot{position:absolute;right:-12px;top:auto;width:clamp(150px,26%,250px);margin:-36px 0 0;transform:none}
.charte-hero--marge>h1,.charte-hero--marge>h1+p{padding-right:min(30%,270px)}
@media (max-width:640px){.charte-hero--marge>.charte-hero-bot{width:110px;margin-top:-20px}.charte-hero--marge>h1{padding-right:110px}.charte-hero--marge>h1+p{padding-right:0}}
/* Surtitres en majuscules posés juste au-dessus d'un titre : retirés */
body span.uppercase:has(+ h1),body span.uppercase:has(+ h2),body div.uppercase:has(+ h1),body p.uppercase:has(+ h1),body p.uppercase:has(+ h2),
body .inline-flex.rounded-full:has(+ h1),body .blog-hero-eyebrow:has(+ h1){display:none!important}
body span.uppercase:has(+ .charte-hero-bot + h1),body p.uppercase:has(+ .charte-hero-bot + h1),body .inline-flex.rounded-full:has(+ .charte-hero-bot + h1){display:none!important}
