/* Mes projets (inc/projets.php, 28/10; v2 04/11): the list of rooms, the Chambre project and the choices of each room
   (sofa + armchairs for the Salon, mattress for the Chambre), on the look of /mon-projet/. No green: mustard and bronze. */
.projets__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin: 1.6rem 0 1.2rem; padding: 0; list-style: none; }
.projets__piece { display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.2rem; border: 1px solid var(--trait); border-radius: 14px; background: var(--blanc); }
.projets__piece.est-commence { border-color: color-mix(in srgb, var(--moutarde) 55%, var(--trait)); background: color-mix(in srgb, var(--moutarde) 6%, var(--blanc)); }
.projets__univers { margin: 0 0 .3rem; font: 600 .74rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--feutre); }
.projets__nom { margin: 0 0 .5rem; font: 400 1.9rem/1.1 var(--serif); }
.projets__desc { margin: 0 0 .8rem; line-height: 1.55; }
.projets__etat { margin: 0 0 1rem; font-size: .92rem; color: var(--feutre); }
.est-commence .projets__etat { color: var(--anthracite); }
.projets__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: auto 0 0; }
.projets__matelas { margin: .6rem 0 1rem; padding: 0; list-style: none; }
.projets__matelas li + li { border-top: 1px solid var(--trait); }
.projets__matelas a { display: grid; grid-template-columns: 72px 1fr; gap: .7rem; align-items: center; padding: .55rem 0; color: inherit; text-decoration: none; }
.projets__matelas a:hover b { text-decoration: underline; }
.projets__matelas img, .projets__matelas a > span[aria-hidden] { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--platre); }
.projets__matelas-texte { display: flex; flex-direction: column; gap: .15rem; min-width: 0; font-size: .9rem; }
.projets__matelas-texte b { font-weight: 600; overflow-wrap: anywhere; }
.projets__matelas-texte > span { color: var(--feutre); }

/* /mes-projets/: the models kept in each room */
.projets__choix { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .35rem; }
.projets__choix li { display: grid; grid-template-columns: 56px 1fr; gap: .6rem; align-items: center; font-size: .9rem; }
.projets__choix img, .projets__choix li > span[aria-hidden] { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; background: var(--platre); }
.projets__choix .projets__plus { display: block; color: var(--feutre); }
.projets__retenu { margin-left: .3rem; padding: .05rem .4rem; border-radius: 4px; background: var(--moutarde-voile); color: var(--bronze); font: 600 .72rem/1.4 var(--sans); letter-spacing: .04em; text-transform: uppercase; }

/* Lists with an « Ajouter au projet » button (mattresses of the Chambre, armchair ideas of the Salon) */
.projets__matelas-item, .choix__idees-liste .projets__matelas-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.choix__idees-liste { margin: .4rem 0 0; padding: 0; list-style: none; }
.choix__idees-liste li + li { border-top: 1px solid var(--trait); }
.choix__idees-liste a { display: grid; grid-template-columns: 96px 1fr; gap: .8rem; align-items: center; padding: .6rem 0; color: inherit; text-decoration: none; }
.choix__idees-liste a:hover b { text-decoration: underline; }
.choix__idees-liste img, .choix__idees-liste a > span[aria-hidden] { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--platre); }
.choix__ajouter { min-height: 44px; padding: .45rem .85rem; border: 1px solid var(--anthracite); border-radius: 4px; background: var(--blanc); color: var(--anthracite); font: 600 .84rem/1.2 var(--sans); cursor: pointer; white-space: nowrap; }
.choix__ajouter:hover { background: var(--moutarde-voile); }
.choix__ajouter[aria-pressed="true"] { border-color: var(--bronze); background: var(--moutarde-voile); color: var(--bronze); }
.choix__ajouter[aria-pressed="true"]::before { content: "\2713\00a0"; }

