.tc-project-access {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--tc-shell-header-border);
  border-radius: var(--tc-radius-pill);
  background: color-mix(in srgb, var(--tc-shell-header-foreground) 6%, transparent);
  color: var(--tc-shell-header-foreground);
  font-size: var(--tc-type-small);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.tc-project-access svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tc-project-access__badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding-inline: 0.3rem;
  border-radius: var(--tc-radius-pill);
  background: var(--tc-shell-active-background);
  color: var(--tc-shell-active-foreground);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.tc-project-access__badge[hidden] { display: none; }

.tc-project-access:hover {
  background: color-mix(in srgb, var(--tc-shell-header-foreground) 11%, transparent);
}

.tc-project-access:focus-visible,
.tc-project-button:focus-visible,
.tc-project-dialog__close:focus-visible,
.tc-project-interests input:focus-visible + span,
.tc-project-room:focus-visible,
.tc-project-product a:focus-visible {
  outline: 3px solid var(--tc-color-season);
  outline-offset: 3px;
}

.tc-project-page {
  min-height: 68vh;
  background:
    radial-gradient(circle at 90% 5%, color-mix(in srgb, var(--tc-color-amenagement) 9%, transparent), transparent 32rem),
    var(--tc-color-canvas);
}

.tc-project-heading {
  max-width: 780px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.tc-project-heading h1 {
  margin: 0 0 0.8rem;
  font-family: var(--tc-font-editorial);
  font-size: var(--tc-type-page-title);
  font-weight: var(--tc-title-weight);
  line-height: var(--tc-leading-page);
}

.tc-project-heading > p:not(.tc-eyebrow, .tc-project-capacity) {
  max-width: 680px;
  color: var(--tc-color-text);
  font-size: var(--tc-type-lead);
}

.tc-project-heading--room { margin-bottom: var(--tc-space-6); }

.tc-project-capacity {
  display: inline-flex;
  margin-top: var(--tc-space-3);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--tc-color-border);
  border-radius: var(--tc-radius-pill);
  background: var(--tc-color-surface);
  color: var(--tc-color-muted);
  font-size: var(--tc-type-small);
  font-weight: 800;
}

.tc-project-rooms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.tc-project-room {
  overflow: hidden;
  border: 1px solid var(--tc-color-border);
  border-radius: var(--tc-radius-medium);
  background: var(--tc-color-surface);
  box-shadow: var(--tc-shadow-small);
  color: var(--tc-color-ink);
  text-decoration: none;
  transition: transform var(--tc-motion-fast) ease, box-shadow var(--tc-motion-fast) ease;
}

.tc-project-room:hover {
  box-shadow: var(--tc-shadow-large);
  transform: translateY(-3px);
}

.tc-project-room__visual {
  display: block;
  height: 150px;
  overflow: hidden;
  background: var(--tc-color-surface-muted);
}

.tc-project-room__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tc-motion-normal) ease;
}

.tc-project-room:hover .tc-project-room__visual img { transform: scale(1.025); }

.tc-project-room__body {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.05rem 1.1rem;
}

.tc-project-room__body strong {
  font-family: var(--tc-font-editorial);
  font-size: var(--tc-type-card-title);
  font-weight: var(--tc-title-weight);
}

.tc-project-room__body > span {
  color: var(--tc-color-muted);
  font-size: var(--tc-type-small);
}

.tc-project-room__count {
  display:inline-flex;
  align-items:center;
  gap:0.18rem;
  width:max-content;
}

.tc-project-room__count-current {
  color:var(--tc-color-ink);
  font-size:1.03em;
  font-weight:850;
}

.tc-project-room__count-total { color:var(--tc-color-muted); }

.tc-project-room.has-selections .tc-project-room__count-current { color:var(--tc-color-amenagement); }

.tc-project-room__unseen {
  width:7px;
  height:7px;
  margin-left:0.32rem;
  border-radius:50%;
  background:var(--tc-color-amenagement);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--tc-color-amenagement) 10%,transparent);
  opacity:0;
  transform:scale(.72);
  transition:opacity var(--tc-motion-fast) ease,transform var(--tc-motion-fast) ease;
}

.tc-project-room.has-unseen .tc-project-room__unseen { opacity:1; transform:scale(1); }

.tc-project-back {
  display: inline-flex;
  gap: 0.45rem;
  margin-bottom: var(--tc-space-5);
  color: var(--tc-color-text);
  font-weight: 750;
  text-decoration: none;
}

.tc-project-back:hover { text-decoration: underline; text-underline-offset: 0.2rem; }

.tc-project-empty {
  max-width: 720px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed color-mix(in srgb, var(--tc-color-amenagement) 42%, var(--tc-color-border));
  border-radius: var(--tc-radius-medium);
  background: color-mix(in srgb, var(--tc-color-surface) 86%, transparent);
  text-align: center;
}

