/* POSTULONS — feuille de style (accueil + espace connecté) */

:root {
  --encre: #10213F;      /* texte, bleu nuit */
  --bleu: #2457D6;       /* bleu car rapide : liens, accents */
  --bleu-doux: #E8EFFF;
  --jaune: #F9C846;      /* l'unique touche vive : le bouton principal */
  --jaune-survol: #FFD35B;
  --blanc: #FFFFFF;
  --ciel: #EEF3FF;
  --fond: #F4F6FB;       /* fond des pages de l'espace connecté */
  --gris: #5B6780;       /* texte secondaire */
  --gris-clair: #8A95AD;
  --trait: #DEE4F0;
  --ok: #0F7B4A;
  --ko: #B42318;
  --ombre: 0 1px 2px rgba(16, 33, 63, 0.05), 0 8px 24px rgba(16, 33, 63, 0.06);
  --rayon: 14px;
  --police: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --colonne: 40rem;
  --marge: 1rem;
}
@media (min-width: 40rem) { :root { --marge: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police); font-size: 1.0625rem; line-height: 1.55; color: var(--encre); background: var(--blanc); }
a { color: var(--bleu); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ===== En-tête commun ===== */
.entete { max-width: var(--colonne); margin: 0 auto; padding: 1.25rem var(--marge) 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marque { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.08em; color: var(--encre); text-decoration: none; }
.nav-app { display: flex; gap: 1.25rem; align-items: center; font-size: 0.95rem; }
.nav-app a { color: var(--encre); text-decoration: none; font-weight: 600; }
.nav-app a:hover { text-decoration: underline; }
.nav-app .lien-fort { background: var(--jaune); border: 2px solid var(--encre); border-radius: 0.6rem; padding: 0.4rem 0.9rem; font-weight: 800; }
.nav-app .lien-fort:hover { background: var(--jaune-survol); text-decoration: none; }
.entete-app { padding-bottom: 1rem; }

/* ===== Page d'accueil ===== */
.heros { max-width: var(--colonne); margin: 0 auto; padding: 3.5rem var(--marge) 3rem; }
.heros h1 { font-size: clamp(2.4rem, 9vw, 4.25rem); line-height: 1.02; max-width: 11ch; }
.promesse { margin: 1.5rem 0 0; font-size: 1.125rem; max-width: 34rem; color: var(--gris); }
.prevenir { margin-top: 2.25rem; }
.prevenir label { display: block; font-weight: 600; margin-bottom: 0.6rem; }
.ligne { display: flex; flex-direction: column; gap: 0.6rem; }
@media (min-width: 36rem) { .ligne { flex-direction: row; } }
.ligne input { flex: 1; min-width: 0; font: inherit; padding: 0.85rem 1rem; border: 2px solid var(--encre); border-radius: 0.6rem; background: var(--blanc); color: var(--encre); }
.ligne input::placeholder { color: var(--gris-clair); }
.ligne button { font: inherit; font-weight: 800; padding: 0.85rem 1.5rem; border: 2px solid var(--encre); border-radius: 0.6rem; background: var(--jaune); color: var(--encre); cursor: pointer; }
.ligne button:hover { background: var(--jaune-survol); }
.ligne button:active { transform: translateY(1px); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.retour { margin: 0.75rem 0 0; font-size: 0.95rem; color: var(--gris); }
.retour.ok { color: var(--ok); font-weight: 600; }
.retour.ko { color: var(--ko); font-weight: 600; }
.retour.muet { color: var(--gris); }
.matin { background: var(--ciel); padding: 2.5rem 0; }
.matin > * { max-width: var(--colonne); margin-left: auto; margin-right: auto; padding-left: var(--marge); padding-right: var(--marge); }
.matin h2 { font-size: 1.5rem; }
.notifs { list-style: none; margin: 1.25rem auto 0; padding-left: var(--marge); padding-right: var(--marge); }
.notifs li { display: grid; grid-template-columns: 4rem 1fr; gap: 0.75rem; background: var(--blanc); border: 1px solid var(--trait); border-radius: 0.75rem; padding: 0.9rem 1rem; }
.notifs li + li { margin-top: 0.6rem; }
.notifs time { font-weight: 800; color: var(--bleu); font-variant-numeric: tabular-nums; }
.notifs p { margin: 0; }
.comment { max-width: var(--colonne); margin: 0 auto; padding: 3rem var(--marge); }
.comment h2 { font-size: 1.5rem; }
.comment dl { margin: 1.25rem 0 0; }
.comment dl > div { padding: 1.1rem 0; border-top: 1px solid var(--trait); }
.comment dl > div:last-child { border-bottom: 1px solid var(--trait); }
.comment dt { font-weight: 800; font-size: 1.15rem; }
.comment dd { margin: 0.35rem 0 0; color: var(--gris); max-width: 36rem; }
@media (min-width: 36rem) { .comment dl > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; } .comment dd { margin-top: 0; } }
.pied { max-width: var(--colonne); margin: 0 auto; padding: 1.5rem var(--marge) 2.5rem; color: var(--gris); font-size: 0.95rem; }
.pied p { margin: 0; }

/* ===== Espace connecté : bases ===== */
.corps-app { background: var(--fond); }
.corps-app .entete-app { background: var(--blanc); max-width: none; padding: 1rem var(--marge); border-bottom: 1px solid var(--trait); }
.corps-app .entete-app > * { max-width: 72rem; }
.entete-interieur { width: 100%; max-width: 72rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.colonne-etroite { max-width: 28rem; margin: 0 auto; padding: 2.5rem var(--marge) 3rem; }
.colonne-large { max-width: 50rem; margin: 0 auto; padding: 2rem var(--marge) 4rem; }
.titre-page { font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.1; }
.sous-titre { color: var(--gris); margin: 0.5rem 0 1.25rem; max-width: 40rem; }
.note { color: var(--gris); font-size: 0.92rem; margin: 0.75rem 0 0; }
.vide { color: var(--gris); margin: 0.75rem 0 0; }
.fil { color: var(--gris); font-size: 0.92rem; margin: 0 0 0.75rem; }
.fil a { color: var(--gris); text-decoration: none; }
.fil a:hover { text-decoration: underline; }

.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.5rem; margin: 1.5rem 0; }
.carte h2 { font-size: 1.3rem; }
.carte.douce { background: var(--ciel); border-color: transparent; box-shadow: none; }

/* Champs et boutons */
.formulaire { display: flex; flex-direction: column; gap: 0.35rem; }
.formulaire label { font-weight: 600; margin-top: 0.9rem; font-size: 0.95rem; }
.formulaire input, .formulaire textarea, .rubrique input, .rubrique textarea, .champ-titre {
  font: inherit; width: 100%; padding: 0.75rem 0.95rem; border: 1.5px solid var(--trait); border-radius: 0.7rem;
  background: var(--blanc); color: var(--encre); transition: border-color 0.15s, box-shadow 0.15s;
}
.formulaire input:focus, .formulaire textarea:focus, .rubrique input:focus, .rubrique textarea:focus, .champ-titre:focus {
  outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-doux);
}
.formulaire textarea, .rubrique textarea { resize: vertical; line-height: 1.5; }
::placeholder { color: var(--gris-clair); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }

.bouton, .lien-bouton {
  display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 800; padding: 0.7rem 1.25rem;
  border-radius: 0.7rem; border: 2px solid var(--encre); background: var(--jaune); color: var(--encre); cursor: pointer;
  text-decoration: none; text-align: center; transition: background 0.15s, transform 0.05s;
}
.bouton:hover { background: var(--jaune-survol); }
.bouton:active { transform: translateY(1px); }
.bouton[disabled] { opacity: 0.6; cursor: wait; }
.bouton-discret, .lien-bouton { background: var(--blanc); font-weight: 600; padding: 0.55rem 0.95rem; border: 1.5px solid var(--trait); }
.bouton-discret:hover, .lien-bouton:hover { background: var(--ciel); border-color: var(--bleu); }
.lien-danger { font: inherit; background: none; border: 0; color: var(--ko); text-decoration: underline; cursor: pointer; padding: 0; font-size: 0.92rem; }

/* Dépôt de fichier */
.zone-depot { display: flex; align-items: center; gap: 0.9rem; border: 2px dashed var(--trait); border-radius: 0.8rem; padding: 0.9rem 1rem; background: var(--blanc); cursor: pointer; margin-top: 0.5rem; }
.zone-depot:hover, .zone-depot:focus-within { border-color: var(--bleu); background: var(--bleu-doux); }
.zone-depot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.zone-depot .faux-bouton { flex: none; font-weight: 700; border: 1.5px solid var(--encre); border-radius: 0.6rem; padding: 0.45rem 0.9rem; background: var(--blanc); }
.zone-depot .nom-fichier { color: var(--gris); font-size: 0.95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Listes (CV, lettres) */
.section-cvs { margin-top: 2.5rem; }
.entete-section { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.entete-section h2 { font-size: 1.3rem; }
.liste-cvs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.liste-cvs li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.25rem; box-shadow: var(--ombre); }
.cv-infos { display: flex; flex-direction: column; min-width: 0; gap: 0.15rem; }
.cv-titre { font-weight: 800; color: var(--encre); text-decoration: none; font-size: 1.05rem; }
.cv-titre:hover { text-decoration: underline; }
.cv-meta { color: var(--gris); font-size: 0.9rem; }
.cv-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ===== Éditeur (CV et lettres) ===== */
.editeur { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem var(--marge) 5rem; max-width: 90rem; margin: 0 auto; }
@media (min-width: 64rem) {
  .editeur { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; align-items: start; }
  .panneau-apercu { position: sticky; top: 1.25rem; }
}
.panneau-form { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.barre-haut { display: flex; flex-direction: column; gap: 0.75rem; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.1rem 1.25rem; }
.champ-titre { font-weight: 800; font-size: 1.15rem; border-color: transparent; padding-left: 0.5rem; margin-left: -0.5rem; }
.champ-titre:hover { border-color: var(--trait); }
.barre-haut .actions { margin-top: 0; }
.barre-ia { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: var(--gris); padding-top: 0.6rem; border-top: 1px dashed var(--trait); }
.barre-ia .lien-bouton { border-color: var(--bleu-doux); background: var(--bleu-doux); color: var(--encre); }
.barre-ia .lien-bouton:hover { background: var(--ciel); border-color: var(--bleu); }

.rubrique { border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre); padding: 1.25rem 1.4rem 1.4rem; margin: 0; min-width: 0; }
.rubrique legend { float: left; width: 100%; font-weight: 800; font-size: 1.05rem; padding: 0; margin: 0 0 0.25rem; }
.rubrique > :not(legend) { clear: both; }
.rubrique::after { content: ""; display: block; clear: both; }
.rubrique > label, .entree > label, .grille-2 > label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; color: var(--gris); margin-top: 0.85rem; min-width: 0; }
.rubrique input, .rubrique textarea { font-weight: 400; color: var(--encre); font-size: 1rem; }
.grille-2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 40rem) { .grille-2 { grid-template-columns: 1fr 1fr; } }
.grille-2.serree { grid-template-columns: 1fr 1fr; }

