@import url("pde-resource-inline-attributes.css");
:root{--ink:#132033;--muted:#657287;--line:#dfe7f1;--line-strong:#cad7e8;--soft:#f6f9fd;--blue:#1267d8;--teal:#1295ad;--green:#33a852;--red:#c93535;--shadow:0 10px 28px rgba(20,33,54,.08)}
    *{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#fff;color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}
    .pde-page-title{margin:0!important;padding:8px 10px 2px!important}.pde-page-title__text{margin:0!important}.pde-page-title:after{margin-top:4px!important}.pde-page-title + .cm-row,.cm-posts.pagebuilder-content,.cm-entry-summary{margin-top:0!important;padding-top:0!important}
    body:has(.pde-bulletins-app) .cm-entry-summary>p:has(+.pde-resource-ui){margin:0!important;padding:0!important}
    .pde-bulletins-app br{display:none!important}.pde-bulletins-app p{margin:0!important}.pde-bulletins-app input,.pde-bulletins-app select,.pde-bulletins-app textarea,.pde-bulletins-app button{margin:0!important}.pde-bulletins-app textarea{display:block;overflow:hidden!important}
    .pde-bulletins-app{width:100%;max-width:none;margin:0 auto;padding:0 0 34px;display:block}
    .pde-bulletins-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.pde-bulletins-panel{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 6px 24px #17324d05;overflow:hidden}
    .choice-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.choice-row{display:flex;gap:6px;flex-wrap:wrap}.choice-pill{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 10px;border:1px solid color-mix(in srgb,var(--choice-color,var(--teal)) 28%,#dfe7f1);border-radius:999px;background:color-mix(in srgb,var(--choice-color,var(--teal)) 7%,#fff);color:var(--choice-color,var(--teal));font-size:13px;line-height:1;font-weight:600}.choice-pill input{position:absolute;opacity:0;pointer-events:none}.choice-pill:has(input:checked){border-color:var(--choice-color,var(--teal));background:var(--choice-color,var(--teal));color:#fff;box-shadow:0 3px 8px color-mix(in srgb,var(--choice-color,var(--teal)) 16%,transparent)}
    .row{display:grid;grid-template-columns:minmax(130px,1.18fr) minmax(74px,.52fr) minmax(112px,.82fr) minmax(104px,.78fr);gap:8px}.row--secondary{grid-template-columns:1fr}.field{min-width:0;margin-bottom:11px}.field label{display:block;font-weight:650;font-size:12px;margin-bottom:6px;color:#334155}.field--prenom{min-width:0}.field--sexe{min-width:0}.field--classe{min-width:0}.required-asterisk{color:var(--red);font-weight:700}
    input,select,textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;background:#fcfdff;color:var(--ink);padding:8px 10px;outline:none}.row input,.row select{height:40px;min-height:40px;line-height:18px}input:focus,select:focus,textarea:focus{border-color:rgba(18,103,216,.55);box-shadow:0 0 0 3px rgba(18,103,216,.1)}textarea{min-height:44px;line-height:1.45;resize:none}
    .field:has(+ .chips){margin-bottom:1px!important}.field textarea{display:block}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px!important}.chip{border:1px solid var(--line-strong);background:#fff;border-radius:999px;padding:5px 8px;font-size:11.5px;line-height:1.15;cursor:pointer;color:#475569;font-weight:650}.chip:hover{border-color:var(--blue);color:var(--blue);box-shadow:none}
    .actions{display:flex;gap:10px;margin-top:16px}.primary,.secondary{border:0;border-radius:10px;padding:9px 14px;cursor:pointer;font-weight:650}.primary{background:var(--blue);color:#fff!important;flex:1;box-shadow:0 3px 8px rgba(18,103,216,.14)}.primary:hover,.primary:focus{color:#fff!important;background:#0e58ba!important}.secondary{background:#eef3f8;color:#334155}.primary:disabled{opacity:.7;cursor:wait}
    .result{width:100%;min-height:44px;white-space:pre-wrap;line-height:1.55;border:1px solid var(--line-strong);border-radius:10px;padding:12px 15px;background:#fff;overflow:hidden;resize:none}.revision-note{width:100%;min-height:44px;border-color:var(--line-strong);background:#fff;overflow:hidden;resize:none}#commentaire-genere .result + .voice-field{margin-top:18px!important}.status{margin:12px 0 0;color:var(--muted);font-size:13px}.status.err{color:var(--red)}.status a{color:var(--blue);font-weight:650}.hidden{display:none!important}.primary.is-loading{display:inline-flex;align-items:center;justify-content:center;gap:9px}.primary.is-loading::before{content:"";width:15px;height:15px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:pde-bulletins-spin .7s linear infinite}@keyframes pde-bulletins-spin{to{transform:rotate(360deg)}}
    .copybar{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:14px}.copybar h2{font-size:18px;margin:0;color:#183b74}.result-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:8px}.result-actions .secondary{padding:9px 12px}.rdv{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;margin-top:18px;border:1px solid #efd5df;border-radius:14px;padding:16px 18px 16px 20px;background:#fffafb;color:var(--ink);text-decoration:none!important;overflow:hidden;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.rdv::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#c45a7d}.rdv:hover,.rdv:focus{color:var(--ink);border-color:#d9a7ba;box-shadow:0 5px 14px rgba(185,47,93,.1);transform:translateY(-1px);text-decoration:none!important}.rdv-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #f0d3de;border-radius:50%;background:#fbedf2;color:#a53f62}.rdv-icon svg{display:block;width:21px;height:21px}.rdv-copy strong{display:block;margin-bottom:4px;color:#713449;font-size:14px}.rdv-copy span{display:block;color:#5d4650;line-height:1.45;font-size:13px}.rdv-cta{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 11px;border:1px solid #dfb2c2;border-radius:999px;background:#fff;color:#8d3657;font-size:12px;font-weight:650;white-space:nowrap}.rdv:hover .rdv-cta,.rdv:focus .rdv-cta{border-color:#bd6c89;background:#fff5f8}
    .modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.38);backdrop-filter:blur(5px)}.modal{position:relative;width:min(390px,100%);border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.16);padding:18px}.modal-close{position:absolute;top:9px;right:10px;width:auto;height:auto;border:0;background:transparent;color:#657287;font-size:22px;line-height:1;display:grid;place-items:center;cursor:pointer;padding:0}.modal-close:hover{background:transparent;color:#183b74}.modal h2{margin:4px 32px 6px 0;font-size:17px;line-height:1.25;color:#183b74}.modal p{margin:0;color:#475569;font-size:13px;line-height:1.5}.modal-actions{display:flex;margin-top:14px}.modal-actions a{display:inline-flex;width:100%;align-items:center;justify-content:center;border:0;border-radius:10px;padding:10px 12px;font-size:13px;font-weight:650;text-decoration:none;background:var(--blue);color:#fff!important;box-shadow:0 3px 8px rgba(18,103,216,.14)}.modal-actions a:hover,.modal-actions a:focus{color:#fff!important;text-decoration:none}
    @media(max-width:850px){.row,.row--secondary{grid-template-columns:1fr}.pde-bulletins-app{padding:0 0 24px}.choice-head{align-items:flex-start;flex-direction:column}.pde-bulletins-panel{border-radius:14px;padding:14px}}

.pde-bulletins-panel[hidden]{display:none!important}
.pde-bulletins-app>.pde-bulletins-grid>.pde-bulletins-panel{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.bulletin-steps{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 auto 16px;max-width:520px}
.bulletin-step{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:40px;padding:7px 16px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--muted);font:inherit;font-size:14px;font-weight:650;text-align:left}
.bulletin-step .step{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:50%;background:#f0f4f7;color:#8191a4;font-size:12px;font-weight:700}
.bulletin-step.is-active{border-color:#0798b3;background:#f1fbfd;color:var(--ink)}
.bulletin-step.is-active .step{background:#0798b3;color:#fff}
.bulletin-step-divider{width:34px;height:2px;background:#dfe7ef;flex:0 0 34px}
.bulletin-step-divider.is-active{background:#0798b3}
.student-fields{margin-bottom:12px;padding:14px 16px 2px;border:1px solid #e4edf5;border-radius:14px;background:#fff}
.student-fields .choice-head{margin-bottom:8px}.student-fields .field{margin-bottom:10px}
.bulletin-input-card{margin:0 0 12px;padding:14px 16px 12px;border:1px solid #e4edf5;border-radius:14px;background:#fff}
.bulletin-input-card--elements{--section-border:#d8eade;--section-tint:#eaf5ee;--section-text:#284b38;--section-muted:#5d7667;--section-accent:#286b49;background:#f3faf6;border-color:#d8eade}
.bulletin-input-card--advice{--section-border:#e4d9ee;--section-tint:#f0eaf6;--section-text:#453756;--section-muted:#716281;--section-accent:#684a8d;background:#f7f5fb;border-color:#e4d9ee}
.bulletin-input-card--help{--section-border:#f0d6df;--section-tint:#fcecf0;--section-text:#603543;--section-muted:#8a6673;--section-accent:#9b3656;background:#fff5f7;border-color:#f0d6df}
.bulletin-input-card .field{margin-bottom:4px}
.bulletin-input-card .field>label{font-size:14px;color:var(--section-text)}
.optional-label{margin-left:4px;color:var(--section-muted);font-size:12px;font-weight:500}
.bulletin-help{margin:0 0 8px!important;color:var(--section-muted);font-size:12px;line-height:1.45}
.pde-bulletins-app .voice-field{display:flex;align-items:stretch;border:1px solid #dce6ef;border-radius:9px;background:#fff;overflow:hidden}
.bulletin-input-card .voice-field{border-color:var(--section-border)}
.pde-bulletins-app .voice-field .voice-mic{flex:0 0 38px;width:38px;height:auto;min-height:0;align-self:stretch;box-sizing:border-box;border:0;border-right:1px solid #dce6ef;border-radius:0;background:#f5f9fc;color:#087faf}
.bulletin-input-card .voice-field .voice-mic{border-right-color:var(--section-border);background:var(--section-tint);color:var(--section-accent)}
.pde-bulletins-app .voice-field textarea{flex:1;min-height:52px;border:0;border-radius:0;background:#fff;box-shadow:none;padding:10px 12px}
.bulletin-input-card .voice-field:focus-within{border-color:color-mix(in srgb,var(--section-accent) 55%,var(--section-border));box-shadow:0 0 0 3px color-mix(in srgb,var(--section-accent) 12%,transparent)}
.bulletin-input-card .chips{gap:6px;margin-top:6px!important}
.bulletin-input-card .chip{min-height:27px;padding:5px 9px;border-color:var(--section-border);background:var(--section-tint);color:var(--section-text);font-size:11px}
.bulletin-input-card .chip:hover{border-color:var(--section-accent);color:var(--section-accent)}
    .pde-bulletins-app .chips .chip{display:inline-flex;align-items:center;gap:5px;background:var(--section-tint)}
    .pde-bulletins-app .chips .chip::before{content:"+";display:inline-flex;flex:0 0 11px;align-items:center;justify-content:center;width:11px;height:auto;border-radius:0;background:transparent;color:var(--section-accent);font-size:16px;font-weight:800;line-height:1}
    .pde-bulletins-app .chips .chip::after{content:none}
.pde-bulletins-app .actions{align-items:center;flex-wrap:wrap;margin-top:14px}
.pde-resource-ui .pde-bulletins-app .actions .secondary{order:0;min-height:42px;padding:10px 18px;border:1px solid #e5bdc8;border-radius:999px;background:#fff7f9;color:#9f3d60;font-weight:650;line-height:1.4;transition:background .15s,border-color .15s}
.pde-resource-ui .pde-bulletins-app .actions .secondary:hover{background:#fdebf1;border-color:#c5718e}
.pde-resource-ui .pde-bulletins-app .actions .primary{order:2;flex:0 1 auto;min-height:42px;padding:10px 22px;border:1px solid #078ca6;border-radius:999px;background:#0798b3;color:#fff;margin-left:0!important;line-height:1.4;font-weight:700;box-shadow:0 3px 8px #0798b320}
.pde-resource-ui .pde-bulletins-app .actions .primary:hover{background:#087f96!important}
.pde-bulletins-app .result{min-height:150px;background:#f8fbfc}
.pde-bulletins-app .revision-note{min-height:52px}
@media(max-width:700px){.bulletin-steps{gap:2px}.bulletin-step{padding:7px 8px;font-size:12px}.bulletin-step-divider{width:16px;flex-basis:16px}.pde-bulletins-app .actions .primary{flex-basis:100%}.student-fields{padding:12px 12px 1px}.bulletin-input-card{padding:12px}.rdv{grid-template-columns:40px minmax(0,1fr);gap:11px;padding:14px 14px 14px 16px}.rdv-icon{width:38px;height:38px}.rdv-cta{grid-column:2;justify-self:start}}
.bulletin-step:disabled{cursor:default;opacity:.7}
.bulletin-result-status{margin:8px 0 0;color:var(--red);font-size:13px}
.pde-bulletins-app .result-actions .secondary{background:#fff;color:var(--blue);border:1px solid var(--blue);font-weight:650}
.bulletin-result-card{padding:16px;border:1px solid #cee8ed;border-radius:14px;background:#edf8fa;margin-bottom:16px}
.bulletin-result-card .copybar{margin-bottom:10px}.bulletin-result-card .copybar h2{color:#245560;font-size:16px}
.pde-bulletins-app .bulletin-result-card .result{border-color:#cee8ed;background:#fff;color:#24434b;min-height:150px}
.pde-bulletins-app .rdv{grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 18px 16px 20px;border-color:#f6ccdc;background:#fff;border-radius:12px}
.pde-bulletins-app .rdv::before{background:#f79bb7}.pde-bulletins-app .rdv-icon{background:#fce5ee;border:0;color:#b51d64}
.pde-bulletins-app .rdv-copy strong{color:#40224c;font-weight:750}.pde-bulletins-app .rdv-copy span{color:#533d60}
.pde-bulletins-app .rdv-cta{align-self:center;justify-self:end;width:auto;max-width:max-content;min-height:32px;padding:6px 13px;border:1px solid #b51d64;background:#fff;color:#b51d64;font-size:12px;line-height:1.4;border-radius:999px}
@media(max-width:700px){.pde-bulletins-app .rdv{grid-template-columns:38px minmax(0,1fr);padding:14px 16px;gap:10px}.pde-bulletins-app .rdv-cta{grid-column:2;justify-self:start}.bulletin-result-card{padding:12px}}
/* PDE resource design overrides (screen styles; print remains unchanged). */
@media screen{
.pde-resource-ui .pde-bulletins-app{--ink:#17324d;--muted:#71839b;--line:#e4edf5;--line-strong:#e4edf5;--soft:#f5fafc;--blue:#0798b3;--shadow:none}
.pde-resource-ui .pde-bulletins-panel{background:#fff;border-color:#e4edf5;border-radius:16px;box-shadow:0 6px 24px #17324d05}
}
