/* Midi Mas — nouvelle page d'accueil « L'endroit et l'envers » (proposition locale).
   Se pose par-dessus site.css : mêmes couleurs, mêmes polices, mêmes boutons « Voile ».
   Fil rouge : une photo réelle face à un dessin au trait or (cotes, maquette, coupe, carte) ;
   ce qui est caché ou en projet est en or, ce qui est fini et visible est en ivoire.
   Les états animés n'existent que sous html.hc-anim (posé par accueil.js) : sans script,
   ou avec les animations réduites, les dessins s'affichent complets. */

/* ---------- Typographie commune ---------- */
.hc-title { margin: 0 0 .65em; font-size: clamp(24px, 2.5vw, 36px); font-weight: 300; letter-spacing: .14em; line-height: 1.35; text-transform: uppercase; text-wrap: balance; }
.hc-sub { text-wrap: balance; margin: 0 0 30px; color: var(--gold-light); font-family: var(--serif); font-size: clamp(21px, 1.8vw, 26px); font-style: italic; font-weight: 400; line-height: 1.4; }
.hc-sub--big { font-size: clamp(26px, 2.7vw, 38px); }
.hc-sub--ivory { color: var(--text); }
.hc-lede { color: var(--text); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; }
.hc-exergue { text-wrap: balance; position: relative; margin: 34px 0 0; padding-top: 28px; color: var(--text); font-family: var(--serif); font-size: clamp(22px, 1.9vw, 27px); font-style: italic; line-height: 1.45; }
.hc-exergue::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 1px; background: var(--gold); }
.hc-rule { width: 48px; height: 1px; margin: 32px 0; border: 0; background: var(--gold); }

/* Fiche : mot d'accroche (Cormorant), NOM · COMMUNE, une phrase */
.hc-fiche { display: flex; flex-direction: column; gap: 5px; margin: 16px 0 0; }
.hc-fiche em { color: var(--gold-light); font-family: var(--serif); font-size: clamp(21px, 1.7vw, 25px); font-style: italic; font-weight: 400; line-height: 1.15; }
.hc-fiche__id { color: var(--text); font-size: 11.5px; font-weight: 500; letter-spacing: .26em; line-height: 1.6; text-transform: uppercase; }
.hc-fiche__id span { display: block; margin-top: 1px; color: var(--muted); font-size: 13.5px; font-weight: 400; letter-spacing: .06em; text-transform: none; }
.hc-fiche__txt { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* Les figures de la page n'ont pas les marges par défaut du navigateur */
.hc-tri__item, .hc-coupe-fig, .hc-map { margin: 0; }

/* Cadres d'images */
.hc-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel); }
.hc-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hc-frame--dessin { background: #000; }
.hc-frame--coupe { aspect-ratio: 1440 / 780; background: var(--panel); outline: 1px solid var(--line); outline-offset: -1px; }
.hc-coupe-fig .hc-fiche { margin-top: 18px; }
@media (max-width: 759px) { .hc-frame--coupe { aspect-ratio: 1 / 1; } }

/* ---------- 1. Ouverture ---------- */
.hc-ouverture { padding-block: clamp(84px, 9vw, 140px) clamp(40px, 4vw, 64px); }
.hc-ouverture .t-intro { max-width: 640px; color: var(--text-2); font-size: clamp(13.5px, 1.2vw, 17px); letter-spacing: .3em; }
.hc-press { margin: clamp(56px, 6.5vw, 88px) auto 0; }
/* guillemets français en icônes, ouvrant et fermant, collés aux mots */
.hc-q { display: inline-block; width: .38em; height: .3em; margin: 0 .26em; fill: none; stroke: var(--gold); stroke-width: 1.4; vertical-align: .14em; }
.hc-press blockquote { margin: 0; }
.hc-press blockquote p { max-width: 15ch; margin: 0 auto; color: var(--text); font-family: var(--serif); font-size: clamp(36px, 4.8vw, 68px); font-style: italic; font-weight: 400; line-height: 1.1; text-wrap: balance; }
.hc-press figcaption { margin-top: 20px; color: var(--muted); font-size: 11.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.hc-press figcaption i { color: var(--text-2); font-family: var(--serif); font-size: 19px; letter-spacing: .02em; text-transform: none; }
.hc-ouverture__body { margin-top: clamp(52px, 6vw, 76px); }
.hc-ouverture__body .lede { margin: 0 0 14px; }
.hc-ouverture__body p:last-child { max-width: 36em; margin: 0 auto; }
/* retours à la ligne voulus sur ordinateur seulement : citation et présentation sur deux lignes */
.hc-br-d { display: none; }
@media (min-width: 900px) {
  .hc-br-d { display: inline; }
  .hc-press blockquote p { max-width: none; }
  .hc-ouverture__body { margin-inline: calc((100% - min(100vw - 2 * var(--gutter), 1000px)) / 2); }
  .hc-ouverture__body p:last-child { max-width: none; }
}
.hc-figures { display: grid; max-width: 1080px; margin: clamp(60px, 7vw, 100px) auto 0; padding: clamp(44px, 5vw, 60px) 0 0; border-top: 1px solid var(--line); list-style: none; }
.hc-figures li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 16px; }
.hc-figures span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .26em; line-height: 1.4; text-transform: uppercase; }
.hc-figures strong { color: var(--text); font-family: var(--serif); font-size: clamp(50px, 5.4vw, 80px); font-style: italic; font-weight: 400; line-height: 1; font-variant-numeric: lining-nums; }
.hc-figures strong i { margin: 0 .28em; color: var(--muted); font-family: var(--sans); font-size: .3em; font-style: normal; letter-spacing: .12em; vertical-align: .55em; }
@media (min-width: 760px) {
  .hc-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hc-figures li + li { border-left: 1px solid var(--line); }
}
@media (max-width: 759px) {
  .hc-figures { gap: 0; }
  .hc-figures li + li { margin-top: 34px; padding-top: 34px; background: linear-gradient(var(--gold), var(--gold)) 50% 0 / 48px 1px no-repeat; }
}

