/* ==========================================================================
   Anura Minisites - feuille de style unique, sans étape de compilation.
   Les couleurs viennent de la config du thème (variables --c-* injectées dans le <head>).
   ========================================================================== */

@font-face {
    font-family: "Noto Sans";
    src: url("../fonts/NotoSans-latin.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --c-white: #fff;
    --c-muted: color-mix(in srgb, var(--c-text) 62%, transparent);
    --c-line: color-mix(in srgb, var(--c-dark) 45%, transparent);
    --container: 1180px;
    --narrow: 860px;
    --gutter: clamp(16px, 4vw, 40px);
    /* Statuts des lots : une seule source pour plans, pastilles, légende et tableau */
    --state-a: #3f9b5b; /* disponible */
    --state-b: #d89a2b; /* réservé */
    --state-c: #b9433d; /* vendu */
    --gutter-full: clamp(16px, 4vw, 64px);
    --section: clamp(64px, 9vw, 120px);
    --radius: 999px;
    --radius-card: 18px;   /* un seul arrondi pour toutes les images et cartes */
    --radius-field: 10px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 104px;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    font-family: var(--font);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary); }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--c-primary); color: var(--c-white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container.container--full { max-width: none; padding-inline: var(--gutter-full); } /* pleine largeur de l'écran (header, hero, footer) */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.container.narrow { margin-inline: auto; }
.muted { color: var(--c-muted); }

/* Typo ------------------------------------------------------------------- */
.eyebrow {
    display: flex; align-items: flex-start; gap: 14px; line-height: 1.4;
    margin: 0 0 1.4em;
    font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--c-dark);
}
.eyebrow::before { content: ""; flex: 0 0 34px; height: 1px; margin-top: calc(.7em - .5px); background: currentColor; } /* toujours centré sur la 1re ligne */
.lead { font-weight: 600; font-size: 1.06em; line-height: 1.55; }
.page-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: .8em; }

/* Boutons ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border: 1px solid var(--c-primary); border-radius: var(--radius);
    background: var(--c-primary); color: var(--c-white);
    font: 600 14px/1.2 var(--font); text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn { transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-white); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(35,35,38,.18); }
.btn:active { transform: none; box-shadow: none; }
.btn--small { padding: 7px 16px; font-size: 13px; }
.btn--outline { background: transparent; color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.btn--light { background: var(--c-light); border-color: var(--c-light); color: var(--c-text); }
.btn--light:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-text); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Header ----------------------------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    transition: background-color .3s, box-shadow .3s;
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    max-width: none; margin-inline: auto; /* pleine largeur, aligné sur le hero et le footer */
    padding: 14px var(--gutter-full); height: var(--header-h);
}
.site-header__logo img { height: 80px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .site-header__logo img { height: 64px; }
.site-header .logo-dark { display: none; }
.is-scrolled .site-header, .is-inner .site-header, .nav-open .site-header {
    background: var(--c-white); box-shadow: 0 1px 0 color-mix(in srgb, var(--c-dark) 15%, transparent);
}
.is-scrolled .site-header .logo-light, .is-inner .site-header .logo-light, .nav-open .site-header .logo-light { display: none; }
.is-scrolled .site-header .logo-dark, .is-inner .site-header .logo-dark, .nav-open .site-header .logo-dark { display: block; }

.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--c-white); font-weight: 600; font-size: 14px; text-decoration: none; }
.site-nav a:not(.btn) { background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat; padding-bottom: 3px; transition: background-size .25s var(--ease); }
.site-nav a:not(.btn):hover, .site-nav a:not(.btn):focus-visible { background-size: 100% 1.5px; }
.is-scrolled .site-nav a:not(.btn), .is-inner .site-nav a:not(.btn) { color: var(--c-text); }
.is-scrolled .site-nav .btn--light, .is-inner .site-nav .btn--light { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }

