/* ART CONSTRUCTION - vitrine « +100 outils » (mission du 2026-11-21).
   Contient : recherche + pastilles de profil de /outils/, liste des outils, studios vedettes, filtres de /outils/studios/, sous-accordeons du menu de gauche,
   dock de l'accueil (2 onglets) et bandes « outils gratuits lies » des pages /erp/, /soumissions/, /jobs/ (injectees par art-vitrine-bandes.js).
   MODE CLAIR ET MODE SOMBRE : tout passe par des variables --ov-* ; la valeur sombre est redefinie sous html[data-theme="dark"] (le meme attribut que theme-sombre-pre.js
   et le curseur du menu pose). Palette sombre = celle de theme-sombre.css (cartes #111f30, fond #0f1d2e, traits #243449, texte #dae3eb, accent #82bef1).
   Aucune couleur n'est ecrite en dur dans le HTML (le convertisseur des couleurs « en ligne » n'a donc rien a faire). Impression : rien de special (ecran seulement). */

:is(.ov, .ov-liste, .ov-vedettes, .ov-fam, .ot-modules, .ov-dock, .ov-bande, .ofa) {
  --ov-card: #FFFFFF; --ov-fond: #F8FAFC; --ov-bord: #E2E8F0; --ov-bord2: #CBD5E1;
  --ov-txt: #1E293B; --ov-sec: #475569; --ov-mut: #64748B;
  --ov-acc: #2563EB; --ov-acc-f: #1D4ED8; --ov-acc-s: #EFF6FF; --ov-acc-b: #BFDBFE; --ov-sur-acc: #FFFFFF;
  --ov-ombre: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.10);
  --ov-focus: rgba(37,99,235,.45);
}
html[data-theme="dark"] :is(.ov, .ov-liste, .ov-vedettes, .ov-fam, .ot-modules, .ov-dock, .ov-bande, .ofa) {
  --ov-card: #111f30; --ov-fond: #0f1d2e; --ov-bord: #243449; --ov-bord2: #34506f;
  --ov-txt: #dae3eb; --ov-sec: #b6bfce; --ov-mut: #949da8;
  --ov-acc: #2b6cb0; --ov-acc-f: #82bef1; --ov-acc-s: #172a40; --ov-acc-b: #2d4a6b; --ov-sur-acc: #FFFFFF;
  --ov-ombre: 0 1px 2px rgba(0,0,0,.30), 0 8px 24px -12px rgba(0,0,0,.50);
  --ov-focus: rgba(130,190,241,.55);
}
:is(.ov, .ov-liste, .ov-vedettes, .ov-fam, .ot-modules, .ov-dock, .ov-bande, .ofa) *,
:is(.ov, .ov-liste, .ov-vedettes, .ov-fam, .ot-modules, .ov-dock, .ov-bande, .ofa) *::before,
:is(.ov, .ov-liste, .ov-vedettes, .ov-fam, .ot-modules, .ov-dock, .ov-bande, .ofa) *::after { box-sizing: border-box; }
:is(.ov, .ov-liste, .ov-vedettes, .ov-fam, .ov-dock, .ov-bande, .ofa) :focus-visible { outline: 3px solid var(--ov-focus); outline-offset: 2px; border-radius: 8px; }

/* ------------------------------------------------------------------ barre de recherche + pastilles (hub et studios) */
.ov { display: grid; gap: 12px; }
.ov-barre { position: relative; }
.ov-loupe { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--ov-mut); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.ov-q { display: block; width: 100%; height: 52px; padding: 0 46px 0 46px; border: 1px solid var(--ov-bord2); border-radius: 14px; background: var(--ov-card); color: var(--ov-txt);
  font: 400 16px/1.2 inherit; font-family: inherit; box-shadow: var(--ov-ombre); -webkit-appearance: none; appearance: none; }
.ov-q::placeholder { color: var(--ov-mut); opacity: 1; }
.ov-q::-webkit-search-cancel-button { display: none; }
.ov-q:focus { outline: none; border-color: var(--ov-acc); box-shadow: 0 0 0 3px var(--ov-focus), var(--ov-ombre); }
.ov-effacer { position: absolute; right: 10px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 0; border-radius: 9px;
  background: transparent; color: var(--ov-mut); cursor: pointer; }