.tc-project-empty[hidden] { display: none; }
.tc-project-empty h2 { margin-bottom: 0.55rem; font-size: var(--tc-type-card-title); }
.tc-project-empty p { margin-bottom: var(--tc-space-5); color: var(--tc-color-muted); }

.tc-project-moodboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.tc-project-moodboard[hidden] { display: none; }

.tc-project-product {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tc-color-border) 85%, transparent);
  border-radius: var(--tc-radius-medium);
  background: var(--tc-color-surface);
  box-shadow: var(--tc-shadow-small);
}

.tc-project-product__visual {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tc-color-surface-muted);
}

.tc-project-product__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-project-product__mark {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--tc-radius-pill);
  background: color-mix(in srgb, var(--tc-color-surface) 78%, transparent);
  color: var(--tc-color-ink);
  font-family: var(--tc-font-editorial);
  font-size: var(--tc-type-micro);
  opacity: 0.78;
}

.tc-project-product__body {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
}
.tc-project-product__body h2 { margin: 0 0 0.55rem; font-size: var(--tc-type-visual-card-title); }
.tc-project-product__body h2 a { color: var(--tc-color-ink); text-decoration: none; }
.tc-project-product__body h2 a:hover { color: var(--tc-color-amenagement); }

.tc-project-product__meta {
  margin: 0 0 0.35rem;
  color: var(--tc-color-muted);
  font-size: var(--tc-type-micro);
  font-weight: 750;
  letter-spacing: 0.03em;
}

.tc-project-product__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 0.9rem;
  color: var(--tc-color-text);
  font-size: var(--tc-type-small);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tc-project-product__chips {
  display: flex;
  min-height: calc(var(--tc-space-5) + var(--tc-space-1));
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tc-project-product__body > .tc-project-button {
  align-self: flex-start;
  margin-top: auto;
}

.tc-project-product__chips span {
  padding: 0.26rem 0.55rem;
  border-radius: var(--tc-radius-pill);
  background: var(--tc-color-surface-muted);
  color: var(--tc-color-text);
  font-size: var(--tc-type-micro);
  font-weight: 750;
}

.tc-project-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--tc-radius-pill);
  font: inherit;
  font-size: var(--tc-type-small);
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.tc-project-button--primary {
  border-color: var(--tc-color-amenagement);
  background: var(--tc-color-amenagement);
  color: var(--tc-color-surface);
}

.tc-project-button--primary:hover { background: color-mix(in srgb, var(--tc-color-amenagement) 86%, var(--tc-color-ink)); }

.tc-project-button--secondary {
  border-color: var(--tc-color-border);
  background: var(--tc-color-surface);
  color: var(--tc-color-ink);
}

.tc-project-button--secondary:hover { border-color: var(--tc-color-amenagement); }

.tc-project-button--danger {
  border-color: color-mix(in srgb, var(--tc-color-leather) 42%, var(--tc-color-border));
  background: var(--tc-color-surface);
  color: var(--tc-color-leather);
}

.tc-project-product-cta { margin-top: 1rem; }

.tc-project-send {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--tc-color-border);
  border-radius: var(--tc-radius-medium);
  background: var(--tc-color-surface);
  box-shadow: var(--tc-shadow-small);
}