.site-header__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--c-white); }
.is-scrolled .site-header__toggle, .is-inner .site-header__toggle, .nav-open .site-header__toggle { color: var(--c-text); }
.burger { display: grid; gap: 5px; width: 24px; }
.burger span { height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    :root { --header-h: 76px; }
    .site-header__logo img, .is-scrolled .site-header__logo img { height: 56px; }
    .site-header__toggle { display: block; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto; background: var(--c-white);
        padding: 12px var(--gutter) 28px; box-shadow: 0 12px 24px rgba(0,0,0,.08);
        display: none;
    }
    .nav-open .site-nav { display: block; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
    .site-nav a:not(.btn) { color: var(--c-text); display: block; padding: 10px 0; font-size: 17px; }
    .site-nav .btn--light { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); margin-top: 8px; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; color: var(--c-white); overflow: hidden; background: var(--c-dark); }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 45%, rgba(0,0,0,.6) 100%), linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0) 60%); }
.hero__content { position: relative; z-index: 1; padding-bottom: var(--gutter-full); } /* même retrait en bas qu'à gauche */
.hero__title { font-size: clamp(48px, 10vw, 130px); font-weight: 700; letter-spacing: -.01em; line-height: 1; color: var(--c-light); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 22px 0 26px; padding: 0; font-size: 15px; color: var(--c-light); }
.hero__facts li { display: flex; align-items: center; gap: 6px; }
.hero__facts li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; margin-right: 22px; }
.hero__facts strong { font-weight: 700; }
@media (max-width: 760px) {
    .hero { min-height: min(84svh, 760px); } /* laisse deviner la suite */
    .hero__facts { flex-direction: column; gap: 6px; }
    .hero__facts li::before, .hero__facts li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; margin-right: 6px; flex: none; }
}
.hero__subtitle { margin: .5em 0 0; font-size: clamp(18px, 2.4vw, 30px); font-weight: 400; color: var(--c-light); }

/* Sections --------------------------------------------------------------- */
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--tight-top { padding-top: 0; }
.section--sand { background: var(--c-sand); }
.section--light { background: var(--c-light); }
.section--dark { background: var(--c-dark); color: var(--c-light); }
.section--dark .eyebrow { color: var(--c-light); }
.section__cta { position: absolute; right: var(--gutter); top: 0; transform: translateY(-50%); z-index: 2; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.split__media img { width: 100%; }
/* Images de contenu : même arrondi partout (les images pleine largeur restent à angle droit) */
.split__media img, .split__media .carousel__track, .zoomable { border-radius: var(--radius-card); overflow: hidden; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 96px); font-size: 15px; }
@media (max-width: 900px) {
    .split, .columns { grid-template-columns: 1fr; }
    #situation .split__media { order: -1; }
    #prestations .split__media { order: 2; }
}