/* The choices of a room */
.choix { margin: 2.4rem 0 0; padding: 1.6rem 0 0; border-top: 2px solid var(--anthracite); }
.choix__titre { margin: 0 0 .5rem; font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--serif); }
.choix__intro { max-width: 68ch; margin: 0 0 1rem; line-height: 1.55; color: var(--feutre); }
.choix__reprise { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; padding: .8rem 1rem; border-left: 4px solid var(--moutarde); background: var(--moutarde-voile); }
.choix__reprise p { margin: 0; flex: 1 1 260px; }
.choix__charge { margin: 0 0 .6rem; font-size: .9rem; color: var(--feutre); }
.choix__charge:empty { display: none; }
.choix__groupe { margin: 0 0 1.8rem; }
.choix__sous-titre { margin: 0 0 .6rem; font: 400 1.35rem/1.2 var(--serif); }
.choix__sous-titre:focus { outline: none; }
.choix__sous-titre:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
.choix__n { font: 400 1rem/1 var(--sans); color: var(--feutre); }
.choix__explication { max-width: 68ch; margin: -.2rem 0 .9rem; line-height: 1.5; color: var(--feutre); }
.choix__vide { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; margin: 0 0 .6rem; padding: .9rem 1rem; border: 1px dashed var(--trait); border-radius: 4px; }
.choix__vide[hidden] { display: none; }
.choix__vide p { margin: 0; color: var(--anthracite); }
.choix__vide-cta { margin: 0; }
.choix__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.choix__item { display: grid; grid-template-columns: 160px 1fr auto; gap: 1rem; align-items: center; padding: .8rem; border: 1px solid var(--trait); border-radius: 4px; background: var(--blanc); }
.choix__item.est-retenu { border-color: var(--moutarde); box-shadow: inset 4px 0 0 var(--moutarde); }
.choix__photo img { display: block; width: 160px; height: 120px; object-fit: cover; border-radius: 4px; background: var(--platre); }
.choix__texte { min-width: 0; }
.choix__marque-retenu { margin: 0 0 .2rem; font: 600 .72rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--bronze); }
.choix__nom { margin: 0 0 .2rem; font: 400 1.2rem/1.2 var(--serif); }
.choix__nom a { color: inherit; text-decoration: none; }
.choix__nom a:hover { text-decoration: underline; }
.choix__variante { margin: 0 0 .3rem; font-size: .88rem; color: var(--feutre); }
.choix__chiffres { margin: 0; font-size: .92rem; }
.choix__note { margin: .35rem 0 0; font-size: .85rem; color: var(--bleu, #7a5a0a); }
.choix__actions { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; min-width: 190px; }
.choix__retenir, .choix__retirer, .choix__marchand { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem .8rem; border-radius: 4px; font: 600 .86rem/1.2 var(--sans); text-align: center; cursor: pointer; text-decoration: none; }
.choix__retenir { border: 1px solid var(--anthracite); background: var(--blanc); color: var(--anthracite); }
.choix__retenir:hover { background: var(--moutarde-voile); }
.choix__retenir[aria-pressed="true"] { border-color: var(--moutarde); background: var(--moutarde); color: var(--anthracite); }
.choix__retenir[aria-pressed="true"]::before { content: "\2713\00a0"; }
.choix__marchand { border: 1px solid var(--anthracite); background: var(--anthracite); color: var(--blanc); }
.choix__marchand:hover { background: var(--bronze); border-color: var(--bronze); }
.choix__retirer { border: 0; background: none; color: var(--feutre); text-decoration: underline; text-underline-offset: 2px; font-weight: 400; }
.choix__retirer:hover { color: var(--anthracite); }
.choix__qte { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .88rem; }
.choix__qte select { min-height: 44px; min-width: 4.5rem; padding: 0 .5rem; border: 1px solid var(--trait); border-radius: 4px; background: var(--blanc); font: inherit; }
.choix__retenir:focus-visible, .choix__retirer:focus-visible, .choix__marchand:focus-visible, .choix__ajouter:focus-visible, .choix__qte select:focus-visible, .choix__table:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }

/* Side by side */
.choix__comparer { margin: 1.2rem 0 0; }
.choix__comparer-titre { margin: 0 0 .5rem; font: 600 .8rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--feutre); }
.choix__table { overflow-x: auto; border: 1px solid var(--trait); border-radius: 4px; }
.choix__table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .9rem; }
.choix__table th, .choix__table td { padding: .55rem .75rem; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.choix__table thead th { font: 400 1.02rem/1.2 var(--serif); }
.choix__table thead a { color: inherit; }
.choix__table tbody th { width: 9rem; font-weight: 600; color: var(--feutre); background: var(--platre-2, var(--platre)); }
.choix__table tbody tr:last-child th, .choix__table tbody tr:last-child td { border-bottom: 0; }
.choix__table .est-meilleur { background: var(--moutarde-voile); }
.choix__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Armchair needs: one compact row, the legend as a small section title inside the box, input and unit in one control */
.choix__besoins { width: fit-content; max-width: 100%; min-width: 0; margin: 0 0 1rem; padding: .9rem 1.1rem 1rem; border: 1px solid var(--trait); border-radius: 4px; background: var(--blanc); }
.choix__legende { float: left; width: 100%; margin: 0 0 .7rem; padding: 0; font: 600 .8rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--bronze); }
.choix__legende + * { clear: both; }
.choix__besoins-grille { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .9rem 1.6rem; }
@media (min-width: 901px) { .choix__besoins-grille { flex-wrap: nowrap; } .choix__besoin--n { flex: none; } .choix__besoin--n .projet__puces { flex-wrap: nowrap; } }
.choix__besoin { display: grid; gap: .35rem; align-content: start; }
.choix__besoin:not(.choix__besoin--n) { flex: 0 1 13.5rem; }
.choix__besoin-label { font: 600 .9rem/1.3 var(--sans); color: var(--anthracite); }
.choix__besoin .projet__puces { margin: 0; }
.choix__saisie { display: flex; align-items: center; min-height: 46px; border: 1px solid var(--anthracite); border-radius: 4px; background: var(--blanc); }
.choix__saisie:focus-within { box-shadow: inset 0 -3px 0 var(--moutarde); }
html body .projet .choix__saisie input[type="number"] { flex: 1 1 auto; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 .4rem 0 .8rem; border: 0; border-radius: 4px 0 0 4px; background: transparent; font: 600 1.05rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--anthracite); box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.choix__saisie input::-webkit-outer-spin-button, .choix__saisie input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html body .projet .choix__saisie input[type="number"]:focus-visible { outline: 3px solid var(--moutarde, #d6a62b); outline-offset: 2px; }
.choix__unite { flex: none; padding: 0 .8rem 0 .2rem; font: 500 .9rem/1 var(--sans); color: var(--feutre); }
.choix__aide { max-width: 15rem; font: 400 .8rem/1.35 var(--sans); font-size: .8rem; line-height: 1.35; color: var(--feutre); }
.choix__idees { margin: 1.2rem 0 0; }
.choix__idees-titre { margin: 0; font: 600 .8rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--feutre); }
.choix__catalogue { margin: .8rem 0 0; }

/* Total of the room */
.choix__total { margin: 0 0 1.4rem; padding: 1.1rem 1.2rem; border: 2px solid var(--anthracite); border-radius: 4px; background: var(--blanc); }
.choix__lignes { margin: 0; }
.choix__lignes > div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--trait); }
.choix__lignes dt { margin: 0; }
.choix__lignes dd { margin: 0; white-space: nowrap; }
.choix__somme { border-bottom: 0 !important; font: 600 1.1rem/1.3 var(--sans); }
.choix__notes { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.choix__precision { margin: .6rem 0 0; font-size: .82rem; color: var(--feutre); }
.choix__partage { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }

@media (max-width: 700px) {
  .choix__besoin--n { flex: 1 1 100%; }
  .choix__besoin:not(.choix__besoin--n) { flex: 1 1 9rem; }
  .choix__item { grid-template-columns: 96px 1fr; gap: .7rem; }
  .choix__photo img { width: 96px; height: 72px; }
  .choix__actions { grid-column: 1 / -1; min-width: 0; flex-direction: row; flex-wrap: wrap; }
  .choix__actions > * { flex: 1 1 140px; }
  .choix__actions .choix__retirer { flex: 0 0 auto; }
  .choix__idees-liste a { grid-template-columns: 72px 1fr; }
  .choix__idees-liste img, .choix__idees-liste a > span[aria-hidden] { width: 72px; height: 54px; }
  .projets__matelas-item { grid-template-columns: 1fr; gap: 0; padding-bottom: .5rem; }
  .projets__matelas-item .choix__ajouter { justify-self: start; }
}

/* The criteria fields of the project pages (projet-v2 04/11): the input and its unit (cm, €) in one bordered control,
   the input lost its own dark frame (design-boutons.css .dbt main input) that left the unit outside. */
html body .projet .projet__saisie { border: 1px solid var(--anthracite); border-radius: 4px; background: var(--blanc); }
html body .projet .projet__saisie input[type="number"] { border: 0; border-radius: 4px 0 0 4px; background: transparent; box-shadow: none; }
/* coloris-0411 (Romain 04/11, « toujours mettre les couleurs dispo, partout »): the swatches of the armchair ideas,
   shared partial classes (main.css .carte__coloris), shown only: the card's link opens the fiche to pick one. */
.projets__matelas-texte > .choix__coloris { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: .2rem 0 0; color: var(--feutre); }
.choix__coloris .carte__pastille-couleur { display: inline-block; width: 14px; height: 14px; cursor: inherit; }
.choix__coloris .carte__coloris-plus { min-height: 14px; }