.tc-project-send[hidden] { display: none; }
.tc-project-send p { grid-column: 1; max-width:720px; margin:0; color:var(--tc-color-muted); font-size:var(--tc-type-small); line-height:1.55; }
.tc-project-send .tc-project-button { grid-column: 2; grid-row: 1 / span 2; }
/* 1.3.0-rc2 — verified e-mail (Auth0) shown before « Envoyer cette sélection ». */
.tc-project-send__recipient { color: var(--tc-color-text); }
.tc-project-send__recipient[hidden] { display: none; }
.tc-project-send__email { color: var(--tc-color-ink); font-weight: 800; overflow-wrap: anywhere; }
.tc-project-send .tc-account-status { grid-column: 1 / -1; min-height: 0; }
.tc-project-send .tc-account-status:empty { display: none; }
/* Direct send: success shown in place (no dialog). The emptied room keeps no empty-state. */
.tc-project-sent {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--tc-color-border);
  border-radius: var(--tc-radius-medium);
  background: var(--tc-color-surface);
  box-shadow: var(--tc-shadow-small);
}
.tc-project-sent[hidden] { display: none; }
.tc-project-sent h2 { margin: 0; }
.tc-project-sent p { margin: 0; color: var(--tc-color-muted); }
[data-project-sent] [data-project-room-empty] { display: none; }
.tc-project-notice { margin: 0 0 1.25rem; padding: 0.85rem 1rem; border: 1px solid #e3c4a6; border-radius: var(--tc-radius-small); background: #fbf3ea; color: var(--tc-color-ink); font-weight: 700; }

.tc-project-dialog {
  width: min(92vw, 620px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: var(--tc-radius-medium);
  background: transparent;
  box-shadow: var(--tc-shadow-large);
  color: var(--tc-color-ink);
}

.tc-project-dialog::backdrop { background: color-mix(in srgb, var(--tc-color-ink) 58%, transparent); }
.tc-project-dialog:not([open]) { display: none; }

.tc-project-dialog__panel {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1.35rem, 4vw, 2rem);
  margin: 0;
  background: var(--tc-color-surface);
}

.tc-project-dialog__panel h2 { margin: 0; font-size: var(--tc-type-section-title); }
.tc-project-dialog__panel > p { margin: 0; color: var(--tc-color-text); }

.tc-project-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--tc-color-border);
  border-radius: 50%;
  background: var(--tc-color-surface);
  color: var(--tc-color-ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.tc-project-dialog__preview,
.tc-project-dialog__product {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding-right: 2.5rem;
}

.tc-project-dialog__preview img,
.tc-project-dialog__product img {
  width: 150px;
  height: 120px;
  border-radius: var(--tc-radius-small);
  object-fit: cover;
}

.tc-project-dialog__preview h2 { font-size: var(--tc-type-card-title); }
.tc-project-dialog__preview p,
.tc-project-dialog__product p { margin: 0.35rem 0 0; color: var(--tc-color-muted); font-size: var(--tc-type-small); }
.tc-project-dialog__product strong { display: block; font-size: var(--tc-type-card-title); }
.tc-project-dialog__product a { display: inline-block; margin-top: 0.5rem; color: var(--tc-color-amenagement); font-weight: 750; }

.tc-project-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  border: 0;
}

.tc-project-interests legend:not(.screen-reader-text) {
  width: 100%;
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.tc-project-interests legend small { color: var(--tc-color-muted); font-weight: 500; }

.tc-project-interests label { position: relative; cursor: pointer; }

.tc-project-interests input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tc-project-interests span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.5rem 0.78rem;
  border: 1px solid var(--tc-color-border);
  border-radius: var(--tc-radius-pill);
  background: var(--tc-color-surface-soft);
  color: var(--tc-color-text);
  font-size: var(--tc-type-small);
  font-weight: 750;
}

.tc-project-interests input:checked + span {
  border-color: var(--tc-color-amenagement);
  background: var(--tc-color-amenagement);
  color: var(--tc-color-surface);
}

.tc-project-dialog__message {
  min-height: 1.4em;
  color: var(--tc-color-amenagement);
  font-size: var(--tc-type-small);
  font-weight: 750;
}

.tc-project-dialog__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