/* Chiffres clés */
.key-figures {
    list-style: none; margin-top: clamp(48px, 7vw, 90px); margin-bottom: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.key-figure { border: 1px solid var(--c-line); border-radius: var(--radius-card); padding: 36px 20px 30px; text-align: center; font-size: 14px; background: var(--c-white); }
.key-figure img { width: 56px; height: 56px; margin: 0 auto 18px; }
.key-figure p { margin: 0; }
@media (max-width: 900px) { .key-figures { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px) { .key-figure { padding: 28px 12px 24px; font-size: 13px; } }

/* Image pleine largeur */
.band img { width: 100%; height: clamp(280px, 48vw, 720px); object-fit: cover; }

/* Image agrandissable */
.zoomable { position: relative; display: block; cursor: zoom-in; }
.zoomable__hint {
    position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; background: var(--c-white); color: var(--c-text); box-shadow: 0 4px 14px rgba(0,0,0,.15);
    transition: transform .2s var(--ease);
}
.zoomable__hint svg { width: 22px; }
.zoomable:hover .zoomable__hint { transform: scale(1.12); }
a[data-lightbox] { cursor: zoom-in; display: block; overflow: hidden; border-radius: var(--radius-card); }
a[data-lightbox] img { transition: transform .5s var(--ease), filter .3s; }
a[data-lightbox]:hover img { transform: scale(1.04); filter: brightness(.94); }

/* Carrousel (scroll-snap natif) */
.carousel { position: relative; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.carousel__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.carousel__btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: 50%; background: transparent; color: var(--c-text); cursor: pointer; transition: background-color .2s, color .2s; }
.carousel__btn:hover:not(:disabled) { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.carousel__btn:disabled, .lightbox__btn:disabled { opacity: .3; cursor: default; }
.carousel__dots button:hover { background: var(--c-dark); }
.carousel__btn svg { width: 18px; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button { width: 28px; height: 3px; padding: 0; border: 0; background: var(--c-line); cursor: pointer; transition: background-color .2s; }
.carousel__dots button[aria-current="true"] { background: var(--c-primary); }

/* Lightbox ---------------------------------------------------------------- */
html.lb-open { overflow: hidden; }
html.lb-open body { padding-right: var(--scrollbar, 0px); }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 23, 21, .94); color: var(--c-light); overscroll-behavior: contain; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 13px; }
.lightbox__tools { display: flex; gap: 8px; }
.lightbox [hidden] { display: none !important; }
.lightbox__btn { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); background: transparent; color: inherit; font: 600 13px/1 var(--font); text-decoration: none; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.12); color: inherit; }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; touch-action: pan-y pinch-zoom; }
.lightbox__stage { overflow: hidden; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; background: var(--c-white); user-select: none; }
.lightbox__nav { display: contents; } /* desktop : flèches de part et d'autre de l'image */
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; } .lightbox__next { right: 12px; }
.lightbox__caption { padding: 12px 16px 18px; text-align: center; font-size: 14px; min-height: 48px; }
@media (max-width: 700px) {
    .lightbox__stage { padding: 0 8px; }
    .lightbox[open] { grid-template-rows: auto auto auto; align-content: center; } /* image, flèches et légende groupées au centre */
    .lightbox__bar { position: absolute; top: 0; left: 0; right: 0; z-index: 1; }
    .lightbox__stage img { max-height: calc(100dvh - 260px); }
    .lightbox__nav { display: flex; justify-content: space-between; padding: 12px 8px 0; } /* mobile : sous l'image, aux bords */
    .lightbox__nav .lightbox__btn { min-width: 36px; height: 36px; padding: 0; }
    .lightbox__nav .lightbox__btn svg { width: 16px; height: 16px; }
    .lightbox__prev, .lightbox__next { position: static; transform: none; }
}

/* Les appartements : explorateur ---------------------------------------- */
.lots-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lots-head .eyebrow { flex: 1 1 auto; }
.lots-head .eyebrow, .lots-head__count { white-space: nowrap; }
.lots-head__count { font-size: 14px; color: var(--c-muted); margin: 0 0 1.4em; }
.lots-head__count strong { color: var(--c-primary); font-size: 18px; }
.explorer {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "tabs tabs" "stage panel";
    gap: 20px 32px; margin: 8px 0 clamp(48px, 6vw, 80px);
}
.explorer__tabs { grid-area: tabs; display: flex; gap: 6px; flex-wrap: wrap; }
.explorer__tabs button {
    padding: 9px 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: transparent;
    font: 600 13px/1.2 var(--font); color: var(--c-text); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.explorer__tabs button:hover { border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); }
