/* Charte extraite du kit fourni ; polices hébergées localement. */
@font-face {
  font-family: 'Gloock';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gloock-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Gloock';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gloock-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/kalam-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/kalam-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/kalam-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/kalam-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* lepireclient.fr - tokens */
:root {
  /* Couleurs - papier */
  --paper:        #F5F1E8;  /* fond de page */
  --sheet:        #FFFDF8;  /* cartes, feuilles, champs */
  --paper-2:      #EDE7DB;  /* sections alternées, bulle utilisateur */
  --paper-lines:  #F0EADF;  /* lignes du chat */
  --drop-bg:      #FAF7F0;  /* zone de dépôt */
  /* Couleurs - encre */
  --ink:          #1C1A17;  /* texte, contours, fonds sombres */
  --ink-2:        #3A3631;  /* sous-titres, paragraphes secondaires */
  --ink-3:        #4A4640;  /* texte tertiaire */
  --ink-muted:    #5A554D;  /* légendes, compteurs */
  --ink-faint:    #A39C8E;  /* inactif, surtitres sur fond sombre */
  --ink-on-dark:  #CFC8BA;  /* texte secondaire sur --ink */
  /* Couleurs - filets */
  --rule:         #D9D2C3;  /* séparateurs */
  --rule-soft:    #E6E0D3;  /* lignes de devis */
  --rule-card:    #E3DCCD;  /* cartes au repos, ombre bulle */
  --field-border: #BDB5A5;  /* champs */
  --dashed:       #8F887B;  /* zone de dépôt */
  /* Couleurs - accent */
  --red:          #C8322A;  /* rouge correcteur */
  --red-on-dark:  #E8695F;  /* rouge sur fond --ink */
  --red-tint:     #FBEDE9;  /* fond sélection */

  /* Polices */
  --font-display: 'Gloock', serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --font-hand:    'Kalam', cursive;

  /* Échelle typographique */
  --fs-h1:   clamp(40px, 5vw, 64px);  /* lh 1.04, ls -0.02em */
  --fs-h2:   52px;                    /* lh 1.05, ls -0.015em (36px mobile) */
  --fs-h2-s: 40px;                    /* débrief, contact */
  --fs-h3:   28px;
  --fs-h4:   24px;
  --fs-lead: 21px;                    /* lh 1.5 */
  --fs-body: 17px;                    /* lh 1.55 */
  --fs-sm:   15px;
  --fs-xs:   13px;
  --fs-label:13px;                    /* mono, majuscules, ls 0.08em */
  --fs-micro:11px;                    /* mono, majuscules, ls 0.1em */
  --fs-score:88px;                    /* mono 600, lh .9, ls -0.04em */
  --fs-hand: 17px;                    /* 14 → 22 selon contexte */

  /* Espacements */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --sp-9: 48px; --sp-10: 64px; --sp-11: 96px;
  --container: 1400px;
  --gutter: 32px;   /* 20px mobile */

  /* Bordures et rayons */
  --bw-hair: 1px;
  --bw-strong: 1.5px;
  --bw-select: 2px;
  --bw-stamp: 3px;
  --radius-0: 0;       /* champs, cartes */
  --radius-1: 2px;     /* boutons */
  --radius-sm: 8px;    /* icônes réseaux */
  --radius-md: 10px;   /* boutons du bloc CTA */
  --radius-lg: 20px;   /* bloc CTA */

  /* Ombres */
  --shadow-block:  6px 6px 0 var(--ink);
  --shadow-bubble: 3px 3px 0 var(--rule-card);
  --shadow-sheet:  0 22px 50px -30px rgba(40, 30, 20, .45);

  /* États */
  --focus: 2px solid var(--red);  /* outline-offset 1px */
  --disabled-opacity: .4;
}

.stamp {
  font: 600 22px/1 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); padding: 4px 16px;
  border: var(--bw-stamp) solid var(--red);
  outline: var(--bw-strong) solid var(--red); outline-offset: 3px;
  transform: rotate(-8deg);
}
.circled {
  border: 2px solid var(--red); padding: 3px 6px;
  border-radius: 60% 40% 52% 48% / 55% 45% 58% 42%;
  transform: rotate(-2deg); display: inline-block;
}
.btn-primary {
  background: var(--ink); color: var(--paper); border: 0;
  font: 600 16px/1 var(--font-body); padding: 15px 22px;
  min-height: 48px; border-radius: var(--radius-1);
}
.btn-primary:hover { background: var(--red); }
.btn-secondary {
  background: none; color: var(--ink);
  border: var(--bw-strong) solid var(--ink);
  font: 600 16px/1 var(--font-body); padding: 15px 22px;
  min-height: 48px; border-radius: var(--radius-1);
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); }