@media (max-width: 1080px) {
  .tc-project-access__label { display: none; }
  .tc-project-access { width: 40px; height: 40px; min-height: 40px; justify-content: center; padding: 0; border-radius: 50%; }
  .tc-project-access__badge { position: absolute; top: -6px; right: -5px; }
  .tc-project-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .tc-site-header__main { grid-template-columns: minmax(0, 1fr) 42px 42px 42px 42px; }
  .tc-project-access { grid-column: 2; grid-row: 1; justify-self: center; }
  .tc-shell-language { grid-column: 3; }
  .tc-header-search { grid-column: 4; }
  .tc-site-header__menu { grid-column: 5; }
  .tc-site-header.tc-search-open .tc-project-access { opacity: 0; pointer-events: none; }
  .tc-project-moodboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .tc-project-rooms,
  .tc-project-moodboard { grid-template-columns: 1fr; }
  .tc-project-room { display: grid; grid-template-columns: 118px minmax(0, 1fr); }
  .tc-project-room__visual { height: 112px; }
  .tc-project-room__body { align-content: center; }
  .tc-project-product__visual { aspect-ratio: 16 / 10; }
  .tc-project-send { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .tc-project-send .tc-project-button { grid-column: 1; grid-row: auto; }
  .tc-project-dialog__preview,
  .tc-project-dialog__product { grid-template-columns: 88px minmax(0, 1fr); padding-right: 1.75rem; }
  .tc-project-dialog__preview img,
  .tc-project-dialog__product img { width: 88px; height: 88px; }
  .tc-project-dialog__actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 420px) {
  .tc-site-header__main { grid-template-columns: minmax(0, 1fr) 40px 40px 40px 40px; }
  .tc-brand { width: min(100px, 100%); }
  .tc-project-access { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-project-room,
  .tc-project-room__visual img { transition: none; }
}

/* Reference line of the direct send confirmation. */
.tc-project-reference { margin: 0; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--tc-color-surface-muted); font-weight: 700; color: var(--tc-color-ink); }

/* V26 — carte de pièce (maquette « Salon ») : miniatures de produits et pastille sur la photo. */
.tc-project-room__visual { position: relative; }
.tc-project-room__thumbs { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; }
.tc-project-room__thumb { width: 64px; height: 64px; border-radius: 14px; background: #fff; border: 3px solid #fff; box-shadow: 0 6px 16px rgb(15 23 42 / 30%); overflow: hidden; display: block; box-sizing: border-box; }
.tc-project-room__thumb img { width: 100%; height: 100%; object-fit: cover; transform: none; }
.tc-project-room:hover .tc-project-room__thumb img { transform: none; }
.tc-project-room__badge { position: absolute; top: 10px; right: 10px; padding: 6px 12px; border-radius: 999px; background: rgb(255 253 248 / 96%); color: var(--tc-khaki-ink, #2f2d1c); font-size: var(--tc-type-small, 0.875rem); font-weight: 800; box-shadow: 0 4px 12px rgb(15 23 42 / 22%); }

/* V27 — carte de pièce (maquette « Salon ») : lien vers la pièce + actions « Modifier », « Envoyer » et chevron. */
.tc-project-room__link { display: block; color: inherit; text-decoration: none; }
.tc-project-room__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0 1.05rem 1.1rem; }
.tc-project-room__actions .tc-project-button { min-height: 40px; padding: 0 0.9rem; font-size: var(--tc-type-small, 0.875rem); }
.tc-project-room:not(.has-selections) .tc-project-room__edit,
.tc-project-room:not(.has-selections) .tc-project-room__send { display: none; }
.tc-project-room__chevron { margin-left: auto; width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1.5px solid var(--tc-color-border); border-radius: 50%; color: var(--tc-color-ink); text-decoration: none; font-size: 1.3rem; line-height: 1; }
.tc-project-room__chevron:hover, .tc-project-room__chevron:focus-visible { border-color: var(--tc-color-ink); }
/* Maquette « Salon » : « Modifier » en contour, « Envoyer » plein (olive) ; sélecteurs renforcés pour passer devant la palette Aménagement. */
.tucasa-universe--amenagement .tc-project-room .tc-project-room__edit.tc-project-button { background: var(--tc-color-surface, #fff); border: 1.5px solid var(--tc-khaki, #d2cba6); color: var(--tc-color-ink); box-shadow: none; }
.tucasa-universe--amenagement .tc-project-room .tc-project-room__send.tc-project-button { background: var(--tc-khaki-olive, #6b6840); border: 1.5px solid var(--tc-khaki-olive, #6b6840); color: #fff; box-shadow: none; }
.tucasa-universe--amenagement .tc-project-room .tc-project-room__send.tc-project-button:hover { background: var(--tc-color-ink); border-color: var(--tc-color-ink); }
/* Téléphone (≤ 560 px) : lien en deux colonnes (photo | titre), actions dessous ; miniatures plus petites. */
@media (max-width: 560px) {
  .tc-project-room { display: block; }
  .tc-project-room__link { display: grid; grid-template-columns: 118px minmax(0, 1fr); }
  .tc-project-room__thumb { width: 36px; height: 36px; border-width: 2px; border-radius: 10px; }
  .tc-project-room__thumbs { gap: 4px; left: 6px; bottom: 6px; }
  .tc-project-room__badge { display: none; }
  .tc-project-room__actions { padding: 0.15rem 1.05rem 1rem; }
}

/* V28 — le badge « Mon Projet » réagit quand un produit lui arrive. */
@keyframes tc-project-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
[data-project-access].is-pulse { animation: tc-project-pulse 0.5s ease; }
@media (prefers-reduced-motion: reduce) { [data-project-access].is-pulse { animation: none; } .tc-project-fly { display: none; } }

.tc-project-product__note {
  margin: 6px 0 0;
  color: var(--tc-color-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* V33 : rappel discret « gratuit et sans engagement » sous la phrase d'accueil de Mon Projet. */
.tc-project-heading > p.tc-project-free { margin-top: 0.15rem; color: var(--tc-color-muted); font-size: 0.82rem; font-weight: 600; }

/* V42 : explication quand la connexion n'aboutit pas (adresse déjà inscrite avec une autre méthode). */
.tc-connexion-refus { display: grid; gap: .55rem; max-width: 760px; font-weight: 400; }
.tc-connexion-refus strong { font-size: 1.02rem; }
.tc-connexion-refus p { margin: 0; line-height: 1.5; }
.tc-connexion-refus .tc-project-button { justify-self: start; }

/* V43 : bandeau « adresse non confirmée », visible dès la connexion. */
.tc-unverified-banner { margin: 16px auto 0; max-width: 1180px; padding: 12px 16px; border-radius: 12px; border: 1px solid #e3c98a; background: #fbf4e2; color: #5a4413; font-size: .95rem; line-height: 1.45; }