.explorer__tabs button[aria-selected="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.explorer__stage { grid-area: stage; position: relative; background: var(--c-light); border: 1px solid var(--c-line); border-radius: var(--radius-card); overflow: hidden; }
.explorer__view { position: relative; }
.explorer__view[hidden] { display: none; }
.explorer__view > svg { width: 100%; height: auto; display: block; }
.explorer__view .explorer__zoom svg { width: 18px; height: 18px; flex: none; }
.explorer__zoom {
    display: flex; align-items: center; gap: 8px; margin: 0 14px 14px auto;
    padding: 8px 14px; border: 0; border-radius: var(--radius); background: var(--c-white); color: var(--c-text);
    font: 600 13px/1 var(--font); box-shadow: 0 2px 10px rgba(0,0,0,.08); cursor: zoom-in;
}
.explorer__zoom:hover { color: var(--c-primary); }
.explorer__panel { grid-area: panel; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); display: grid; }
/* Toutes les fiches occupent la même case : la hauteur du panneau ne change pas au survol (pas de saut de mise en page) */
.explorer__panel .lot-card { grid-area: 1 / 1; }
.explorer__panel .lot-card[hidden] { display: block; visibility: hidden; }
.lot-card { border: 1px solid var(--c-line); border-radius: var(--radius-card); padding: 24px; background: var(--c-white); font-size: 14px; }
.lot-card[hidden] { display: none; }
.lot-card--empty p:not(.eyebrow) { color: var(--c-muted); }
.lot-card__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: 26px; font-weight: 700; color: var(--c-primary); }
.lot-card__title .status { font-size: 13px; font-weight: 400; color: var(--c-text); }
.lot-card__type { margin: 4px 0 18px; color: var(--c-muted); }
.lot-card__data { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.lot-card__data > div { padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--c-dark) 15%, transparent); }
.lot-card__price { font-size: 17px; font-weight: 600 !important; color: var(--c-primary); }
.lot-card__hint { margin: 14px 0 0; font-size: 12.5px; color: var(--c-muted); }
.lot-card__data dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.lot-card__data dd { margin: 2px 0 0; font-weight: 400; }
.legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }

/* Zones et pastilles (communes à toutes les vues) */
.lot-zone { cursor: pointer; }
.lot-zone { --zone: var(--state-a); }
.lot-zone[data-state="b"] { --zone: var(--state-b); }
.lot-zone > * { fill: var(--zone); fill-opacity: 0; stroke: var(--zone); stroke-opacity: 0; stroke-width: 2px; vector-effect: non-scaling-stroke; transition: fill-opacity .25s var(--ease), stroke-opacity .25s var(--ease); }
.lot-zone:hover > *, .lot-zone.is-active > * { fill-opacity: .5; stroke-opacity: 1; stroke-width: 3px; }
.lot-zone[data-state="c"] { pointer-events: none; }
.lot-zone[data-state="c"] > * { fill: var(--hatch); fill-opacity: 1; stroke: var(--state-c); stroke-opacity: .9; stroke-width: 1.5px; }
.lot-pin { cursor: pointer; outline: none; }
.lot-pin circle { fill: var(--state-a); stroke: var(--c-white); stroke-width: 5; transition: transform .25s var(--ease); }
.lot-pin text { fill: var(--c-white); font: 600 38px/1 var(--font); text-anchor: middle; pointer-events: none; }
.lot-pin:hover circle, .lot-pin.is-active circle, .lot-pin:focus-visible circle { transform: scale(1.18); }
.lot-pin:focus-visible circle { stroke: var(--c-text); stroke-width: 8; }
.lot-pin[data-state="b"] circle { fill: var(--state-b); }
.lot-pin[data-state="c"] { pointer-events: none; cursor: default; }
.lot-pin[data-state="c"] circle { fill: var(--state-c); }

@media (max-width: 760px) {
    .explorer__view .lot-pin circle, .explorer__view .lot-pin text { scale: 1.8; }
}
@media (max-width: 960px) {
    .explorer { grid-template-columns: 1fr; grid-template-areas: "tabs" "stage" "panel"; }
    .explorer__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
    .explorer__tabs button { flex: none; }
}
.explorer__touch-hint { display: none; }
@media (hover: none), (max-width: 960px) {
    .explorer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "stage" "hint"; }
    .explorer__panel { display: none; }
    .explorer__touch-hint { display: block; grid-area: hint; margin: -6px 0 0; font-size: 13px; color: var(--c-muted); }
}

