/* =====================================================================
   Extranet v2 — modernisation des pages existantes (framy & widgets)
   ===================================================================== */
/* ------------------------------------------------------------------ */
/*  Modernisation des composants hérités (framy & pages existantes)    */
/* ------------------------------------------------------------------ */
body.duo-v2 #content .container-fluid,
body.duo-v2 .duo-content .container-fluid { max-width: none; }
body.duo-v2 .duo-content { font-size: 15px; color: var(--duo-text); }
body.duo-v2 .duo-content > .tab > center:first-child > h1:only-child { display: none; } /* titre remplacé par le hero */
body.duo-v2 .duo-content h1 { font-size: 1.6rem; font-weight: 800; }
body.duo-v2 .duo-content h2 { font-size: 1.3rem; }
body.duo-v2 .duo-content h3 { font-size: 1.1rem; }
body.duo-v2 .duo-content .tab { width: 100%; }

/* Grille framy : plus d'air */
body.duo-v2 .duo-content .columns { row-gap: 20px; }

/* Boîtes / cartes */
body.duo-v2 .duo-content .box {
  background: var(--duo-surface); border: 1px solid var(--duo-border); border-radius: var(--duo-radius);
  box-shadow: var(--duo-shadow); padding: 18px 20px;
  transition: transform .35s var(--duo-ease), box-shadow .35s var(--duo-ease);
}
body.duo-v2 .duo-content .box:hover { box-shadow: var(--duo-shadow-lg); }
body.duo-v2 .duo-content .effetzoom:hover { transform: translateY(-4px) scale(1.02); }

/* Widgets « container + top-banner » (tableau de bord et pages) */
body.duo-v2 .duo-content .container:has(> .top-banner) {
  position: relative; background: var(--duo-surface) !important; border: 1px solid var(--duo-border);
  border-radius: var(--duo-radius) !important; box-shadow: var(--duo-shadow) !important;
  padding: 58px 20px 20px !important; height: auto !important; min-height: 100%; overflow: hidden !important; margin: 0 !important;
  max-width: none !important;
}
body.duo-v2 .duo-content .container > .top-banner {
  position: absolute !important; top: 0 !important; left: 0; right: 0; width: auto !important;
  height: auto !important; margin: 0 !important;
  padding: 16px 20px 0 58px !important; background: none !important;
  color: var(--duo-heading) !important; text-align: left !important;
  font: 700 1rem var(--duo-font-display) !important; border-radius: 0 !important;
}
body.duo-v2 .duo-content .container > .top-banner::before {
  content: ''; position: absolute; left: 18px; top: 11px; width: 30px; height: 30px; border-radius: 9px;
  background: var(--duo-plum-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4272' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 16.8l-6.2 4.5 2.4-7.4L2 9.4h7.6z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
body.duo-v2 .duo-content .container > .content { padding: 0; }

/* Edito */
body.duo-v2 #edito-wrapper { border-radius: var(--duo-radius); overflow: hidden; background: var(--duo-surface); box-shadow: var(--duo-shadow); border: 1px solid var(--duo-border); }
body.duo-v2 #edito-wrapper .container { padding: 0 !important; min-height: 0; border: 0; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; }
body.duo-v2 #edito-wrapper .top-banner {
  position: relative !important; top: 0 !important; margin: 0 !important; padding: 14px 20px 14px 58px !important;
  background: linear-gradient(90deg, var(--duo-plum), var(--duo-plum-500)) !important; color: #fff !important;
}
body.duo-v2 #edito-wrapper .top-banner::before { background-color: rgba(255,255,255,.18); top: 9px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); }
body.duo-v2 .edito-content img, body.duo-v2 .edito-content video { display: block; border-radius: 0 !important; transition: transform 1.2s var(--duo-ease); }
body.duo-v2 .edito-content a:hover img { transform: scale(1.015); }

/* Tutos vidéo (carrousel) */
body.duo-v2 .duo-content .container:has(.left-carousel) { display: flex !important; min-height: 260px; padding: 0 !important; }
body.duo-v2 .duo-content .container:has(.left-carousel) > .top-banner { position: absolute !important; }
body.duo-v2 .left-carousel { padding: 60px 20px 20px 20px !important; background: transparent !important; }
body.duo-v2 .right-video { clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%) !important; box-shadow: none !important; border-radius: 0 !important; }
body.duo-v2 .nav-dot { transition: transform .25s var(--duo-spring), background .2s, width .3s var(--duo-ease) !important; }
body.duo-v2 .nav-dot:hover { transform: scale(1.25); }
body.duo-v2 .nav-dot.active { width: 26px !important; border-radius: 6px !important; background: var(--duo-orange) !important; }
body.duo-v2 .carousel-nav { top: 18px !important; flex-wrap: wrap; max-width: 55%; justify-content: flex-end; }
body.duo-v2 .slide.active { animation: duoFadeUp .45s var(--duo-ease) both; }
body.duo-v2 .theme-image { transition: transform .5s var(--duo-spring); }
body.duo-v2 .left-carousel:hover .theme-image { transform: rotate(-4deg) scale(1.06); }
@media (max-width: 760px) {
  body.duo-v2 .duo-content .container:has(.left-carousel) { flex-direction: column; }
  body.duo-v2 .right-video { min-height: 200px; clip-path: none !important; }
}

