/* HAB Gestion · page CSS: only what sits inside a visual and the kit lacks (references/system.md) */

/* the client's logo: the white transparent PNG, shown in its official dark version on the light ground */
.nav__logo .logo { height: 40px; width: auto; filter: invert(1); display: block; }
.closing .nav__logo .logo { height: 64px; }
@media (max-width: 639px) { .nav__logo .logo { height: 32px; } }

/* project cards: one panel height for every card row */
.projets .panel, .avenir .panel { --p-h: 300px; height: var(--p-h); flex: none; }
.projets .panel .frame__img, .avenir .panel .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .projets .panel, .avenir .panel { --p-h: 220px; } }
.rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); margin-top: 2px; }
.projet h3 { margin-top: var(--s-5); }
.projet__ville { color: var(--muted); font-size: var(--t-small); margin: var(--s-1) 0 var(--s-2); }
.group__title { font-size: var(--t-card); margin: 0 0 var(--s-6); }

/* the Carré Guy slot: its name set on grège until its photographs come */
.panel--name { display: grid; place-items: center; background: var(--g-alt, #d8d0c3); }
.panel--name span { font-family: var(--font-display); font-size: 34px; letter-spacing: -0.01em; }

/* projects to come: blurred, not clickable (client's brief, section 3) */
.projet--avenir .panel .frame__img { filter: blur(12px) saturate(.8); transform: scale(1.15); }
.avenir__tag { position: absolute; left: var(--s-4); top: var(--s-4); z-index: 5; background: var(--p-bg); color: var(--p-ink); font-size: var(--t-label); font-weight: 500; padding: 6px 10px; border-radius: var(--r-sm); }

/* picture-develops and its still twin: the split's right photograph, as tall as the text beside it */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(560px, var(--ly-fit, 560px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* contact paths */
.contact { display: grid; gap: var(--s-6); }
.contact__item h3 { font-size: var(--t-card); margin: 0 0 var(--s-2); }
.contact__item p { margin: 0 0 var(--s-3); }
.contact__lines { line-height: 1.9; }

.form select, .form textarea { width: 100%; font: inherit; font-size: 16px; }

/* project pages: the name set large where the client has no photograph yet (Carré Guy) */
.hero__name, .develop--name { display: grid; place-items: center; background: var(--p-surface); border-radius: var(--r-lg); height: 100%; min-height: 320px; padding: var(--s-6); text-align: center; }
.hero__name span { font-family: var(--font-display); font-size: clamp(48px, 6vw, 96px); letter-spacing: -0.02em; }
.develop--name span { font-family: var(--font-display); font-size: var(--t-h3, 28px); }

/* photo wall: one big, three small, one ratio a row */
.galerie__item { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: 280px; }
.galerie__item--big { grid-row: span 2; height: calc(560px + var(--s-5)); }
.galerie__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.galerie__item:hover img { transform: scale(1.025); }
@media (max-width: 1023px) { .galerie__item, .galerie__item--big { grid-column: span 6; grid-row: auto; height: 240px; } }
@media (max-width: 639px) { .galerie__item, .galerie__item--big { grid-column: 1 / -1; height: 220px; } }

/* the units table */
.unites { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
.unites th { text-align: left; font-size: var(--t-label); font-weight: 500; color: var(--muted); padding: 0 var(--s-4) var(--s-3) 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); }
.unites td { padding: 14px var(--s-4) 14px 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); vertical-align: middle; }
.unites td:first-child { font-weight: 500; }
.unites__action { text-align: right; white-space: nowrap; }
.unites__titre { font-size: var(--t-card); margin: var(--s-7) 0 var(--s-3); }
.unites__titre:first-child { margin-top: 0; }
.statut { display: inline-flex; align-items: center; gap: 8px; }
.statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in oklab, var(--ink) 30%, transparent); }
.statut--disponible { font-weight: 500; }
.statut--disponible::before { background: #2f7d4f; }
.statut--bientot::before { background: #b7791f; }
.statut--loue { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) {
  .unites thead { display: none; }
  .unites, .unites tbody, .unites tr, .unites td { display: block; width: 100%; }
  .unites tr { padding: var(--s-4) 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); }
  .unites td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: var(--s-4); }
  .unites td::before { content: attr(data-label); color: var(--muted); font-size: var(--t-small); }
  .unites__action { text-align: left; }
  .unites__action:empty { display: none; }
}

/* projects to come: a list, then a strip of four blurred renders (client brief: image floutée, non cliquable) */
.avenir__rows { margin-bottom: var(--s-7); }
.avenir__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.avenir__strip img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: var(--r-lg); filter: blur(10px) saturate(.8); clip-path: inset(0 round var(--r-lg)); }
@media (max-width: 639px) { .avenir__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .avenir__strip img { height: 150px; } }

/* projects with their own site: horizontal cards, picture left, words right */
.projet-x { display: grid; grid-template-columns: 45% 1fr; gap: var(--s-5); align-items: center; padding: 0; overflow: hidden; }
.projet-x__img { height: 200px; border-radius: var(--r-lg); overflow: hidden; }
.projet-x__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.projet-x__text h3 { margin: 0; font-size: var(--t-card); }
.projet-x__text p { margin: var(--s-1) 0 0; }
@media (max-width: 639px) { .projet-x { grid-template-columns: 120px 1fr; gap: var(--s-4); } .projet-x__img { height: 110px; } .externes > .card { grid-column: 1 / -1; } }

/* contact column photograph */
.contact__photo { margin: var(--s-6) 0 0; border-radius: var(--r-lg); overflow: hidden; height: 170px; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* phone: project cards two a row, shorter, the one-line description left out */
@media (max-width: 639px) {
  .projets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projets > .card { grid-column: auto; }
  .projets .panel { --p-h: 150px; }
  .projets .card p:not(.projet__ville) { display: none; }
  .projet h3 { font-size: 16px; margin-top: var(--s-3); }
  .closing__links .grid > * { grid-column: 1 / -1; }
  .contact__photo { height: 420px; }
}
@media (max-width: 399px) {
  .closing .btn--xl { font-size: 16px; padding-inline: var(--s-5); }
  .footer__address { font-size: 28px; }
}
.develop--tall { height: min(708px, calc(100svh - 192px)); }
@media (max-width: 1023px) { .develop--tall { height: auto; aspect-ratio: 4 / 5; } }
.externes .rows__value { white-space: nowrap; }
@media (max-width: 639px) { .externes li { flex-wrap: wrap; } .externes .rows__value { white-space: normal; } }