/* ---------- En-tête de chapitre (I) ---------- */
.hc-head { display: grid; gap: 26px clamp(28px, 6vw, 110px); margin-bottom: clamp(56px, 6vw, 90px); }
.hc-head__txt { font-size: 17px; }
.hc-head__txt p { margin: 0; }
.hc-head__txt .hc-exergue { margin-top: 36px; }
.hc-head .hc-title { margin: 0; }
@media (min-width: 900px) { .hc-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .hc-head__txt { padding-top: 34px; } }

/* ---------- 2. I · La mesure : triptyque Matin · Midi · Soir, en arc comme la course du soleil ---------- */
.hc-tri { display: grid; gap: 56px clamp(16px, 2vw, 32px); }
@media (min-width: 900px) {
  .hc-tri { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .hc-tri__item:nth-child(odd) { margin-top: clamp(32px, 4vw, 64px); }
  .hc-tri__item:nth-child(2) { transition-delay: .12s; }
  .hc-tri__item:nth-child(3) { transition-delay: .24s; }
}
.hc-tri .hc-frame { aspect-ratio: 3 / 2; }
@media (hover: hover) { .hc-tri__item:hover .hc-frame img { transform: scale(1.03); } }

/* Cotes d'architecte autour de la photo du matin (sans chiffres) */
.hc-cotes { position: relative; }
.hc-cotes + .hc-fiche { margin-top: 34px; }
.hc-cote { position: absolute; background: var(--gold); }
.hc-cote::before, .hc-cote::after { content: ""; position: absolute; width: 11px; height: 1px; background: var(--gold); transform: rotate(-45deg); }
.hc-cote--v { top: 0; bottom: 0; left: -18px; width: 1px; }
.hc-cote--v::before { top: 0; left: -5px; }
.hc-cote--v::after { bottom: 0; left: -5px; }
.hc-cote--h { left: 0; right: 0; bottom: -18px; height: 1px; }
.hc-cote--h::before { top: 0; left: -5px; }
.hc-cote--h::after { top: 0; right: -5px; }
.hc-anim .hc-cote--v { transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease) .3s; }
.hc-anim .hc-cote--h { transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) 1.9s; }
.hc-anim .is-drawn .hc-cote { transform: none; }
@media (max-width: 899px) { .hc-cote--v { display: none; } }

/* ---------- 3. II · L'essayage : la maquette numérique tourne au rythme du défilement ----------
   Version de base (pas d'animation, ou script absent) : section ordinaire — titre, vue de face en image fixe, phrases.
   Version animée (.hc-anim .hc-essai.is-live, posée par accueil.js) : la section mesure 460vh (400 sur téléphone) ; la scène reste fixée à l'écran pendant que
   le défilement fait tourner puis transformer la maquette (121 images de la vidéo dessinées dans le canvas ; --p de 0 à 1).
   Trois plans à des vitesses différentes : la trame or, le grand « II », la maquette (fusion « screen » : son noir
   laisse voir les plans du dessous) ; le titre reste, les phrases se succèdent. */