/* Statuts des services */
body.duo-v2 .content-statuts-two { padding: 0 !important; font-family: var(--duo-font) !important; gap: 16px !important; }
body.duo-v2 .service-item { padding: 8px 0 !important; border-bottom: 1px dashed var(--duo-border) !important; font-size: .88rem !important; }
body.duo-v2 .service-status {
  font-family: var(--duo-font) !important; font-size: .72rem !important; padding: 2px 10px; border-radius: 999px;
  background: currentColor; position: relative;
}
body.duo-v2 .service-status { background: color-mix(in srgb, currentColor 14%, transparent); }
body.duo-v2 .service-status[data-current-status="OK"]::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle;
  animation: duoPulseDot 2s infinite;
}
body.duo-v2 #statusModal > div { border-radius: var(--duo-radius-lg) !important; padding: 28px !important; animation: duoPop .4s var(--duo-spring) both; }

/* Bloc-note */
body.duo-v2 .content-blocnote { height: auto !important; min-height: 190px; padding: 0 !important; }
body.duo-v2 .textarea-blocnote {
  min-height: 150px !important; background: repeating-linear-gradient(var(--duo-surface-2), var(--duo-surface-2) 27px, var(--duo-plum-100) 28px) !important;
  line-height: 28px !important; padding: 0 12px !important; border: 1px solid var(--duo-border) !important; border-radius: 12px !important;
}
body.duo-v2 .bouton-blocnote {
  align-self: flex-end !important; font-size: 16px !important; width: 42px; height: 42px; border-radius: 12px !important;
  background: var(--duo-plum) !important; color: #fff !important; transition: transform .25s var(--duo-spring);
}
body.duo-v2 .bouton-blocnote:hover { transform: scale(1.1) rotate(-6deg); }

/* Infos du jour */
body.duo-v2 .meteo-diag-bg { background: linear-gradient(135deg, var(--duo-orange), var(--duo-gold)) !important; }
body.duo-v2 .meteo-diag-icon { animation: duoFloat 5s ease-in-out infinite; }
body.duo-v2 .anniversaire { transition: transform .3s var(--duo-spring); }
body.duo-v2 .anniversaire:hover { transform: scale(1.1) rotate(-3deg); }
body.duo-v2 .prenom-container { background: linear-gradient(135deg, var(--duo-plum), var(--duo-orange)) !important; }