/* Conversation, débrief et maintenance. */
.simulation { padding: clamp(20px, 4vw, 48px); }
.simulation h3 { margin-top: 0; font-size: clamp(25px, 4vw, 38px); }
.message-simulation { padding: 22px; margin: 22px 0; border: 1px solid #c8c1b3; overflow-wrap: anywhere; }
.message-simulation h4 { font: 12px monospace; text-transform: uppercase; margin: 0 0 14px; }
.message-simulation p { white-space: pre-wrap; line-height: 1.7; margin: 0; }
.client-relou { background: #1e1c18; color: #f5f1e8; border-color: #1e1c18; }
.client-relou h4 { color: #edb3a8; }
.votre-reponse { margin-left: 6%; }
.simulation textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.actions-simulation { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0; }
.bilan-simulation { border-top: 3px solid #1e1c18; margin: 40px 0; padding-top: 32px; overflow-wrap: anywhere; }
.note-devis { font: 42px Georgia,serif; margin: 20px 0 8px; }
.issue-fictive { color: #ad2722; font-weight: 700; }
.rubrique-debrief { padding: 20px 0; border-top: 1px solid #d8d1c4; }
.rubrique-debrief h4 { font: 24px Georgia,serif; margin: 0 0 20px; }
.rubrique-debrief h5 { font-size: 16px; margin: 22px 0 10px; }
.rubrique-debrief p,.rubrique-debrief li,.rubrique-debrief blockquote { line-height: 1.65; }
.rubrique-debrief blockquote { border-left: 2px solid #cb3029; margin: 16px 0; padding-left: 18px; white-space: pre-wrap; }
.reponse-conseillee { background: #f5f1e8; padding: 14px; }
.simulation [hidden],#formulaire-devis[hidden] { display: none !important; }
@media(max-width:600px) { .message-simulation { padding:16px; }.actions-simulation>* { width:100%; text-align:center; }.note-devis { font-size:34px; } }
.page-maintenance { margin:0; min-height:100vh; display:grid; place-items:center; background:#f5f1e8; color:#1e1c18; font:17px/1.6 Georgia,serif; }
.page-maintenance main { width:min(580px, calc(100% - 64px)); padding:60px 0; }
.page-maintenance img { width:220px; height:auto; margin-bottom:65px; }
.page-maintenance h1 { font-size:clamp(42px,8vw,68px); line-height:1.06; letter-spacing:-2px; margin:15px 0 28px; }
.page-maintenance .mention-maintenance { font:12px monospace; letter-spacing:2px; color:#cb3029; }
.tampon-maintenance { display:inline-block; color:#cb3029; border:2px solid; padding:8px 16px; transform:rotate(-4deg); margin:28px 0; font:14px monospace; }
.signature-maintenance { font:12px monospace; color:#686158; border-top:1px solid #d8d1c4; padding-top:25px; margin-top:45px; }

/* Conversation et débrief : mêmes encres, papier et tampons que la page. */
.badge-mode { display:inline-block; padding:2px 5px; border:1px solid var(--red); background:var(--red); color:#fff; font:600 10px/1.4 var(--font-mono); letter-spacing:0; white-space:nowrap; vertical-align:middle; }
.identite-debrief { margin-top:16px; }
.conversation-simulation { border:0; min-width:0; }
.conversation-simulation>summary { list-style:none; cursor:pointer; padding:18px 20px; border:1px solid var(--rule-card); background:var(--paper); font-weight:600; }
.conversation-simulation>summary::-webkit-details-marker,.rubrique-debrief>summary::-webkit-details-marker { display:none; }
.conversation-simulation>summary::after { content:'+'; float:right; color:var(--red); }
.conversation-simulation[open]>summary::after { content:'−'; }
.conversation-simulation:not([open]) { margin-bottom:28px; }
.conversation-simulation>summary:focus-visible,.rubrique-debrief>summary:focus-visible { outline:var(--focus); outline-offset:3px; }
.contenu-message p+p { margin-top:12px; }
.contenu-message ul,.contenu-message ol { padding-left:24px; margin:12px 0; }
.contenu-message li { white-space:pre-wrap; line-height:1.7; }
.statut-message { display:flex; justify-content:flex-end; gap:8px; align-items:center; margin-top:14px; color:#655e53; font:12px var(--font-mono); }
.coches-message { color:var(--red); letter-spacing:-4px; padding-right:4px; font-size:16px; }
.envoi-en-cours { opacity:.65; }
.points-attente { display:inline-flex; align-items:center; gap:4px; flex-shrink:0; min-height:18px; }
.points-attente i { width:6px; height:6px; border-radius:50%; background:currentColor; display:block; animation:attente-client 1.2s infinite ease-in-out; }
.points-attente i:nth-child(2) { animation-delay:.15s; }
.points-attente i:nth-child(3) { animation-delay:.3s; }
@keyframes attente-client { 0%,70%,100% { opacity:.35; transform:translateY(0); } 35% { opacity:1; transform:translateY(-4px); } }
.notification-simulation { position:relative; display:flex; align-items:center; gap:12px; width:100%; margin:20px 0; box-sizing:border-box; padding:17px 20px; background:var(--ink); color:var(--paper); border:1px solid #595045; font:500 14px/1.45 var(--font-body); }
.notification-simulation[hidden] { display:none; }
.notification-simulation a { color:var(--paper); text-underline-offset:3px; margin-left:auto; font-weight:700; }
.notification-simulation:not(.en-cours)>.points-attente { display:none; }
.notification-simulation.en-cours { border-left:4px solid var(--red); }
#formulaire-reponse { margin-top:30px; }
.simulation .ql-toolbar.ql-snow { background:#eee8dc; border:1px solid var(--rule-card); font-family:var(--font-body); padding:10px 12px; }
.simulation .ql-toolbar.ql-snow { display:flex; flex-wrap:wrap; gap:6px; }
.simulation .ql-toolbar.ql-snow .ql-formats { display:flex; gap:4px; margin:0; }
.simulation .ql-toolbar.ql-snow button { width:20px; height:20px; min-height:20px; padding:2px; border-radius:2px; }
.simulation .ql-toolbar.ql-snow button svg { width:16px; height:16px; }
#nouvelle-simulation { background:var(--red); border-color:var(--red); color:#fff; }
#nouvelle-simulation:hover { background:#a92821; border-color:#a92821; }
.simulation .ql-toolbar.ql-snow button:hover,.simulation .ql-toolbar.ql-snow button.ql-active { background:#fff8; }
.simulation .ql-toolbar.ql-snow button:focus-visible { outline:var(--focus); outline-offset:1px; }
.simulation .ql-container.ql-snow { border:1px solid var(--rule-card); border-top:0; background:#fffdf8; font:16px/1.65 var(--font-body); }
.simulation .ql-editor { min-height:170px; max-height:420px; overflow-y:auto; padding:20px; }
.simulation .ql-editor.ql-blank::before { font-style:normal; color:#777166; left:20px; right:20px; }
.simulation .ql-container:focus-within { outline:var(--focus); outline-offset:2px; }
.simulation .ql-editor p { margin:0; }
.compteur-reponse { text-align:right; margin:8px 0 0; font-size:12px; }
.compteur-reponse.depassement { color:var(--red); font-weight:700; }
.bilan-simulation { scroll-margin-top:30px; }
.scores-debrief,.synthese-debrief { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:30px 0 36px; border:1px solid var(--rule-card); }
.carte-bilan { min-width:0; padding:24px; background:#fffdf8; }
.carte-bilan+.carte-bilan { border-left:1px solid var(--rule-card); }
.carte-bilan h4 { font:22px/1.18 var(--font-display); margin:0 0 24px; }
.carte-bilan p,.carte-bilan li { font-size:15px; line-height:1.65; }
.carte-bilan ul,.carte-bilan ol { padding-left:20px; margin:0; }
.carte-bilan li+li { margin-top:16px; }
.carte-bilan li::marker { color:var(--red); font-weight:700; }
.tampon-score { color:var(--red); border:3px solid currentColor; outline:1px solid currentColor; outline-offset:4px; transform:rotate(-5deg); width:fit-content; margin:20px auto 32px; padding:12px 18px; text-align:center; }
.tampon-score strong { display:block; font:600 clamp(42px,4.2vw,64px)/1 var(--font-mono); letter-spacing:-3px; }
.tampon-score small { font-size:18px; letter-spacing:-1px; }
.tampon-score>span { display:block; margin-top:9px; padding-top:8px; border-top:1px solid; font:600 11px/1.2 var(--font-mono); text-transform:uppercase; letter-spacing:.1em; }
.synthese-devis { margin-bottom:0; }
.rubrique-debrief { padding:0; margin:0; border:1px solid var(--rule-card); border-bottom:0; }
.rubrique-debrief:last-of-type { border-bottom:1px solid var(--rule-card); }
.rubrique-debrief>summary { display:flex; list-style:none; gap:20px; align-items:center; justify-content:space-between; padding:22px 24px; cursor:pointer; background:#fffdf8; }
.rubrique-debrief>summary h4 { font:21px/1.25 var(--font-display); margin:0; }
.rubrique-debrief[open]>summary { background:#eee8dc; }
.signe-accordeon { color:var(--red); font:24px/1 var(--font-mono); flex-shrink:0; }
.contenu-accordeon { padding:24px; }
.contenu-accordeon>:first-child { margin-top:0; }
.contenu-accordeon .aide { font-size:14px; }
.table-notes-conteneur { max-width:100%; overflow-x:auto; }
.table-notes-conteneur:focus-visible { outline:var(--focus); outline-offset:3px; }
.table-notes { width:100%; min-width:680px; table-layout:fixed; border-collapse:collapse; font-size:14px; text-align:left; }
.table-notes caption { text-align:left; color:var(--ink-muted); padding-bottom:18px; font-size:14px; }
.table-notes th,.table-notes td { padding:18px 16px; border:1px solid var(--rule-card); vertical-align:top; overflow-wrap:anywhere; }
.table-notes thead th { background:var(--paper-2); font-weight:600; }
.table-notes th:first-child { width:21%; }
.table-notes thead th:last-child { width:15%; }
.table-notes tbody th { background:var(--paper); font-weight:600; }
.table-notes .points-critere { display:block; margin-bottom:12px; font:600 13px/1.6 var(--font-mono); }
.table-notes p { margin:0; font-size:14px; }
.table-notes small { display:block; margin-top:12px; color:var(--ink-muted); font-size:12px; }
.table-notes .evolution-critere { font:500 13px/1.6 var(--font-mono); }
.table-notes-historique { min-width:420px; }
.table-notes-historique th:first-child { width:30%; }
.table-notes-historique thead th:last-child { width:70%; }
.evaluation-retour { padding-top:20px; margin-top:20px; border-top:1px solid var(--rule-card); }
.evaluation-retour h5 { margin:0 0 16px; font:600 17px var(--font-body); }
.appreciations-retour { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0 0 16px; }
.appreciations-retour li { padding:7px 10px; color:var(--sheet); background:var(--red); border:1px solid var(--red); font-size:13px; }
.appreciations-retour .appreciation-positive { background:#2e6b46; border-color:#2e6b46; }
.appreciations-retour .appreciation-neutre { background:#5a554d; border-color:#5a554d; }
@media(max-width:1000px) { .carte-bilan { padding:20px 16px; }.carte-bilan h4 { font-size:20px; } }
@media(max-width:760px) {
  .scores-debrief,.synthese-debrief { grid-template-columns:1fr; }
  .carte-bilan { padding:24px; }
  .carte-bilan+.carte-bilan { border-left:0; border-top:1px solid var(--rule-card); }
  .tampon-score strong { font-size:60px; }
  .rubrique-debrief>summary { padding:20px 16px; }
  .rubrique-debrief>summary h4 { font-size:19px; }
  .contenu-accordeon { padding:20px 16px; }
  .notification-simulation { padding:12px 16px; font-size:13px; }
}
@media(prefers-reduced-motion:reduce) { .points-attente i { animation:none; opacity:.7; } }

#actions-debrief { flex-wrap:wrap; margin:24px 0; }
#actions-debrief .aide { flex-basis:100%; margin:0; }
.copie-manuelle { width:100%; min-height:180px; }
#entete-impression-debrief,#pied-impression-debrief { display:none; }
@media print {
  /* Pied dans la marge de chaque page, indépendant du défilement de l'écran. */
  @page debrief {
    size:A4 portrait; margin:16mm 16mm 28mm;
    @bottom-center {
      content:"API Studio - 20 rue d’Agen, 68000 Colmar\A 32 rue de l’Industrie, 67400 Illkirch-Graffenstaden\A 03 67 30 02 36 - hello@api-studio.fr - www.api-studio.fr";
      white-space:pre-line; text-align:center; vertical-align:middle;
      font:8pt/1.5 Arial,sans-serif; color:#444;
    }
  }
  body.impression-debrief { page:debrief; background:white; color:#171714; font-size:11pt; }
  .impression-debrief main { margin:0; padding:0; }
  .impression-debrief>header,.impression-debrief>footer,.impression-debrief>aside,.impression-debrief>dialog,
  .impression-debrief main>section:not(#outil),.impression-debrief #outil>.conteneur>h2,.impression-debrief #outil>.conteneur>.surtitre,
  .impression-debrief #notification-simulation,.impression-debrief .evitement,.impression-debrief .barre-atelier,.impression-debrief #formulaire-devis,
  .impression-debrief #simulation>:not(#bilan-simulation):not(#entete-impression-debrief):not(#pied-impression-debrief) { display:none!important; }
  .impression-debrief #entete-impression-debrief { display:block!important; margin:0 0 8mm; break-after:avoid; }
  .impression-debrief #entete-impression-debrief img { display:block; width:55mm; max-width:100%; height:auto; }
  /* Coordonnées incluses dans le document même sans prise en charge des marges natives. */
  .impression-debrief #pied-impression-debrief { display:block!important; break-inside:avoid; margin:10mm 0 0; padding:4mm 0 0; border-top:1px solid #999; text-align:center; color:#444; font:8pt/1.5 Arial,sans-serif; }
  .impression-debrief #pied-impression-debrief p { margin:2mm 0 0; }
  .impression-debrief #outil,.impression-debrief main .conteneur,.impression-debrief .atelier,.impression-debrief #simulation,.impression-debrief #bilan-simulation { display:block!important; margin:0; padding:0; width:auto; max-width:none; border:0; box-shadow:none; background:white; }
  .impression-debrief .scores-debrief,.impression-debrief .synthese-debrief { grid-template-columns:repeat(2,minmax(0,1fr)); break-inside:avoid; }
  .impression-debrief .rubrique-debrief { display:block; border:0; border-top:1px solid #999; margin-top:15pt; }
  .impression-debrief .rubrique-debrief>summary { display:block; padding:10pt 0; }
  .impression-debrief .contenu-accordeon { display:block!important; padding:8pt 0 0; }
  .impression-debrief .table-notes-conteneur { overflow:visible; }
  .impression-debrief .table-notes { min-width:0; font-size:9pt; }
  .impression-debrief .table-notes caption { padding-bottom:8pt; font-size:9pt; }
  .impression-debrief .table-notes th,.impression-debrief .table-notes td { padding:8pt; border-color:#999; }
  .impression-debrief .table-notes p,.impression-debrief .table-notes .points-critere,.impression-debrief .table-notes .evolution-critere { font-size:9pt; }
  .impression-debrief .table-notes small { font-size:8pt; }
  .impression-debrief .table-notes thead { display:table-header-group; }
  .impression-debrief .table-notes tr { break-inside:avoid; }
  .impression-debrief .signe-accordeon,.impression-debrief .copie-manuelle { display:none; }
  .impression-debrief h3,.impression-debrief h4,.impression-debrief h5 { break-after:avoid; }
  .impression-debrief p,.impression-debrief li,.impression-debrief blockquote { orphans:3; widows:3; }
  .impression-debrief .carte-bilan,.impression-debrief .evaluation-retour { break-inside:avoid; }
  .impression-debrief .tampon-score { color:#171714; border-color:#171714; }
  .impression-debrief .appreciations-retour li,.impression-debrief .badge-mode { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
