/* Extrait de student_dashboard.html. Ordre historique : 3. */
/* ================================================
       CSS IMPRESSION PROFESSIONNELLE ARGUMENTAIRES
       Format A4 - Arial 11pt - Pagination automatique
       ================================================ */
    
    /* === CONFIGURATION PAGE === */
    @page {
      size: A4 portrait;
      margin: 15mm 18mm;
    }
    
    /* Masquer en-têtes et pieds de page automatiques du navigateur */
    @page {
      margin-top: 10mm;
      margin-bottom: 10mm;
    }
    
    @page :first {
      margin-top: 10mm;
    }
    
    /* === RESET & BASE === */
    * {
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
      box-sizing: border-box !important;
    }
    
    html {
      margin: 0 !important;
      padding: 0 !important;
    }
    
    body {
      background: white !important;
      color: #000 !important;
      font-family: Arial, sans-serif !important;
      font-size: 11pt !important;
      line-height: 1.5 !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    /* Supprimer espaces en haut */
    body::before,
    main::before,
    #detail-argumentaire::before {
      display: none !important;
      content: none !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    /* === MASQUER NAVIGATION === */
    nav, .menu-container, .sidebar, button, 
    #grandoral-nav, .no-print, aside, header,
    [onclick], .btn, input, select, textarea,
    .page-header, .page-title, .page-subtitle,
    time, .date, [datetime] {
      display: none !important;
    }
    
    /* Masquer header/footer automatiques navigateur */
    body > header:first-child,
    body::before,
    html::before {
      display: none !important;
    }
    
    /* === CONTENEUR PRINCIPAL === */
    main, #detail-argumentaire {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      box-shadow: none !important;
      border: none !important;
    }
    
    #detail-argumentaire > div {
      padding: 0 !important;
      margin: 0 !important;
      border-radius: 0 !important;
      background: white !important;
      border: none !important;
    }
    
    /* === TITRE PRINCIPAL === */
    h3 {
      font-size: 14pt !important;
      font-weight: bold !important;
      color: #000 !important;
      margin: 0 0 8mm 0 !important;
      padding-bottom: 3mm !important;
      border-bottom: 2pt solid #333 !important;
      page-break-after: avoid !important;
      page-break-inside: avoid !important;
    }
    
    /* === SOUS-TITRES === */
    h4 {
      font-size: 12pt !important;
      font-weight: bold !important;
      color: #000 !important;
      margin: 6mm 0 3mm 0 !important;
      page-break-after: avoid !important;
    }
    
    h5 {
      font-size: 11pt !important;
      font-weight: bold !important;
      color: #000 !important;
      margin: 4mm 0 2mm 0 !important;
      page-break-after: avoid !important;
    }
    
    /* === PARAGRAPHES === */
    p {
      font-size: 11pt !important;
      line-height: 1.5 !important;
      margin: 2mm 0 !important;
      text-align: justify !important;
      color: #000 !important;
      orphans: 3 !important;
      widows: 3 !important;
    }
    
    /* === STRONG (gras) === */
    strong, b {
      font-weight: bold !important;
      color: #000 !important;
    }
    
    /* === LISTES === */
    ul, ol {
      margin: 3mm 0 !important;
      padding-left: 8mm !important;
      list-style-position: outside !important;
    }
    
    li {
      font-size: 11pt !important;
      line-height: 1.5 !important;
      margin-bottom: 2mm !important;
      color: #000 !important;
      page-break-inside: avoid !important;
    }
    
    /* === BOÎTES COLORÉES → BORDURES SIMPLES === */
    .argumentaire-accroche,
    div[style*="background: #fff3e0"],
    div[style*="background: #e3f2fd"],
    div[style*="background: #f3e5f5"],
    div[style*="background: #e8f5e9"],
    div[style*="background: linear-gradient"] {
      background: white !important;
      border: 1.5pt solid #666 !important;
      border-radius: 0 !important;
      padding: 4mm !important;
      margin: 4mm 0 !important;
      page-break-inside: avoid !important;
    }
    
    /* Accroche en italique */
    .argumentaire-accroche p {
      font-style: italic !important;
    }
    
    /* === SECTIONS PARTIES DU PLAN === */
    div[style*="e3f2fd"],
    div[style*="f3e5f5"],
    div[style*="e8f5e9"] {
      background: white !important;
      border: 1pt solid #999 !important;
      border-left: 3pt solid #333 !important;
      padding: 3mm !important;
      margin: 3mm 0 !important;
      page-break-inside: avoid !important;
    }
    
    /* === BADGES DURÉE === */
    span[style*="background: #f093fb"] {
      background: transparent !important;
      color: #000 !important;
      border: 1pt solid #333 !important;
      padding: 1mm 2mm !important;
      border-radius: 0 !important;
      font-size: 10pt !important;
      font-weight: bold !important;
    }
    
    /* Supprimer emojis visuellement */
    *::before, *::after {
      content: none !important;
    }
    
    /* === GESTION SAUTS DE PAGE === */
    .argumentaire-accroche,
    div[style*="e3f2fd"],
    div[style*="f3e5f5"], 
    div[style*="e8f5e9"],
    div[style*="fff9c4"] {
      page-break-before: auto !important;
      page-break-after: auto !important;
      page-break-inside: avoid !important;
    }
    
    /* Titre de partie reste avec son contenu */
    h5 + ul,
    h5 + div {
      page-break-before: avoid !important;
    }
    
    /* === CONCLUSION === */
    div[style*="e8f5e9"]:not([style*="e3f2fd"]):not([style*="f3e5f5"]) {
      border-left: 3pt solid #4caf50 !important;
    }
    
    /* === CONSEILS === */
    div[style*="fff9c4"] {
      border-left: 3pt solid #fbc02d !important;
      background: #fffef0 !important;
    }
    
    /* === FOOTER (optionnel) === */
    @page {
      @bottom-center {
        content: "2I2D Pro Ultimate - Grand Oral STI2D";
        font-size: 8pt;
        color: #999;
      }
    }
