/* ==========================================================
   Intégration styles déplacés : index.php / accueil — isolé par body:has(.dmd-home)
   ========================================================== */
:root{
      --hm-bg:var(--background-color,var(--page-bg,#0b0f17));
      --hm-panel:var(--panel-bg,var(--section-bg,#101827));
      --hm-card:var(--card-bg,#131f33);
      --hm-text:var(--text-color,#e6eefc);
      --hm-muted:var(--muted-color,#9fb0c8);
      --hm-title:var(--title-color,var(--primary-color,#9fc2ff));
      --hm-primary:var(--primary-color,#7aa2ff);
      --hm-dark:var(--primary-dark,#456bd6);
      --hm-border:color-mix(in srgb,var(--hm-primary) 38%,transparent);
    }
    body:has(.dmd-home) * {box-sizing:border-box}
    body:has(.dmd-home) {min-height:100vh;color:var(--hm-text);background:radial-gradient(circle at 8% 0,color-mix(in srgb,var(--hm-primary) 22%,transparent),transparent 34vw),radial-gradient(circle at 92% 8%,color-mix(in srgb,var(--hm-dark) 20%,transparent),transparent 30vw),var(--hm-bg);overflow-x:hidden}
    body:has(.dmd-home) .dmd-home {width:min(1180px,calc(100% - 32px));margin:18px auto 46px}
    body:has(.dmd-home) .hero, body:has(.dmd-home) .panel, body:has(.dmd-home) .stat {border:1px solid var(--hm-border);background:linear-gradient(135deg,rgba(255,255,255,.105),rgba(255,255,255,.035)),color-mix(in srgb,var(--hm-panel) 90%,transparent);box-shadow:0 24px 80px rgba(0,0,0,.28),0 0 38px color-mix(in srgb,var(--hm-primary) 18%,transparent)}
    body:has(.dmd-home) .hero {position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:22px;padding:24px;border-radius:32px;overflow:hidden}
    body:has(.dmd-home) .hero:after {content:"";position:absolute;right:-120px;bottom:-150px;width:420px;height:420px;border-radius:999px;background:radial-gradient(circle,color-mix(in srgb,var(--hm-primary) 28%,transparent),transparent 67%);pointer-events:none}
    body:has(.dmd-home) .hero>* {position:relative;z-index:1}
    body:has(.dmd-home) .eyebrow {display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;padding:8px 12px;border:1px solid var(--hm-border);border-radius:999px;color:var(--hm-title);background:color-mix(in srgb,var(--hm-primary) 11%,transparent);font-size:.88rem;font-weight:900}
    body:has(.dmd-home) .eyebrow:before {content:"";width:8px;height:8px;border-radius:999px;background:var(--hm-primary);box-shadow:0 0 18px var(--hm-primary)}
    body:has(.dmd-home) .hero h1 {margin:0;font-size:clamp(2.2rem,5vw,5rem);line-height:.94;letter-spacing:-.075em}body:has(.dmd-home) .hero h1 span {color:var(--hm-title);text-shadow:0 0 34px color-mix(in srgb,var(--hm-primary) 28%,transparent)}
    body:has(.dmd-home) .hero-lead {max-width:720px;margin:18px 0 0;color:var(--hm-muted);font-size:clamp(1rem,1.8vw,1.17rem);line-height:1.7}
    body:has(.dmd-home) .hero-actions {display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}body:has(.dmd-home) .home-btn {display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:999px;border:1px solid var(--hm-border);color:var(--hm-text);text-decoration:none;font-weight:900;background:rgba(255,255,255,.055);transition:.22s ease}body:has(.dmd-home) .home-btn:hover {transform:translateY(-2px);background:rgba(255,255,255,.085)}body:has(.dmd-home) .home-btn.primary {background:linear-gradient(135deg,var(--hm-primary),var(--hm-dark));color:var(--button-text-color,#fff);border-color:transparent}
    body:has(.dmd-home) .hero-visual {min-height:350px;border:1px solid rgba(255,255,255,.10);border-radius:24px;background:radial-gradient(circle at 25% 20%,color-mix(in srgb,var(--hm-primary) 20%,transparent),transparent 34%),linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.035));overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
    body:has(.dmd-home) .mock-window {position:absolute;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:color-mix(in srgb,var(--hm-card) 84%,transparent);box-shadow:0 20px 46px rgba(0,0,0,.26);overflow:hidden;animation:floaty 7s ease-in-out infinite}
    body:has(.dmd-home) .mock-window:nth-child(1) {left:24px;top:28px;width:72%;height:145px}body:has(.dmd-home) .mock-window:nth-child(2) {right:26px;top:136px;width:58%;height:128px;animation-delay:-2.2s}body:has(.dmd-home) .mock-window:nth-child(3) {left:42px;bottom:30px;width:64%;height:108px;animation-delay:-4.1s}
    @keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
    body:has(.dmd-home) .mock-top {display:flex;align-items:center;gap:7px;height:34px;padding:0 12px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04)}body:has(.dmd-home) .dot {width:8px;height:8px;border-radius:999px;background:var(--hm-primary);opacity:.95}body:has(.dmd-home) .dot:nth-child(2) {opacity:.55}body:has(.dmd-home) .dot:nth-child(3) {opacity:.28}
    body:has(.dmd-home) .mock-body {padding:14px}body:has(.dmd-home) .mock-line {height:10px;border-radius:999px;background:rgba(255,255,255,.13);margin-bottom:10px}body:has(.dmd-home) .mock-line.big {width:74%;height:14px;background:color-mix(in srgb,var(--hm-primary) 42%,rgba(255,255,255,.12))}body:has(.dmd-home) .mock-line.mid {width:58%}body:has(.dmd-home) .mock-line.small {width:38%}
    body:has(.dmd-home) .stats {display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}body:has(.dmd-home) .stat {position:relative;overflow:hidden;padding:18px;min-height:112px;border-radius:22px}body:has(.dmd-home) .stat:before {content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--hm-primary)}body:has(.dmd-home) .stat strong {display:block;color:var(--hm-title);font-size:1.65rem}body:has(.dmd-home) .stat span {display:block;margin-top:5px;color:var(--hm-muted);line-height:1.45;font-size:.94rem}
    body:has(.dmd-home) .home-grid {display:grid;grid-template-columns:.9fr 1.1fr;gap:18px;margin-top:18px;align-items:start}body:has(.dmd-home) .panel {border-radius:28px;overflow:hidden}body:has(.dmd-home) .panel-head {padding:20px;border-bottom:1px solid rgba(255,255,255,.08)}body:has(.dmd-home) .panel-kicker {margin:0 0 8px;color:var(--hm-primary);font-weight:950;font-size:.8rem;text-transform:uppercase;letter-spacing:.12em}body:has(.dmd-home) .panel-title {margin:0;font-size:clamp(1.35rem,2vw,2rem);letter-spacing:-.04em}body:has(.dmd-home) .panel-desc {margin:8px 0 0;color:var(--hm-muted);line-height:1.6}
    body:has(.dmd-home) .feature-list, body:has(.dmd-home) #news-container {display:grid;gap:12px;padding:16px}body:has(.dmd-home) .feature, body:has(.dmd-home) .news-card {border:1px solid rgba(255,255,255,.10);border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));box-shadow:0 14px 40px rgba(0,0,0,.18);transition:.22s ease}body:has(.dmd-home) .feature:hover, body:has(.dmd-home) .news-card:hover {transform:translateY(-3px);border-color:color-mix(in srgb,var(--hm-primary) 48%,transparent);background:rgba(255,255,255,.075)}body:has(.dmd-home) .feature {display:grid;grid-template-columns:44px 1fr;gap:12px;padding:16px}body:has(.dmd-home) .ico {width:44px;height:44px;border-radius:16px;display:grid;place-items:center;color:var(--hm-title);font-size:1.2rem;background:color-mix(in srgb,var(--hm-primary) 14%,transparent);border:1px solid color-mix(in srgb,var(--hm-primary) 26%,transparent)}body:has(.dmd-home) .feature h3 {margin:0 0 4px}body:has(.dmd-home) .feature p {margin:0;color:var(--hm-muted);line-height:1.5;font-size:.94rem}
    body:has(.dmd-home) .news-toolbar {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 0}body:has(.dmd-home) .news-count, body:has(.dmd-home) .page-indicator {color:var(--hm-muted);font-size:.92rem}body:has(.dmd-home) #news-container {min-height:350px}body:has(.dmd-home) .news-card {position:relative;padding:16px 16px 16px 18px}body:has(.dmd-home) .news-card:before {content:"";position:absolute;left:0;top:16px;bottom:16px;width:4px;border-radius:999px;background:var(--hm-primary)}body:has(.dmd-home) .news-title {margin:0;font-size:1.04rem;font-weight:950}body:has(.dmd-home) .news-subtitle {margin:5px 0 0;color:var(--hm-title);font-weight:750}body:has(.dmd-home) .news-meta {display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;color:var(--hm-muted);font-size:.86rem}body:has(.dmd-home) .news-pill {display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08)}body:has(.dmd-home) .news-description {margin:10px 0 0;color:var(--hm-muted);line-height:1.55}
    body:has(.dmd-home) .pagination {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px 16px}body:has(.dmd-home) .pagination-actions {display:flex;gap:10px}body:has(.dmd-home) .pagination button {min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--hm-border);color:var(--hm-text);background:rgba(255,255,255,.055);font-weight:900;cursor:pointer}body:has(.dmd-home) .pagination button:disabled {opacity:.42;cursor:not-allowed}body:has(.dmd-home) .empty-state, body:has(.dmd-home) .error-state, body:has(.dmd-home) .loading-state {display:grid;place-items:center;min-height:280px;text-align:center;color:var(--hm-muted);border:1px dashed rgba(255,255,255,.16);border-radius:20px;background:rgba(255,255,255,.035);padding:22px}body:has(.dmd-home) .error-state {color:#ff9a9a}body:has(.dmd-home) .mini-footer {margin-top:18px;padding:16px;border:1px solid rgba(255,255,255,.09);border-radius:22px;color:var(--hm-muted);background:rgba(255,255,255,.035);text-align:center}
    @media (max-width:980px) {
body:has(.dmd-home) .hero, body:has(.dmd-home) .home-grid {grid-template-columns:1fr}body:has(.dmd-home) .hero-visual {min-height:300px}body:has(.dmd-home) .stats {grid-template-columns:repeat(2,1fr)}
}@media (max-width:620px) {
body:has(.dmd-home) .dmd-home {width:min(100% - 20px,1180px)}body:has(.dmd-home) .hero {padding:16px;border-radius:22px}body:has(.dmd-home) .hero h1 {font-size:clamp(2rem,13vw,3.2rem)}body:has(.dmd-home) .hero-actions {display:grid}body:has(.dmd-home) .home-btn {width:100%}body:has(.dmd-home) .stats {grid-template-columns:1fr}body:has(.dmd-home) .feature {grid-template-columns:1fr}body:has(.dmd-home) .pagination {align-items:stretch;flex-direction:column}body:has(.dmd-home) .pagination-actions {display:grid;grid-template-columns:1fr 1fr}
}



/* CSS déplacé depuis index.php */
:root{
      --dmc-bg:#050910;
      --dmc-bg-2:#08121f;
      --dmc-panel:#0b1726;
      --dmc-card:#0d1d30;
      --dmc-card-2:#102742;

      --dmc-blue:#0d4f86;
      --dmc-blue-soft:#1c6fa8;
      --dmc-blue-light:#4e9bd1;

      --dmc-gold:#d6a437;
      --dmc-gold-light:#f5d271;
      --dmc-gold-dark:#8d641d;

      --dmc-text:#eef5ff;
      --dmc-muted:#9aabba;
      --dmc-muted-2:#6f8193;
      --dmc-title:#f3c95c;

      --dmc-border:rgba(214,164,55,.42);
      --dmc-border-blue:rgba(78,155,209,.32);

      --dmc-shadow:0 26px 90px rgba(0,0,0,.46);
      --dmc-gold-glow:0 0 34px rgba(214,164,55,.22);
      --dmc-blue-glow:0 0 42px rgba(28,111,168,.28);
    }

    *{
      box-sizing:border-box;
    }

    body{
      min-height:100vh;
      margin:0;
      color:var(--dmc-text);
      background:
        radial-gradient(circle at 12% 2%,rgba(28,111,168,.28),transparent 34vw),
        radial-gradient(circle at 86% 8%,rgba(214,164,55,.18),transparent 28vw),
        radial-gradient(circle at 50% 110%,rgba(13,79,134,.20),transparent 36vw),
        linear-gradient(135deg,#03070d 0%,#08111d 42%,#060910 100%);
      overflow-x:hidden;
    }

    body:before{
      content:"";
      position:fixed;
      inset:0;
      z-index:-1;
      pointer-events:none;
      background:
        linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
        linear-gradient(180deg,rgba(255,255,255,.018) 1px,transparent 1px);
      background-size:44px 44px;
      mask-image:radial-gradient(circle at 80% 10%,#000 0,transparent 55%);
      opacity:.42;
    }

    .dmd-home{
      width:min(1180px,calc(100% - 32px));
      margin:18px auto 46px;
    }

    .hero,
    .panel,
    .stat{
      border:1px solid var(--dmc-border);
      background:
        linear-gradient(135deg,rgba(255,255,255,.085),rgba(255,255,255,.025)),
        linear-gradient(145deg,rgba(11,23,38,.96),rgba(5,9,16,.94));
      box-shadow:
        var(--dmc-shadow),
        var(--dmc-gold-glow),
        inset 0 1px 0 rgba(255,255,255,.08);
    }

    .hero{
      position:relative;
      display:grid;
      grid-template-columns:1.15fr .85fr;
      gap:22px;
      padding:26px;
      border-radius:28px;
      overflow:hidden;
    }

    .hero:before{
      content:"";
      position:absolute;
      inset:0;
      pointer-events:none;
      background:
        linear-gradient(115deg,rgba(28,111,168,.22),transparent 34%),
        radial-gradient(circle at 78% 20%,rgba(245,210,113,.18),transparent 30%),
        radial-gradient(circle at 92% 88%,rgba(214,164,55,.12),transparent 36%);
    }

    .hero:after{
      content:"";
      position:absolute;
      right:-150px;
      bottom:-190px;
      width:500px;
      height:500px;
      border-radius:999px;
      border:1px solid rgba(214,164,55,.32);
      background:
        radial-gradient(circle,rgba(214,164,55,.20),transparent 62%),
        radial-gradient(circle,rgba(28,111,168,.14),transparent 72%);
      pointer-events:none;
    }

    .hero>*{
      position:relative;
      z-index:1;
    }

    .eyebrow{
      display:inline-flex;
      align-items:center;
      gap:10px;
      margin:0 0 16px;
      padding:8px 13px;
      border:1px solid rgba(214,164,55,.42);
      border-radius:999px;
      color:var(--dmc-gold-light);
      background:
        linear-gradient(135deg,rgba(214,164,55,.13),rgba(28,111,168,.08));
      font-size:.88rem;
      font-weight:900;
      letter-spacing:.04em;
      box-shadow:0 0 24px rgba(214,164,55,.12);
    }

    .eyebrow:before{
      content:"";
      width:8px;
      height:8px;
      border-radius:999px;
      background:var(--dmc-gold-light);
      box-shadow:0 0 18px var(--dmc-gold);
    }

    .hero h1{
      margin:0;
      font-size:clamp(2.15rem,5vw,4.75rem);
      line-height:.95;
      letter-spacing:-.07em;
      color:var(--dmc-text);
      text-shadow:0 16px 44px rgba(0,0,0,.55);
    }

    .hero h1 span{
      display:block;
      max-width:820px;
      color:transparent;
      background:linear-gradient(100deg,#eaf6ff 0%,#4e9bd1 30%,#f5d271 64%,#d6a437 100%);
      -webkit-background-clip:text;
      background-clip:text;
      text-shadow:none;
      filter:drop-shadow(0 0 28px rgba(214,164,55,.16));
    }

    .hero-lead{
      max-width:720px;
      margin:18px 0 0;
      color:var(--dmc-muted);
      font-size:clamp(1rem,1.8vw,1.14rem);
      line-height:1.68;
    }

    .hero-actions{
      display:flex;
      flex-wrap:wrap;
      gap:12px;
      margin-top:24px;
    }

    .home-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:46px;
      padding:0 18px;
      border-radius:999px;
      border:1px solid rgba(214,164,55,.36);
      color:var(--dmc-text);
      text-decoration:none;
      font-weight:950;
      font-size:.86rem;
      letter-spacing:.035em;
      background:
        linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.025)),
        rgba(13,29,48,.72);
      box-shadow:0 14px 34px rgba(0,0,0,.28);
      transition:.22s ease;
    }

    .home-btn:hover{
      transform:translateY(-2px);
      border-color:rgba(245,210,113,.68);
      background:
        linear-gradient(135deg,rgba(214,164,55,.16),rgba(28,111,168,.09)),
        rgba(13,29,48,.92);
      box-shadow:
        0 18px 42px rgba(0,0,0,.34),
        0 0 24px rgba(214,164,55,.16);
    }

    .home-btn.primary{
      color:#07101b;
      border-color:rgba(245,210,113,.78);
      background:
        linear-gradient(135deg,#f7d978 0%,#d6a437 48%,#9b6c21 100%);
      box-shadow:
        0 18px 42px rgba(0,0,0,.36),
        0 0 28px rgba(214,164,55,.26);
    }

    .home-btn.primary:hover{
      color:#050910;
      background:
        linear-gradient(135deg,#ffe79a 0%,#e0ae40 50%,#a97722 100%);
    }

    .hero-visual{
      position:relative;
      min-height:380px;
      border:1px solid rgba(214,164,55,.28);
      border-radius:24px;
      background:
        radial-gradient(circle at 25% 16%,rgba(28,111,168,.28),transparent 34%),
        radial-gradient(circle at 82% 22%,rgba(245,210,113,.15),transparent 32%),
        linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025)),
        #07101b;
      overflow:hidden;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 0 34px rgba(28,111,168,.14);
    }

    .portal-visual{
      display:grid;
      place-items:center;
      padding:22px;
      isolation:isolate;
    }

    .portal-visual:before{
      content:"DOMYCO";
      position:absolute;
      top:16px;
      left:18px;
      z-index:2;
      display:inline-flex;
      align-items:center;
      min-height:30px;
      padding:0 12px;
      border-radius:999px;
      border:1px solid rgba(214,164,55,.42);
      background:rgba(5,9,16,.72);
      color:var(--dmc-gold-light);
      font-size:.78rem;
      font-weight:950;
      letter-spacing:.14em;
      box-shadow:0 12px 28px rgba(0,0,0,.28);
    }

    .portal-visual:after{
      content:"SynoHomes • DoMyDesk • DomyBox • DoMySocial";
      position:absolute;
      right:18px;
      bottom:16px;
      z-index:2;
      display:inline-flex;
      align-items:center;
      min-height:30px;
      padding:0 12px;
      border-radius:999px;
      border:1px solid rgba(78,155,209,.24);
      background:rgba(255,255,255,.045);
      color:var(--dmc-muted);
      font-size:.72rem;
      font-weight:850;
    }

    .mobile-demo{
      position:relative;
      z-index:3;
      width:min(310px,92%);
      height:330px;
      border-radius:34px;
      border:1px solid rgba(214,164,55,.44);
      background:
        linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.035)),
        linear-gradient(145deg,#102742,#07101b);
      box-shadow:
        0 34px 80px rgba(0,0,0,.42),
        0 0 42px rgba(214,164,55,.16),
        0 0 48px rgba(28,111,168,.12),
        inset 0 1px 0 rgba(255,255,255,.09);
      overflow:hidden;
      animation:mobileFloat 8s ease-in-out infinite;
    }

    @keyframes mobileFloat{
      0%,100%{transform:translateY(0) rotate(-1deg)}
      50%{transform:translateY(-10px) rotate(1deg)}
    }

    .mobile-top{
      height:48px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:0 16px;
      border-bottom:1px solid rgba(214,164,55,.18);
      background:
        linear-gradient(90deg,rgba(214,164,55,.10),rgba(28,111,168,.10));
    }

    .mobile-title{
      font-weight:950;
      color:var(--dmc-gold-light);
      font-size:.88rem;
    }

    .mobile-status{
      display:flex;
      align-items:center;
      gap:5px;
    }

    .mobile-status span{
      width:7px;
      height:7px;
      border-radius:999px;
      background:var(--dmc-gold-light);
      opacity:.95;
      box-shadow:0 0 12px rgba(214,164,55,.52);
    }

    .mobile-status span:nth-child(2){
      background:var(--dmc-blue-light);
      opacity:.7;
    }

    .mobile-status span:nth-child(3){
      opacity:.35;
    }

    .mobile-screen{
      position:relative;
      height:282px;
      padding:14px;
      overflow:hidden;
    }

    .mobile-chip{
      position:absolute;
      z-index:1;
      display:inline-flex;
      align-items:center;
      min-height:27px;
      padding:0 10px;
      border-radius:999px;
      border:1px solid rgba(214,164,55,.28);
      background:rgba(255,255,255,.055);
      color:var(--dmc-muted);
      font-size:.68rem;
      font-weight:900;
      animation:chipFloat 7s ease-in-out infinite;
    }

    .mobile-chip:nth-child(1){left:14px;top:14px;animation-delay:-.4s}
    .mobile-chip:nth-child(2){right:14px;top:42px;animation-delay:-1.3s}
    .mobile-chip:nth-child(3){left:22px;bottom:18px;animation-delay:-2.1s}
    .mobile-chip:nth-child(4){right:18px;bottom:48px;animation-delay:-3.2s}

    @keyframes chipFloat{
      0%,100%{transform:translateY(0)}
      50%{transform:translateY(-7px)}
    }

    .bubble-track{
      position:absolute;
      inset:54px 12px 64px;
      z-index:3;
    }

    .talk-bubble{
      position:absolute;
      left:50%;
      top:50%;
      width:100%;
      padding:14px 15px;
      border-radius:22px 22px 22px 8px;
      border:1px solid rgba(214,164,55,.38);
      background:
        linear-gradient(135deg,rgba(214,164,55,.12),rgba(28,111,168,.10)),
        linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.025)),
        #0d1d30;
      box-shadow:
        0 18px 44px rgba(0,0,0,.34),
        0 0 24px rgba(214,164,55,.10);
      opacity:0;
      transform:translate(-50%,-42%) scale(.92);
      animation:bubbleCarousel 110s infinite;
    }

    .talk-bubble strong{
      display:block;
      margin-bottom:6px;
      color:var(--dmc-gold-light);
      font-size:.8rem;
      font-weight:950;
    }

    .talk-bubble p{
      margin:0;
      color:var(--dmc-text);
      font-size:.78rem;
      line-height:1.43;
    }

    .talk-bubble:nth-child(1){animation-delay:0s}
    .talk-bubble:nth-child(2){animation-delay:10s}
    .talk-bubble:nth-child(3){animation-delay:20s}
    .talk-bubble:nth-child(4){animation-delay:30s}
    .talk-bubble:nth-child(5){animation-delay:40s}
    .talk-bubble:nth-child(6){animation-delay:50s}
    .talk-bubble:nth-child(7){animation-delay:60s}
    .talk-bubble:nth-child(8){animation-delay:70s}
    .talk-bubble:nth-child(9){animation-delay:80s}
    .talk-bubble:nth-child(10){animation-delay:90s}
    .talk-bubble:nth-child(11){animation-delay:100s}

    @keyframes bubbleCarousel{
      0%{
        opacity:0;
        transform:translate(-50%,-46%) scale(.96);
      }

      1%{
        opacity:1;
        transform:translate(-50%,-50%) scale(1);
      }

      8.5%{
        opacity:1;
        transform:translate(-50%,-50%) scale(1);
      }

      9.1%{
        opacity:0;
        transform:translate(-50%,-54%) scale(.96);
      }

      100%{
        opacity:0;
        transform:translate(-50%,-54%) scale(.96);
      }
    }

    .mobile-bottom{
      position:absolute;
      left:14px;
      right:14px;
      bottom:13px;
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:8px;
      z-index:4;
    }

    .mobile-nav-item{
      min-height:38px;
      border-radius:15px;
      border:1px solid rgba(255,255,255,.09);
      background:rgba(255,255,255,.045);
      display:grid;
      place-items:center;
      color:var(--dmc-muted);
      font-size:.7rem;
      font-weight:900;
    }

    .mobile-nav-item.active{
      color:var(--dmc-gold-light);
      border-color:rgba(214,164,55,.42);
      background:rgba(214,164,55,.11);
      box-shadow:0 0 18px rgba(214,164,55,.12);
    }

    .stats{
      display:grid;
      grid-template-columns:repeat(4,1fr);
      gap:14px;
      margin:18px 0;
    }

    .stat{
      position:relative;
      overflow:hidden;
      padding:18px;
      min-height:112px;
      border-radius:22px;
    }

    .stat:before{
      content:"";
      position:absolute;
      inset:0 auto 0 0;
      width:4px;
      background:linear-gradient(180deg,var(--dmc-gold-light),var(--dmc-gold-dark));
      box-shadow:0 0 18px rgba(214,164,55,.36);
    }

    .stat strong{
      display:block;
      color:var(--dmc-gold-light);
      font-size:1.55rem;
    }

    .stat span{
      display:block;
      margin-top:5px;
      color:var(--dmc-muted);
      line-height:1.45;
      font-size:.94rem;
    }

    .home-grid{
      display:grid;
      grid-template-columns:.95fr 1.05fr;
      gap:18px;
      margin-top:18px;
      align-items:start;
    }

    .panel{
      border-radius:28px;
      overflow:hidden;
    }

    .panel-head{
      padding:20px;
      border-bottom:1px solid rgba(214,164,55,.16);
      background:
        linear-gradient(90deg,rgba(214,164,55,.08),rgba(28,111,168,.06),transparent);
    }

    .panel-kicker{
      margin:0 0 8px;
      color:var(--dmc-gold);
      font-weight:950;
      font-size:.8rem;
      text-transform:uppercase;
      letter-spacing:.14em;
    }

    .panel-title{
      margin:0;
      color:var(--dmc-text);
      font-size:clamp(1.35rem,2vw,2rem);
      letter-spacing:-.04em;
    }

    .panel-desc{
      margin:8px 0 0;
      color:var(--dmc-muted);
      line-height:1.6;
    }

    .feature-list,
    #news-container{
      display:grid;
      gap:12px;
      padding:16px;
    }

    .feature,
    .news-card{
      border:1px solid rgba(214,164,55,.20);
      border-radius:22px;
      background:
        linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.02)),
        rgba(13,29,48,.72);
      box-shadow:0 14px 40px rgba(0,0,0,.22);
      transition:.22s ease;
    }

    .feature:hover,
    .news-card:hover{
      transform:translateY(-3px);
      border-color:rgba(245,210,113,.55);
      background:
        linear-gradient(135deg,rgba(214,164,55,.10),rgba(28,111,168,.08)),
        rgba(13,29,48,.92);
      box-shadow:
        0 18px 48px rgba(0,0,0,.30),
        0 0 22px rgba(214,164,55,.10);
    }

    .feature{
      display:grid;
      grid-template-columns:44px 1fr;
      gap:12px;
      padding:16px;
    }

    .ico{
      width:44px;
      height:44px;
      border-radius:16px;
      display:grid;
      place-items:center;
      color:#07101b;
      font-size:1.05rem;
      font-weight:950;
      background:linear-gradient(135deg,var(--dmc-gold-light),var(--dmc-gold));
      border:1px solid rgba(245,210,113,.46);
      box-shadow:0 0 22px rgba(214,164,55,.18);
    }

    .feature h3{
      margin:0 0 4px;
      color:var(--dmc-gold-light);
    }

    .feature p{
      margin:0;
      color:var(--dmc-muted);
      line-height:1.5;
      font-size:.94rem;
    }

    .news-toolbar{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:14px 16px 0;
    }

    .news-count,
    .page-indicator{
      color:var(--dmc-muted);
      font-size:.92rem;
    }

    #news-container{
      min-height:350px;
    }

    .news-card{
      position:relative;
      padding:16px 16px 16px 18px;
    }

    .news-card:before{
      content:"";
      position:absolute;
      left:0;
      top:16px;
      bottom:16px;
      width:4px;
      border-radius:999px;
      background:linear-gradient(180deg,var(--dmc-gold-light),var(--dmc-gold-dark));
      box-shadow:0 0 16px rgba(214,164,55,.28);
    }

    .news-title{
      margin:0;
      color:var(--dmc-text);
      font-size:1.04rem;
      font-weight:950;
    }

    .news-subtitle{
      margin:5px 0 0;
      color:var(--dmc-gold-light);
      font-weight:750;
    }

    .news-meta{
      display:flex;
      flex-wrap:wrap;
      gap:6px;
      margin-top:9px;
      color:var(--dmc-muted);
      font-size:.86rem;
    }

    .news-pill{
      display:inline-flex;
      align-items:center;
      min-height:24px;
      padding:0 9px;
      border-radius:999px;
      background:rgba(255,255,255,.055);
      border:1px solid rgba(214,164,55,.18);
    }

    .news-description{
      margin:10px 0 0;
      color:var(--dmc-muted);
      line-height:1.55;
    }

    .pagination{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding:0 16px 16px;
    }

    .pagination-actions{
      display:flex;
      gap:10px;
    }

    .pagination button{
      min-height:38px;
      padding:0 14px;
      border-radius:999px;
      border:1px solid rgba(214,164,55,.34);
      color:var(--dmc-text);
      background:rgba(255,255,255,.045);
      font-weight:900;
      cursor:pointer;
      transition:.2s ease;
    }

    .pagination button:hover:not(:disabled){
      transform:translateY(-1px);
      border-color:rgba(245,210,113,.55);
      background:rgba(214,164,55,.10);
    }

    .pagination button:disabled{
      opacity:.42;
      cursor:not-allowed;
    }

    .empty-state,
    .error-state,
    .loading-state{
      display:grid;
      place-items:center;
      min-height:280px;
      text-align:center;
      color:var(--dmc-muted);
      border:1px dashed rgba(214,164,55,.24);
      border-radius:20px;
      background:rgba(255,255,255,.025);
      padding:22px;
    }

    .error-state{
      color:#ffb0a8;
    }

    .mini-footer{
      margin-top:18px;
      padding:16px;
      border:1px solid rgba(214,164,55,.24);
      border-radius:22px;
      color:var(--dmc-muted);
      background:
        linear-gradient(135deg,rgba(214,164,55,.075),rgba(28,111,168,.055)),
        rgba(255,255,255,.025);
      text-align:center;
      box-shadow:0 18px 52px rgba(0,0,0,.24);
    }

    @media(max-width:980px){
      .hero,
      .home-grid{
        grid-template-columns:1fr;
      }

      .hero-visual{
        min-height:360px;
      }

      .stats{
        grid-template-columns:repeat(2,1fr);
      }
    }

    @media(max-width:620px){
      .dmd-home{
        width:min(100% - 20px,1180px);
      }

      .hero{
        padding:16px;
        border-radius:22px;
      }

      .hero h1{
        font-size:clamp(2rem,13vw,3.2rem);
      }

      .hero-actions{
        display:grid;
      }

      .home-btn{
        width:100%;
      }

      .hero-visual{
        min-height:350px;
        padding:14px;
      }

      .mobile-demo{
        width:100%;
        max-width:300px;
        height:318px;
      }

      .talk-bubble{
        padding:13px;
      }

      .talk-bubble p{
        font-size:.74rem;
      }

      .stats{
        grid-template-columns:1fr;
      }

      .feature{
        grid-template-columns:1fr;
      }

      .pagination{
        align-items:stretch;
        flex-direction:column;
      }

      .pagination-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
      }
    }


    /* ==========================================================
       Compatibilité avec le thème choisi par l'utilisateur
       La mise en page reste identique ; seules les couleurs
       proviennent désormais du style.css du thème actif.
       ========================================================== */
    :root{
      --dmc-bg:var(--background-color);
      --dmc-bg-2:var(--page-bg);
      --dmc-panel:var(--section-bg);
      --dmc-card:var(--card-bg);
      --dmc-card-2:var(--panel-bg);

      --dmc-blue:var(--primary-dark);
      --dmc-blue-soft:var(--primary-color);
      --dmc-blue-light:var(--primary-color);

      --dmc-gold:var(--primary-color);
      --dmc-gold-light:var(--title-color);
      --dmc-gold-dark:var(--primary-dark);

      --dmc-text:var(--text-color);
      --dmc-muted:var(--muted-color);
      --dmc-muted-2:var(--muted-color);
      --dmc-title:var(--title-color);

      --dmc-border:var(--border-color);
      --dmc-border-blue:var(--border-color);

      --dmc-shadow:0 18px 48px var(--shadow-color);
      --dmc-gold-glow:none;
      --dmc-blue-glow:none;
    }

    body{
      color:var(--text-color);
      background:var(--background-color);
    }

    body:before{
      background:
        linear-gradient(90deg,color-mix(in srgb,var(--border-color) 18%,transparent) 1px,transparent 1px),
        linear-gradient(180deg,color-mix(in srgb,var(--border-color) 14%,transparent) 1px,transparent 1px);
      opacity:.30;
    }

    .hero,
    .panel,
    .stat{
      border-color:var(--border-color);
      background:var(--section-bg);
      color:var(--text-color);
      box-shadow:0 18px 48px var(--shadow-color);
    }

    .hero:before{
      background:
        linear-gradient(115deg,var(--primary-soft),transparent 38%),
        radial-gradient(circle at 78% 20%,var(--primary-soft),transparent 34%);
    }

    .hero:after{
      border-color:var(--border-color);
      background:radial-gradient(circle,var(--primary-soft),transparent 68%);
    }

    .hero h1,
    .panel-title,
    .news-title{
      color:var(--text-color);
      text-shadow:none;
    }

    .hero h1 span{
      color:var(--title-color);
      background:none;
      -webkit-background-clip:initial;
      background-clip:initial;
      filter:none;
    }

    .eyebrow,
    .portal-visual:before,
    .portal-visual:after,
    .news-pill{
      color:var(--title-color);
      background:var(--panel-bg);
      border-color:var(--border-color);
      box-shadow:none;
    }

    .eyebrow:before,
    .mobile-status span{
      background:var(--primary-color);
      box-shadow:none;
    }

    .hero-visual,
    .mobile-demo,
    .talk-bubble,
    .feature,
    .news-card,
    .mini-footer,
    .mobile-nav-item,
    .mobile-chip{
      color:var(--text-color);
      background:var(--card-bg);
      border-color:var(--border-color);
      box-shadow:none;
    }

    .mobile-top,
    .panel-head{
      background:var(--panel-bg);
      border-color:var(--border-color);
    }

    .mobile-title,
    .talk-bubble strong,
    .feature h3,
    .panel-kicker,
    .stat strong,
    .news-subtitle{
      color:var(--title-color);
    }

    .hero-lead,
    .portal-visual:after,
    .mobile-chip,
    .mobile-nav-item,
    .talk-bubble p,
    .stat span,
    .panel-desc,
    .feature p,
    .news-count,
    .page-indicator,
    .news-meta,
    .news-description,
    .mini-footer{
      color:var(--muted-color);
    }

    .home-btn,
    .pagination button{
      color:var(--text-color);
      background:var(--panel-bg);
      border-color:var(--border-color);
      box-shadow:none;
    }

    .home-btn:hover,
    .pagination button:hover:not(:disabled),
    .feature:hover,
    .news-card:hover{
      color:var(--text-color);
      background:var(--primary-soft);
      border-color:var(--primary-color);
      box-shadow:none;
    }

    .home-btn.primary{
      color:#fff;
      background:var(--primary-dark);
      border-color:var(--primary-color);
      box-shadow:none;
    }

    .home-btn.primary:hover{
      color:#fff;
      background:var(--primary-color);
    }

    .ico{
      color:#fff;
      background:var(--primary-dark);
      border-color:var(--primary-color);
      box-shadow:none;
    }

    .stat:before,
    .news-card:before{
      background:var(--primary-color);
      box-shadow:none;
    }

    .mobile-nav-item.active{
      color:var(--title-color);
      background:var(--primary-soft);
      border-color:var(--primary-color);
      box-shadow:none;
    }

    .empty-state,
    .error-state,
    .loading-state{
      color:var(--muted-color);
      background:var(--panel-bg);
      border-color:var(--border-color);
    }