/* Tableau des lots ------------------------------------------------------- */
.lots-table table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.lots-table thead th { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 0 10px 14px; border-bottom: 1px solid var(--c-text); vertical-align: bottom; }
.lots-table tbody tr { border-bottom: 1px solid var(--c-text); transition: background-color .2s; scroll-margin-top: calc(var(--header-h) + 24px); }
.lots-table tbody th, .lots-table td { padding: 20px 10px; vertical-align: middle; }
.lots-table tbody td:not(.lot-actions) { white-space: nowrap; } /* « 119.10 m² » ou « CHF 935’000.- » ne se coupent jamais ; les retours à la ligne voulus passent par <br> */
.lots-table tbody th { font-weight: 600; font-size: 15px; }
.lots-table tbody tr { --row-tint: var(--state-a); }
.lots-table tbody tr[data-state="b"] { --row-tint: var(--state-b); }
.lots-table tbody tr[data-state="c"] { --row-tint: var(--state-c); }
.lots-table tbody tr.is-active, .lots-table tbody tr:hover { background: color-mix(in srgb, var(--row-tint) 16%, transparent); }
.lots-table tbody tr:focus { outline: none; }
.lots-table tbody tr[data-state="c"] { color: var(--c-muted); }
.lot-actions { white-space: nowrap; }
.lot-buttons { display: inline-flex; gap: 6px; }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--a::before { background: var(--state-a); }
.status--b::before { background: var(--state-b); }
.status--c::before { background: var(--state-c); }

@media (max-width: 1080px) {
    .lot-actions { white-space: normal; }
    .lot-actions .lot-buttons { flex-direction: column; }
}
/* Mobile et tablette : chaque lot devient une carte (le tableau complet demande ~880 px) */
@media (max-width: 960px) {
    .lots-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .lots-table table, .lots-table tbody, .lots-table tr, .lots-table th, .lots-table td { display: block; }
    .lots-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 20px 16px; text-align: left; border: 1px solid var(--c-line); border-radius: var(--radius-card); margin-bottom: 14px; }
    .lots-table tbody th, .lots-table td { padding: 0; }
    .lots-table tbody th { grid-column: 1 / -1; font-size: 20px; }
    .lots-table tbody th::before { content: attr(data-label) " "; }
    .lots-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
    .lot-actions { grid-column: 1 / -1; }
    .lot-actions .lot-buttons { flex-direction: column; display: flex; }
    .lot-actions .btn { width: 100%; }
}

/* Formulaire (plugin Form de Grav) ----------------------------------------- */
.contact-form { margin-top: 36px; background: var(--c-white); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-card); }
.form-thanks { display: grid; justify-items: center; gap: 4px; padding: clamp(24px, 5vw, 56px) 0; text-align: center; outline: none; animation: thanks-in .5s var(--ease) both; }
.form-thanks__icon { width: 56px; height: 56px; color: var(--c-primary); margin-bottom: 12px; }
.form-thanks__title { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: var(--c-primary); }
.form-thanks p:last-child { margin: 0; max-width: 46ch; }
@keyframes thanks-in { from { opacity: 0; transform: translateY(10px); } }
.contact-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.contact-form .form-field { grid-column: 1 / -1; margin-bottom: 18px; }
.contact-form .form-field.half { grid-column: span 1; }
@media (max-width: 600px) { .contact-form form { grid-template-columns: 1fr; } .contact-form .form-field.half { grid-column: 1 / -1; } }
.contact-form .form-label label, .contact-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.contact-form .required { color: var(--c-primary); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
    width: 100%; font: 400 15px/1.4 var(--font); color: var(--c-text);
    background: var(--c-white); border: 1px solid var(--c-line); border-radius: 10px; padding: 12px 14px;
    transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 20%, transparent); }
