/* Composants de la plateforme participative (repris des maquettes). S'ajoute à style.css du site actuel. */


/* En-tête : actions du compte */
.compte { display: flex; gap: .5rem; align-items: center; }
.langue { font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 6px; padding: .3rem .5rem; }
.btn-sm { padding: .45rem .8rem; font-size: .9rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: var(--accent); flex: none; text-decoration: none; }
.avatar.a2 { background: #7c3aed; } .avatar.a3 { background: #b45309; } .avatar.a4 { background: #2563eb; } .avatar.a5 { background: #be185d; }
.avatar.grand { width: 72px; height: 72px; font-size: 1.6rem; }

/* En-tête de la plateforme : recherche au centre, navigation et actions en dessous */
.entete2-haut { display: flex; align-items: center; gap: 1.25rem; padding-top: .75rem; padding-bottom: .5rem; }
.recherche-globale { flex: 1; }
.recherche-globale input { width: 100%; font: inherit; padding: .6rem .9rem .6rem 2.2rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235c6878' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat .8rem center; color: var(--text); }
.recherche-globale input:focus { outline: 2px solid var(--accent); background-color: var(--surface); }
.entete2-bas { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding-bottom: .5rem; }
.actions-entete { display: flex; gap: .5rem; }
@media (max-width: 760px) {
  .entete2-haut { flex-wrap: wrap; }
  .recherche-globale { order: 3; flex-basis: 100%; }
  .compte { margin-left: auto; }
}

/* Statuts d'un projet */
.statut { font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.statut.besoin { background: #e8effd; color: #1d4ed8; }
.statut.dev { background: #fff4e0; color: #8a5300; }
.statut.fonctionnel { background: var(--accent-soft); color: var(--accent); }
.statut.resolu { background: #f3e8ff; color: #6d28d9; }
.en-vente { font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #fff; border: 1px solid var(--accent); color: var(--accent); white-space: nowrap; }

/* Types de solution (ce que contient un projet) */
.types { display: inline-flex; gap: .25rem; flex-wrap: wrap; }
.type { font-size: .72rem; font-weight: 700; padding: .1rem .4rem; border-radius: 4px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.solution-externe { border: 1px solid #ddd6fe; background: #faf7ff; border-radius: 8px; padding: .75rem .9rem; }

/* Onglets de filtre (liste des projets) */
.onglets-statut { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: 1.5rem 0 1rem; }
.onglets-statut a { text-decoration: none; color: var(--muted); font-weight: 600; padding: .6rem .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.onglets-statut a.actif { color: var(--accent); border-color: var(--accent); }
.onglets-statut .nb { font-weight: 400; font-size: .8rem; margin-left: .2rem; }

/* Lignes de projets */
.liste-projets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.ligne-projet { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; }
.ligne-projet:hover { border-color: var(--accent); }
.ligne-projet .corps { flex: 1; min-width: 0; }
.ligne-projet h3 { margin: .15rem 0 .25rem; font-size: 1.05rem; }
.ligne-projet h3 a { color: var(--text); text-decoration: none; }
.ligne-projet p { margin: 0; color: var(--muted); font-size: .92rem; }
.meta { display: flex; gap: .4rem .9rem; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.meta a { color: var(--muted); }
.aide { font-size: .75rem; padding: .1rem .5rem; border-radius: 6px; border: 1px dashed var(--accent); color: var(--accent); background: var(--surface); }
.aide.pris { border-style: solid; border-color: var(--border); color: var(--muted); }
.aide.fait { border-style: solid; border-color: #bfe6cc; background: #e7f6ec; color: #17673a; }

/* Bloc de vote (à la Reddit) */
.vote { display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 2.5rem; color: var(--muted); font-weight: 700; font-size: .9rem; }
.vote button { border: 0; background: none; cursor: pointer; font-size: 1rem; color: var(--muted); padding: .1rem .3rem; border-radius: 4px; line-height: 1; }
.vote button:hover { background: var(--bg); color: var(--accent); }
.vote button.on { color: var(--accent); }
.vote.ligne { flex-direction: row; min-width: 0; }

/* Mise en page à deux colonnes : contenu + barre latérale */
.deux-col { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
@media (max-width: 860px) { .deux-col { grid-template-columns: minmax(0, 1fr); } }
.cote { display: flex; flex-direction: column; gap: 1rem; }
.cote .panel h2 { font-size: 1rem; margin-bottom: .6rem; }
.cote .panel p { margin: .3rem 0; }

/* Parcours du projet */
.parcours { display: flex; gap: 0; list-style: none; padding: 0; margin: 1rem 0; counter-reset: etape; flex-wrap: wrap; }
.parcours li { flex: 1 1 120px; position: relative; padding: .5rem .5rem .5rem 0; font-size: .85rem; color: var(--muted); border-top: 3px solid var(--border); }
.parcours li.fait { border-color: var(--accent); color: var(--text); }
.parcours li.ici { border-color: #d97706; color: var(--text); font-weight: 700; }
.parcours li span { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }

/* Rôles recherchés */
.roles { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.roles li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.roles li:last-child { border-bottom: 0; }

/* Discussion imbriquée */
.tri { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--muted); margin: 1rem 0; }
.tri select { font: inherit; padding: .35rem .6rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.repondre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; }
.repondre textarea, .champ textarea, .champ input, .champ select { width: 100%; font: inherit; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.repondre textarea { min-height: 80px; border: 0; padding: .25rem; resize: vertical; }
.repondre .barre { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-top: 1px solid var(--border); padding-top: .5rem; margin-top: .25rem; }
.fil { list-style: none; padding: 0; margin: 0; }
.message { display: flex; gap: .6rem; margin-top: 1rem; }
.message .contenu { flex: 1; min-width: 0; }
.message .entete-msg { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.message .entete-msg strong { color: var(--text); }
.message .texte { margin: .25rem 0 .35rem; }
.message .texte p { margin: .25rem 0; }
.message .actions { display: flex; gap: .8rem; align-items: center; font-size: .82rem; color: var(--muted); font-weight: 600; }
.message .actions a { color: var(--muted); text-decoration: none; }
.message .actions a:hover { color: var(--accent); }
.reponses { list-style: none; margin: 0; padding: 0 0 0 .9rem; border-left: 2px solid var(--border); }
.reponses:hover { border-color: #c5ccd6; }
.retenu { border: 1px solid #bfe6cc; background: #f3fbf6; border-radius: 8px; padding: .5rem .75rem; }
.etiquette-retenu { font-size: .72rem; font-weight: 700; background: #17673a; color: #fff; padding: .1rem .45rem; border-radius: 4px; }
.etiquette-auteur { font-size: .72rem; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); padding: 0 .35rem; border-radius: 4px; }
.piece-jointe { display: inline-flex; gap: .4rem; align-items: center; font-size: .85rem; border: 1px solid var(--border); border-radius: 6px; padding: .3rem .6rem; background: var(--bg); text-decoration: none; color: var(--text); }
.replie { font-size: .85rem; margin: .5rem 0 0 2.5rem; }

/* Fiche produit communautaire */
.composants { list-style: none; padding: 0; margin: 0; }
.composant { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.composant:last-child { border-bottom: 0; }
.icone { width: 2.2rem; height: 2.2rem; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .8rem; }
.composant h3 { margin: 0; font-size: 1rem; }
.composant p { margin: .15rem 0; font-size: .9rem; color: var(--muted); }
.licence { font-size: .75rem; font-weight: 600; padding: .1rem .45rem; border-radius: 4px; background: var(--bg); border: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.synchro { font-size: .78rem; color: #17673a; }
.synchro.manuel { color: var(--muted); }
.synchro.erreur { color: #9b1c1c; }
.fichiers { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.commercial { display: flex; gap: .5rem; align-items: center; font-weight: 600; padding: .6rem .8rem; border-radius: 8px; background: #e7f6ec; color: #17673a; font-size: .92rem; }
.commercial.non { background: #fde8e8; color: #9b1c1c; }
.contributeurs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.contributeurs li { display: flex; gap: .6rem; align-items: center; font-size: .92rem; }
.contributeurs .role { font-size: .8rem; color: var(--muted); display: block; }
.offre { border: 1px solid var(--border); border-radius: 8px; padding: .75rem; margin-top: .6rem; }
.offre-tete { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.achat .offre-tete { flex-wrap: wrap; }
.achat .price { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.verifie { font-size: .75rem; font-weight: 700; color: #1d4ed8; }
.avertissement { font-size: .8rem; color: var(--muted); border-left: 3px solid var(--border); padding-left: .6rem; margin-top: .75rem; }
.source-projet { font-size: .9rem; }

/* Formulaire en étapes */
.etapes { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; gap: .4rem; flex-wrap: wrap; counter-reset: n; }
.etapes li { counter-increment: n; flex: 1 1 110px; }
.etapes button { width: 100%; font: inherit; font-size: .85rem; text-align: left; border: 0; border-top: 3px solid var(--border); background: none; padding: .45rem 0; color: var(--muted); cursor: pointer; }
.etapes button::before { content: counter(n) ". "; font-weight: 700; }
.etapes button.fait { border-color: var(--accent); color: var(--text); }
.etapes button.ici { border-color: #d97706; color: var(--text); font-weight: 700; }
.champ { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.1rem; }
.champ label, .champ .label { font-weight: 600; }
.champ .aide-champ { font-size: .85rem; color: var(--muted); }
.champ textarea { min-height: 120px; }
.choix { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choix label { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 8px; padding: .7rem; background: var(--surface); cursor: pointer; font-weight: 400; }
.choix label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choix strong { display: block; }
.choix small { color: var(--muted); }
.depot-fichiers { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; color: var(--muted); background: var(--surface); }
.alerte { background: #fde8e8; color: #9b1c1c; border-radius: 8px; padding: .7rem .9rem; font-size: .9rem; }
.navigation-etapes { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.5rem; }
.ligne-champs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau th, .tableau td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.tableau th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.tableau select, .tableau input { font: inherit; padding: .35rem .5rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); width: 100%; }

/* Profil et boutique */
.tete-profil { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.tete-profil h1 { margin: 0; }
.competences { display: flex; gap: .35rem; flex-wrap: wrap; }
.stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0; }
.stats div { font-size: .85rem; color: var(--muted); }
.stats strong { display: block; font-size: 1.3rem; color: var(--text); }

/* Export / import */
.cibles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cible { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.cible h3 { margin: 0; font-size: 1.05rem; }
.cible p { margin: 0; color: var(--muted); font-size: .9rem; }
.cible .btn { margin-top: auto; text-align: center; }
pre.copier { background: #1c2430; color: #e1e5eb; border-radius: 8px; padding: 1rem; overflow-x: auto; font-size: .82rem; line-height: 1.5; white-space: pre-wrap; }
.tete-copier { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Téléphone */
.roles .btn { white-space: nowrap; }
.piece-jointe { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .tableau { display: block; overflow-x: auto; }
  .composant { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .composant .licence { grid-column: 2; justify-self: start; }
  .header-inner nav { order: 3; width: 100%; }
}

/* Sommaire des maquettes */
.sommaire { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 1.5rem; }
.sommaire a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.15rem; text-decoration: none; color: inherit; }
.sommaire a:hover { border-color: var(--accent); }
.sommaire strong { display: block; color: var(--text); margin-bottom: .25rem; }
.sommaire span { color: var(--muted); font-size: .9rem; }
.question { background: var(--surface); border-left: 3px solid #d97706; padding: .5rem .8rem; margin: .5rem 0; font-size: .92rem; }

/* Case à cocher dans une barre de filtres : ne pas l'étirer comme un champ texte */
.filters input[type=checkbox] { flex: none; }

/* Formulaires (comptes, publication) */
.page-compte { max-width: 520px; padding-top: 2rem; padding-bottom: 2rem; }
.formulaire h1 { font-size: 1.5rem; margin-top: 0; }
.formulaire form p { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1rem; }
.formulaire form p label { font-weight: 600; }
.formulaire form p:has(input[type=checkbox]) { flex-direction: row; align-items: center; }
.formulaire form p:has(input[type=checkbox]) label { font-weight: 400; }
.formulaire input:not([type=checkbox]):not([type=radio]), .formulaire select, .formulaire textarea {
  width: 100%; font: inherit; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.formulaire .helptext, .formulaire form p > span { font-size: .85rem; color: var(--muted); }
.formulaire .helptext ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.formulaire .errorlist, .erreur-champ { color: #9b1c1c; font-size: .9rem; list-style: none; padding: 0; margin: 0; }
.champ.erreur input, .champ.erreur textarea { border-color: #9b1c1c; }
.cases { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.cases label { display: flex; gap: .4rem; align-items: center; font-weight: 400 !important; }
.cases input { width: auto !important; }
.liens-compte { text-align: center; }

/* Messages (« C'est publié ! ») */
.messages { list-style: none; padding: 0; margin: 1rem 0 0; }
.messages li { background: var(--accent-soft); color: #0b5345; border-radius: 8px; padding: .7rem 1rem; }
.messages li.error { background: #fde8e8; color: #9b1c1c; }

/* Cloche des avis */
.cloche { position: relative; text-decoration: none; font-size: 1.15rem; line-height: 1; padding: .2rem; }
.cloche .nb { position: absolute; top: -.35rem; right: -.45rem; background: #d97706; color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; padding: .05rem .35rem; }
.avis { list-style: none; padding: 0; margin: 0; }
.avis li { padding: .6rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; }
.avis li:last-child { border-bottom: 0; }
.avis li.non-lu a { font-weight: 700; }
.champ input[type=checkbox], .champ input[type=radio], .choix input { width: auto; }

/* Discussion : formulaires de vote et actions en boutons qui ressemblent à des liens */
form.vote { margin: 0; }
.vote button:disabled { cursor: default; opacity: .5; }
.message .actions form { display: inline; margin: 0; }
button.lien { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
button.lien:hover { color: var(--accent); }
.pli > summary { list-style: none; cursor: pointer; }
.pli > summary::-webkit-details-marker { display: none; }
.pli:not([open]) > summary { opacity: .7; }
.reponse-a { margin-top: .5rem; }
.etiquette-attente { font-size: .72rem; font-weight: 700; background: #fff4e0; color: #8a5300; padding: .1rem .45rem; border-radius: 4px; }
.message:target > .contenu { outline: 2px solid var(--accent-soft); outline-offset: 4px; border-radius: 6px; }
.message .actions { flex-wrap: wrap; row-gap: .3rem; }
@media (max-width: 640px) { .reponses { padding-left: .5rem; } .message { gap: .4rem; } }

/* Pied de page toujours en bas de l'écran, même sur une page courte */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; min-height: 0; }

/* Éditeur de texte (static/js/editeur.js) */
.barre-outils { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; border-bottom: 1px solid var(--border); padding-bottom: .35rem; margin-bottom: .35rem; }
.barre-outils button { font: inherit; font-size: .85rem; min-width: 2rem; height: 2rem; padding: 0 .45rem; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--text); cursor: pointer; }
.barre-outils button:hover { background: var(--bg); border-color: var(--border); }
.barre-outils .onglet-editeur { font-weight: 600; color: var(--muted); }
.barre-outils .onglet-editeur[aria-pressed=true] { color: var(--accent); background: var(--accent-soft); }
.barre-outils .outils { display: inline-flex; flex-wrap: wrap; gap: .15rem; margin-left: .5rem; }
.barre-outils .outils[hidden] { display: none; }
.barre-outils .separateur { width: 1px; background: var(--border); margin: .3rem .25rem; }
.apercu-editeur { min-height: 80px; padding: .25rem; }
.etat-editeur:empty { display: none; }
.etat-editeur { display: block; color: var(--muted); }
.champ .barre-outils { border: 1px solid var(--border); border-bottom: 0; border-radius: 8px 8px 0 0; margin: 0; padding: .3rem; background: var(--bg); }
.champ .barre-outils + textarea { border-radius: 0 0 8px 8px; }
.champ .apercu-editeur { border: 1px solid var(--border); border-radius: 0 0 8px 8px; background: var(--surface); padding: .6rem .75rem; }

/* Rendu des nouveautés du Markdown */
.prose code, .texte code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: .05rem .3rem; }
.prose pre, .texte pre { background: #1f2933; color: #e8edf2; border-radius: 8px; padding: .75rem 1rem; overflow-x: auto; }
.prose pre code, .texte pre code { background: none; border: 0; padding: 0; color: inherit; font-size: .85rem; }
.prose blockquote, .texte blockquote { margin: .5rem 0; padding: .2rem .9rem; border-left: 3px solid var(--accent); color: var(--muted); background: var(--bg); border-radius: 0 6px 6px 0; }
.texte img, .apercu-editeur img { max-width: 100%; height: auto; border-radius: 6px; }

/* Contenu d'un projet : un panneau par type coché (Publier, Contenu et fichiers) */
.composants-form { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.1rem; }
.composant-form { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.composant-form.coche { border-color: var(--accent); }
.composant-case { display: flex; gap: .6rem; align-items: center; padding: .6rem .75rem; cursor: pointer; font-weight: 400 !important; }
.composant-case input { width: auto !important; }
.composant-case .icone { width: 1.9rem; height: 1.9rem; font-size: .72rem; }
.composant-champs { padding: .25rem .75rem .5rem; border-top: 1px solid var(--border); }
.composant-champs[hidden] { display: none; }
.apercus-locaux { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.5rem 0 1rem; }
.apercus-locaux .visionneuse { flex-basis: 100%; }

/* Fiche : aperçu du circuit et visionneuse 3D */
.apercu-pcb { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin: .5rem 0; }
.apercu-pcb figure { margin: 0; background: #1f2933; border-radius: 8px; padding: .6rem; text-align: center; }
.apercu-pcb img { width: 100%; height: auto; max-height: 320px; object-fit: contain; }
.apercu-pcb figcaption { color: #c5ccd6; font-size: .75rem; margin-top: .3rem; }
.fichiers { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.galerie-3d { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin: .5rem 0; }
.vignette-3d { display: flex; flex-direction: column; padding: 0; font: inherit; text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.vignette-3d:hover { border-color: var(--accent); }
.vignette-3d .image { display: block; aspect-ratio: 1; background: #f4f6f8 center / cover no-repeat; }
.vignette-3d .nom { font-size: .75rem; padding: .3rem .4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
button.piece-jointe { font: inherit; font-size: .85rem; cursor: pointer; }
.visionneuse { margin-top: .5rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #f4f6f8; min-height: 2rem; }
.visionneuse canvas { display: block; width: 100% !important; height: auto !important; cursor: grab; }
.visionneuse-barre { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; padding: .4rem .6rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.fermer-3d { margin-left: auto; font: inherit; font-size: 1.4rem; line-height: 1; padding: 0 .45rem .1rem; cursor: pointer; background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
.fermer-3d:hover { border-color: var(--accent); color: var(--accent); }
.galerie-3d[hidden] { display: none; }
.visionneuse-barre select { font: inherit; font-size: .85rem; max-width: 100%; }

/* Équipe, propositions (avant / après) */
.equipe { list-style: none; padding: 0; margin: 0; }
.equipe li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .35rem 0; }
.boutons { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.diff-texte { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.6; }
del { background: #fde8e8; color: #9b1c1c; text-decoration: line-through; }
ins { background: #def7ec; color: #03543f; text-decoration: none; }
.statut-prop { font-size: .78rem; font-weight: 600; padding: .1rem .45rem; border-radius: 4px; background: var(--border); white-space: nowrap; }
.statut-prop.en_attente { background: #fdf6b2; color: #723b13; }
.statut-prop.acceptee { background: #def7ec; color: #03543f; }
.statut-prop.refusee, .statut-prop.retiree { background: #f3f4f6; color: #4b5563; }

/* Rôles, reconnaissance */
.tableau-roles { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .5rem 0; }
.tableau-roles th, .tableau-roles td { border-bottom: 1px solid var(--border); padding: .4rem .5rem; text-align: left; }
.roles-ligne { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.roles-ligne select { font: inherit; font-size: .85rem; padding: .15rem .3rem; }
.reconnaissance { display: flex; gap: .8rem; flex-wrap: wrap; }
.aimer.on { color: #c81e1e; border-color: #c81e1e; }
.etiquette-teste { font-size: .72rem; font-weight: 700; color: #03543f; border: 1px solid #03543f; padding: 0 .35rem; border-radius: 4px; }
.essais { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.essais li { display: flex; gap: .8rem; align-items: flex-start; }
.essais img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }

/* Appareils : avis sur les appareils du commerce */
.tete-appareils { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.tete-appareils .lead { margin-bottom: 0; }
.avec-filtres { display: grid; gap: 1.5rem; grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
@media (max-width: 760px) { .avec-filtres { grid-template-columns: minmax(0, 1fr); } }
.filtres-appareils { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem; font-size: .9rem; }
.filtres-appareils .champ { margin-bottom: .8rem; }
.filtres-appareils fieldset { border: 0; padding: 0; margin: 0 0 .8rem; }
.filtres-appareils legend, .filtres-appareils summary { font-weight: 600; margin-bottom: .3rem; cursor: pointer; }
.filtres-appareils details { margin-bottom: .8rem; }
.filtres-appareils label { display: flex; gap: .4rem; align-items: center; padding: .12rem 0; }
.filtres-appareils .btn { width: 100%; justify-content: center; margin-bottom: .4rem; }
.tri select { margin-left: 0; }
.liste-appareils { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.ligne-appareil { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; }
.ligne-appareil:hover { border-color: var(--accent); }
.ligne-appareil .image { flex: none; width: 88px; height: 88px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.ligne-appareil .image img { width: 100%; height: 100%; object-fit: contain; }
.ligne-appareil .corps { flex: 1; min-width: 0; }
.ligne-appareil h3 { margin: .1rem 0 .2rem; font-size: 1.05rem; }
.ligne-appareil h3 a { color: var(--text); text-decoration: none; }
.etoiles { color: #d97706; letter-spacing: .05em; }
.note-ligne { display: flex; gap: .35rem; align-items: baseline; font-size: .9rem; }
.note-ligne.grande { font-size: 1.15rem; margin: .4rem 0 1rem; }
.pastilles { display: flex; gap: .3rem; flex-wrap: wrap; margin: .35rem 0; }
.pastille { font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.pastille.oui { background: var(--accent-soft); border-color: #bfe6cc; color: var(--accent); }
.pastille.non { background: #fdf0f0; border-color: #f5c9c9; color: #9b1c1c; }
.tete-appareil { display: grid; gap: 2rem; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
@media (max-width: 760px) { .tete-appareil { grid-template-columns: minmax(0, 1fr); } }
.tete-appareil > .image { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; aspect-ratio: 1; display: grid; place-items: center; color: var(--muted); }
.tete-appareil > .image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tete-appareil h1 { margin-top: 0; }
.specs th { text-align: left; width: 9rem; color: var(--muted); font-weight: 600; }
.specs th, .specs td { padding: .4rem .5rem .4rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.analyse-ia { display: flex; gap: .6rem; align-items: center; background: #e8effd; color: #1d4ed8; border-radius: 8px; padding: .7rem .9rem; font-size: .92rem; }
.roue { flex: none; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tourner 1s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }
.resume-avis { display: grid; gap: 1.5rem; grid-template-columns: 220px minmax(0, 1fr); padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
@media (max-width: 640px) { .resume-avis { grid-template-columns: minmax(0, 1fr); } }
.resume-avis p { margin: .4rem 0 .1rem; }
.repartition { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.repartition li { display: grid; grid-template-columns: 2.2rem 1fr 1.5rem; gap: .4rem; align-items: center; padding: .1rem 0; }
.repartition .barre { height: .5rem; background: var(--bg); border-radius: 999px; overflow: hidden; }
.repartition .barre span { display: block; height: 100%; background: #d97706; }
.fil-avis { list-style: none; padding: 0; margin: 0; }
.un-avis { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.un-avis:last-child { border-bottom: 0; }
.un-avis:target { background: #fffbeb; }
.un-avis .entete-msg { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.un-avis .texte p { margin: .4rem 0; }
.un-avis .actions { display: flex; gap: .8rem; align-items: center; font-size: .82rem; color: var(--muted); }
.un-avis .actions a { color: var(--muted); }
.form-utile .btn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.photos-avis { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.photos-avis img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.photo-retirer { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 400; }
.choix-note { display: flex; gap: .4rem; flex-wrap: wrap; }
.choix-note label { display: flex; gap: .3rem; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: .4rem .6rem; cursor: pointer; font-weight: 400; background: var(--surface); }
.choix-note label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.liste-simple { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .92rem; }

/* Zone de dépôt d'images (js/deposer-images.js) */
.depot-images { border: 2px dashed var(--border); border-radius: var(--radius); padding: .9rem 1rem; background: var(--surface); transition: border-color .15s, background .15s; }
.depot-images:focus-visible, .depot-images.survol { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.depot-consigne { margin: 0; color: var(--muted); font-size: .92rem; }
.depot-images .depot-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lien-bouton { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.depot-apercus { display: flex; flex-wrap: wrap; gap: .6rem; }
.depot-images.remplie .depot-apercus { margin-top: .7rem; }
.depot-vignette { position: relative; margin: 0; width: 96px; }
.depot-vignette img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; background: var(--bg); }
.depot-vignette figcaption { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.depot-vignette button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--text); color: var(--surface); cursor: pointer; line-height: 1; }

/* Historique d'un événement */
.historique td { vertical-align: top; padding: .45rem .6rem; border-bottom: 1px solid var(--border); }
.historique th { text-align: left; padding: .45rem .6rem; }
.historique-ligne { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.historique-ligne p { margin: 0 0 .4rem; }

/* Événements : éditeur de questions et résultats */
.question-editeur { margin-bottom: 1rem; }
.question-editeur.nouvelle { border-style: dashed; background: var(--bg); }
.question-ligne { display: flex; gap: 1rem; align-items: flex-start; }
.question-resultat { margin-bottom: 1.5rem; }
.resume-ia { background: var(--accent-soft); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1rem 0; }
.resume-ia h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.resume-ia > :last-child { margin-bottom: 0; }
.a-retenir { font-weight: 600; }
.themes { list-style: none; padding: 0; margin: .8rem 0; }
.themes li { display: flex; gap: .8rem; align-items: flex-start; padding: .45rem 0; border-top: 1px solid rgba(0,0,0,.06); }
.theme-nb { flex: none; min-width: 2.2rem; text-align: center; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 99px; padding: .1rem .5rem; }
.reponses-anonymes { padding-left: 0; list-style: none; }
.reponses-anonymes li { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.reponses-anonymes li .small { display: block; }

/* Onglets de la page Questionnaire */
.onglets { display: flex; flex-wrap: wrap; gap: .2rem .4rem; margin: 0 0 1rem; border-bottom: 1px solid var(--border); }
.onglets a { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 8px 8px 0 0;
  color: var(--muted); text-decoration: none; font-size: .92rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.onglets a:hover { color: var(--text); background: var(--bg); }
.onglets a.actif { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.onglet-num { font-weight: 700; }
.onglet-nb { font-size: .78rem; background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 0 .45rem; color: var(--muted); }
.onglets .roue { width: .8rem; height: .8rem; }
.panneau[hidden] { display: none; }
.onglets a { font-size: 1rem; }
.sous-onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.sous-onglets a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.sous-onglets a:hover { color: var(--text); }
.sous-onglets a.actif { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sous-onglets a.actif .onglet-nb { background: rgba(255,255,255,.2); border-color: transparent; color: inherit; }
.sous-onglets .roue { width: .75rem; height: .75rem; }
.sous-panneau[hidden] { display: none; }
