/* =================================================================
   « Mon projet » — tiroir, lignes compactes, bandeau, page de demande
   ================================================================= */

/* ---------- Lignes de sélection (tiroir + page) ---------- */
.tc-lines { display: grid; list-style: none; margin: 0; padding: 0; }
.tc-line {
  align-items: center; border-bottom: 1px solid var(--tc-line); display: grid; gap: .9rem; grid-template-columns: 4rem minmax(0, 1fr) 2rem;
  padding: .85rem 0; transition: opacity .26s ease, transform .26s ease;
}
.tc-line:first-child { padding-top: .25rem; }
.tc-line.is-new { animation: tc-line-in .7s var(--tc-ease) both; }
.tc-line.is-leaving { opacity: 0; transform: translateX(1.5rem); }
@keyframes tc-line-in { from { background: rgb(226 181 154 / .35); opacity: 0; transform: translateY(-.5rem); } 60% { background: rgb(226 181 154 / .2); } to { background: transparent; opacity: 1; transform: none; } }
.tc-line__media { align-self: start; aspect-ratio: 1; background: var(--tc-sand); border-radius: 2px; display: block; overflow: hidden; }
.tc-line__media img, .tc-line__placeholder { display: block; height: 100%; object-fit: cover; width: 100%; }
.tc-line__body { display: grid; gap: .15rem; min-width: 0; }
.tc-site .tc-line__name { color: var(--tc-ink); display: -webkit-box; font-size: .86rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tc-site .tc-line__name:hover { color: var(--tc-terracotta); }
.tc-line__meta { color: var(--tc-muted); font-size: .58rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tc-line__controls { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.tc-stepper { align-items: center; border: 1px solid var(--tc-line); border-radius: 999px; display: inline-flex; height: 2.1rem; }
.tc-site .tc-stepper button { align-items: center; background: none; border: 0; border-radius: 50%; color: var(--tc-ink); cursor: pointer; display: inline-flex; font-size: 1rem; height: 2.1rem; justify-content: center; min-height: 0; padding: 0; transition: background-color .25s ease, color .25s ease; width: 2.1rem; }
.tc-site .tc-stepper button:hover { background: var(--tc-ink); color: var(--tc-ivory); }
.tc-site .tc-stepper input { -moz-appearance: textfield; appearance: textfield; background: none; border: 0 !important; box-shadow: none !important; color: var(--tc-ink); font: 600 .82rem/1 var(--tc-font-body); height: 2rem !important; min-height: 0 !important; padding: 0 !important; text-align: center; width: 2.9rem !important; }
.tc-stepper input::-webkit-outer-spin-button, .tc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tc-unit { background: var(--tc-paper); border: 1px solid var(--tc-line); border-radius: 999px; display: inline-flex; padding: 2px; }
.tc-site .tc-unit button { background: none; border: 0; border-radius: 999px; color: var(--tc-muted); cursor: pointer; font-size: .68rem; font-weight: 600; height: 1.85rem; min-height: 0; min-width: 2.6rem; padding: 0 .6rem; transition: background-color .3s ease, color .3s ease; }
.tc-site .tc-unit button[aria-pressed="true"] { background: var(--tc-ink); color: var(--tc-ivory); }
.tc-site .tc-line__remove { align-items: center; align-self: start; background: none; border: 1px solid transparent; border-radius: 50%; color: var(--tc-muted); cursor: pointer; display: inline-flex; height: 2rem; justify-content: center; min-height: 0; padding: 0; transition: border-color .25s ease, color .25s ease, transform .4s var(--tc-ease); width: 2rem; }
.tc-site .tc-line__remove:hover { border-color: var(--tc-terracotta); color: var(--tc-terracotta); transform: rotate(90deg); }
.tc-line__remove svg { height: .8rem; width: .8rem; }
.tc-selection__empty { padding: 1rem 0; }
.tc-selection__empty p { color: var(--tc-muted); font-size: .9rem; line-height: 1.6; margin: 0 0 1rem; }
.tc-selection__empty strong { color: var(--tc-ink); display: block; font-family: var(--tc-font-display); font-size: 1.4rem; margin-bottom: .25rem; }
.tc-summary { color: var(--tc-muted); font-size: .7rem; font-weight: 600; letter-spacing: .12em; margin: 0; text-transform: uppercase; }

/* ---------- Tiroir ---------- */
.tc-site .tc-drawer-backdrop { background: rgb(22 18 15 / .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); inset: 0; opacity: 0; position: fixed; transition: opacity .35s ease; z-index: 700; }
.tc-site .tc-drawer-backdrop.is-open { opacity: 1; }
.tc-site .tc-project-drawer {
  background: var(--tc-ivory); box-shadow: -2rem 0 5rem rgb(22 18 15 / .25); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh;
  max-width: none; position: fixed; right: 0; top: 0; transform: translateX(104%); transition: transform .6s var(--tc-ease), visibility 0s .6s; visibility: hidden; width: min(100%, 27rem); z-index: 710;
}
.tc-site .tc-project-drawer[aria-hidden="false"] { transform: none; transition: transform .6s var(--tc-ease); visibility: visible; }
.tc-project-drawer__head { align-items: center; border-bottom: 1px solid var(--tc-line); display: flex; justify-content: space-between; padding: 1.4rem 1.5rem 1.1rem; }
.tc-project-drawer__head .tc-eyebrow { margin: 0 0 .2rem; }
.tc-site .tc-project-drawer__head h2 { font-size: 2rem !important; line-height: 1 !important; margin: 0; }
.tc-project-drawer__head h2 span { color: var(--tc-terracotta); font-family: var(--tc-font-body); font-size: .8rem; font-weight: 600; vertical-align: super; }
.tc-site .tc-project-drawer__close { align-items: center; background: none; border: 1px solid var(--tc-line); border-radius: 50%; color: var(--tc-ink); cursor: pointer; display: inline-flex; height: 2.6rem; justify-content: center; padding: 0; transition: transform .45s var(--tc-ease), background-color .3s ease, color .3s ease; width: 2.6rem; }
.tc-site .tc-project-drawer__close:hover { background: var(--tc-ink); color: var(--tc-ivory); transform: rotate(90deg); }
.tc-project-drawer__close svg { height: .9rem; width: .9rem; }
.tc-project-drawer__body { overflow-y: auto; overscroll-behavior: contain; padding: .75rem 1.5rem; }
.tc-project-drawer__foot { background: var(--tc-paper); border-top: 1px solid var(--tc-line); display: grid; gap: .75rem; padding: 1.1rem 1.5rem calc(1.1rem + env(safe-area-inset-bottom)); }
.tc-site .tc-project-drawer__foot .tc-button { width: 100%; }
.tc-project-drawer__note { color: var(--tc-muted); font-size: .72rem; margin: 0; text-align: center; }
body.tc-drawer-open { overflow: hidden; }

@media (max-width: 40rem) {
  .tc-site .tc-project-drawer { border-radius: 14px 14px 0 0; height: auto; max-height: 88dvh; top: auto; bottom: 0; transform: translateY(104%); width: 100%; }
  .tc-site .tc-project-drawer[aria-hidden="false"] { transform: none; }
  .tc-project-drawer__head { padding-top: 1.6rem; position: relative; }
  .tc-project-drawer__head::before { background: var(--tc-line); border-radius: 999px; content: ""; height: 4px; left: 50%; position: absolute; top: .55rem; transform: translateX(-50%); width: 2.6rem; }
  .tc-project-drawer__body { padding-inline: 1.25rem; }
}

/* ---------- Bandeau de confirmation ---------- */
.tc-toast {
  align-items: center; background: var(--tc-ink); border-radius: 4px; bottom: 2rem; box-shadow: 0 1.5rem 3rem rgb(22 18 15 / .3); color: var(--tc-ivory);
  display: grid; gap: .9rem; grid-template-columns: auto minmax(0, 1fr) auto auto; left: auto; max-width: calc(100vw - 2rem); opacity: 0; padding: .75rem .75rem .75rem .75rem;
  position: fixed; right: 2rem; transform: translateY(1.5rem); transition: opacity .35s ease, transform .5s var(--tc-ease); width: 26rem; z-index: 720;
}
.tc-toast[hidden] { display: none; }
.tc-toast.is-visible { opacity: 1; transform: none; }
.tc-toast img { border-radius: 2px; height: 3rem; object-fit: cover; width: 3rem; }
.tc-toast__check { align-items: center; background: var(--tc-terracotta); border-radius: 50%; display: inline-flex; height: 2.5rem; justify-content: center; width: 2.5rem; }
.tc-toast p { display: grid; gap: .1rem; margin: 0; min-width: 0; }
.tc-toast strong { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-toast p span { color: rgb(246 241 234 / .7); font-size: .72rem; }
.tc-site .tc-toast__action { background: none; border: 0; border-bottom: 1px solid var(--tc-clay-light); color: var(--tc-clay-light); cursor: pointer; font-size: .64rem; font-weight: 600; letter-spacing: .14em; padding: .25rem 0; text-transform: uppercase; white-space: nowrap; }
.tc-site .tc-toast__close { align-items: center; background: none; border: 0; color: rgb(246 241 234 / .6); cursor: pointer; display: inline-flex; height: 2rem; justify-content: center; padding: 0; width: 2rem; }
.tc-toast__close svg { height: .75rem; width: .75rem; }
@media (max-width: 63.99rem) {
  .tc-toast { bottom: calc(4.8rem + env(safe-area-inset-bottom)); left: .75rem; right: .75rem; width: auto; }
}

/* Vignette qui file vers le compteur. */
.tc-fly { box-shadow: 0 1rem 2rem rgb(22 18 15 / .3); object-fit: cover; pointer-events: none; position: fixed; z-index: 800; }

/* ---------- Page Mon projet ---------- */
.tc-projet-hero { border-bottom: 1px solid var(--tc-line); padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.tc-projet-hero .tc-container { align-items: end; display: grid; gap: 1rem 3rem; grid-template-columns: minmax(0, 1fr) auto; }
.tc-projet-hero .tc-eyebrow { grid-column: 1 / -1; margin: 0; }
.tc-site .tc-projet-hero h1 { font-size: clamp(3rem, 7vw, 5.5rem) !important; line-height: .9 !important; margin: 0; }
.tc-projet-steps { align-items: center; counter-reset: none; display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.tc-projet-steps li { align-items: center; color: var(--tc-muted); display: flex; font-size: .66rem; font-weight: 600; gap: .55rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.tc-projet-steps li + li::before { background: var(--tc-line); content: ""; height: 1px; margin: 0 .9rem; width: clamp(1.25rem, 3vw, 3rem); }
.tc-projet-steps span { align-items: center; border: 1px solid currentColor; border-radius: 50%; display: inline-flex; height: 1.85rem; justify-content: center; letter-spacing: 0; width: 1.85rem; }
.tc-projet-steps .is-done { color: var(--tc-terracotta); }
.tc-projet-steps .is-done span { background: var(--tc-terracotta); border-color: var(--tc-terracotta); color: #fff; }
.tc-projet-steps .is-current { color: var(--tc-ink); }
.tc-projet-steps .is-current span { background: var(--tc-ink); border-color: var(--tc-ink); color: var(--tc-ivory); }

.tc-projet { align-items: start; display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(20rem, 26rem) minmax(0, 1fr); padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 8vw, 7rem); }
.tc-projet__selection { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--tc-header-h) + 1.25rem); }
.tc-projet__card { background: var(--tc-paper); border: 1px solid var(--tc-line); border-radius: 4px; }
.tc-projet__card > summary { align-items: center; border-bottom: 1px solid var(--tc-line); cursor: pointer; display: flex; gap: .9rem; list-style: none; padding: 1.1rem 1.25rem; }
.tc-projet__card > summary::-webkit-details-marker { display: none; }
.tc-projet__card:not([open]) > summary { border-bottom-color: transparent; }
.tc-projet__thumbs { display: flex; flex: none; }
.tc-projet__thumbs:empty { display: none; }
.tc-projet__thumbs img, .tc-projet__thumbs span, .tc-projet__thumbs b { background: var(--tc-sand); border: 2px solid var(--tc-paper); border-radius: 50%; height: 2.5rem; object-fit: cover; width: 2.5rem; }
.tc-projet__thumbs > * + * { margin-left: -.8rem; }
.tc-projet__thumbs b { align-items: center; background: var(--tc-ink); color: var(--tc-ivory); display: inline-flex; font-size: .64rem; justify-content: center; }
.tc-projet__heading { display: grid; gap: .2rem; min-width: 0; }
.tc-projet__heading strong { font-family: var(--tc-font-display); font-size: 1.55rem; font-weight: 600; line-height: 1; }
.tc-projet__heading .tc-summary { font-size: .6rem; }
.tc-projet__toggle { border-bottom: 1.5px solid var(--tc-ink); border-right: 1.5px solid var(--tc-ink); height: .55rem; margin-left: auto; transform: rotate(45deg) translateY(-.2rem); transition: transform .45s var(--tc-ease); width: .55rem; }
.tc-projet__card[open] .tc-projet__toggle { transform: rotate(-135deg); }
.tc-projet__card .tc-selection { max-height: min(56vh, calc(100dvh - var(--tc-header-h) - 20rem)); min-height: 6rem; overflow-y: auto; overscroll-behavior: contain; padding: .6rem 1.25rem; }
.tc-projet__card-foot { align-items: center; border-top: 1px solid var(--tc-line); display: flex; justify-content: space-between; padding: .9rem 1.25rem; }
.tc-site .tc-projet__clear { background: none; border: 0; color: var(--tc-muted); cursor: pointer; font-size: .66rem; font-weight: 600; letter-spacing: .12em; padding: .25rem 0; text-transform: uppercase; }
.tc-site .tc-projet__clear:hover { color: var(--tc-terracotta); }
.tc-projet__promises { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0 .25rem; }
.tc-projet__promises li { color: var(--tc-muted); font-size: .8rem; padding-left: 1.5rem; position: relative; }
.tc-projet__promises li::before { color: var(--tc-terracotta); content: "✦"; font-size: .7rem; left: 0; position: absolute; top: .1rem; }

.tc-projet__form > header { border-bottom: 1px solid var(--tc-line); margin-bottom: 2rem; padding-bottom: 1.5rem; }
.tc-projet__form > header .tc-eyebrow { margin: 0 0 .5rem; }
.tc-site .tc-projet__form > header h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem) !important; line-height: 1 !important; margin: 0 0 .75rem; }
.tc-projet__form > header p:not(.tc-eyebrow) { color: var(--tc-muted); margin: 0; max-width: 58ch; }

/* ---------- Formulaires Gravity Forms (Mon projet + Contact) ---------- */
.tc-site .tc-contact-form .gfield_label, .tc-site .tc-contact-form legend.gfield_label { color: var(--tc-ink); font-size: .66rem !important; font-weight: 600 !important; letter-spacing: .16em; margin-bottom: .5rem !important; text-transform: uppercase; }
.tc-site .tc-contact-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
  background: var(--tc-paper) !important; border: 1px solid var(--tc-line) !important; border-radius: 2px !important; box-shadow: none !important; color: var(--tc-ink); font-size: .95rem !important; min-height: 3.1rem; padding: .75rem .9rem !important; transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.tc-site .tc-contact-form :is(input, select, textarea):focus { background: #fff !important; border-color: var(--tc-ink) !important; box-shadow: 0 0 0 3px rgb(168 132 82 / .22) !important; outline: none; }
.tc-site .tc-contact-form .gform_button, .tc-site .tc-contact-form input[type="submit"] {
  background: var(--tc-terracotta) !important; border: 0 !important; border-radius: 2px !important; color: #fff !important; cursor: pointer; font-size: .74rem !important; font-weight: 600 !important; letter-spacing: .16em; min-height: 3.4rem; padding: 1rem 2.25rem !important; text-transform: uppercase; transition: background-color .4s ease;
}
.tc-site .tc-contact-form .gform_button:hover { background: var(--tc-ink) !important; }
.tc-site .tc-contact-form .gfield--type-fileupload .gform_drop_area { background: var(--tc-paper); border: 1px dashed var(--tc-bronze); border-radius: 4px; }

@media (max-width: 63.99rem) {
  .tc-projet-hero .tc-container { grid-template-columns: 1fr; }
  .tc-projet-steps li { font-size: .56rem; }
  .tc-projet-steps li + li::before { margin: 0 .5rem; width: 1rem; }
  .tc-projet { grid-template-columns: 1fr; }
  .tc-projet__selection { position: static; }
  .tc-projet__card .tc-selection { max-height: none; }
}
@media (max-width: 30rem) {
  .tc-projet-steps li { gap: .35rem; letter-spacing: .06em; }
  .tc-projet-steps span { height: 1.5rem; width: 1.5rem; }
}