/* Bienvenue */
body.duo-v2 .ligne-accueil { color: var(--duo-text) !important; font-size: .9rem !important; padding: 8px 0; border-bottom: 1px dashed var(--duo-border); white-space: normal !important; }
body.duo-v2 .ligne-accueil:last-child { border-bottom: 0; }
body.duo-v2 .photo-collab { height: 22px !important; width: 22px; object-fit: cover; margin-right: 8px !important; }

/* Alertes */
body.duo-v2 .duo-content .alert {
  position: relative; border: 1px solid transparent; border-left-width: 4px; border-radius: var(--duo-radius-sm);
  padding: 14px 18px 14px 50px; color: var(--duo-text); box-shadow: var(--duo-shadow-sm);
  animation: duoFadeUp .5s var(--duo-ease) both;
}
body.duo-v2 .duo-content .alert:before { left: 16px; }
body.duo-v2 .duo-content .alert.success { background: var(--duo-green-100); border-color: var(--duo-green); }
body.duo-v2 .duo-content .alert.success:before { color: var(--duo-green); }
body.duo-v2 .duo-content .alert.error { background: var(--duo-danger-100); border-color: var(--duo-danger); }
body.duo-v2 .duo-content .alert.error:before { color: var(--duo-danger); }
body.duo-v2 .duo-content .alert.warning { background: var(--duo-amber-100); border-color: var(--duo-amber); }
body.duo-v2 .duo-content .alert.warning:before { color: var(--duo-amber); }
body.duo-v2 .duo-content .alert.info { background: var(--duo-plum-50); border-color: var(--duo-plum-400); }
body.duo-v2 .duo-content .alert.info:before { color: var(--duo-link); }
body.duo-v2 .duo-content .alert a { color: inherit; font-weight: 600; text-decoration: underline; }
body.duo-v2 .duo-content .alert.light { background: var(--duo-surface); }