.hc-essai { position: relative; background: #000; border-top: 1px solid var(--line); }
.hc-essai__stage { position: relative; display: grid; gap: 40px; width: min(100% - 2 * var(--gutter), 1240px); margin: 0 auto; padding-block: clamp(72px, 9vw, 150px); }
.hc-essai__col { display: contents; }
.hc-essai__head { order: -1; }
.hc-essai__model { order: 0; margin: 0; }
.hc-essai__beats { order: 1; margin: 0; padding: 0; list-style: none; }
.hc-essai__grid, .hc-essai__num, .hc-essai__canvas, .hc-essai__hud { display: none; }
.hc-essai__poster { width: 100%; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.hc-essai__head .hc-sub { margin-bottom: 0; }
.hc-essai__beat p { margin: 0 0 .9em; }
.hc-essai__lead { color: var(--text); font-family: var(--serif); font-size: clamp(25px, 2.3vw, 34px); font-style: italic; line-height: 1.3; text-wrap: balance; }
.hc-essai__lead strong { color: var(--gold-light); font-weight: 500; }
.hc-essai__verb { color: var(--gold-light); font-family: var(--serif); font-size: clamp(32px, 3.2vw, 48px); font-style: italic; line-height: 1.15; text-wrap: balance; }
.hc-essai__beat--end p:not(.hc-essai__lead) { max-width: 30em; color: var(--text-2); font-size: 16.5px; line-height: 1.75; }

.hc-anim .hc-essai.is-live { height: 460vh; height: 460svh; }
/* --essai-x : marge de la mise en page (contenu de 1680 px au plus) ; --essai-m : bord gauche de la maquette, aux 37 % de ce contenu */
.hc-anim .hc-essai.is-live .hc-essai__stage { --essai-x: max(var(--gutter), (100% - 1680px) / 2); --essai-m: calc(var(--essai-x) + (100% - 2 * var(--essai-x)) * .37); position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100svh; margin: 0; padding: 0; overflow: hidden; }
/* plan 1 : trame d'architecte, la plus lente */
.hc-anim .hc-essai.is-live .hc-essai__grid { display: block; position: absolute; inset: -12% 0; background-image: linear-gradient(rgba(177, 151, 119, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(177, 151, 119, .075) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 58% 52% at 64% 52%, #000 0, transparent 78%); mask-image: radial-gradient(ellipse 58% 52% at 64% 52%, #000 0, transparent 78%); transform: translate3d(0, calc(var(--p, 0) * -90px), 0); }
/* plan 2 : le chiffre du chapitre, en sens inverse */
.hc-anim .hc-essai.is-live .hc-essai__num { display: block; position: absolute; right: 3vw; top: 50%; color: var(--gold); font-family: var(--serif); font-size: 64vh; font-size: 64svh; font-style: italic; font-weight: 400; line-height: .8; opacity: .06; pointer-events: none; transform: translate3d(0, calc(-50% + (.5 - var(--p, 0)) * 34vh), 0); }
/* plan 3 : la maquette. La fusion est posée sur le cadre transformé (sur le canvas, elle resterait enfermée dans le cadre) */
.hc-anim .hc-essai.is-live .hc-essai__model { position: absolute; top: 14vh; bottom: 16vh; left: var(--essai-m); right: calc(var(--essai-x) + 1vw); mix-blend-mode: screen; transform: scale(calc(1.04 - var(--p, 0) * .1)); transform-origin: 50% 60%; }
.hc-anim .hc-essai.is-live .hc-essai__canvas { display: block; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 98%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 98%, transparent 100%); }
.hc-anim .hc-essai.is-live .hc-essai__poster { display: none; }
/* textes : une seule colonne (titre en haut, phrase en bas), qui ne peut pas se chevaucher */
.hc-anim .hc-essai.is-live .hc-essai__col { position: absolute; z-index: 2; left: calc(var(--essai-x) + 3vw); top: calc(var(--header-h) + 6vh); bottom: 15vh; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; width: min(28vw, 420px); }
.hc-anim .hc-essai.is-live .hc-essai__beats { display: grid; }
.hc-anim .hc-essai.is-live .hc-essai__beat { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.hc-anim .hc-essai.is-live .hc-essai__beat.is-on { opacity: 1; transform: none; transition: opacity .7s var(--ease) .28s, transform 1s var(--ease) .28s; }
.hc-anim .hc-essai.is-live .hc-essai__beat p:last-child { margin-bottom: 0; }
/* cartouche : nature du dessin, angle de vue, avancement en cote or */
.hc-anim .hc-essai.is-live .hc-essai__hud { display: flex; position: absolute; z-index: 2; left: var(--essai-m); right: var(--essai-x); bottom: 6.5vh; align-items: center; gap: 22px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .26em; line-height: 1.4; text-transform: uppercase; }
.hc-essai__label { white-space: nowrap; }
.hc-essai__views { display: grid; min-width: 15ch; }
.hc-essai__views span { grid-area: 1 / 1; color: var(--gold-light); opacity: 0; white-space: nowrap; transition: opacity .5s var(--ease); }
.hc-essai__views span.is-on { opacity: 1; }
.hc-essai__bar { position: relative; flex: 1; height: 1px; background: var(--line); }
.hc-essai__bar::before, .hc-essai__bar::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--gold); transform: rotate(45deg); }
.hc-essai__bar::before { left: 0; }
.hc-essai__bar::after { right: 0; }
.hc-essai__bar i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
/* ordinateurs portables peu hauts : textes plus compacts */
@media (min-width: 900px) and (max-height: 760px) {
  .hc-anim .hc-essai.is-live .hc-essai__col { top: calc(var(--header-h) + 3vh); bottom: 12vh; }
  .hc-anim .hc-essai.is-live .hc-essai__beat--end p:not(.hc-essai__lead) { font-size: 15px; line-height: 1.6; }
  .hc-anim .hc-essai.is-live .hc-essai__verb { font-size: clamp(28px, 2.8vw, 40px); }
}
@media (min-width: 900px) and (max-height: 640px) { .hc-anim .hc-essai.is-live .hc-essai__head .hc-sub { display: none; } }

/* téléphone (en hauteur) : titre en haut, maquette au centre, phrase en bas */
@media (max-width: 899px) {
  .hc-anim .hc-essai.is-live { height: 400vh; height: 400svh; }
  .hc-anim .hc-essai.is-live .hc-essai__col { left: var(--gutter); right: var(--gutter); width: auto; top: calc(var(--header-h) + 14px); bottom: calc(5svh + 34px); }
  .hc-anim .hc-essai.is-live .hc-essai__head .hc-title { font-size: 22px; margin-bottom: .4em; }
  .hc-anim .hc-essai.is-live .hc-essai__head .hc-sub { font-size: 19px; }
  /* la maison remplit presque toute la largeur de la vidéo : marges et agrandissement réduit pour qu'elle ne sorte jamais de l'écran
     (5vw / 1vw : la maison est un peu à gauche dans la vidéo) ; bords de la vidéo en noir pur (fusion « screen ») : pas besoin de fondu */
  .hc-anim .hc-essai.is-live .hc-essai__model { top: 34svh; bottom: auto; left: 5vw; right: 1vw; height: 36svh; transform-origin: 50% 50%; transform: scale(calc(1.06 - var(--p, 0) * .1)); }
  .hc-anim .hc-essai.is-live .hc-essai__canvas { -webkit-mask-image: none; mask-image: none; }
  .hc-anim .hc-essai.is-live .hc-essai__verb { font-size: 30px; }
  .hc-anim .hc-essai.is-live .hc-essai__lead { font-size: 23px; }
  .hc-anim .hc-essai.is-live .hc-essai__beat--end p:not(.hc-essai__lead) { font-size: 14.5px; line-height: 1.65; }
  .hc-anim .hc-essai.is-live .hc-essai__hud { left: var(--gutter); right: var(--gutter); bottom: 4svh; gap: 14px; }
  .hc-essai__label { display: none; }
  .hc-anim .hc-essai.is-live .hc-essai__num { display: none; }
  .hc-anim .hc-essai.is-live .hc-essai__grid { background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 48%, #000 0, transparent 80%); mask-image: radial-gradient(ellipse 80% 40% at 50% 48%, #000 0, transparent 80%); }
}
/* tablette en hauteur : plus grand, moins de vide */
@media (min-width: 600px) and (max-width: 899px) {
  .hc-anim .hc-essai.is-live .hc-essai__head .hc-title { font-size: 24px; }
  .hc-anim .hc-essai.is-live .hc-essai__head .hc-sub { font-size: 22px; }
  .hc-anim .hc-essai.is-live .hc-essai__model { top: 22svh; height: 50svh; left: 5vw; right: 1vw; }
  .hc-anim .hc-essai.is-live .hc-essai__verb { font-size: 40px; }
  .hc-anim .hc-essai.is-live .hc-essai__lead { font-size: 30px; }
  .hc-anim .hc-essai.is-live .hc-essai__beats { width: min(560px, 100%); }
  .hc-anim .hc-essai.is-live .hc-essai__col { bottom: calc(5svh + 44px); }
}
/* téléphone à l'horizontale : la disposition de l'ordinateur, en compact */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  .hc-anim .hc-essai.is-live .hc-essai__col { right: auto; width: 36%; top: calc(var(--header-h) + 8px); bottom: calc(4svh + 30px); }
  .hc-anim .hc-essai.is-live .hc-essai__head .hc-sub { display: none; }
  .hc-anim .hc-essai.is-live .hc-essai__model { top: calc(var(--header-h) + 8px); bottom: 12svh; left: 38%; right: 0; height: auto; }
  .hc-anim .hc-essai.is-live .hc-essai__canvas { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 94%, transparent 100%); }
  .hc-anim .hc-essai.is-live .hc-essai__beat--end p:not(.hc-essai__lead) { display: none; }
  .hc-anim .hc-essai.is-live .hc-essai__verb { font-size: 24px; }
  .hc-anim .hc-essai.is-live .hc-essai__lead { font-size: 19px; }
}

/* ---------- 4. Nos réalisations : annonce et charnière autour de la grille en ligne ---------- */
.hc-reals { padding-bottom: clamp(48px, 5vw, 76px); }
.hc-reals .t-title { margin-bottom: 20px; }
.hc-intro { margin: 0 auto; color: var(--text); font-family: var(--serif); font-size: clamp(23px, 2.1vw, 30px); font-style: italic; line-height: 1.4; }
.hc-note { max-width: 36em; margin: 12px auto 0; color: var(--muted); font-size: 16px; }
.hc-charniere { padding-block: clamp(56px, 6vw, 88px) clamp(24px, 3vw, 40px); }
.hc-charniere + .hc-envers { padding-top: clamp(40px, 5vw, 72px); }
.hc-charniere__t { margin: 0; color: var(--text); font-family: var(--serif); font-size: clamp(27px, 2.9vw, 40px); font-style: italic; line-height: 1.35; }
.hc-charniere__t span { display: block; }
.hc-charniere__t span + span { color: var(--gold-light); }
.hc-charniere .actions { justify-content: center; margin: 0 0 clamp(64px, 7vw, 104px); }

/* ---------- 5. III · L'envers : l'endroit (photo) et l'envers (coupe) ---------- */
.hc-envers__head { margin-bottom: clamp(48px, 5vw, 76px); }
.hc-envers__head .hc-sub { margin: 0; }
.hc-envers__end { margin-top: clamp(56px, 6vw, 90px); }
.hc-envers__end p { max-width: 36em; margin: 0 auto 1.1em; }
.hc-envers__end .actions { justify-content: center; }

/* Coupe de principe : gros œuvre et second œuvre en or, finitions en ivoire */
.hc-coupe { display: block; width: 100%; height: 100%; }
.hc-coupe .c-ctx { fill: none; stroke: var(--muted); stroke-width: 1.4; opacity: .5; }
.hc-coupe .c-hach { stroke: none; }
.hc-coupe #c-hachures path { stroke: var(--muted); stroke-width: 1.2; opacity: .55; }
.hc-coupe .c-layer { fill: none; stroke: var(--gold); stroke-width: 1.8; transition: opacity .5s var(--ease); }
.hc-coupe .c-so { stroke-width: 1.5; }
.hc-coupe .c-fi { stroke: var(--text); stroke-width: 2; }
.hc-coupe .c-dash { stroke-dasharray: 4 7; }
.hc-coupe .c-lbl { transition: opacity .6s var(--ease); }
.hc-coupe .c-lbl path { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .6; }
.hc-coupe .c-lbl text { fill: var(--gold-light); stroke: var(--panel); stroke-width: 8px; stroke-linejoin: round; paint-order: stroke fill; font-family: var(--sans); font-size: 18px; font-weight: 500; letter-spacing: .22em; }
.hc-coupe .c-lbl--fi text { fill: var(--text); }
.hc-coupe .c-lbl--fi path { stroke: var(--text); }
/* Tracé dans l'ordre même de la visite de chantier : gros œuvre, second œuvre, finitions */
.hc-anim .hc-coupe .c-tr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.hc-anim .hc-coupe .c-so .c-tr { transition-delay: .9s; }
.hc-anim .hc-coupe .c-fi .c-tr { transition-delay: 1.8s; }
.hc-anim .hc-coupe .c-dash, .hc-anim .hc-coupe .c-wave { opacity: 0; transition: opacity .9s .9s; }
.hc-anim .hc-coupe .c-lbl { opacity: 0; }
.hc-anim .is-drawn .hc-coupe .c-tr { stroke-dashoffset: 0; }
.hc-anim .is-drawn .hc-coupe .c-dash, .hc-anim .is-drawn .hc-coupe .c-wave { opacity: 1; }
.hc-anim .is-drawn .hc-coupe .c-lbl--go { opacity: 1; transition-delay: .6s; }
.hc-anim .is-drawn .hc-coupe .c-lbl--so { opacity: 1; transition-delay: 1.5s; }
.hc-anim .is-drawn .hc-coupe .c-lbl--fi { opacity: 1; transition-delay: 2.4s; }
/* Une strate survolée garde sa couche, les deux autres s'effacent */
.hc-coupe.has-hl [data-layer], .hc-anim .is-drawn .hc-coupe.has-hl [data-layer] { opacity: .2; transition-delay: 0s; }
.hc-coupe.has-hl [data-layer].is-hl, .hc-anim .is-drawn .hc-coupe.has-hl [data-layer].is-hl { opacity: 1; }
.hc-pastille { position: absolute; display: none; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1px solid var(--gold); border-radius: 50%; background: var(--panel); color: var(--gold-light); font-size: 10px; font-weight: 600; letter-spacing: .04em; transition: opacity .5s var(--ease); }
.hc-pastille[data-layer="fi"] { border-color: var(--text); color: var(--text); }
.hc-frame--coupe.has-hl .hc-pastille { opacity: .25; }
.hc-frame--coupe.has-hl .hc-pastille.is-hl { opacity: 1; }
@media (max-width: 759px) {
  .hc-coupe .c-lbl { display: none; }
  .hc-pastille { display: grid; }
  .hc-coupe .c-layer { stroke-width: 2.6; }
  .hc-coupe .c-so { stroke-width: 2.2; }
  .hc-coupe .c-fi { stroke-width: 2.8; }
  .hc-coupe .c-ctx { stroke-width: 2; }
}

/* Les trois strates */
.hc-strates { display: grid; margin: clamp(52px, 6vw, 84px) 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.hc-strates li { padding: 32px clamp(20px, 2.4vw, 40px) 10px 0; }
.hc-strates b { display: block; color: var(--gold); font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 56px; font-style: italic; font-weight: 400; line-height: 1; transition: opacity .6s var(--ease); }
.hc-strates li:nth-child(3) b { color: var(--text); }
.hc-strates__t { margin: 16px 0 10px; font-size: clamp(16px, 1.3vw, 19px); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; transition: color .35s var(--ease); }
.hc-strates p { margin: 0; font-size: 15.5px; }
.hc-strates li.is-hl .hc-strates__t { color: var(--gold-light); }
.hc-anim .hc-strates b { opacity: .3; }
.hc-anim .is-drawn .hc-strates li:nth-child(1) b { opacity: 1; transition-delay: .9s; }
.hc-anim .is-drawn .hc-strates li:nth-child(2) b { opacity: 1; transition-delay: 1.8s; }
.hc-anim .is-drawn .hc-strates li:nth-child(3) b { opacity: 1; transition-delay: 2.6s; }
.hc-anim .is-drawn .hc-strates li.is-hl b { opacity: 1; transition-delay: 0s; }
@media (min-width: 900px) {
  .hc-strates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hc-strates li + li { padding-left: clamp(20px, 2.4vw, 40px); border-left: 1px solid var(--line); }
}
@media (max-width: 899px) { .hc-strates li + li { border-top: 1px solid var(--line); } .hc-strates li { padding-bottom: 28px; } }

/* ---------- 6. IV · Le terrain : la carte, puis trois portes ---------- */
.hc-terrain__grid { display: grid; gap: clamp(40px, 5vw, 80px); }
@media (min-width: 1000px) { .hc-terrain__grid { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); align-items: center; } }
.hc-terrain__txt p { margin: 0 0 1em; }
.hc-terrain__h { margin: 0 0 14px; }
.hc-terrain__ask { margin-top: 18px; }
.hc-terrain__ask a { color: var(--gold-light); }
.hc-communes { margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hc-communes summary { position: relative; display: flex; align-items: center; min-height: 52px; padding-right: 36px; color: var(--text); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; list-style: none; }
.hc-communes summary::-webkit-details-marker { display: none; }
.hc-communes summary::before, .hc-communes summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 13px; height: 1px; background: var(--gold); transition: transform .45s var(--ease); }
.hc-communes summary::after { transform: rotate(90deg); }
.hc-communes[open] summary::after { transform: rotate(0deg); }
.hc-communes ul { columns: 2; column-gap: 24px; margin: 4px 0 20px; padding: 0; color: var(--text-2); font-size: 14px; line-height: 1.9; list-style: none; }

/* Carte du secteur (reprise de la landing) : les communes des villas présentées en or */
.hc-map { position: relative; margin: 0; }
.hc-map .map { display: block; width: 100%; height: auto; overflow: visible; aspect-ratio: 800 / 520; background: none; }
.map .sea { fill: #0d1113; }
.map .coast { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.map .dot { fill: var(--text); opacity: .4; }
.map .dot--major { opacity: .6; }
.map .lbl { fill: var(--text-2); fill-opacity: .7; stroke: var(--panel); stroke-width: 10px; stroke-linejoin: round; paint-order: stroke fill; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.map .lbl--major { fill: var(--text); fill-opacity: .85; font-size: 16.5px; font-weight: 600; }
/* libellés écartés de la côte et de leurs voisins */
.map .lbl[x="443"][y="84"] { text-anchor: end; transform: translate(-20px, -6px); }
.map .lbl[x="592"][y="120"] { transform: translateY(12px); }
.map .hc-villa[data-town="Golfe-Juan"] text { transform: translateY(18px); }
.map .lbl[x="312"][y="352"] { transform: translateX(18px); }
.map .sea-lbl { fill: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.map .range { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 4; opacity: .6; }
.map .lbl--ref { fill: var(--muted); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; }
.map .hc-villa { cursor: pointer; outline: none; }
.map .dot--villa { fill: var(--gold); opacity: 1; transform-box: fill-box; transform-origin: center; transition: transform .4s var(--ease); }
.map .lbl--villa { fill: var(--gold-light); fill-opacity: 1; stroke-width: 6px; }
.map .hc-villa:hover .dot--villa, .map .hc-villa:focus-visible .dot--villa, .map .hc-villa.is-on .dot--villa { transform: scale(1.7); }
.map .hc-villa:focus-visible .dot--villa { stroke: var(--text); stroke-width: 2; }
.map .hc-villa:focus-visible .lbl--villa { fill: var(--text); }
.hc-anim .map .hc-villa { opacity: 0; transition: opacity .6s var(--ease); }
.hc-anim .is-drawn .map .hc-villa { opacity: 1; }
.hc-tip { position: absolute; z-index: 3; width: max-content; max-width: min(270px, 80vw); padding: 12px 14px; border: 1px solid var(--line); background: #000; color: var(--text-2); font-size: 13.5px; line-height: 1.5; pointer-events: none; transform: translate(-50%, calc(-100% - 16px)); }
.hc-tip b { display: block; margin-bottom: 4px; color: var(--gold-light); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
@media (max-width: 600px) {
  .map .lbl:not(.lbl--major):not(.lbl--villa):not(.lbl--ref), .map .sea-lbl { display: none; }
  .map .lbl--major, .map .lbl--villa { font-size: 24px; }
  .map .lbl--ref { font-size: 20px; }
  .map .lbl--major[x="92"][y="372"] { transform: translateY(26px); }
  .map .hc-villa[data-town="Roquefort-les-Pins"] text { transform: translateY(-18px); }
  .map .dot--villa { r: 7; }
  /* le libellé de Mouans-Sartoux passe à droite de son point pour rester dans le cadre */
  .map .hc-villa[data-town="Mouans-Sartoux"] text { text-anchor: start; transform: translateX(22px); }
}

/* Trois portes, selon la situation du visiteur */
.hc-doors__t { margin: clamp(84px, 9vw, 130px) 0 clamp(40px, 4.4vw, 60px); padding-top: clamp(64px, 7vw, 100px); border-top: 1px solid var(--line); color: var(--text); font-size: clamp(19px, 1.7vw, 24px); font-weight: 300; letter-spacing: .16em; text-align: center; text-transform: uppercase; }
.hc-doors { display: grid; gap: 56px clamp(20px, 2.4vw, 36px); }
@media (min-width: 900px) {
  .hc-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hc-door:nth-child(2) { transition-delay: .12s; }
  .hc-door:nth-child(3) { transition-delay: .24s; }
}
.hc-door { display: flex; flex-direction: column; color: var(--text-2); text-decoration: none; }
.hc-door:hover { color: var(--text-2); }
.hc-door__img { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.hc-door__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hc-fiche--on { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 90px 20px 18px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .86)); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hc-fiche--on .hc-fiche__id span { color: var(--text-2); }
.hc-fiche--on .hc-fiche__txt { color: var(--text); font-size: 14px; }
.hc-door__n { margin-top: 26px; color: var(--gold); font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 46px; font-style: italic; line-height: 1; }
.hc-door__t { margin-top: 14px; color: var(--text); font-size: clamp(17px, 1.35vw, 19px); font-weight: 400; letter-spacing: .12em; line-height: 1.45; text-transform: uppercase; transition: color .35s var(--ease); }
.hc-door__p { margin-top: 12px; font-size: 15.5px; line-height: 1.75; }
.hc-link { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 24px; color: var(--gold-light); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.hc-link svg { width: 15px; height: 15px; transition: transform .5s var(--swift); }
.hc-door:focus-visible { outline-offset: 6px; }
@media (hover: hover) {
  .hc-door:hover .hc-door__img img { transform: scale(1.03); }
  .hc-door:hover .hc-door__t { color: var(--gold-light); }
  .hc-door:hover .hc-link svg { transform: translateX(5px); }
}
@media (max-width: 899px) {
  .hc-door__img { aspect-ratio: auto; overflow: visible; background: none; }
  .hc-door__img img { aspect-ratio: 3 / 2; height: auto; }
  .hc-fiche--on { position: static; margin-top: 14px; padding: 0; background: none; text-shadow: none; }
  .hc-fiche--on .hc-fiche__txt { color: var(--text-2); font-size: 15px; }
  .hc-fiche--on .hc-fiche__id span { color: var(--muted); }
}

/* ---------- 7. Questions fréquentes ---------- */
.faq-home__head .hc-title { margin-bottom: 22px; }

/* ---------- 8. Prochaine étape : plein écran ---------- */
.hc-final { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: max(640px, 92vh); min-height: max(640px, 92svh); overflow: hidden; background: var(--ink); color: var(--text); }
.hc-final__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-final::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0, rgba(0, 0, 0, .36) 40%, rgba(0, 0, 0, 0) 62%), linear-gradient(25deg, rgba(0, 0, 0, .82) 0, rgba(0, 0, 0, .42) 42%, rgba(0, 0, 0, 0) 70%), linear-gradient(180deg, rgba(0, 0, 0, .45) 0, rgba(0, 0, 0, 0) 22%); pointer-events: none; }
.hc-final__in { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 1680px); margin: 0 auto; padding-bottom: clamp(72px, 12vh, 130px); }
.hc-final__in > * { max-width: 32em; }
.hc-final__in { text-shadow: 0 1px 16px rgba(0, 0, 0, .55); }
.hc-final .cta { text-shadow: none; }
.hc-final__t { max-width: 17em; margin-bottom: 26px; }
.hc-final__t span { display: block; margin-top: .3em; color: var(--gold-light); font-family: var(--serif); font-size: 1.3em; font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1.15; text-transform: none; }
.hc-final__p { margin: 0; color: var(--text); font-size: clamp(16.5px, 1.3vw, 18px); line-height: 1.75; }
.hc-final__fiche { position: absolute; z-index: 2; right: var(--gutter); bottom: 30px; align-items: flex-end; margin: 0; text-align: right; opacity: .85; }
@media (max-width: 759px) {
  .hc-final { display: flex; min-height: 0; }
  .hc-final::after { display: none; }
  .hc-final__img { position: relative; order: 0; height: auto; aspect-ratio: 4 / 5; object-position: 55% 60% !important; }
  .hc-final__fiche { position: static; order: 1; width: min(100% - 2 * var(--gutter), 1680px); margin: 14px auto 0; align-items: flex-start; text-align: left; opacity: 1; }
  .hc-final__in { order: 2; padding: 44px 0 72px; }
  .hc-final .actions .cta { width: 100%; }
}

/* ---------- Téléphone : rythme général ---------- */
@media (max-width: 699px) {
  .hc-sub { margin-bottom: 24px; }
  .hc-envers__end .actions .cta, .hc-charniere .actions .cta { width: 100%; }
  /* Un libellé long passe sur deux lignes : on lui donne de l'air plutôt que de le serrer */
  .hc-charniere .cta, .hc-envers__end .cta, .hc-final .cta { padding-block: 14px; line-height: 1.65; text-align: center; }
}

/* Maillage interne : les liens placés dans le texte gardent la couleur du texte, sans soulignement.
   Le texte reste visible (un lien invisible serait pénalisé par Google) ; seul un soulignement très léger
   apparaît au survol, et le contour habituel au clavier. */
a.hc-a { color: inherit; text-decoration: none; }
a.hc-a:hover { color: inherit; text-decoration: underline; text-decoration-color: rgba(205, 181, 147, .35); text-underline-offset: 4px; }
.hc-communes a.hc-a { display: inline-block; }