.contact-form .checkboxes label, .contact-form .form-input-wrapper label.inline { display: flex; gap: 10px; align-items: flex-start; font-weight: 300; font-size: 13.5px; }
.contact-form input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-primary); flex: none; }
.contact-form .buttons, .contact-form .button-wrapper { grid-column: 1 / -1; text-align: center; margin-top: 6px; }
.contact-form button[type="submit"] {
    padding: 12px 34px; border: 1px solid var(--c-primary); border-radius: var(--radius);
    background: var(--c-primary); color: var(--c-white); font: 600 15px/1.2 var(--font); cursor: pointer;
}
.contact-form button[type="submit"]:hover { background: var(--c-dark); border-color: var(--c-dark); }
.contact-form .form-errors, .contact-form .notices { grid-column: 1 / -1; }
.notices { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.notices.error, .notices.red { background: #fbe9e7; color: #8a2a22; }
.notices.success, .notices.green { background: #e7f4ec; color: #1f5a35; }
.form-field .form-errors, .has-errors .form-errors { color: var(--state-c); font-size: 13px; margin-top: 4px; }

/* Partenaires & footer --------------------------------------------------- */
.partner { padding-block: clamp(56px, 8vw, 100px); }
.partner--dark { background: var(--c-dark); color: var(--c-light); }
.partner--dark .eyebrow { color: var(--c-light); }
.partner--white { background: var(--c-white); }
.partner--light { background: var(--c-light); }
.partner__inner { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 40px; align-items: center; font-size: 14px; }
.partner__logo img { max-height: 90px; max-width: 280px; width: auto; }
.partner__info .eyebrow { margin-bottom: 1em; }
.partner__info p, .partner__info address { margin: 0 0 .9em; }
.partner a { text-decoration: none; }
.partner a:hover { text-decoration: underline; color: inherit; }
.partner__social a { transition: transform .2s var(--ease), opacity .2s; }
.partner__social a:hover { transform: translateY(-2px); opacity: .85; }
.partner__social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.partner__social a { display: grid; place-items: center; width: 36px; height: 36px; background: var(--c-primary); color: var(--c-white); }
.partner--dark .partner__social a { background: var(--c-light); color: var(--c-dark); }
.partner__social svg { width: 18px; height: 18px; }
/* Sur fond foncé, le logo passe en blanc intégral (lisible quel que soit le fichier fourni) */
.partner--dark .partner__logo img { filter: brightness(0) invert(1); }
@media (max-width: 760px) {
    .partner__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; justify-items: center; }
    .partner__logo img { margin-inline: auto; max-width: 220px; }
    .partner__info .eyebrow { justify-content: center; text-wrap: balance; }
    .partner__info .eyebrow::before { display: none; } /* trait + texte centré sur 2 lignes = déséquilibré */
    .partner__social { justify-content: center; }
}

.site-footer { background: var(--c-primary); color: var(--c-light); padding: 44px 0 40px; font-size: 12px; text-align: center; position: relative; }
.site-footer__disclaimer { opacity: .85; margin: 0 0 18px; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.site-footer a { color: inherit; }
.site-footer { padding-bottom: 0; }
.site-footer__credits { margin-top: 36px; padding: 16px 0; border-top: 1px solid color-mix(in srgb, var(--c-light) 20%, transparent); font-size: 11px; letter-spacing: .02em; opacity: .85; }
.site-footer__credits .container { display: flex; align-items: center; justify-content: center; }
.site-footer__credits a { display: inline-flex; transition: opacity .2s; }
.site-footer__credits a:hover { opacity: .7; }
.site-footer__credits svg { height: 11px; width: auto; fill: currentColor; margin-left: 2px; margin-top: -4px; }
/* Contact rapide : bouton flottant repliable (remplace le retour en haut) */
.quick-contact {
    position: fixed; right: 24px; bottom: 24px; z-index: 45;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .3s var(--ease);
}
.quick-contact.is-visible { opacity: 1; visibility: visible; transform: none; }
.quick-contact__toggle {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: var(--c-primary); color: var(--c-white); border: 1px solid color-mix(in srgb, var(--c-white) 35%, transparent);
    box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: background-color .2s, transform .2s var(--ease);
}
.quick-contact__toggle:hover { background: var(--c-dark); transform: scale(1.06); }
.quick-contact__toggle svg { width: 24px; height: 24px; grid-area: 1 / 1; transition: opacity .2s, transform .25s var(--ease); }
.quick-contact__toggle .icon-close { opacity: 0; transform: rotate(-90deg); }
.quick-contact__toggle[aria-expanded="true"] .icon-open { opacity: 0; transform: rotate(90deg); }
.quick-contact__toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: none; }
.quick-contact__menu { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 200px; }
.quick-contact__menu[hidden] { display: none; }
.quick-contact__menu .btn { justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.quick-contact__menu .btn--outline:not(:hover) { background: var(--c-white); } /* fond plein sur la page, hover d'origine conservé */
.quick-contact__menu .btn--outline:hover { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-white); }
.quick-contact.is-open .quick-contact__menu .btn { animation: qc-in .25s var(--ease) both; }
.quick-contact.is-open .quick-contact__menu .btn:nth-child(2) { animation-delay: .05s; }
@keyframes qc-in { from { opacity: 0; transform: translateY(8px); } }
.quick-contact__number { display: none; }
@media (min-width: 761px) { .quick-contact__number { display: inline; margin-left: .4em; font-weight: 400; } }
@media (max-width: 760px) { .quick-contact { right: 16px; bottom: 16px; } }

/* Pages intérieures */
.page-content { padding-top: calc(var(--header-h) + var(--section) * .6); min-height: 70vh; }
.page-content h2 { font-size: 20px; margin: 1.6em 0 .6em; }

/* Bandeau cookies (CookieConsent v3) aux couleurs du site */
#cc-main {
    --cc-font-family: var(--font);
    --cc-modal-border-radius: 16px;
    --cc-btn-border-radius: 999px;
    --cc-primary-color: var(--c-text);
    --cc-secondary-color: color-mix(in srgb, var(--c-text) 75%, transparent);
    --cc-btn-primary-bg: var(--c-primary);
    --cc-btn-primary-border-color: var(--c-primary);
    --cc-btn-primary-hover-bg: var(--c-dark);
    --cc-btn-primary-hover-border-color: var(--c-dark);
    --cc-btn-secondary-bg: var(--c-light);
    --cc-btn-secondary-border-color: var(--c-light);
    --cc-btn-secondary-hover-bg: var(--c-sand);
    --cc-btn-secondary-hover-border-color: var(--c-sand);
    --cc-toggle-on-bg: var(--c-primary);
    --cc-link-color: var(--c-primary);
    --cc-cookie-category-block-bg: var(--c-white);
    --cc-cookie-category-block-border: var(--c-line);
    --cc-cookie-category-block-hover-bg: var(--c-light);
    --cc-cookie-category-block-hover-border: var(--c-line);
    --cc-cookie-category-expanded-block-bg: var(--c-white);
    --cc-cookie-category-expanded-block-hover-bg: var(--c-line);
    --cc-toggle-off-bg: color-mix(in srgb, var(--c-text) 45%, transparent);
    --cc-toggle-readonly-bg: color-mix(in srgb, var(--c-primary) 25%, var(--c-white));
    --cc-separator-border-color: var(--c-line);
}

/* CookieConsent réutilise l'arrondi des boutons (pilule) pour les blocs : on garde la pilule
   pour les boutons uniquement, les blocs reprennent l'arrondi des champs du site. */
body #cc-main .pm__section, body #cc-main .pm__section--toggle, body #cc-main .pm__section-title,
body #cc-main .pm__section--toggle .pm__section-desc-wrapper { border-radius: var(--radius-field); } /* "body" : passe devant la feuille de CookieConsent, chargée après */
body #cc-main .pm__section--toggle .pm__section-desc-wrapper { border-top-left-radius: 0; border-top-right-radius: 0; }
body #cc-main .pm__section--toggle.is-expanded .pm__section-title { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Apparition au défilement (désactivée si l'utilisateur réduit les animations) */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
    .js .reveal.is-visible { opacity: 1; transform: none; }
}
