[hidden] { display: none !important; }
.porte { grid-column: 1 / -1; max-width: 720px; width: 100%; margin: 0 auto; }
.porte-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 8px; }
.porte-carte {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; cursor: pointer; margin: 0;
  border: 1.5px solid var(--gris-ligne); background: #fff; color: inherit; text-decoration: none; font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
.porte-carte:hover, .porte-carte:focus-visible { border-color: var(--action); box-shadow: 0 0 0 3px rgba(0, 113, 227, .15); }
.porte-carte strong { font-size: 1.05rem; color: var(--action); }
.porte-carte span { font-size: .86rem; color: var(--gris-texte); }
.porte-choix:has(#fichier-cv:focus-visible) label.porte-carte { border-color: var(--action); box-shadow: 0 0 0 3px rgba(0, 113, 227, .15); }
#form-import { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gris-ligne); }
#form-import h3 { margin: 0 0 4px; }
@media (max-width: 560px) { .porte-choix { grid-template-columns: minmax(0, 1fr); } }
.cv-source { margin: 0 0 6px; color: var(--gris-texte); }
.lt-etape { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 26px 0 4px; }
.cv-source + .lt-etape { margin-top: 8px; }
.lt-etape span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--action); color: #fff; flex-shrink: 0; }
.case { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 6px 0 0; }
.case input { width: auto; margin: 0; }
.lt-freins { margin: 16px 0 2px; }
.reprendre { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
.reprendre .small { color: var(--gris-texte); }
.reprendre .chip { border: 0; font: inherit; font-size: .8rem; cursor: pointer; text-align: left; background: var(--action-doux); color: var(--action); }
.reprendre .chip:hover { background: #d9e9fb; }
.lt-style { margin: 26px 0 0; border: 1px solid var(--gris-ligne); border-radius: 14px; padding: 12px 14px; }
.lt-style summary { cursor: pointer; font-weight: 600; }
.lt-style .modele { padding: 10px 12px; }
.paper.lettre .cv-top { margin-bottom: 30px; }
.paper.lettre .cv-name { font-size: 17pt; }
.lt-dest { margin: 0 0 26px auto; width: max-content; max-width: 50%; }
.lt-pj { font-size: 9pt; color: #444; margin-top: 26px; }
.paper.lettre.m-colonnes { padding: 52px 56px 52px 64px; border-left: 16px solid var(--cv-accent); overflow: visible; }
.paper.lettre.m-colonnes .cv-top { border-bottom-color: var(--cv-accent); }
.paper.lettre.m-colonnes .cv-name { color: var(--cv-accent-texte); }
@media print {
  .paper.lettre.m-colonnes { padding: 0 0 0 20px; border-left-width: 8px; }
  .m-moderne.lettre .cv-top { margin-bottom: 26px; }
}
.porte-choix.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.porte-carte.choisie { border-color: var(--action); background: var(--action-doux); }
.porte-carte.choisie strong::after { content: " ✓"; }
.porte-carte:disabled { cursor: default; opacity: .6; }
.porte-carte:disabled:hover { border-color: var(--gris-ligne); box-shadow: none; }
.porte-carte u { color: var(--action); }
@media (max-width: 760px) { .porte-choix.trois { grid-template-columns: minmax(0, 1fr); } }
.voies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.voie {
  display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px 18px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--gris-ligne); background: #fff; font: inherit; color: inherit;
}
.voie strong { color: var(--action); font-size: 1rem; }
.voie span { font-size: .84rem; color: var(--gris-texte); }
.voie:hover { border-color: #b0b0b5; }
.voie[aria-checked="true"] { border-color: var(--action); background: var(--action-doux); box-shadow: 0 0 0 3px rgba(0, 113, 227, .15); }
@media (max-width: 560px) { .voies { grid-template-columns: minmax(0, 1fr); } }
#panneau-ia, #blocs { margin-top: 10px; }
.bloc { margin: 18px 0 0; }
.bloc label { font-weight: 600; }
.bloc textarea { min-height: 96px; }
.conseil-court { font-size: .84rem; color: var(--gris-texte); margin: 2px 0 6px; }
details.exemple { font-size: .84rem; margin: 6px 0 0; }
details.exemple summary { cursor: pointer; color: var(--action); }
details.exemple p { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--gris-fond); font-style: italic; }
#accroches { margin: 14px 0 0; display: grid; gap: 8px; }
.accroche {
  text-align: left; font: inherit; font-size: .88rem; line-height: 1.45; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--gris-ligne); background: #fff; color: inherit;
}
.accroche[aria-pressed="true"] { border-color: var(--action); background: var(--action-doux); }
.pages-indic, #compteur-page { font-size: .86rem; color: var(--ok); margin: 10px 0 0; }
.alerte { color: var(--alerte) !important; font-weight: 600; }
#mots-offre { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
#mots-offre .chip { border: 0; font: inherit; font-size: .8rem; cursor: pointer; background: var(--action-doux); color: var(--action); }
.modeles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .modeles.six { grid-template-columns: minmax(0, 1fr); } }
.paper.lettre.m-epure .cv-top { border: 0; padding-bottom: 0; }
.paper.lettre.m-epure .cv-name { text-transform: uppercase; letter-spacing: .08em; font-size: 15pt; color: var(--cv-accent-texte); }
.paper.lettre.m-epure .cv-title { color: #555; }
.paper.lettre.m-epure .lt-object { font-weight: 700; }
.paper.lettre.m-bandeau { border-top: 14px solid var(--cv-accent); }
.paper.lettre.m-bandeau .cv-top { border-bottom: 0; }
.paper.lettre.m-bandeau .cv-name { color: var(--cv-accent-texte); }
.paper.lettre.m-bandeau .lt-object { border-bottom: 1.5px solid var(--cv-accent); padding-bottom: 4px; display: inline-block; }
.paper.lettre.m-elegant { font-family: Georgia, "Times New Roman", serif; }
.paper.lettre.m-elegant .cv-top { justify-content: center; text-align: center; border-bottom: .75px solid var(--cv-accent); padding-bottom: 12px; }
.paper.lettre.m-elegant .cv-name { font-weight: 400; font-size: 20pt; letter-spacing: .03em; color: var(--cv-accent-texte); }
.paper.lettre.m-elegant .cv-title { font-style: italic; }
.paper.lettre.m-elegant .cv-contact { justify-content: center; }
.paper.lettre.m-elegant .lt-sign { font-style: italic; }
.paper.lettre.p-arial { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
.paper.lettre.p-helvetica { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.paper.lettre.p-georgia, .paper.lettre.m-elegant { font-family: Georgia, "Times New Roman", serif; }
@media print {
  .paper.lettre.m-bandeau { border-top-width: 8px; padding-top: 12px; }
}
.porte-carte .porte-situation { font-size: 1.02rem; font-weight: 600; color: var(--texte, #1d1d1f); }
.porte-carte .porte-action { margin-top: auto; padding-top: 8px; font-size: .92rem; font-weight: 600; color: var(--action); }
.porte-carte .porte-action::after { content: " →"; }
.porte-carte.choisie .porte-action::after { content: " ✓"; }
.porte-carte.choisie strong::after { content: none; }
@media screen {
  .apercu-cadre.en-attente > .paper { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
  .apercu-cadre.en-attente::after {
    content: "Choisissez d'abord votre CV (étape 1) : votre lettre apparaîtra ici.";
    position: absolute; left: 50%; top: 120px; transform: translateX(-50%); width: min(300px, 86%);
    padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .94); text-align: center;
    font-size: .95rem; font-weight: 600; color: var(--texte, #1d1d1f); box-shadow: 0 10px 30px -10px rgba(11, 31, 58, .3);
  }
}
.porte-choix.trois { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.porte-choix.trois .porte-carte { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 16px 18px; text-align: left; }
.porte-choix.trois .porte-situation { grid-column: 1; }
.porte-choix.trois .porte-carte > span:not(.porte-situation):not(.porte-action) { grid-column: 1; }
.porte-choix.trois .porte-action { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--action-doux); white-space: nowrap; }
@media (max-width: 560px) {
  .porte-choix.trois .porte-carte { grid-template-columns: minmax(0, 1fr); }
  .porte-choix.trois .porte-action { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}
.porte-choix.trois .porte-carte { cursor: default; }
.porte-choix.trois .porte-carte:hover { border-color: var(--action); box-shadow: 0 0 0 3px rgba(0, 113, 227, .12); }
.porte-choix.trois .porte-action { border: 0; font: inherit; font-size: .92rem; font-weight: 600; color: var(--action); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.porte-choix.trois .porte-action:hover, .porte-choix.trois .porte-action:focus-visible { background: var(--action); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 113, 227, .6); }
.porte-choix:has(#fichier-cv:focus-visible) label.porte-carte, .porte-choix.trois .porte-carte:has(label.porte-action) { box-shadow: none; }
.porte-choix.trois .porte-carte:hover { box-shadow: 0 0 0 3px rgba(0, 113, 227, .12); }
#form-lettre:has(#fichier-cv:focus-visible) label.porte-action { background: var(--action); color: #fff; }
.panneau-voie { margin-top: 18px; padding: 18px; border: 1.5px solid var(--action); border-radius: 18px; background: var(--action-doux); }
.panneau-voie h3 { margin: 0 0 6px; font-size: 1.05rem; }
.panneau-voie textarea, .panneau-voie input[type=text], .panneau-voie select { background: #fff; }
.bloc-num { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--action); color: #fff; font-size: .8rem; margin-right: 4px; }
.reprendre .chip.ok { background: var(--ok-doux); color: var(--ok); cursor: default; }
.mots-annonce { margin-bottom: 4px; }
.paper.lettre .brouillon { color: #9aa3ad; font-style: italic; }
@media print { .paper.lettre .brouillon { display: none; } }
#panneau-ia:not([hidden]), #blocs:not([hidden]) { animation: entree-studio .4s cubic-bezier(.22, 1, .36, 1); }
.paper.lettre .vient-d-ecrire { animation: eclair 1.4s ease-out; border-radius: 4px; }
@keyframes eclair { from { background: rgba(0, 113, 227, .14); } to { background: transparent; } }
.reprendre .chip.pop { animation: pop .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
.pages-indic.alerte { transition: color .2s; }
@media (prefers-reduced-motion: reduce) { #panneau-ia, #blocs, .paper.lettre .vient-d-ecrire, .reprendre .chip.pop { animation: none !important; } }