/* Boutons */
body.duo-v2 .duo-content .btn,
body.duo-v2 .duo-content input[type=submit]:not([class*='dx-']),
body.duo-v2 .duo-content button[type=submit]:not(.bouton-blocnote):not([class*='kb-']):not([class*='dx-']):not([class*='com-']):not([class*='duo-']):not([class*='agenda-']),
body.duo-v2 .duo-content .btn-primary {
  border-radius: 12px; border: 0; font-family: var(--duo-font); font-weight: 600;
  background: linear-gradient(135deg, var(--duo-plum), var(--duo-plum-500)); color: #fff;
  box-shadow: 0 8px 18px -10px rgba(91,66,114,.8);
  transition: transform .25s var(--duo-spring), box-shadow .25s, filter .2s; cursor: pointer;
  position: relative; overflow: hidden;
}
body.duo-v2 .duo-content .btn:hover,
body.duo-v2 .duo-content input[type=submit]:hover,
body.duo-v2 .duo-content button[type=submit]:not(.bouton-blocnote):not([class*='kb-']):not([class*='dx-']):not([class*='com-']):not([class*='duo-']):not([class*='agenda-']):hover { transform: translateY(-2px); box-shadow: 0 14px 24px -12px rgba(91,66,114,.9); filter: brightness(1.05); color: #fff; }
body.duo-v2 .duo-content .btn.gradient:before, body.duo-v2 .duo-content .btn.gradient:after { display: none; }
body.duo-v2 .duo-content .btn.gradient { background: linear-gradient(135deg, var(--duo-orange), #ff8a4c); box-shadow: 0 8px 18px -10px rgba(245,102,41,.9); }
body.duo-v2 .duo-content .btn.success { background: linear-gradient(135deg, #2f9e6e, #45c08a); }
body.duo-v2 .duo-content .btn.error { background: linear-gradient(135deg, #d64545, #ef6b6b); }
body.duo-v2 .duo-content .btn.warning { background: linear-gradient(135deg, #db9b3e, #f0b85c); }
body.duo-v2 .duo-content .btn.info { background: linear-gradient(135deg, var(--duo-plum-500), var(--duo-plum-400)); }
body.duo-v2 .duo-content .btn.border { background: var(--duo-surface); color: var(--duo-link); box-shadow: inset 0 0 0 1px var(--duo-border); }
body.duo-v2 .duo-content .btn.border:before { display: none; }
body.duo-v2 .duo-content .btn.none { background: none; box-shadow: none; color: var(--duo-link); }
body.duo-v2 .duo-content .btn-epure {
  height: auto; padding: 9px 18px; border-radius: 12px; font-size: .9rem;
  transition: transform .25s var(--duo-spring), background .2s, color .2s;
}
body.duo-v2 .duo-content .btn-epure:hover { transform: translateY(-2px); }
body.duo-v2 .duo-content .btn-epure.orange:hover { background: var(--duo-orange); color: #fff; }
body.duo-v2 .duo-content .btn-epure.purple { border-color: var(--duo-plum); color: var(--duo-link); }
body.duo-v2 .duo-content .btn-epure.purple:hover { background: var(--duo-plum); color: #fff; }
body.duo-v2 .duo-content .btn-epure.green:hover { background: green; color: #fff; }
body.duo-v2 .duo-content .wrap-lines .btn { margin-bottom: 12px; }

/* Formulaires */
body.duo-v2 .duo-content input[type=text],
body.duo-v2 .duo-content input[type=email],
body.duo-v2 .duo-content input[type=password],
body.duo-v2 .duo-content input[type=number],
body.duo-v2 .duo-content input[type=date],
body.duo-v2 .duo-content input[type=datetime-local],
body.duo-v2 .duo-content input[type=time],
body.duo-v2 .duo-content input[type=tel],
body.duo-v2 .duo-content input[type=url],
body.duo-v2 .duo-content input[type=search],
body.duo-v2 .duo-content select,
body.duo-v2 .duo-content textarea,
body.duo-v2 .duo-modal input {
  font-family: var(--duo-font); font-size: .92rem; color: var(--duo-text);
  border: 1px solid var(--duo-border); border-radius: 12px; background-color: var(--duo-surface);
  padding: 9px 12px; min-height: 42px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
body.duo-v2 .duo-content textarea { min-height: 90px; }
body.duo-v2 .duo-content input:focus,
body.duo-v2 .duo-content select:focus,
body.duo-v2 .duo-content textarea:focus,
body.duo-v2 .duo-modal input:focus {
  outline: 0; border-color: var(--duo-plum-400); box-shadow: 0 0 0 4px rgba(91,66,114,.12);
}
body.duo-v2 .duo-content .form-element label,
body.duo-v2 .duo-content .form-group label { font-weight: 600; color: var(--duo-label); font-size: .85rem; }
body.duo-v2 .duo-content .form-field { border-radius: 12px; }
body.duo-v2 .duo-content input[type=checkbox],
body.duo-v2 .duo-content input[type=radio] { accent-color: var(--duo-plum); }

/* Tableaux */
body.duo-v2 .duo-content table:not(.no-duo) {
  border-collapse: separate; border-spacing: 0; background: var(--duo-surface); border-radius: var(--duo-radius);
  box-shadow: var(--duo-shadow-sm); border: 1px solid var(--duo-border); overflow: hidden; max-width: 100%;
}
body.duo-v2 .duo-content table:not(.no-duo) thead th,
body.duo-v2 .duo-content table:not(.no-duo) > tbody > tr:first-child > th {
  background: var(--duo-plum-50); color: var(--duo-label); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; border-bottom: 1px solid var(--duo-border); text-align: left;
}
body.duo-v2 .duo-content table:not(.no-duo) td { padding: 10px 14px; border-bottom: 1px solid #f0ebf5; }
body.duo-v2 .duo-content table:not(.no-duo) tbody tr { transition: background .2s; }
body.duo-v2 .duo-content table:not(.no-duo) tbody tr:hover td { background: var(--duo-plum-50); }
body.duo-v2 .duo-content table:not(.no-duo) tr:last-child td { border-bottom: 0; }

/* Badges & pictos */
body.duo-v2 .duo-content .badge { border-radius: 999px; padding: 2px 10px; font-weight: 600; }
body.duo-v2 .photominiature { object-fit: cover; transition: transform .3s var(--duo-spring); }
body.duo-v2 .picto-item:hover:after { background: var(--duo-plum-950); border-radius: 8px; }
body.duo-v2 .image-rond { object-fit: cover; box-shadow: 0 6px 18px -6px rgba(61,43,77,.4); }

/* Iframes pleine hauteur */
body.duo-v2 .duo-content iframe { border-radius: var(--duo-radius); }
body.duo-v2 #Incident iframe { height: calc(100vh - 220px); min-height: 600px; }

/* Largeurs fixes héritées → pleine largeur */
body.duo-v2 .duo-content [style*="width:1024px"],
body.duo-v2 .duo-content [style*="width: 1024px"] { width: auto !important; padding-left: 0 !important; }

/* Messages planifiés */
body.duo-v2 #message_auto:not(:empty) { margin-bottom: 22px; animation: duoFadeUp .5s var(--duo-ease) both; }
body.duo-v2 #message_auto h4 { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--duo-orange); }
body.duo-v2 #alert-container { padding-top: 0 !important; }
body.duo-v2 #alert-container:not(:empty) { margin-bottom: 22px; }
body.duo-v2 #alert-container .container { padding-top: 58px !important; min-height: 0; }
body.duo-v2 #alert-container .top-banner { color: #fff !important; padding: 12px 20px 12px 20px !important; border-radius: 0 !important; }
body.duo-v2 #alert-container .top-banner::before { display: none; }


/* framy impose .container { width:1160px } : on laisse la grille décider */
body.duo-v2 .duo-content .container { max-width: 100%; }
body.duo-v2 .duo-content .container:has(> .top-banner) { width: auto !important; }

/* Édito : bandeau pleine largeur (le style global des tutos met .container en flex) */
body.duo-v2 #edito-wrapper .container { display: block !important; width: auto !important; }
body.duo-v2 #edito-wrapper .top-banner { width: 100% !important; }

/* Cybersécurité (sidebar) : notes compactes façon Nutri-Score */
body.duo-v2 .duo-cyber a { flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px; gap: 8px; line-height: 1.2; }
body.duo-v2 .duo-cyber img { width: 28px; height: 28px; }
body.duo-v2 .duo-cyber .nutriscore { display: inline-flex !important; margin: 0 0 0 auto !important; padding: 0 !important; background: none !important; }
body.duo-v2 .duo-cyber .nutriscore span { width: 24px !important; height: 24px !important; line-height: 24px !important; font-size: .8rem !important; border-radius: 8px !important; padding: 0 !important; margin: 0 !important; text-align: center; box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); }
body.duo-v2 .duo-cyber .nutriscore span.inactive { display: none !important; }
body.duo-v2 .duo-cyber a > span:not(.nutriscore), body.duo-v2 .duo-cyber a > div { margin-left: auto; }
body.duo-v2 .duo-cyber { grid-template-columns: minmax(0, 1fr); gap: 6px; }
body.duo-v2 .duo-cyber a { min-width: 0; }
body.duo-v2 .textarea-blocnote, body.duo-v2 .form-blocnote { width: 100% !important; }

/* Certaines pages incluses stylent directement <body> (ex. Collaborateurs-statistique.php) */
body.duo-v2.duo-view-app { padding: 0 !important; margin: 0 !important; background: var(--duo-bg) !important; color: var(--duo-text) !important; font-family: var(--duo-font) !important; min-height: 100vh; }

/* ===================================================================== */
/*  Thème sombre appliqué aux pages existantes                           */
/* ===================================================================== */
html[data-theme="dark"] body.duo-v2 .duo-content { color: var(--duo-text); }
html[data-theme="dark"] body.duo-v2 .duo-content :is(h1, h2, h3, h4, h5, strong, b, label, legend, th) { color: inherit; }
html[data-theme="dark"] body.duo-v2 .duo-content :is(h1, h2, h3, h4) { color: var(--duo-heading); }
html[data-theme="dark"] body.duo-v2 .duo-content :is(p, span, div, td, li, small, font, center)[style*="color:grey"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(p, span, div, td, li, small, font, center)[style*="color: grey"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(p, span, div, td, li, small, center)[style*="color:#333"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(p, span, div, td, li, small, center)[style*="color: #333"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(p, span, div, td, li, small, center)[style*="color:black"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(p, span, div, td, li, small, center)[style*="color: black"] { color: var(--duo-text) !important; }

/* Fonds blancs écrits directement dans les pages */
html[data-theme="dark"] body.duo-v2 .duo-content :is(div, section, table, tr, td, th, form, article, aside, span, ul, li, fieldset)[style*="background:#fff"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(div, section, table, tr, td, th, form, article, aside, span, ul, li, fieldset)[style*="background: #fff"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(div, section, table, tr, td, th, form, article, aside, span, ul, li, fieldset)[style*="background:white"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(div, section, table, tr, td, th, form, article, aside, span, ul, li, fieldset)[style*="background: white"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(div, section, table, tr, td, th, form, article, aside, span, ul, li, fieldset)[style*="background-color:#fff"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(div, section, table, tr, td, th, form, article, aside, span, ul, li, fieldset)[style*="background-color: #fff"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(div, section, table, tr, td, th, form, article, aside, span, ul, li, fieldset)[style*="background-color: white"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(div, section, table, tr, td, th, form, article, aside, span, ul, li, fieldset)[style*="background:#f"],
html[data-theme="dark"] body.duo-v2 .duo-content :is(div, section, table, tr, td, th, form, article, aside, span, ul, li, fieldset)[style*="background: #f"] {
  background: var(--duo-surface) !important; color: var(--duo-text) !important;
}

/* Composants framy et éléments courants */
html[data-theme="dark"] body.duo-v2 .duo-content :is(.box, .card-back, .filter-section, .tab-content, .panel, .well, .modal-content) { background: var(--duo-surface) !important; color: var(--duo-text); border-color: var(--duo-border) !important; }
html[data-theme="dark"] body.duo-v2 .duo-content :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select, textarea) {
  background-color: var(--duo-input-bg) !important; color: var(--duo-text) !important; border-color: var(--duo-border-strong) !important;
}
html[data-theme="dark"] body.duo-v2 .duo-content :is(input, textarea)::placeholder { color: #7d6f8d; }
html[data-theme="dark"] body.duo-v2 .duo-content table:not(.no-duo) { background: var(--duo-surface); }
html[data-theme="dark"] body.duo-v2 .duo-content table:not(.no-duo) td { border-bottom-color: var(--duo-border); }
html[data-theme="dark"] body.duo-v2 .duo-content table tr[style*="background"], html[data-theme="dark"] body.duo-v2 .duo-content table td[bgcolor] { background: transparent !important; }
html[data-theme="dark"] body.duo-v2 .duo-content .alert { color: var(--duo-text); }
html[data-theme="dark"] body.duo-v2 .duo-content .alert p { color: var(--duo-text) !important; }
html[data-theme="dark"] body.duo-v2 .duo-content hr { border-color: var(--duo-border); }
html[data-theme="dark"] body.duo-v2 .duo-content .btn.border { background: var(--duo-surface-2); color: var(--duo-link); }
html[data-theme="dark"] body.duo-v2 .picto-item:hover:after { background: #000; }

/* Widgets hérités (statuts, carrousel, bienvenue, cybersécurité…) */
html[data-theme="dark"] body.duo-v2 .ligne-accueil { color: var(--duo-text) !important; }
html[data-theme="dark"] body.duo-v2 .content-statuts-two { color: var(--duo-text) !important; }
html[data-theme="dark"] body.duo-v2 #statusModal > div { background: var(--duo-surface) !important; color: var(--duo-text); }
html[data-theme="dark"] body.duo-v2 .left-carousel, html[data-theme="dark"] body.duo-v2 .slide { background: transparent !important; color: var(--duo-text) !important; }
html[data-theme="dark"] body.duo-v2 #edito-wrapper, html[data-theme="dark"] body.duo-v2 .duo-home__edito .edito-content { background: var(--duo-surface) !important; }
html[data-theme="dark"] body.duo-v2 .duo-ipbar { background: var(--duo-danger-100); border-color: rgba(214,60,60,.35); }
html[data-theme="dark"] body.duo-v2 .duo-ipbar p, html[data-theme="dark"] body.duo-v2 .duo-ipbar a { color: #ffc9c9 !important; }

/* Éditeur de texte du Studio (Quill) */
html[data-theme="dark"] body.duo-v2 .studio-quill .ql-toolbar { background: var(--duo-surface-2); }
html[data-theme="dark"] body.duo-v2 .ql-snow .ql-stroke { stroke: var(--duo-label); }
html[data-theme="dark"] body.duo-v2 .ql-snow .ql-fill { fill: var(--duo-label); }
html[data-theme="dark"] body.duo-v2 .ql-snow .ql-picker { color: var(--duo-label); }
html[data-theme="dark"] body.duo-v2 .ql-snow .ql-picker-options { background: var(--duo-surface-2); border-color: var(--duo-border-strong); }
html[data-theme="dark"] body.duo-v2 .ql-editor.ql-blank::before { color: #7d6f8d; }

/* Assistant de configuration (premier accès) : reste en clair */
html[data-theme="dark"] body.duo-v2.duo-config { color-scheme: light; }
html[data-theme="dark"] body.duo-v2 .duo-content .duo-wx__city select { background-color: transparent !important; border: 0 !important; color: #fff !important; }
html[data-theme="dark"] body.duo-v2 .duo-content .com-search input,
html[data-theme="dark"] body.duo-v2 .duo-content .studio-title,
html[data-theme="dark"] body.duo-v2 .duo-content .studio-chapo,
html[data-theme="dark"] body.duo-v2 .duo-content .duo-note__text { background-color: transparent !important; border: 0 !important; }
html[data-theme="dark"] body.duo-v2 .duo-content .duo-note__text { background: repeating-linear-gradient(var(--duo-paper), var(--duo-paper) 27px, var(--duo-paper-line) 28px) !important; }
html[data-theme="dark"] body.duo-v2 .duo-content .form-group > :is(input, select, textarea, .form-field) { background-color: transparent !important; }
/* Posés par le correctif automatique du thème sombre (duo.js → darkFix) */
html[data-theme="dark"] body.duo-v2 .duo-dk-surface { background-color: var(--duo-surface) !important; border-color: var(--duo-border) !important; color: var(--duo-text); }
html[data-theme="dark"] body.duo-v2 .duo-dk-text { color: var(--duo-text) !important; }

/* Champs sans attribut type (= texte) : même habillage que les champs texte */
body.duo-v2 .duo-content input:not([type]):not(.studio-title):not([class*='duo-']) {
  font-family: var(--duo-font); font-size: .92rem; color: var(--duo-text);
  border: 1px solid var(--duo-border); border-radius: 12px; background-color: var(--duo-input-bg);
  padding: 9px 12px; min-height: 42px; transition: border-color .2s, box-shadow .2s;
}
body.duo-v2 .duo-content input:not([type]):focus { outline: 0; border-color: var(--duo-plum-400); box-shadow: 0 0 0 4px rgba(91,66,114,.12); }
