
    :root{
      --card: rgba(255,255,255,.92);
      --text: #0f172a;
      --muted: #64748b;
      --border: rgba(15, 23, 42, .10);
      --radius: 22px;

      --brand: #2563eb;
      --brand-soft: rgba(37, 99, 235, .12);

      --warn: #ef4444;
      --good: #16a34a;
    }

    *{ box-sizing:border-box; }

    body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
      color: var(--text);
      background:
        radial-gradient(900px 500px at 10% 0%, rgba(37,99,235,.35), transparent 60%),
        radial-gradient(1000px 600px at 90% 10%, rgba(16,185,129,.25), transparent 60%),
        linear-gradient(180deg, #e6eefc 0%, #dbe7fb 40%, #e9f0ff 100%);
      background-attachment: fixed;
    }

    .hero{
      text-align:center;
      padding: 44px 16px 10px;
    }
    .hero h1{
      margin:0;
      font-size: 44px;
      letter-spacing: -.03em;
      color: #0b1225;
      font-family: "Raleway", Sans-serif;
      font-weight: 900;
    }
    .hero h2{
      margin: 8px 0 0;
      font-size: 22px;
      font-weight: 700;
      letter-spacing: .10em;
      text-transform: uppercase;
      color: var(--brand);
    }
    h2{
      text-align: center;
    }
    .decorLine{
      width: 120px;
      height: 6px;
      margin: 16px auto 0;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(37,99,235,1), rgba(16,185,129,1));
      box-shadow: 0 10px 25px rgba(37,99,235,.18);
    }

    .page{
      min-height: calc(100dvh - 120px);
      padding: 10px 16px 64px;
      display:flex;
      align-items:flex-start;
      justify-content:center;
    }

    .shell{
      width: min(1280px, 100%);
      margin: 0 auto;
      display:grid;
      gap: 24px;
      grid-template-columns: 1.2fr .8fr;
      align-items:start;
    }
    @media (max-width: 950px){
      .shell{ grid-template-columns: 1fr; }
    }

    .card{
      background: var(--card);
      border: 1px solid rgba(255,255,255,.45);
      border-radius: var(--radius);
      box-shadow:
        0 25px 60px rgba(15, 23, 42, .15),
        0 4px 12px rgba(15, 23, 42, .06);
      backdrop-filter: blur(8px);
      overflow:hidden;
      transition: transform .25s ease, box-shadow .25s ease;
    }
    .card:hover{
      transform: translateY(-4px);
      box-shadow:
        0 35px 80px rgba(15, 23, 42, .20),
        0 8px 20px rgba(15, 23, 42, .09);
    }

    .header{
      padding: 24px 24px 18px;
      border-bottom: 1px solid var(--border);
      display:flex;
      gap: 14px;
      align-items:center;
    }
    
    .avatar{
      width: 60px; height: 60px;
      border-radius: 16px;
      object-fit: cover;
      border: 1px solid var(--border);
      box-shadow: 0 8px 18px rgba(15,23,42,.10);
      flex: 0 0 auto;
    }

    .titleWrap{ min-width:0; }

    .kicker{
      display:inline-flex;
      align-items:center;
      gap:8px;
      font-size: 12px;
      font-weight: 900;
      color: var(--brand);
      background: var(--brand-soft);
      padding: 7px 12px;
      border-radius: 999px;
      margin-bottom: 8px;
    }
    .kickerDot{
      width: 8px; height: 8px; border-radius: 999px;
      background: var(--brand);
      box-shadow: 0 0 0 4px rgba(37,99,235,.15);
    }

    .card h3{
      margin:0;
      font-size: 18px;
      line-height: 1.25;
      letter-spacing: -.01em;
    }
    .sub{
      margin-top: 6px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .content{
      padding: 18px 24px 24px;
    }

    .grid{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }
    @media (max-width: 720px){
      .grid{ grid-template-columns: 1fr; }
    }

    .field{
      display:flex;
      flex-direction:column;
      gap: 6px;
    }
    label{
      font-size: 13px;
      color: var(--muted);
      font-weight: 800;
    }

    input, select{
      width: 100%;
      padding: 12px 12px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,.97);
      font-size: 15px;
      outline: none;
      transition: box-shadow .2s ease, border-color .2s ease, transform .05s ease;
    }
    input:focus, select:focus{
      border-color: rgba(37,99,235,.50);
      box-shadow: 0 0 0 5px rgba(37,99,235,.14);
    }
    input:active, select:active{ transform: translateY(1px); }

    .hint{
      margin-top: 12px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .result{
      margin-top: 18px;
      padding: 16px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: linear-gradient(180deg, rgba(37,99,235,.08), rgba(255,255,255,.95));
      display:none;
    }
    .result.show{ display:block; }

    .resultTop{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap: 10px;
      margin-bottom: 12px;
    }
    .resultTitle{
      font-weight: 950;
      letter-spacing: -.01em;
      font-size: 15px;
    }
    .pill{
      font-size: 12px;
      font-weight: 900;
      color: var(--muted);
      padding: 6px 10px;
      background: rgba(15,23,42,.04);
      border: 1px solid var(--border);
      border-radius: 999px;
      white-space: nowrap;
    }

    .bigNumber{
      font-size: 46px;
      font-weight: 950;
      letter-spacing: -.03em;
      color: var(--warn);
      line-height: 1;
      margin: 6px 0 12px;
    }

    .resultList{
      margin: 0;
      padding-left: 18px;
      color: var(--text);
      font-size: 14px;
      line-height: 1.55;
    }
    .resultList li{ margin: 6px 0; }
    .muted{ color: var(--muted); }

    /* ✅ Actions */
    .actions{
      margin-top: 14px;
      display:flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .btn{
      appearance:none;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 10px 12px;
      font-weight: 900;
      font-size: 13px;
      cursor: pointer;
      background: rgba(255,255,255,.95);
      transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease;
      display:inline-flex;
      align-items:center;
      gap: 8px;
    }
    .btn:hover{
      border-color: rgba(37,99,235,.35);
      box-shadow: 0 10px 24px rgba(15,23,42,.08);
    }
    .btn:active{ transform: translateY(1px); }
    .btnPrimary{
      background: linear-gradient(180deg, rgba(37,99,235,.16), rgba(255,255,255,.95));
      border-color: rgba(37,99,235,.25);
    }
    .btnDanger{
      background: linear-gradient(180deg, rgba(239,68,68,.12), rgba(255,255,255,.95));
      border-color: rgba(239,68,68,.25);
    }

    /* ✅ Tableau semaine par semaine (Level 2) */
    .tableWrap{
      margin-top: 16px;
      border-radius: 16px;
      border: 1px solid var(--border);
      overflow:hidden;
      background: rgba(255,255,255,.95);
      display:none;
    }
    .tableWrap.show{ display:block; }

    table{
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }
    thead th{
      text-align:left;
      padding: 10px 12px;
      color: var(--muted);
      font-weight: 900;
      background: rgba(15,23,42,.03);
      border-bottom: 1px solid var(--border);
    }
    tbody td{
      padding: 10px 12px;
      border-bottom: 1px solid rgba(15,23,42,.06);
    }
    tbody tr:last-child td{ border-bottom: none; }
    .tdRight{ text-align:right; }
    .badge{
      display:inline-flex;
      padding: 4px 8px;
      border-radius: 999px;
      font-weight: 900;
      font-size: 12px;
      border: 1px solid var(--border);
      background: rgba(37,99,235,.08);
      color: var(--brand);
    }

    footer.note{
      margin-top: 10px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .panel{
      padding: 20px 20px 16px;
    }
    .panelHead{
      display:flex;
      align-items:baseline;
      justify-content:space-between;
      gap:10px;
      margin-bottom: 12px;
    }
    .panelHead h4{
      margin:0;
      font-size: 15px;
      font-weight: 950;
      letter-spacing: -.01em;
    }
    .panelHead .mini{
      color: var(--muted);
      font-size: 12px;
    }
    .chartBox{
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 12px;
      background: rgba(255,255,255,.97);
    }

    canvas{
      width:100% !important;
      height:420px !important;
    }