.ov-effacer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ov-effacer:hover { background: var(--ov-acc-s); color: var(--ov-acc-f); }
.ov-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 15px; border: 1px solid var(--ov-bord2); border-radius: 999px; background: var(--ov-card); color: var(--ov-txt);
  font: 600 13.5px/1.2 inherit; font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.ov-chip:hover { background: var(--ov-acc-s); border-color: var(--ov-acc-b); color: var(--ov-acc-f); }
.ov-chip[aria-pressed="true"] { background: var(--ov-acc); border-color: var(--ov-acc); color: var(--ov-sur-acc); box-shadow: 0 6px 14px -8px var(--ov-acc); }
.ov-chip[aria-pressed="true"]:hover { background: var(--ov-acc-f); color: var(--ov-sur-acc); }
html[data-theme="dark"] .ov-chip[aria-pressed="true"]:hover { background: #2f74bd; border-color: #2f74bd; }
.ov-etat { margin: 0; color: var(--ov-sec); font-size: 14px; font-weight: 600; }
.ov-none { margin: 0; padding: 14px 16px; border: 1px dashed var(--ov-bord2); border-radius: 12px; background: var(--ov-card); color: var(--ov-sec); font-size: 14.5px; line-height: 1.55; }
.ov-lien-reset { padding: 0; border: 0; background: none; color: var(--ov-acc-f); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
html:not(.ot-js) .ov { display: none; }

/* ------------------------------------------------------------------ liste de tous les outils (resultats) */
.ov-liste { display: grid; gap: 12px; }
.ov-liste .ot-h2 { margin: 0; }
html.ot-js .ov-liste:not([data-ov-on]) { display: none; }
html:not(.ot-js) .ov-liste { order: 90; }       /* sans JavaScript : la liste complete reste lisible, tout en bas de la page */
.ov-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ov-it { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 12px; border: 1px solid var(--ov-bord); border-radius: 12px; background: var(--ov-card); color: var(--ov-txt);
  text-decoration: none; box-shadow: var(--ov-ombre); transition: border-color .15s, transform .15s, background .15s; }
.ov-it:hover { border-color: var(--ov-acc-b); background: var(--ov-acc-s); color: var(--ov-txt); transform: translateY(-1px); }
.ov-it .ot-ic { flex: none; }
.ov-it-txt { display: grid; gap: 2px; min-width: 0; }
.ov-it-t { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ov-it-l { color: var(--ov-mut); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ studios vedettes + familles de /outils/studios/ */
.ov-vedettes { display: grid; gap: 4px; }
.ov-vedettes .ot-h2 { margin-bottom: 4px; }
.ov-sous { margin: 0 0 12px; color: var(--ov-sec); font-size: 15px; line-height: 1.55; }
.ov-tous { margin: 14px 0 0; }
.ov-fam .ot-h2 { display: flex; align-items: center; gap: 10px; }
.ov-fam .ot-nb { font-size: 12.5px; }

/* ------------------------------------------------------------------ menu de gauche : « Modules Art Construction Express » en sous-accordeons */
.ot-modules { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ov-bord); }
.ot-modules .ot-liste-titre { display: flex; align-items: center; gap: 8px; margin: 4px 8px 8px; }
.ot-modules .ot-liste-titre a { flex: 1 1 auto; min-width: 0; }
.ot-groupe-modules { margin-bottom: 6px; }
.ot-groupe-modules summary { font-size: 13px; }
.ot-groupe-modules .ot-lien { font-size: 13.5px; }

/* ------------------------------------------------------------------ dock de l'accueil (/) : 2 onglets sous le hero */
.ov-dock { padding: 28px 0 8px; color: var(--ov-txt); }
.ov-dock .sp-conteneur { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.ov-dock-boite { padding: 24px; border: 1px solid var(--ov-bord); border-radius: 20px; background: var(--ov-card); box-shadow: var(--ov-ombre); }
.ov-dock-titre { margin: 0 0 4px; color: var(--ov-txt); font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.ov-dock-sous { margin: 0 0 16px; color: var(--ov-sec); font-size: 1rem; line-height: 1.55; }
.ov-onglets { display: none; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ov-dock-js .ov-onglets { display: flex; }
.ov-onglet { min-height: 44px; padding: 9px 18px; border: 1px solid var(--ov-bord2); border-radius: 999px; background: var(--ov-card); color: var(--ov-txt);
  font: 600 14.5px/1.2 inherit; font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ov-onglet:hover { background: var(--ov-acc-s); border-color: var(--ov-acc-b); color: var(--ov-acc-f); }
.ov-onglet[aria-selected="true"] { background: var(--ov-acc); border-color: var(--ov-acc); color: var(--ov-sur-acc); }
.ov-panneau + .ov-panneau { margin-top: 20px; }
.ov-dock-js .ov-panneau + .ov-panneau { margin-top: 0; }
.ov-panneau[hidden] { display: none !important; }
.ov-panneau-titre { display: block; margin: 0 0 10px; color: var(--ov-mut); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ov-dock-js .ov-panneau-titre { display: none; }
.ov-dock-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.ov-dock-lien { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 14px; border: 1px solid var(--ov-bord); border-radius: 14px; background: var(--ov-fond); color: var(--ov-txt);
  text-decoration: none; transition: border-color .15s, transform .15s, background .15s; }
.ov-dock-lien:hover { border-color: var(--ov-acc-b); background: var(--ov-acc-s); color: var(--ov-txt); transform: translateY(-1px); }
.ov-dock-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--ov-card); border: 1px solid var(--ov-bord); font-size: 20px; line-height: 1; }
.ov-dock-txt { display: grid; gap: 3px; min-width: 0; }
.ov-dock-txt strong { color: var(--ov-txt); font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.ov-dock-txt small { color: var(--ov-sec); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.ov-dock-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* boutons de la vitrine (accueil et bandes) : memes teintes que le hub */
.ov-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 12px;
  font: 600 14.5px/1.3 inherit; font-family: inherit; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ov-btn-1 { background: var(--ov-acc); color: var(--ov-sur-acc); box-shadow: 0 8px 18px -10px var(--ov-acc); }
.ov-btn-1:hover { background: var(--ov-acc-f); color: var(--ov-sur-acc); }
html[data-theme="dark"] .ov-btn-1:hover { background: #2f74bd; color: #FFFFFF; }
.ov-btn-2 { background: var(--ov-card); border-color: var(--ov-bord2); color: var(--ov-txt); }
.ov-btn-2:hover { border-color: var(--ov-acc); color: var(--ov-acc-f); }

/* ------------------------------------------------------------------ bandes « outils gratuits lies » (/erp/, /soumissions/, /jobs/) */
.ov-bande { position: relative; z-index: 1; padding: 36px 20px; border-top: 1px solid var(--ov-bord); border-bottom: 1px solid var(--ov-bord); background: var(--ov-fond); color: var(--ov-txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.5; text-align: left; }
.ov-bande-dedans { max-width: 1180px; margin: 0 auto; }
.ov-bande h2 { margin: 0 0 6px; color: var(--ov-txt); font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.ov-bande p { margin: 0 0 16px; color: var(--ov-sec); font-size: 1rem; line-height: 1.55; }
.ov-bande ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.ov-bande li { margin: 0; padding: 0; }
.ov-bande-lien { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 14px; border: 1px solid var(--ov-bord); border-radius: 14px; background: var(--ov-card); color: var(--ov-txt);
  text-decoration: none; box-shadow: var(--ov-ombre); transition: border-color .15s, transform .15s, background .15s; }
.ov-bande-lien:hover { border-color: var(--ov-acc-b); background: var(--ov-acc-s); color: var(--ov-txt); transform: translateY(-1px); }
.ov-bande-lien .ov-dock-ic { background: var(--ov-fond); }
.ov-bande-cta { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 600px) {
  .ov-dock-boite { padding: 18px 16px; border-radius: 16px; }
  .ov-q { height: 50px; font-size: 16px; }
  .ov-chip { padding: 8px 13px; }
  .ov-items { grid-template-columns: minmax(0, 1fr); }
  .ov-dock-cta .ov-btn, .ov-bande-cta .ov-btn { width: 100%; }
  .ov-bande { padding: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-chip, .ov-it, .ov-onglet, .ov-dock-lien, .ov-bande-lien, .ov-btn { transition: none !important; transform: none !important; }
}


/* ------------------------------------------------------------------ 9 FAMILLES d'outils (2026-11-21) : sections de l'accueil /outils/ et barre du haut.
   Memes variables --ov-* que le reste de la vitrine (clair ET sombre) ; la couleur de famille arrive par les variables en ligne --c / --cs, reprises ici dans --fam-c / --fam-cs
   pour pouvoir etre redefinies en mode sombre. Sans ces regles (flag eteint) rien ne change. */
.ofa { display: grid; gap: 22px; margin: 6px 0 8px; }
.ofa-intro { margin: 0; color: var(--ov-sec); font-size: 15px; line-height: 1.55; }
.ofa-fam { --fam-c: var(--c, var(--ov-acc)); --fam-cs: var(--cs, var(--ov-acc-s)); padding: 18px 18px 16px; border: 1px solid var(--ov-bord); border-left: 5px solid var(--fam-c); border-radius: 16px;
  background: var(--ov-card); box-shadow: var(--ov-ombre); scroll-margin-top: calc(var(--ot-onglets, 56px) + 84px); }
html[data-theme="dark"] .ofa-fam { --fam-c: var(--ov-acc-f); --fam-cs: var(--ov-acc-s); }
.ofa-h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.ofa-h2 .ot-nb { font-size: 12.5px; }
.ofa-h3 { margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--ov-bord); color: var(--fam-c); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ofa-items { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.ofa-it:hover { border-color: var(--fam-c); background: var(--fam-cs); }
.ofa-it .ov-it-l { color: var(--fam-c); }
html[data-theme="dark"] .ofa-it .ov-it-l { color: var(--ov-mut); }
.ot-onglets-fam .ot-pilules { scroll-margin-top: 0; }
.ot-pilules-cache { display: none !important; }
@media (max-width: 600px) {
  .ofa-fam { padding: 14px 12px 12px; border-radius: 14px; }
  .ofa-items { grid-template-columns: minmax(0, 1fr); }
}


/* ==================================================================================================
   ART CONSTRUCTION - /outils/ v2 (2026-11-21) : mise en page validee sur maquette par l'utilisateur.
   Ajoute a la FIN de vitrine-100.css. Retour : voir RETOUR-ARRIERE.sh dans la sauvegarde du depot.
   - Le mega menu du haut (#amu, .amh*) n'est PAS touche : aucun selecteur ci-dessous ne le vise.
   - Les couleurs ne servent qu'au MODE CLAIR (html:not([data-theme="dark"])) ; en sombre seules les alignements changent.
   - LARGEURS : inchangees (retour aux largeurs d'origine le 2026-11-21, a la demande de l'utilisateur) ; seul le sous-menu change de forme.
   - Bande bleue pleine largeur en haut de la page (comme /tarifs/), validee sur maquette le 2026-11-21.
   - Look du bandeau, des cartes vedettes, des titres et masquage du bandeau du bas : page d'accueil du hub seulement
     (celle qui contient #ot-familles / .ot-chiffres), pour ne pas toucher aux pages des outils.
   ================================================================================================== */

/* ---- 2. Sous-menu : 9 familles en grille reguliere (5 cases, puis 4 plus larges), trait fin de la couleur de chaque famille */
@media (min-width: 1000px) {
  .ot-onglets-fam .ot-pilules:not(.ot-pilules-cache) { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 6px; padding-block: 8px; }
  .ot-onglets-fam .ot-pilules:not(.ot-pilules-cache) > li:nth-child(-n + 5) { grid-column: span 4; }
  .ot-onglets-fam .ot-pilules:not(.ot-pilules-cache) > li:nth-child(n + 6)  { grid-column: span 5; }
  .ot-onglets-fam .ot-pilules:not(.ot-pilules-cache) > li > .ofa-pilule { width: 100%; height: 100%; box-sizing: border-box; }
}
.ot-onglets-fam .ofa-pilule[data-fam="appels-offres-metres"]        { --pc: #2563EB; }
.ot-onglets-fam .ofa-pilule[data-fam="chantier-planning-securite"]  { --pc: #EA580C; }
.ot-onglets-fam .ofa-pilule[data-fam="corps-d-etat"]                { --pc: #E11D48; }
.ot-onglets-fam .ofa-pilule[data-fam="etudes-permis-urbanisme"]     { --pc: #0891B2; }
.ot-onglets-fam .ofa-pilule[data-fam="salaires-charges-rh"]         { --pc: #059669; }
.ot-onglets-fam .ofa-pilule[data-fam="contrats-juridique-fraudes"]  { --pc: #7C3AED; }
.ot-onglets-fam .ofa-pilule[data-fam="gestion-finances"]            { --pc: #D97706; }
.ot-onglets-fam .ofa-pilule[data-fam="proprietaires-ppe"]           { --pc: #65A30D; }
.ot-onglets-fam .ofa-pilule[data-fam="guides-formations"]           { --pc: #0F766E; }

html:not([data-theme="dark"]) .ot-onglets-fam .ot-pilules:not(.ot-pilules-cache) .ofa-pilule {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 40px; padding: 5px 10px;
  border: 1px solid #E2E8F0; border-top: 2px solid var(--pc, #2563EB); border-radius: 10px; background: #FFFFFF; color: #1E293B;
  font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: left; white-space: normal;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
html:not([data-theme="dark"]) .ot-onglets-fam .ofa-pilule .ot-pilule-ic {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--cs, #EFF6FF); font-size: 14px; line-height: 1;
}
html:not([data-theme="dark"]) .ot-onglets-fam .ofa-pilule:hover { transform: translateY(-1px); background: var(--cs, #EFF6FF); border-color: var(--pc, #2563EB); box-shadow: 0 8px 16px -10px var(--pc, #2563EB); }
html:not([data-theme="dark"]) .ot-onglets-fam .ofa-pilule[aria-current] { background: var(--cs, #EFF6FF); border-color: var(--pc, #2563EB); }

/* ---- 3. Page d'accueil du hub (mode clair) */
html:not([data-theme="dark"]) body:has(#ot-centre) { background-color: #F4F7FA !important; }

/* 3a. Bandeau du haut : bande bleue sur TOUTE la largeur de l'ecran, comme /tarifs/ et les autres pages (degrade uni #063D6E -> #085292, ni quadrillage ni orange).
   Elle est dessinee derriere le titre par un pseudo-element qui va d'un bord de l'ecran a l'autre (352 = marge 24 + menu de gauche 300 + espace 28) ;
   le titre reste dans la colonne de droite, le menu de gauche passe devant la bande. Sous 1024 px (menu en tiroir) : bande de bord a bord, collee sous le sous-menu. */
@media (min-width: 1024px) {
  html:not([data-theme="dark"]) .ot-menu { z-index: 2; }
}
html:not([data-theme="dark"]) .ot { overflow-x: clip; }
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete { position: relative; padding: 6px 0 80px; margin-bottom: -28px; }
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete > * { position: relative; }
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete::before {
  content: ""; position: absolute; top: -24px; bottom: 0;
  left: calc(-1 * ((100vw - min(100vw, 1440px)) / 2 + 352px));
  right: calc(-1 * ((100vw - min(100vw, 1440px)) / 2 + 24px));
  background: linear-gradient(135deg, #063D6E, #085292);
}
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete .ot-h1 { color: #FFFFFF; }
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete .ot-soustitre { color: #D9E8F6; }
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete .ot-fil,
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete .ot-fil a,
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete .ot-fil li { color: rgba(255, 255, 255, .78); }
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete .ot-fil li + li::before { color: rgba(255, 255, 255, .5); }
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete .ot-fil [aria-current] { color: #FFFFFF; font-weight: 600; }
html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete .ot-badge { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #FFFFFF; }

/* 3b. Les 4 chiffres : cases blanches posees a cheval sur le bas de la bande */
html:not([data-theme="dark"]) #ot-centre > .ot-chiffres { position: relative; z-index: 1; margin-top: -40px; padding-inline: 32px; }
html:not([data-theme="dark"]) #ot-centre > .ot-chiffres li { background: #FFFFFF; border-color: transparent; box-shadow: 0 10px 20px -10px rgba(6, 57, 102, .45); }
@media (max-width: 1023.98px) {
  html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete { margin: -16px -16px 0; padding: 22px 16px 24px; background: linear-gradient(135deg, #063D6E, #085292); }
  html:not([data-theme="dark"]) #ot-centre:has(> .ot-chiffres) .ot-entete::before { display: none; }
  html:not([data-theme="dark"]) #ot-centre > .ot-chiffres { margin-top: 0; padding-inline: 0; }
}
/* 3c. Studios vedettes : trait fin bleu en haut, la carte monte au survol */
html:not([data-theme="dark"]) #ot-centre .ov-vedettes a.ot-carte { border-top: 2px solid #2563EB; transition: transform .2s ease, box-shadow .2s ease; }
html:not([data-theme="dark"]) #ot-centre .ov-vedettes a.ot-carte:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(8, 82, 146, .25); }
html:not([data-theme="dark"]) #ot-centre .ov-vedettes .ot-carte-titre { color: #063966; }
html:not([data-theme="dark"]) #ot-centre .ov-vedettes a.ot-carte:hover .ot-carte-titre { color: #2563EB; }

/* 3d. Titres de section (hors familles) : fine barre bleue a gauche */
html:not([data-theme="dark"]) #ot-centre:has(#ot-familles) > section:not(.ofa):not(.ov-liste) .ot-h2:not(.ofa-h2) { position: relative; padding-left: 14px; color: #063966; }
html:not([data-theme="dark"]) #ot-centre:has(#ot-familles) > section:not(.ofa):not(.ov-liste) .ot-h2:not(.ofa-h2)::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px; border-radius: 2px; background: #2563EB;
}

/* 3e. Pas de bandeau « publicite » en bas de la page d'accueil du hub */
#ot-centre:has(#ot-familles) > section.ot-banniere { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ot-onglets-fam .ofa-pilule, #ot-centre .ov-vedettes a.ot-carte { transition: none !important; transform: none !important; }
}

/* ---- 4. Sections de famille : trait de couleur AU-DESSUS seulement, 1 px, ombre douce ; plus de trait autour ni sur le cote */
.ofa .ofa-fam {
  border-left: 1px solid var(--ov-bord);
  border-top: 1px solid var(--fam-c);
  box-shadow: 0 -6px 14px -8px color-mix(in srgb, var(--fam-c) 60%, transparent), 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
}
html:not([data-theme="dark"]) .ofa .ofa-fam { border-left-width: 0; border-right-width: 0; border-bottom-width: 0; }
html:not([data-theme="dark"]) .ofa .ofa-h3,
html:not([data-theme="dark"]) .ofa .ofa-it .ov-it-l { color: var(--cd, var(--fam-c)); }

/* ---- 5. Menu de gauche (bureau, mode clair) : fond bleu, trait fin bleu au-dessus seulement (sous 1024 px : tiroir du telephone, inchange) */
@media (min-width: 1024px) {
  html:not([data-theme="dark"]) .ot-menu { background: #D3E4F7; border: 0; border-top: 1px solid #2563EB; box-shadow: 0 -6px 14px -8px rgba(37, 99, 235, .45), 0 10px 26px -14px rgba(37, 99, 235, .40); }
  html:not([data-theme="dark"]) .ot-menu .ot-mode { background: #F2F7FD; border-color: #BFD6EF; }
  html:not([data-theme="dark"]) .ot-menu .ot-menu-pied { border-top-color: #B4CDEA; }
}

/* ---- 6. Orange adouci pour « Chantier, planning & securite » (trait de la section et case du sous-menu) */
html:not([data-theme="dark"]) #famille-chantier-planning-securite { --c: #F0903F !important; }
html:not([data-theme="dark"]) .ot-onglets-fam .ofa-pilule[data-fam="chantier-planning-securite"] { --pc: #F0903F; }