.lignes { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.9rem; }
.entree { background: var(--fond); border: 1px solid var(--trait); border-radius: 0.9rem; padding: 0.9rem 1.1rem 1.1rem; }
.entree-barre { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.entree-num { font-size: 0.85rem; font-weight: 700; color: var(--bleu); letter-spacing: 0.02em; }
.supprimer-entree { font: inherit; font-size: 0.85rem; background: none; border: 0; color: var(--gris); text-decoration: underline; cursor: pointer; padding: 0; }
.supprimer-entree:hover { color: var(--ko); }
.ajouter { margin-top: 1rem; }

.choix-modeles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 0.75rem; }
@media (min-width: 40rem) { .choix-modeles { grid-template-columns: repeat(4, 1fr); } }
.choix-modele { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; border: 1.5px solid var(--trait); border-radius: 0.9rem; padding: 0.8rem 0.6rem; cursor: pointer; font-weight: 600; margin: 0; background: var(--blanc); transition: border-color 0.15s, background 0.15s; }
.choix-modele:hover { border-color: var(--bleu); }
.choix-modele:has(input:checked) { border-color: var(--encre); background: var(--ciel); box-shadow: inset 0 0 0 1px var(--encre); }
.choix-modele input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choix-modele:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
.mini { width: 3.6rem; height: 4.8rem; border-radius: 4px; border: 1px solid var(--trait); background-color: var(--blanc); background-repeat: no-repeat; }
.mini-classique { background-image: linear-gradient(var(--encre), var(--encre)), repeating-linear-gradient(transparent 0 5px, #C9D2E6 5px 7px); background-size: 70% 4px, 70% 55%; background-position: 15% 16%, 15% 42%; }
.mini-moderne { background-image: linear-gradient(var(--encre), var(--encre)), repeating-linear-gradient(transparent 0 5px, #C9D2E6 5px 7px); background-size: 34% 100%, 50% 60%; background-position: 0 0, 86% 30%; }
.mini-compact { background-image: repeating-linear-gradient(transparent 0 3px, #C9D2E6 3px 5px); background-size: 76% 76%; background-position: 50% 50%; }
.mini-elegant { background-image: linear-gradient(var(--bleu), var(--bleu)), repeating-linear-gradient(transparent 0 5px, #C9D2E6 5px 7px); background-size: 40% 3px, 56% 55%; background-position: 50% 16%, 50% 46%; }

.barre-bas { position: sticky; bottom: 0; padding: 0.75rem 0; background: linear-gradient(to top, var(--fond) 70%, transparent); }
.barre-bas .bouton { width: 100%; }
@media (min-width: 64rem) { .barre-bas { position: static; background: none; padding: 0; } .barre-bas .bouton { width: auto; } }

.panneau-apercu { min-width: 0; }
.apercu-entete { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--gris); margin-bottom: 0.5rem; }
#apercu { width: 100%; height: min(140vh, 1200px); border: 1px solid var(--trait); border-radius: var(--rayon); background: #E9EDF5; box-shadow: var(--ombre); }
.zone-suppression { grid-column: 1 / -1; text-align: right; }

/* ===== Analyse ===== */
.bilan { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.5rem; margin: 1.25rem 0; }
.note-cercle { --angle: calc(var(--note) * 3.6deg); width: 7.5rem; height: 7.5rem; border-radius: 50%; flex: none; display: flex; align-items: baseline; justify-content: center; gap: 0.1rem; padding-top: 2.4rem; background: conic-gradient(var(--jaune) var(--angle), var(--trait) 0); position: relative; }
.note-cercle::before { content: ""; position: absolute; inset: 0.7rem; border-radius: 50%; background: var(--blanc); }
.note-cercle > span { position: relative; }
.note-chiffre { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.note-sur { font-size: 0.95rem; color: var(--gris); font-weight: 600; }
.bilan-texte { flex: 1; min-width: 14rem; }
.verdict { margin: 0; font-size: 1.15rem; font-weight: 600; }
.colonnes-analyse { gap: 1rem; }
.bloc-analyse { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.25rem 1.4rem; margin-bottom: 1rem; }
.bloc-analyse h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.bloc-analyse ul, .bloc-analyse ol { margin: 0; padding-left: 1.2rem; }
.bloc-analyse li { margin-bottom: 0.4rem; }
.chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li { background: var(--bleu-doux); border-radius: 999px; padding: 0.3rem 0.8rem; font-weight: 600; font-size: 0.92rem; margin: 0; }
.corrections { list-style: none; padding: 0 !important; }
.corrections li { padding: 0.45rem 0; border-top: 1px dashed var(--trait); }
.corrections li:first-child { border-top: 0; }
.avant { color: var(--ko); text-decoration: line-through; }
.apres { color: var(--ok); font-weight: 600; }
.fleche { color: var(--gris); }
.conseils li { margin-bottom: 0.5rem; }
.formulaire .etiquette { font-weight: 600; margin-top: 0.9rem; font-size: 0.95rem; }

/* ===== Écran d'attente (traitements IA) ===== */
.attente { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(16, 33, 63, 0.55); backdrop-filter: blur(3px); }
.attente[hidden] { display: none; }
body.attente-active { overflow: hidden; }
.attente-carte { width: min(34rem, 100%); background: var(--blanc); border-radius: var(--rayon); box-shadow: 0 24px 60px rgba(16, 33, 63, 0.35); padding: 1.6rem 1.6rem 1.4rem; animation: attente-apparition 0.25s ease-out; }
@keyframes attente-apparition { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.attente-tete { display: flex; align-items: center; gap: 0.9rem; }
.attente-tete h2 { font-size: 1.35rem; }
.attente-rond { width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%; border: 3px solid var(--trait); border-top-color: var(--jaune); animation: attente-rotation 0.9s linear infinite; }
@keyframes attente-rotation { to { transform: rotate(360deg); } }
.attente-sous { margin: 0.6rem 0 0; color: var(--gris); }
.attente-barre { height: 0.5rem; background: var(--ciel); border-radius: 999px; overflow: hidden; margin: 1.1rem 0 1.2rem; }
.attente-barre span { display: block; height: 100%; width: 2%; background: var(--jaune); border-radius: 999px; transition: width 0.5s linear; }
.attente-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.attente-etapes li { position: relative; padding-left: 2rem; color: var(--gris-clair); }
.attente-etapes li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--trait); }
.attente-etapes li.en-cours { color: var(--encre); font-weight: 600; }
.attente-etapes li.en-cours::before { border-color: var(--jaune); border-top-color: transparent; animation: attente-rotation 0.9s linear infinite; }
.attente-etapes li.fait { color: var(--gris); }
.attente-etapes li.fait::before { background: var(--ok); border-color: var(--ok); }
.attente-etapes li.fait::after { content: ""; position: absolute; left: 0.33rem; top: 0.42rem; width: 0.32rem; height: 0.58rem; border: solid var(--blanc); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.attente-astuce { margin: 1.2rem 0 0; padding: 0.8rem 0.95rem; background: var(--ciel); border-radius: 0.7rem; color: var(--encre); font-size: 0.95rem; }
.attente-astuce::before { content: "Astuce : "; font-weight: 700; }
.attente-long { margin: 0.9rem 0 0; color: var(--ko); font-size: 0.92rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .attente-rond, .attente-etapes li.en-cours::before { animation: none; } .attente-carte { animation: none; } }

/* ===== Éditeur : barre toujours visible, témoin d'enregistrement, accès à l'aperçu ===== */
@media (min-width: 64rem) { .barre-haut { position: sticky; top: 0.75rem; z-index: 5; } }
.etat { font-size: 0.9rem; color: var(--gris); margin-left: auto; white-space: nowrap; }
.etat.ok { color: var(--ok); }
.etat.ko { color: var(--ko); font-weight: 600; white-space: normal; }
.etat.en-cours { color: var(--gris); }
.rubrique small { font-weight: 400; color: var(--gris-clair); font-size: 0.85rem; }
.apercu-entete span a + a { margin-left: 0.9rem; }
.retour-form { display: none; }
.flottant-apercu { display: none; }
@media (max-width: 63.99rem) {
  .retour-form { display: inline; }
  .barre-bas { display: flex; gap: 0.6rem; }
  .barre-bas .bouton { flex: 1; }
  .flottant-apercu { display: inline-flex; flex: none; background: var(--blanc); }
}

/* ===== Menu « … » des cartes, sommaire de l'éditeur ===== */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 800; letter-spacing: 0.1em; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ciel); border-color: var(--bleu); }
.menu-liste { position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 10; min-width: 15rem; background: var(--blanc); border: 1px solid var(--trait); border-radius: 0.8rem; box-shadow: 0 12px 32px rgba(16, 33, 63, 0.16); padding: 0.5rem; display: grid; gap: 0.25rem; }
.menu-renommer { display: flex; gap: 0.4rem; padding: 0.25rem 0.25rem 0.5rem; border-bottom: 1px solid var(--trait); margin-bottom: 0.25rem; }
.menu-renommer input { font: inherit; min-width: 0; flex: 1; padding: 0.45rem 0.6rem; border: 1.5px solid var(--trait); border-radius: 0.5rem; }
.menu-renommer .bouton { padding: 0.4rem 0.7rem; font-size: 0.9rem; }
.menu-item { font: inherit; font-weight: 600; text-align: left; width: 100%; background: none; border: 0; border-radius: 0.5rem; padding: 0.55rem 0.7rem; cursor: pointer; color: var(--encre); }
.menu-item:hover { background: var(--ciel); }
.menu-item.danger { color: var(--ko); }
.sommaire { display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.35rem 0; margin: -0.25rem 0 0; scrollbar-width: none; }
.sommaire::-webkit-scrollbar { display: none; }
.sommaire a { flex: none; font-size: 0.9rem; font-weight: 600; color: var(--encre); text-decoration: none; background: var(--blanc); border: 1.5px solid var(--trait); border-radius: 999px; padding: 0.35rem 0.8rem; }
.sommaire a:hover { border-color: var(--bleu); background: var(--ciel); }
@media (max-width: 63.99rem) { .sommaire { position: sticky; top: 0; z-index: 4; background: var(--fond); padding: 0.6rem 0; } }
.rubrique { scroll-margin-top: 4rem; }

/* ===== Accueil : modèles et note ===== */
.modeles-accueil, .note-accueil { max-width: var(--colonne); margin: 0 auto; padding: 3rem var(--marge) 0; }
.modeles-accueil h2, .note-accueil h2 { font-size: 1.5rem; }
.promesse-courte { color: var(--gris); margin: 0.5rem 0 0; max-width: 34rem; }
.galerie-modeles { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 36rem) { .galerie-modeles { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; } }
.galerie-modeles li { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-weight: 600; }
.galerie-modeles img { width: 100%; height: auto; border: 1px solid var(--trait); border-radius: 0.5rem; box-shadow: var(--ombre); background: var(--blanc); }
.carte-note { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; background: var(--ciel); border-radius: var(--rayon); padding: 1.25rem; margin-top: 1.25rem; }
.carte-note > div:last-child { flex: 1; min-width: 14rem; }
.carte-note .verdict { margin: 0 0 0.5rem; }
.liste-note { margin: 0; padding-left: 1.1rem; color: var(--gris); }
.liste-note li { margin-bottom: 0.3rem; }
@media (max-width: 40rem) { .entete, .entete-interieur { flex-wrap: wrap; row-gap: 0.5rem; } .nav-app { gap: 0.4rem 0.9rem; font-size: 0.88rem; flex-wrap: wrap; width: 100%; } .nav-app a { white-space: nowrap; } .nav-app .lien-fort { padding: 0.35rem 0.6rem; } }

/* ===== Offres ===== */
.liste-offres { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.offre-carte { display: flex; gap: 1rem; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.25rem; box-shadow: var(--ombre); }
.offre-carte.nouvelle { border-left: 4px solid var(--jaune); }
.offre-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.offre-titre { font-weight: 800; color: var(--encre); text-decoration: none; font-size: 1.05rem; }
.offre-titre:hover { text-decoration: underline; }
.offre-meta { color: var(--gris); font-size: 0.9rem; }
.offre-raison { margin: 0.2rem 0 0.4rem; color: var(--encre); }
.score-pastille { flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 0.95rem; font-weight: 800; font-size: 1.2rem; line-height: 1; }
.score-pastille small { font-size: 0.7rem; font-weight: 700; margin-left: 0.05rem; }
.score-pastille.grande { width: 4.8rem; height: 4.8rem; font-size: 1.6rem; padding-top: 1.35rem; }
.score-haut { background: #DCF5E7; color: #0F7B4A; }
.score-moyen { background: #FFF1C7; color: #8A5A00; }
.score-bas { background: #F1F3F8; color: var(--gris); }
.offre-tete { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.offre-infos { margin: 1rem 0 0; display: grid; grid-template-columns: 1fr; gap: 0.5rem 1.5rem; }
@media (min-width: 40rem) { .offre-infos { grid-template-columns: 1fr 1fr; } }
.offre-infos div { min-width: 0; }
.offre-infos dt { font-size: 0.85rem; font-weight: 600; color: var(--gris); }
.offre-infos dd { margin: 0; overflow-wrap: anywhere; }
.texte-annonce p { margin: 0 0 0.5rem; }
.recherche { display: flex; gap: 0.5rem; margin: 1rem 0; }
.recherche input { flex: 1; min-width: 0; font: inherit; padding: 0.7rem 0.95rem; border: 1.5px solid var(--trait); border-radius: 0.7rem; }

/* ===== Admin ===== */
.chiffres { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; }
.chiffres li { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 0.9rem 1rem; display: flex; flex-direction: column; }
.chiffres b { font-size: 1.6rem; font-weight: 800; }
.chiffres span { color: var(--gris); font-size: 0.9rem; }
.tableau { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.92rem; }
.tableau th, .tableau td { text-align: left; padding: 0.55rem 0.6rem; border-top: 1px solid var(--trait); vertical-align: top; }
.tableau th { color: var(--gris); font-weight: 600; border-top: 0; }
.tableau .url a { word-break: break-all; }
.tableau tr.inactive { opacity: 0.55; }
.ligne-source { margin-top: 1rem; }

/* ===== Lot 4 : candidatures ===== */
.pastille-nav { display: inline-block; min-width: 1.35rem; padding: 0 0.35rem; border-radius: 1rem; background: var(--jaune); border: 1.5px solid var(--encre); font-size: 0.75rem; font-weight: 800; text-align: center; line-height: 1.25rem; vertical-align: 0.1rem; }
.bouton-petit { padding: 0.5rem 0.95rem; font-size: 0.95rem; }
.lien-accent { border-color: var(--jaune); background: #FFF7DC; }
.lien-accent:hover { background: var(--jaune); border-color: var(--encre); }
.pastille-statut { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.6rem; border-radius: 1rem; background: var(--bleu-doux); color: var(--encre); margin-bottom: 0.5rem; }
.pastille-statut.statut-a_valider { background: #FFF1BF; }
.pastille-statut.statut-envoyee, .pastille-statut.statut-relancee { background: var(--bleu-doux); }
.pastille-statut.statut-reponse_recue { background: #DDF5E8; color: var(--ok); }
.resume-offre { padding: 1.25rem 1.5rem; }
.resume-offre .titre-page { font-size: 1.5rem; margin: 0; }
.candidature-carte.statut-a_valider { border-left: 4px solid var(--jaune); }
.candidature-carte.statut-reponse_recue { border-left: 4px solid var(--ok); }
.etiquette-auto { color: var(--bleu); font-weight: 600; }
.formulaire-candidature { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.formulaire-candidature input, .formulaire-candidature textarea { font-size: 1rem; }
.formulaire-candidature textarea { line-height: 1.55; }
.note.alerte { color: var(--ko); font-weight: 600; }
.pieces { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.pieces li { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; border: 1px solid var(--trait); border-radius: 0.8rem; padding: 0.7rem 0.9rem; background: var(--fond); }
.piece-icone { flex: none; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; background: var(--encre); color: var(--blanc); border-radius: 0.35rem; padding: 0.35rem 0.4rem; }
.piece-nom { flex: 1; min-width: 10rem; font-weight: 600; display: flex; flex-direction: column; }
.piece-nom small { font-weight: 400; color: var(--gris); font-size: 0.85rem; }
.piece-actions { font-size: 0.92rem; white-space: nowrap; }
.etapes-envoi { margin: 0.75rem 0 0; padding: 0; list-style: none; counter-reset: etape; display: grid; gap: 0.9rem; }
.etapes-envoi > li { position: relative; padding-left: 2.6rem; counter-increment: etape; }
.etapes-envoi > li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--encre); color: var(--blanc); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.etape-titre { font-weight: 700; }
.autre-moyen { margin-top: 1rem; border-top: 1px dashed var(--trait); padding-top: 0.75rem; }
.autre-moyen summary { cursor: pointer; font-weight: 600; color: var(--bleu); }
.autre-moyen .etapes-envoi > li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.portail { margin-top: 1.25rem; background: var(--ciel); border-radius: 0.8rem; padding: 0.9rem 1rem; }
.portail p { margin: 0; }
.sous-section { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.bloc-relance { background: var(--fond); border-radius: 0.8rem; padding: 0.9rem 1rem; }
.bloc-relance p:first-child { margin-top: 0; }
.felicitations { background: #DDF5E8; color: var(--ok); font-weight: 600; border-radius: 0.8rem; padding: 0.9rem 1rem; margin: 1.25rem 0 0; }
.reglages-auto .case { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; cursor: pointer; margin-top: 0.9rem; }
.reglages-auto .case input { width: 1.2rem; height: 1.2rem; accent-color: var(--bleu); }
.reglages-auto .case.inactive { color: var(--gris-clair); }
.reglages-auto select { font: inherit; padding: 0.55rem 0.8rem; border: 1.5px solid var(--trait); border-radius: 0.6rem; background: var(--blanc); color: var(--encre); max-width: 10rem; }
.chiffres small { font-size: 0.95rem; color: var(--gris); font-weight: 600; }
.bandeau-pretes { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: 0.9rem 1.25rem; border-radius: var(--rayon); background: var(--jaune); color: var(--encre); text-decoration: none; border: 2px solid var(--encre); }
.bandeau-pretes:hover { background: var(--jaune-survol); }
.bandeau-pretes .fleche { font-size: 1.4rem; font-weight: 800; }

/* ===== Lot 5 : plans, paiement, légal, compte ===== */
.case { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 600; cursor: pointer; margin-top: 0.9rem; line-height: 1.4; }
.case input { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.15rem; accent-color: var(--bleu); }
.case.inactive { color: var(--gris-clair); }
.formulaire .case { font-size: 0.95rem; }
.nav-app .lien-premium { color: var(--bleu); }
.plans { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 46rem) { .plans { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.plan { margin: 0; }
.plan h2 { font-size: 1.35rem; }
.plan-premium { border: 2px solid var(--encre); background: linear-gradient(180deg, #FFF7DC 0%, var(--blanc) 45%); }
.plan-prix { font-size: 1.6rem; font-weight: 800; margin: 0.5rem 0 0.75rem; letter-spacing: -0.02em; }
.plan-prix small { font-size: 0.95rem; font-weight: 600; color: var(--gris); }
.plan-liste { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.compteur { color: var(--gris); font-size: 0.9rem; }
.etat-premium { background: #DDF5E8; border-color: transparent; }
.etat-premium h2 { color: var(--ok); }
.lien-premium-pastille { text-decoration: none; background: var(--jaune); }
.bouton-discret.danger { color: var(--ko); border-color: var(--ko); }
.bouton-discret.danger:hover { background: #FDECEA; }
.pied-legal { max-width: var(--colonne); margin: 3rem auto 0; padding: 1.25rem var(--marge) 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.88rem; color: var(--gris); border-top: 1px solid var(--trait); }
.pied-legal a { color: var(--gris); }
.corps-app .pied-legal { max-width: 50rem; }
.page-legale h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.page-legale p, .page-legale li { color: var(--encre); }
.page-legale ul { padding-left: 1.2rem; }
