@import url("/CSS/k3-meteo-v3.css?v=20261008-1d8b2a8c");   /* V10 — environnement météo froid (feuille dédiée, agent Météo V3) */
/* K3-HOME-SCENE V6 — styles du portail à révélation lumineuse.
   REUSE de la V5 : consentement ivoire, cartouche météo deux états,
   fallback poster, reduced-motion. Ajouts : hairline de chargement
   continue (§8), phases d'apparition UI de la timeline (§14), titre DOM
   masqué au profit du titre gravé (§15), « passez la main » masqué en
   tactile (§19). Aucun style FINALIZE13 existant n'est modifié. */

.k3h{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:transparent;
}
.k3h__canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  /* V6.1 (C) : masqué jusqu'à la première frame WebGL valide — jamais
     ivoire → noir → ivoire. Le fond visible reste l'ivoire de la page. */
  visibility:hidden;
}
.k3h.k3h--ready .k3h__canvas{
  visibility:visible;
}

/* Fallback premium statique : poster dédié desktop, vrai dérivé portrait
   3:4 sur mobile (§27). Jamais de rendu procédural en version finale. */
.k3h--static .k3h__canvas{display:none}
.k3h--static::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:url("/assets/k3-hero-home/CARAVELLI_ASSET_VILLA_ACCUEIL_IMMERSIVE/fallback/villa-accueil-immersive-poster.jpg") 50% 42%/cover no-repeat;
}
@media (max-width:760px) and (orientation:portrait){
  .k3h--static::before{
    background-image:url("/assets/k3-hero-home/CARAVELLI_ASSET_VILLA_ACCUEIL_IMMERSIVE/fallback/villa-accueil-immersive-mobile-portrait.jpg");
    background-position:50% 50%;
  }
}

/* ── Hairline (§8) — indicateur de chargement réel, 1 px, qui devient
   ensuite repère permanent de la composition (continuité sans rupture). */
.k3v6-line{
  position:absolute;
  z-index:3;
  top:46svh;
  left:clamp(28px, 6vw, 96px);
  height:1px;
  width:calc(72px + (min(36vw, 520px) - 72px) * var(--k3p, 0));
  background:oklch(.45 .02 80 / .34);
  transform-origin:left center;
  transition:width .45s cubic-bezier(.22,.8,.3,1), background-color 1.2s ease, opacity 1.2s ease;
  pointer-events:none;
}
html.k3v6-ready .k3v6-line{
  background:oklch(.45 .02 80 / .22);
}
@media (max-width:760px){
  .k3v6-line{
    top:44.5svh;
    left:24px;
    width:calc(46px + (100vw - 48px - 46px) * var(--k3p, 0));
  }
}

/* ── Timeline UI (§14) — les éléments DOM (interface) apparaissent par
   fondu classique, aux phases prévues. Le titre CARAVELLI n'en fait pas
   partie : il est gravé dans la matière par le shader (§15). */
html:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-ligne,
html:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-geste,
html:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-suite,
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control,
html:not(.oc-entree-passee) body[data-page="index"] .oc-sound-toggle{
  opacity:0 !important;
  transform:translateY(5px);
  transition:opacity .6s ease, transform .6s ease;
  pointer-events:none !important;
}
/* Phase 5 — manifeste + repères + météo secondaire + SON (T+2,85→3,45) */
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-ligne,
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-suite,
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control,
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] .oc-sound-toggle{
  opacity:1 !important;
  transform:none;
  pointer-events:auto !important;
}
/* V6.1 — fermeture du portail : le Seuil historique (olympe-seuil-v12,
   neutralisé en contexte portail) posait `oc-seuil-passe`, qui révélait
   le conteneur .oc-accueil-in (opacity 0→1). Sans lui, l'orchestrateur
   (`html.lux.js:not(.oc-seuil-passe) … {opacity:0 !important}`) gardait
   le conteneur à 0 et masquait le manifeste et la porte malgré leurs
   phases propres. La spécificité doit donc dépasser celle de
   l'orchestrateur. En contexte portail, le conteneur est révélé à la
   phase manifeste ; les enfants conservent leurs phases propres
   (manifeste 74 %, gate 100 %). */
html.lux.js.k3v6-ui-manifest:not(.oc-seuil-passe):not(.oc-entree-passee) body[data-page="index"] .oc-accueil-in{
  opacity:1 !important;
  transition:opacity 1.15s cubic-bezier(.19,1,.22,1) .18s !important;
}
/* §5 — DÉFILER ne doit pas contourner le gate : invisible ET non cliquable
   tant que le portail est ouvert (seul .oc-accueil-entrer déclenche le
   franchissement). Sur la vraie home (oc-entree-passee), comportement
   historique inchangé. */
html.lux.js:not(.oc-seuil-passe):not(.oc-entree-passee) body[data-page="index"] .oc-accueil-suite{
  opacity:0 !important;
  pointer-events:none !important;
}
/* Phase 6 — gate ENTRER, dernier élément disponible (T+3,35→3,85) */
html.k3v6-ui-gate:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-entrer{
  opacity:1 !important;
  transform:none;
  pointer-events:auto !important;
}
html:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-entrer{
  opacity:0 !important;
  transform:translateY(5px);
  transition:opacity .5s ease, transform .5s ease;
  pointer-events:none !important;
}
/* « PASSEZ LA MAIN SUR LA PIERRE » : souris fine uniquement (§19) */
@media (pointer:coarse){
  html:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-geste{display:none !important}
}
html.k3v6-ui-gate:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-geste{
  opacity:.55 !important;
  transform:none;
}

/* Titre DOM : le mot est désormais gravé dans la matière (§15). L'élément
   demeure dans le DOM (aria-labelledby, wording inchangé) mais n'est plus
   affiché — un <h1 class="sr-only"> porte la sémantique. */
html:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-nom{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  clip-path:inset(50%) !important;
  opacity:0 !important;
}
.k3v6-sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
}

/* Météo — deux états (REUSE V5). Pendant l'intro : curatoriale, très
   discrète, haut gauche, encre sombre sur ivoire. */
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control{
  top:clamp(14px,2.2vw,26px) !important;
  left:clamp(16px,2.6vw,34px) !important;
  right:auto !important;
  bottom:auto !important;
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  opacity:.62;
}
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control .cv-atmo-place strong{
  color:rgba(58,52,42,.88) !important;
}
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control .cv-atmo-place span{
  color:rgba(58,52,42,.58) !important;
}
/* V6.1 (B) — vraie météo dans le portail : 2–3 lignes discrètes, encre
   sombre sur ivoire. La ligne « ressenti » (em) n'a de contenu qu'en
   contexte portail ; ailleurs elle reste vide et invisible. */
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control .cv-atmo-place span,
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control .cv-atmo-extra{
  white-space:normal;
}
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control .cv-atmo-extra{
  display:block;
  margin-top:3px;
  font-style:normal;
  font-size:10px;
  line-height:1.3;
  letter-spacing:.08em;
  color:rgba(58,52,42,.58) !important;
}
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control .cv-atmo-extra:empty{
  display:none;
}
/* Filet : le repli « settled » ne doit jamais supprimer les données météo
   tant que le portail est ouvert (le minuteur est déjà différé après
   ENTRER côté JS ; ceci est la défense CSS). */
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control.cv-atmo-control--settled{
  visibility:visible !important;
  width:auto !important;
  min-height:unset !important;
  grid-template-columns:unset !important;
  padding:unset !important;
}
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control.cv-atmo-control--settled .cv-atmo-place{
  display:block !important;
}
body[data-page="index"] #cv-atmosphere-control{
  top:auto !important;
  left:auto !important;
  right:clamp(16px,2.4vw,34px) !important;
  bottom:clamp(16px,3vh,30px) !important;
  width:auto !important;
  max-width:min(260px,62vw) !important;
  padding:9px 14px 8px !important;
  background:rgba(16,14,11,.34) !important;
  border:1px solid rgba(232,228,220,.13) !important;
  border-radius:2px !important;
  backdrop-filter:blur(14px) saturate(1.05);
  -webkit-backdrop-filter:blur(14px) saturate(1.05);
  box-shadow:0 12px 40px rgba(0,0,0,.18) !important;
  opacity:.88;
  z-index:5;
}
@media (max-width:760px){
  body[data-page="index"] #cv-atmosphere-control{
    right:12px !important;
    bottom:12px !important;
    padding:8px 11px 7px !important;
  }
}
/* L'état intro (haut gauche) prime avant l'entrée */
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control{
  top:clamp(14px,2.2vw,26px) !important;
  left:clamp(16px,2.6vw,34px) !important;
  right:auto !important;
  bottom:auto !important;
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* Consentement — état portail (REUSE V5, inchangé). `!important`
   indispensable contre strict-house / ultra-rd / readability-gate. */
html:not(.oc-entree-passee) body[data-page="index"] .hc-consent{
  position:fixed !important;
  inset:auto !important;
  left:auto !important;
  right:clamp(18px,3.2vw,44px) !important;
  bottom:clamp(18px,3.2vw,44px) !important;
  width:min(calc(100vw - 36px), 292px) !important;
  max-width:292px !important;
  min-height:0 !important;
  max-height:none !important;
  display:block !important;
  padding:12px 15px 11px !important;
  transform:none !important;
  background:oklch(.9687 .008 90 / .78) !important;
  border:0 !important;
  border-top:1px solid oklch(.48 .02 80 / .30) !important;
  box-shadow:0 10px 34px oklch(.30 .02 70 / .16) !important;
  backdrop-filter:blur(12px) saturate(1.02) !important;
  -webkit-backdrop-filter:blur(12px) saturate(1.02) !important;
}
html:not(.oc-entree-passee) body[data-page="index"] .hc-consent.hc-consent--visible{
  transform:none !important;
}
html:not(.oc-entree-passee) body[data-page="index"] .hc-consent .hc-consent__titre{
  color:oklch(.42 .03 75 / .78) !important;
  font-size:8px !important;
}
html:not(.oc-entree-passee) body[data-page="index"] .hc-consent .hc-consent__texte{
  color:oklch(.30 .02 70 / .88) !important;
  font-size:12.5px !important;
}
html:not(.oc-entree-passee) body[data-page="index"] .hc-consent .hc-consent__texte a{
  color:inherit !important;
}
html:not(.oc-entree-passee) body[data-page="index"] .hc-consent .hc-consent__btn{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
html:not(.oc-entree-passee) body[data-page="index"] .hc-consent .hc-consent__btn--oui{
  color:oklch(.28 .02 70 / .92) !important;
}
html:not(.oc-entree-passee) body[data-page="index"] .hc-consent .hc-consent__btn--non{
  color:oklch(.42 .02 70 / .66) !important;
}
html:not(.oc-entree-passee) body[data-page="index"] .hc-consent .hc-consent__btn--non:hover,
html:not(.oc-entree-passee) body[data-page="index"] .hc-consent .hc-consent__btn--non:focus-visible{
  color:oklch(.28 .02 70 / .92) !important;
}

/* Preview QA : ?scene=1 masque la couche texte (inspection de la scène). */
body.k3-preview--scene-only .oc-accueil-in,
body.k3-preview--scene-only .oc-accueil-geste,
body.k3-preview--scene-only .oc-accueil-suite,
body.k3-preview--scene-only .oc-seuil,
body.k3-preview--scene-only .hero-body,
body.k3-preview--scene-only .hero-sc,
body.k3-preview--scene-only .hd,
body.k3-preview--scene-only #cv-atmosphere-control{
  opacity:0 !important;
  pointer-events:none !important;
}
body.k3-preview--scene-only .hc-consent,
body.k3-preview--scene-only #at-atelier-hud,
body.k3-preview--scene-only .cv90-frame,
body.k3-preview--scene-only .cv90-progress,
body.k3-preview--scene-only .cv90-scroll-cue{
  display:none !important;
}

/* Diagnostic QA (?cv-k3-debug=1) : jamais visible par défaut (§29). */
#k3v6-debug{
  position:fixed;
  left:10px;
  bottom:10px;
  z-index:9999;
  max-width:min(520px, calc(100vw - 20px));
  max-height:44vh;
  overflow:auto;
  font:10px/1.5 ui-monospace, Menlo, monospace;
  white-space:pre-wrap;
  color:#2a261f;
  background:oklch(.96 .01 90 / .92);
  border:1px solid oklch(.5 .02 80 / .3);
  padding:8px 10px;
  pointer-events:none;
}

@media (prefers-reduced-motion:reduce){
  .k3v6-line{transition:none}
  html:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-in,
  html:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-entrer,
  html:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-suite,
  html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control,
  html:not(.oc-entree-passee) body[data-page="index"] .oc-sound-toggle{
    transition:none;
  }
}

/* V6.1 §25 — position hero après ENTRER : la mise en position est un calcul
   JS unique (olympe-coupe-v14, branche k3h-scene) — le header maison se
   révèle au-delà de 120 px de scroll et mesure 76 px en état scrollé ;
   scroll-margin-top ne suffisait pas (scrollY 110 < seuil 120). */

/* K3 clôture — home révélée : la pastille SON OFF (fixe, bas-gauche)
   chevauchait le .hero-sub (desktop : 10×35 px mesuré à 1440×900 ; mobile :
   91×13 px mesuré à 390×844) et les boutons .hero-act sortaient partiellement
   du viewport. Règle placée ici car caravelli-final-visual-fixes.css n'est
   pas chargé par index.html. !important requis : concurrents à ID
   (strict-house-2026, #hero .hero-body). Portail (hors oc-entree-passee)
   non touché. Mesuré avant/après Playwright. */
@media (min-width:861px){
  html.oc-entree-passee body[data-page="index"] .hero-body{
    margin-top:-140px !important;
  }
}
@media (max-width:860px){
  html.oc-entree-passee body[data-page="index"] .hero-body{
    margin-top:-160px !important;
  }
}

/* K3 HOTFIX CSP 2026-08-18 — fond ivoire du portail. Le <style> inline
   d'index.html est interdit par la CSP IONOS (style-src-elem 'self') et la
   règle posée dans olympe-palette-2026.css est ensuite battue par
   olympe-system.css (html.lux → fond sombre). Cette feuille n'est chargée
   que par l'accueil : l'ivoire tient pendant le portail ET après ENTRER
   (comportement strictement identique à la version inline validée en QA,
   les sections de la home peignant leurs propres fonds). */
html.lux{background:#e8e4db !important;background:oklch(.9198 .0127155 85) !important}

/* K3-CLOTURE §F — curseur contextuel premium (desktop pointeur fin).
   Point 5 px + micro-libellé lettré ; discret, jamais un cercle décoratif.
   Piloté par la boucle RAF unique du portail ; supprimé après ENTRER. */
.k3-cursor{
  position:fixed;
  left:0; top:0;
  z-index:60;
  pointer-events:none;
  width:5px; height:5px;
  margin:-2px 0 0 -2px;
  border-radius:50%;
  background:rgba(28,26,23,.72);
  opacity:0;
  transition:opacity .5s ease;
}
.k3-cursor--on{opacity:1}
.k3-cursor span{
  position:absolute;
  left:11px; top:-3px;
  font:600 8.5px/1 "Inter",system-ui,sans-serif;
  letter-spacing:.22em;
  color:rgba(28,26,23,.55);
  white-space:nowrap;
}
@media (prefers-reduced-motion:reduce),(pointer:coarse){
  .k3-cursor{display:none}
}

/* ══════════════════════════════════════════════════════════════════════
   CARAVELLI ENVIRONMENT LUXURY PATCH · 2026-08-19
   Une seule météo, des paramètres continus, aucun effet physique indoor.
   ══════════════════════════════════════════════════════════════════════ */
@property --cv-env-light{syntax:"<number>";inherits:true;initial-value:.72}
@property --cv-env-cloud{syntax:"<number>";inherits:true;initial-value:0}
@property --cv-env-wetness{syntax:"<number>";inherits:true;initial-value:0}
@property --cv-env-wind{syntax:"<number>";inherits:true;initial-value:0}
@property --cv-env-haze{syntax:"<number>";inherits:true;initial-value:0}
@property --cv-env-warmth{syntax:"<number>";inherits:true;initial-value:.18}
@property --cv-env-night{syntax:"<number>";inherits:true;initial-value:.16}
@property --cv-env-rain{syntax:"<number>";inherits:true;initial-value:0}
@property --cv-env-snow{syntax:"<number>";inherits:true;initial-value:0}
:root{
  --cv-env-light:.72;
  --cv-env-cloud:0;
  --cv-env-wetness:0;
  --cv-env-wind:0;
  --cv-env-haze:0;
  --cv-env-warmth:.18;
  --cv-env-night:.16;
  --cv-env-rain:0;
  --cv-env-snow:0;
  --cv-env-palette-light:232 228 220;
  --cv-env-palette-mineral:196 191 181;
  --cv-env-palette-shadow:48 58 71;
  --cv-env-palette-accent:139 112 88;
  transition:
    --cv-env-light 2.8s ease,--cv-env-cloud 2.8s ease,--cv-env-wetness 2.8s ease,
    --cv-env-wind 2.8s ease,--cv-env-haze 2.8s ease,--cv-env-warmth 2.8s ease,
    --cv-env-night 2.8s ease,--cv-env-rain 2.8s ease,--cv-env-snow 2.8s ease;
}

/* Palette environnementale contrôlée. Elle ne recolore aucun texte UI : le
   glacis reste dans la scène du portail et les ombres intérieures des
   chapitres, sous leur contenu. */
#k3h-scene::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background:
    radial-gradient(82% 62% at 72% 18%,rgb(var(--cv-env-palette-light) / calc(.018 + var(--cv-env-light) * .035)),transparent 64%),
    linear-gradient(145deg,rgb(var(--cv-env-palette-mineral) / calc(.014 + var(--cv-env-warmth) * .018)),transparent 48% 72%,rgb(var(--cv-env-palette-shadow) / calc(.018 + var(--cv-env-night) * .032)));
  mix-blend-mode:soft-light;
  opacity:.72;
  transition:background-color 2.8s ease,opacity 2.4s ease;
}
body.cv-atmo-active[data-page="index"] #hero .hero-veil{
  box-shadow:
    inset 0 0 150px rgb(var(--cv-env-palette-shadow) / calc(.02 + var(--cv-env-night) * .025)),
    inset 0 1px 0 rgb(var(--cv-env-palette-light) / .035);
  transition:box-shadow 2.8s ease;
}

/* Après 15 s sans interaction, l'étalonnage ne touche que la profondeur des
   scènes. Aucun filtre n'est appliqué aux textes, contrôles ou panneaux. */
body.cv-atmo-idle[data-page="index"] main > section:not(#fondazione-home){
  box-shadow:
    inset 0 0 min(18vw,220px) rgb(var(--cv-env-palette-shadow) / calc(.025 + var(--cv-env-night) * .025)),
    inset 0 1px 0 rgb(var(--cv-env-palette-light) / .045);
}
body.cv-atmo-idle[data-page="index"] #k3h-scene::after{opacity:.9}
body:not(.cv-atmo-idle)[data-page="index"] #k3h-scene::after{transition-duration:2.8s,.01ms}

/* Précipitations : canvas 2D minuscule, extérieur du portail seulement. */
.k3h__canvas{z-index:1}
#k3h-scene .cv-atmo-precipitation{
  position:absolute;
  inset:0;
  z-index:2;
  width:100%;
  height:100%;
  display:block;
  pointer-events:none;
  opacity:.9;
  filter:blur(.05px);
}
html.oc-entree-passee #k3h-scene .cv-atmo-precipitation,
body.cv-atmo-paused #k3h-scene .cv-atmo-precipitation{
  visibility:hidden;
}
@media (prefers-reduced-motion:reduce){
  #k3h-scene .cv-atmo-precipitation{opacity:.62}
}

/* Instrument environnemental — cartouche de Maison, pas carte SaaS. */
body[data-page="index"] #cv-atmosphere-control{
  position:fixed !important;
  z-index:61 !important;
  --cv-panel-ink:rgba(44,40,34,.92);
  --cv-panel-muted:rgba(58,52,42,.60);
  --cv-panel-line:rgba(139,112,88,.26);
  --cv-panel-bg:rgba(235,231,222,.78);
  display:flex !important;
  align-items:flex-start;
  gap:6px;
  min-width:188px;
  max-width:min(326px,calc(100vw - 32px)) !important;
  padding:0 !important;
  overflow:visible;
  color:var(--cv-panel-ink);
  background:
    linear-gradient(128deg,rgba(255,255,255,.16),transparent 34%),
    linear-gradient(180deg,rgba(196,191,181,.045),transparent 58%),
    var(--cv-panel-bg) !important;
  border:1px solid rgba(196,191,181,.44) !important;
  border-radius:2px !important;
  box-shadow:0 16px 46px rgba(36,31,25,.12), inset 0 1px 0 rgba(255,255,255,.20) !important;
  backdrop-filter:blur(16px) saturate(.94);
  -webkit-backdrop-filter:blur(16px) saturate(.94);
  transition:background-color 2.8s ease,border-color 2.8s ease,box-shadow 2.8s ease,opacity .6s ease,transform .6s ease !important;
}
body[data-page="index"] #cv-atmosphere-control::before{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  top:0;
  height:1px;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(139,112,88,.48),rgba(196,191,181,.42),transparent);
  opacity:calc(.34 + var(--cv-env-warmth) * .28);
  transition:opacity 2.8s ease;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-instrument{
  min-width:0;
  flex:1 1 auto;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-toggle{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:18px minmax(0,1fr) 14px;
  align-items:start;
  gap:9px;
  margin:0;
  padding:11px 13px 10px;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
  font:inherit;
}
/* Glyphe météo dans la cartouche du portail : encre de Maison (jour) ou
   encre claire (nuit), jamais le platine clair du thème sombre global. */
body[data-page="index"] #cv-atmosphere-control .cv-atmo-glyph{
  width:16px;
  height:16px;
  margin-top:1px;
  align-self:start;
  color:var(--cv-panel-ink);
  opacity:.82;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-toggle:focus-visible{
  outline:1px solid rgba(139,112,88,.58);
  outline-offset:2px;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place{
  min-width:0;
  display:grid !important;
  gap:2px;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place strong{
  display:block;
  color:var(--cv-panel-ink) !important;
  font-family:"Inter",system-ui,sans-serif;
  font-size:9px;
  font-weight:650;
  line-height:1.25;
  letter-spacing:.19em;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place > span{
  display:block;
  color:var(--cv-panel-ink) !important;
  font-family:"Bodoni Moda","Cormorant Garamond",Georgia,serif;
  font-size:16px;
  font-weight:500;
  line-height:1.1;
  letter-spacing:.015em;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-mobile-summary{display:none}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place .cv-atmo-extra{
  display:block;
  margin-top:2px;
  color:var(--cv-panel-muted) !important;
  font-family:"Inter",system-ui,sans-serif;
  font-size:8.5px;
  font-style:normal;
  font-weight:520;
  line-height:1.35;
  letter-spacing:.12em;
  text-transform:uppercase;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-indicator{
  display:block;
  margin-top:1px;
  color:var(--cv-panel-muted);
  font:300 15px/1 "Inter",system-ui,sans-serif;
  transform-origin:center;
  transition:transform .4s cubic-bezier(.19,1,.22,1),color .3s ease;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-details{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-3px);
  margin:0 12px;
  border-top:1px solid transparent;
  transition:max-height .44s cubic-bezier(.19,1,.22,1),opacity .32s ease,transform .44s cubic-bezier(.19,1,.22,1),padding .44s ease,border-color .44s ease;
}
body[data-page="index"] #cv-atmosphere-control.cv-atmo-control--expanded .cv-atmo-details{
  max-height:min(460px,calc(100svh - 92px));
  overflow:auto;
  opacity:1;
  transform:none;
  padding:7px 0 11px;
  border-top-color:rgba(196,191,181,.27);
}
body[data-page="index"] #cv-atmosphere-control.cv-atmo-control--expanded .cv-atmo-indicator{
  transform:rotate(45deg);
  color:rgba(139,112,88,.86);
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-detail-row{
  display:grid;
  grid-template-columns:minmax(76px,1fr) auto;
  gap:12px;
  align-items:baseline;
  padding:3px 1px;
  font-family:"Inter",system-ui,sans-serif;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-detail-row > span{
  color:var(--cv-panel-muted);
  font-size:7.7px;
  font-weight:560;
  line-height:1.3;
  letter-spacing:.13em;
  text-transform:uppercase;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-detail-row > strong{
  color:var(--cv-panel-ink);
  font-size:9.5px;
  font-weight:540;
  line-height:1.3;
  letter-spacing:.045em;
  text-align:right;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-detail-region{
  grid-template-columns:1fr;
  padding:1px 1px 7px;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-detail-region > span{display:none}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-detail-region > strong{
  text-align:left;
  color:var(--cv-panel-muted);
  font-size:7.7px;
  letter-spacing:.15em;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place-form{
  display:grid;
  gap:6px;
  margin-top:8px;
  padding-top:9px;
  border-top:1px solid rgba(196,191,181,.22);
  font-family:"Inter",system-ui,sans-serif;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place-form > label{
  color:var(--cv-panel-muted);
  font-size:7.7px;
  font-weight:560;
  letter-spacing:.13em;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place-form__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place-form input{
  min-width:0;
  height:32px;
  padding:0 9px;
  border:1px solid rgba(139,112,88,.28);
  border-radius:1px;
  outline:0;
  color:var(--cv-panel-ink);
  background:rgba(255,255,255,.08);
  font:500 10px/1 "Inter",system-ui,sans-serif;
  letter-spacing:.04em;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place-form input:focus{
  border-color:rgb(var(--cv-env-palette-accent) / .68);
  box-shadow:0 0 0 1px rgb(var(--cv-env-palette-accent) / .12);
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place-form button{
  min-height:32px;
  padding:0 9px;
  border:1px solid rgb(var(--cv-env-palette-accent) / .44);
  border-radius:1px;
  color:var(--cv-panel-ink);
  background:rgb(var(--cv-env-palette-light) / .09);
  font:600 7.4px/1 "Inter",system-ui,sans-serif;
  letter-spacing:.13em;
  text-transform:uppercase;
  cursor:pointer;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place-form :is(input,button):disabled{opacity:.52;cursor:wait}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-place-form small,
body[data-page="index"] #cv-atmosphere-control .cv-atmo-attribution{
  margin:0;
  color:var(--cv-panel-muted);
  font:500 6.9px/1.4 "Inter",system-ui,sans-serif;
  letter-spacing:.075em;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-attribution{
  margin-top:7px;
  opacity:.78;
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-geolocate{
  color:var(--cv-panel-ink);
  border-color:rgb(var(--cv-env-palette-accent) / .38);
  background:rgb(var(--cv-env-palette-light) / .09);
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-geolocate:hover,
body[data-page="index"] #cv-atmosphere-control .cv-atmo-geolocate:focus-visible{
  border-color:rgb(var(--cv-env-palette-accent) / .68);
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-geo-note{
  color:var(--cv-panel-muted);
}
body[data-page="index"] #cv-atmosphere-control .cv-atmo-sound{
  flex:0 0 34px;
  width:34px;
  height:34px;
  margin:5px 5px 0 0;
  border:0;
  background:transparent;
  color:var(--cv-panel-muted);
}

/* L'état settled reste un instrument compact et consultable. */
body[data-page="index"] #cv-atmosphere-control.cv-atmo-control--settled{
  visibility:visible !important;
  width:auto !important;
  min-height:0 !important;
  padding:0 !important;
}
body[data-page="index"] #cv-atmosphere-control.cv-atmo-control--settled .cv-atmo-place,
body[data-page="index"] #cv-atmosphere-control.cv-atmo-control--settled .cv-atmo-instrument{
  display:grid !important;
}

/* Mineral Night : architecture lisible, instrument plus profond, jamais noir. */
body[data-page="index"][data-cv-phase="night"] #cv-atmosphere-control,
body[data-page="index"][data-cv-phase="deep-night"] #cv-atmosphere-control,
body[data-page="index"][data-cv-phase="blue-hour"] #cv-atmosphere-control{
  --cv-panel-ink:rgba(239,238,234,.92);
  --cv-panel-muted:rgba(218,220,220,.62);
  --cv-panel-bg:rgba(48,58,71,.80);
  border-color:rgba(196,191,181,.26) !important;
  box-shadow:0 18px 48px rgba(9,13,18,.20),inset 0 1px 0 rgba(255,255,255,.06) !important;
}

/* Le cartouche final prime sur l'ancien état transparent V6.1. */
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control{
  background:
    linear-gradient(128deg,rgba(255,255,255,.13),transparent 36%),
    linear-gradient(180deg,rgba(196,191,181,.05),transparent 62%),
    rgba(235,231,222,.82) !important;
  border-color:rgba(196,191,181,.48) !important;
  box-shadow:0 16px 46px rgba(36,31,25,.12),inset 0 1px 0 rgba(255,255,255,.22) !important;
  backdrop-filter:blur(16px) saturate(.94) !important;
  -webkit-backdrop-filter:blur(16px) saturate(.94) !important;
}
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"][data-cv-phase="night"] #cv-atmosphere-control,
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"][data-cv-phase="deep-night"] #cv-atmosphere-control,
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"][data-cv-phase="blue-hour"] #cv-atmosphere-control{
  background:linear-gradient(180deg,rgba(196,191,181,.035),transparent 58%),rgba(48,58,71,.82) !important;
  border-color:rgba(196,191,181,.27) !important;
  box-shadow:0 18px 48px rgba(9,13,18,.20),inset 0 1px 0 rgba(255,255,255,.06) !important;
}
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control .cv-atmo-place strong,
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control .cv-atmo-place > span,
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control .cv-atmo-place .cv-atmo-extra,
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control .cv-atmo-mobile-summary{
  color:var(--cv-panel-ink) !important;
}

/* Sur le portail l'instrument reste léger et n'empiète jamais sur le gate. */
html:not(.oc-entree-passee) body[data-page="index"] #cv-atmosphere-control{
  top:clamp(14px,2.2vw,26px) !important;
  left:clamp(16px,2.6vw,34px) !important;
  right:auto !important;
  bottom:auto !important;
  opacity:.92;
}
@media (hover:hover) and (pointer:fine){
  body[data-page="index"] #cv-atmosphere-control:hover{
    border-color:rgba(196,191,181,.60) !important;
    box-shadow:0 19px 52px rgba(36,31,25,.15),inset 0 1px 0 rgba(255,255,255,.22) !important;
  }
  body[data-page="index"] #cv-atmosphere-control:hover::before{opacity:.82}
}

/* Navigation : réaction très légère, sans mouvement du menu. */
body.cv-atmo-active .hd{
  transition:background-color 2.8s ease,box-shadow 2.8s ease,border-color 2.8s ease !important;
  box-shadow:inset 0 -1px 0 rgb(196 191 181 / calc(.04 + var(--cv-env-cloud) * .08 + var(--cv-env-wetness) * .08));
}
body.cv-atmo-active[data-cv-weather="rain"] .hd,
body.cv-atmo-active[data-cv-weather="storm"] .hd{
  box-shadow:inset 0 -1px 0 rgb(196 191 181 / calc(.08 + var(--cv-env-wetness) * .12)),0 9px 30px rgb(48 58 71 / calc(var(--cv-env-wetness) * .055));
}
body.cv-atmo-active[data-cv-weather="snow"] .hd{
  box-shadow:inset 0 -1px 0 rgb(232 228 220 / calc(.10 + var(--cv-env-snow) * .14)),0 8px 28px rgb(196 191 181 / calc(var(--cv-env-snow) * .05));
}
body.cv-atmo-active[data-cv-phase="golden-hour"] .hd,
body.cv-atmo-active[data-cv-phase="sunset"] .hd{
  box-shadow:inset 0 -1px 0 rgb(139 112 88 / calc(.08 + var(--cv-env-warmth) * .12));
}
body.cv-atmo-active[data-cv-phase="night"] .hd,
body.cv-atmo-active[data-cv-phase="deep-night"] .hd,
body.cv-atmo-active[data-cv-phase="blue-hour"] .hd{
  box-shadow:inset 0 -1px 0 rgb(196 191 181 / calc(.07 + var(--cv-env-night) * .08)),0 10px 30px rgb(48 58 71 / calc(var(--cv-env-night) * .04));
}
body.cv-atmo-active .nav .nl{
  transition:color .55s ease,text-shadow 1.2s ease,opacity .55s ease !important;
}
body.cv-atmo-active[data-cv-phase="golden-hour"] .nav .nl:hover,
body.cv-atmo-active[data-cv-phase="sunset"] .nav .nl:hover{
  text-shadow:0 0 18px rgba(139,112,88,.16);
}

@media (max-width:760px){
  body[data-page="index"] #cv-atmosphere-control{
    min-width:0;
    max-width:min(300px,calc(100vw - 24px)) !important;
  }
  body[data-page="index"] #cv-atmosphere-control .cv-atmo-toggle{padding:9px 11px 8px}
  body[data-page="index"] #cv-atmosphere-control .cv-atmo-place > strong,
  body[data-page="index"] #cv-atmosphere-control .cv-atmo-place > span,
  body[data-page="index"] #cv-atmosphere-control .cv-atmo-place .cv-atmo-extra{display:none !important}
  body[data-page="index"] #cv-atmosphere-control .cv-atmo-mobile-summary{
    display:block;
    color:var(--cv-panel-ink);
    font:600 8.4px/1.35 "Inter",system-ui,sans-serif;
    letter-spacing:.105em;
    text-transform:uppercase;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body[data-page="index"] #cv-atmosphere-control .cv-atmo-details{margin:0 10px}
  body[data-page="index"] #cv-atmosphere-control .cv-atmo-place-form__row{grid-template-columns:1fr}
  body[data-page="index"] #cv-atmosphere-control .cv-atmo-place-form button{width:100%}
  body[data-page="index"] #cv-atmosphere-control.cv-atmo-control--expanded .cv-atmo-place > strong,
  body[data-page="index"] #cv-atmosphere-control.cv-atmo-control--expanded .cv-atmo-place > span,
  body[data-page="index"] #cv-atmosphere-control.cv-atmo-control--expanded .cv-atmo-place .cv-atmo-extra{display:none !important}
}

@media (prefers-reduced-motion:reduce){
  body[data-page="index"] main > section:not(#fondazione-home),
  #k3h-scene::after,
  body[data-page="index"] #hero .hero-veil{transition-duration:.01ms!important}
  body.cv-atmo-idle[data-page="index"] main > section:not(#fondazione-home){box-shadow:none}
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════
   K3 V7 « MATIÈRE » — SURCOUCHE DE PREVIEW (bloc ajouté à la copie de la feuille V6.1 ; la production est intacte)
   Portée : le portail d'accueil uniquement (#accueil / #k3h-scene), avant l'entrée (html:not(.oc-entree-passee)).
   Aucune palette globale, aucune typographie, aucune dimension modifiée.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* le champ du portail : blanc immaculé (la scène WebGL efface dans ce même blanc, aucun raccord possible) */
html.lux body[data-page="index"] #accueil.oc-accueil{ background:#fff !important; }
/* le fond de document derrière le portail, seulement sur l'accueil avant l'entrée : plus d'ivoire au premier rendu */
html:not(.oc-entree-passee):has(body[data-page="index"]){ background:#fff !important; }   /* une règle concurrente l'emportait sans !important (vérifié en page) */
/* glacis « Florence » (palette environnementale chaude) neutralisé dans le portail */
html:not(.oc-entree-passee) body[data-page="index"] #k3h-scene::after{ opacity:0 !important; }
/* repli statique : posters blancs rendus par le moteur V7 (dérivés, dans k3-matiere/) */
.k3h--static::before{ background-image:url("/assets/k3-matiere/villa-accueil-poster-white.jpg") !important; }
@media (max-width:760px){ .k3h--static::before{ background-image:url("/assets/k3-matiere/villa-accueil-poster-white-mobile.jpg") !important; } }
/* hairline de chargement et curseur contextuel : gris neutre (plus de brun) */
html body[data-page="index"] .k3v6-line{ background:rgba(13,15,18,.30) !important; }
html.k3v6-ready body[data-page="index"] .k3v6-line{ background:rgba(13,15,18,.20) !important; }
.k3-cursor{ background:rgba(13,15,18,.72) !important; }
.k3-cursor span{ color:rgba(13,15,18,.55) !important; }

/* V9 — la LED Olympe qui suit le curseur (.hc-led, plus-lighter, or chaud, olympe-engine.js) est une lampe posée sur la villa :
   sur fond #FFF elle sature à 255 et teinte en chaud sous la main (mesuré : 10,9 % de pixels ≥ 253, chroma 2,8). Éteinte sur le
   portail seulement, tant que l'entrée n'a pas eu lieu ; le reste du site la garde. Décision « choisi pour Caravelli », réversible. */
html:not(.oc-entree-passee) body[data-page="index"].hc-led-active:has(#k3h-scene:not([data-k3-state="ENTERED"])) .hc-led{ opacity:0 !important; }
/* état réel : tant que #k3h-scene existe sans être ENTERED (BOOT…IDLE, EXITING, FALLBACK) la LED reste éteinte ; dès ENTERED (ou html.oc-entree-passee)
   la règle cesse et le fondu Olympe (.9 s) la ramène ; aucun autre style, curseur ou événement n'est touché. */

/* ═══ V10 — COUCHES MÉTÉO (contrat DOM : div.k3-meteo > span ×5 ; l'accord par ciel vit dans /CSS/k3-meteo-v3.css) ═══ */
#k3h-scene .k3-meteo{position:absolute;inset:0;z-index:auto;pointer-events:none}   /* aucun contexte d'empilement : les fusions des spans agissent sur le canvas (leçon V2 § 1bis) */
#k3h-scene .k3-meteo>span{position:absolute;inset:0;display:block;z-index:2}

/* ═══ V10b — RUBANS DE SATIN FROID : voiles qui ondoient et s'enroulent en spirale à travers les baies pendant le chargement ═══
   Palette froide de la famille jade/obsidienne du site : satin oklch(.52 .05 222) → cœur clair oklch(.84 .03 218) ; jamais d'or ni de beige. */
#k3h-scene .k3-fil{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:visible;--k3-fil-p:0;
  --k3-fil-bord:oklch(.50 .05 224);--k3-fil-mi:oklch(.66 .045 220);--k3-fil-coeur:oklch(.84 .03 218);--k3-fil-verre:oklch(.80 .06 172);
  opacity:1;transition:opacity 2.2s cubic-bezier(.22,.8,.3,1)}
#k3h-scene .k3-fil.is-done{opacity:0}
.k3-fil__jambe{--k3-fil-q:0}
.k3-fil__brin{fill:none;stroke:var(--k3-fil-bord);stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--k3-fil-q));transition:stroke-dashoffset .45s linear}
/* satin : bords sombres, cœur clair (le reflet de la soie) */
.k3-fil__ruban--satin .k3-fil__brin:nth-child(1),.k3-fil__ruban--satin .k3-fil__brin:nth-child(9){stroke:var(--k3-fil-bord)}
.k3-fil__ruban--satin .k3-fil__brin:nth-child(2),.k3-fil__ruban--satin .k3-fil__brin:nth-child(8){stroke:var(--k3-fil-mi)}
.k3-fil__ruban--satin .k3-fil__brin:nth-child(3),.k3-fil__ruban--satin .k3-fil__brin:nth-child(7){stroke:var(--k3-fil-mi)}
.k3-fil__ruban--satin .k3-fil__brin:nth-child(4),.k3-fil__ruban--satin .k3-fil__brin:nth-child(6){stroke:var(--k3-fil-coeur)}
.k3-fil__ruban--satin .k3-fil__brin:nth-child(5){stroke:#fff}
.k3-fil__ruban--lisere .k3-fil__brin{stroke:var(--k3-fil-bord)}
.k3-fil__ruban--lisere .k3-fil__brin:nth-child(3){stroke:var(--k3-fil-coeur)}
.k3-fil__ruban--voile .k3-fil__brin{stroke:var(--k3-fil-mi)}
.k3-fil__voile{filter:blur(7px)}
.k3-fil__ruban{mix-blend-mode:multiply}
.k3-fil__tete{offset-distance:calc(var(--k3-fil-p) * 100%);offset-rotate:0deg;transition:offset-distance .7s cubic-bezier(.22,.8,.3,1)}
.k3-fil__coeur{fill:var(--k3-fil-coeur);opacity:.55;filter:blur(3px)}
.k3-fil__fenetre{fill:var(--k3-fil-verre);opacity:0;transition:opacity 2.4s ease}
.k3-fil__fenetre.is-lit{opacity:.12;animation:k3-fil-allume 2s cubic-bezier(.22,.8,.3,1)}
@keyframes k3-fil-allume{0%{opacity:0}30%{opacity:.26}100%{opacity:.12}}
html.k3-fil-on .k3v6-line{opacity:0 !important}
@media (prefers-reduced-motion:reduce){#k3h-scene .k3-fil{display:none}}

/* ═══ V10d — VOILES WEBGL : canvas transparent dédié, au-dessus des couches météo et du verre des baies, sous les textes ═══ */
#k3h-scene .k3-voiles{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;display:block}   /* V14k : sous les couches météo (spans z 2), inséré avant .k3-meteo par voiles.js */
#k3h-scene .k3-fil{z-index:3}
/* V14 : en mouvement réduit, les voiles couture restent en composition fixe (une image, aucune animation) : aucune règle de masquage ici ; voiles.js dessine une seule image */

/* ── V13 : la phrase en mouvement, devant les voiles (module texte.js) ─────────────────────────────── */
html:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-ligne.k3-texte{
  transform:translate3d(var(--k3-tx,0px),var(--k3-ty,0px),0);
  transition:opacity .6s ease;
  will-change:transform;
}
.oc-accueil-ligne .k3-mot{ display:inline-block; }
.oc-accueil-ligne .k3-mot__i{ display:inline-block; }
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-ligne .k3-mot{
  opacity:0;
  animation:k3-mot-revele .95s cubic-bezier(.22,1,.36,1) both;
  animation-delay:calc(.12s + var(--k3-i,0) * 80ms);
}
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-ligne .k3-mot__i{
  animation:k3-mot-vague 7.5s ease-in-out infinite;
  animation-delay:calc(1.4s + var(--k3-i,0) * -.55s);
}
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-ligne .k3-mot--em .k3-mot__i{
  background:linear-gradient(100deg,currentColor 38%,oklch(.74 .09 172) 50%,currentColor 62%);
  background-size:320% 100%;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:k3-mot-vague 7.5s ease-in-out infinite,k3-em-lueur 7s cubic-bezier(.4,0,.2,1) 2.4s infinite;
  animation-delay:calc(1.4s + var(--k3-i,0) * -.55s),2.4s;
}
@keyframes k3-mot-revele{ 0%{opacity:0;transform:translateY(.55em);filter:blur(4px)} 100%{opacity:1;transform:none;filter:blur(0)} }
@keyframes k3-mot-vague{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-2px)} }
@keyframes k3-em-lueur{ 0%{background-position:120% 0} 35%{background-position:-20% 0} 100%{background-position:-20% 0} }
html.oc-entree-passee .oc-accueil-ligne .k3-mot, html.oc-entree-passee .oc-accueil-ligne .k3-mot__i{ animation:none !important; opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .oc-accueil-ligne .k3-mot, .oc-accueil-ligne .k3-mot__i{ animation:none !important; opacity:1 !important; transform:none !important; filter:none !important; }
  .oc-accueil-ligne .k3-mot--em .k3-mot__i{ background:none; -webkit-text-fill-color:currentColor; }
}

/* V13 : les baies s'éclairent dans le shader de la villa (fenetres.js) ; le verre SVG du fil ne se teinte plus */
.k3-fil__fenetre.is-lit{ opacity:0 !important; animation:none !important; }

/* V13 : après l'extinction de la dernière baie, les écrits respirent une dernière fois (souffle mot à mot, puis la porte d'entrée) */
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-ligne.k3-texte--final .k3-mot{
  animation:k3-mot-revele .95s cubic-bezier(.22,1,.36,1) both,k3-mot-final 1.9s cubic-bezier(.45,0,.2,1) both;
  animation-delay:calc(.12s + var(--k3-i,0) * 80ms),calc(var(--k3-i,0) * 70ms);
}
html.k3v6-ui-manifest:not(.oc-entree-passee) body[data-page="index"] .oc-accueil-suite.k3-texte--final{
  animation:k3-suite-final 2s cubic-bezier(.45,0,.2,1) 1.1s both;
}
@keyframes k3-mot-final{ 0%{opacity:1;transform:none;filter:blur(0)} 42%{opacity:.45;transform:translateY(-.42em);filter:blur(2.5px)} 100%{opacity:1;transform:none;filter:blur(0)} }
@keyframes k3-suite-final{ 0%{opacity:1;transform:none} 45%{opacity:.35;transform:translateY(-7px)} 100%{opacity:1;transform:none} }
@media (prefers-reduced-motion: reduce){ .oc-accueil-suite.k3-texte--final{ animation:none !important; } }

/* ── V13 : les trois maisons autour du nom (texte.js, maisonsInit) — registre de linteau ─────────────────── */
#accueil .k3-maisons{
  position:absolute; left:0; top:0; width:100%; height:0; z-index:2; pointer-events:none;
  font-family:"Bodoni Moda",Didot,"Bodoni 72",Georgia,serif; font-weight:400; font-style:normal; text-transform:uppercase; color:#1c1d1f;
  transform:translate3d(0,0,0); will-change:transform;   /* noms strictement immobiles (décision du 18/09) : la parallaxe de la souris ne s'applique plus aux noms ; même couche de rendu qu'au repos */
}
#accueil .k3-maisons p{ margin:0; }
#accueil .k3-maison--haut{
  position:absolute; left:var(--k3m-x0,0px); width:var(--k3m-w,0px); top:calc(var(--k3m-y0,0px) - clamp(20px,2.4vw,36px)); transform:translateY(-100%);
  display:flex; align-items:center; justify-content:center; gap:clamp(12px,1.5vw,24px);
  font-size:clamp(9.5px,.82vw,12.5px); --k3m-ls:.46em; letter-spacing:var(--k3m-ls); line-height:1;
}
#accueil .k3-maisons__bas{
  position:absolute; left:var(--k3m-x0,0px); width:var(--k3m-w,0px); top:calc(var(--k3m-y1,0px) + clamp(16px,2vw,30px));
  display:flex; align-items:center; gap:clamp(8px,1.1vw,18px);
  font-size:clamp(8px,.72vw,11.5px); --k3m-ls:.34em; letter-spacing:var(--k3m-ls); line-height:1;
}
#accueil .k3-maison__nom{ display:inline-block; white-space:nowrap; margin-right:calc(var(--k3m-ls) * -1); opacity:.86;
  background:linear-gradient(100deg,currentColor 40%,var(--k3m-glint,#8ea8a1) 50%,currentColor 60%); background-size:320% 100%; background-position:120% 0;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
#accueil .k3-maison__filet{ display:block; width:clamp(26px,4.2vw,68px); height:1px; opacity:.4; background:linear-gradient(90deg,transparent,currentColor); transform-origin:right center; }
#accueil .k3-maison__filet:last-child{ background:linear-gradient(90deg,currentColor,transparent); transform-origin:left center; }
#accueil .k3-maisons__filet{ display:block; flex:1; height:1px; background:currentColor; opacity:.2; transform-origin:right center; }
#accueil .k3-maisons__filet:last-of-type{ transform-origin:left center; }
#accueil .k3-maisons__losange{ display:block; flex:none; width:5px; height:5px; border:1px solid currentColor; opacity:.55; transform:rotate(45deg); transition:background-color 2.4s ease,border-color 2.4s ease,box-shadow 2.4s ease; }
/* avant l'écriture du nom : rien */
#accueil .k3-maisons:not(.is-on) :is(.k3-maison__nom,.k3-maison__filet,.k3-maisons__filet,.k3-maisons__losange){ opacity:0; }
/* révélation : filets depuis le centre, noms qui se précisent à leur espacement final, losange */
#accueil .k3-maisons.is-on .k3-maison__nom{ animation:k3m-nom 1.7s cubic-bezier(.16,1,.3,1) both, k3m-lueur 9s cubic-bezier(.4,0,.2,1) infinite; animation-delay:var(--k3m-d,.1s), calc(var(--k3m-d,.1s) + 3s); }
#accueil .k3-maisons.is-on .k3-maison--g{ --k3m-d:.55s; }
#accueil .k3-maisons.is-on .k3-maison--d{ --k3m-d:.75s; }
#accueil .k3-maisons.is-on :is(.k3-maison__filet,.k3-maisons__filet){ animation:k3m-filet 1.9s cubic-bezier(.16,1,.3,1) .25s both; }
#accueil .k3-maisons.is-on .k3-maisons__losange{ animation:k3m-losange 1.3s cubic-bezier(.16,1,.3,1) .4s both; }
@keyframes k3m-nom{ 0%{opacity:0;filter:blur(3px)} 100%{opacity:.86;filter:blur(0)} }   /* noms strictement immobiles (décisions du 15/09 et du 18/09) : ni resserrement ni montée ; fondu et flou conservés */
@keyframes k3m-filet{ 0%{transform:scaleX(0)} 100%{transform:scaleX(1)} }
@keyframes k3m-losange{ 0%{opacity:0;transform:rotate(45deg) scale(0)} 100%{opacity:.55;transform:rotate(45deg) scale(1)} }
@keyframes k3m-lueur{ 0%{background-position:120% 0} 30%{background-position:-20% 0} 100%{background-position:-20% 0} }
/* souffle à l'extinction (avec la phrase) */
#accueil .k3-maisons.is-souffle :is(.k3-maison--haut,.k3-maisons__bas){ animation:k3m-souffle 2.1s cubic-bezier(.45,0,.2,1) .2s both; }
@keyframes k3m-souffle{ 0%{opacity:1} 45%{opacity:.4} 100%{opacity:1} }   /* décision du 18/09 : le souffle reste un fondu, sans déplacement */
/* grande illumination : le losange s'allume en sable dilué, le balayage prend la couleur des baies */
#accueil .k3-maisons.is-finale{ --k3m-glint:#b99a64; }
#accueil .k3-maisons.is-finale .k3-maisons__losange{ background-color:#ead6b0; border-color:#bf9f6a; box-shadow:0 0 9px 1px rgba(234,214,176,.75); }
html.oc-entree-passee #accueil .k3-maisons{ display:none; }
@media (max-width:760px){
  #accueil .k3-maison--haut{ font-size:9px; --k3m-ls:.34em; gap:10px; }
  #accueil .k3-maisons__bas{ font-size:7.6px; --k3m-ls:.2em; gap:7px; }
  #accueil .k3-maison__filet{ width:22px; }
}
@media (prefers-reduced-motion: reduce){
  #accueil .k3-maisons, #accueil .k3-maisons *{ animation:none !important; transform:none; }
  #accueil .k3-maisons .k3-maisons__losange{ transform:rotate(45deg); }
}
#accueil .k3-maisons.is-statique *{ animation:none !important; }

/* V13 : encre des maisons — la règle du site « html.lux main p » éclaircit tout paragraphe ; l'identifiant reprend la main */
#accueil .k3-maisons p, #accueil .k3-maisons .k3-maison__nom{ color:#1c1d1f; font-family:"Bodoni Moda",Didot,"Bodoni 72",Georgia,serif; max-width:none; text-shadow:none; font-variant-numeric:normal; }

/* ── V13 : préchargeur typographique et pilule d'entrée ─────────── */
#accueil .k3-compteur{ position:absolute; left:50%; bottom:clamp(42px,7.5vh,76px); transform:translateX(-50%); z-index:2; pointer-events:none;
  display:flex; align-items:baseline; gap:16px; color:#1c1d1f; white-space:nowrap; transition:opacity 1.1s ease .3s; }
#accueil .k3-compteur__mot{ font:italic 400 clamp(11px,.92vw,13.5px)/1 "Bodoni Moda",Didot,Georgia,serif; letter-spacing:.03em; opacity:.62; }
#accueil .k3-compteur__n{ font:400 clamp(10px,.8vw,12px)/1 "Bodoni Moda",Didot,Georgia,serif; letter-spacing:.3em; margin-right:-.3em; font-variant-numeric:lining-nums tabular-nums; opacity:.82; }
#accueil .k3-compteur__barre{ position:absolute; left:0; right:0; bottom:-13px; height:1px; background:rgba(28,29,31,.13); }
#accueil .k3-compteur__barre > i{ position:absolute; left:0; top:0; width:100%; height:1px; background:#1c1d1f; opacity:.55; transform-origin:left center; transform:scaleX(var(--k3c-p,0)); }
#accueil .k3-compteur.is-fini{ opacity:0; }
#accueil .k3-compteur.is-statique{ display:none; }
/* ≤ 446 px (décision du 18/09) : centré, le compteur atteindrait ou frôlerait la pastille « SON » du site (bord droit à 118 px) ; il s'ancre 16 px après elle. Rien ne change au-delà. */
@media (max-width:446px){ #accueil .k3-compteur{ left:134px; transform:none; } }
#accueil .k3-pilule{ position:absolute; z-index:2; pointer-events:none; overflow:visible; }
#accueil .k3-pilule rect{ fill:none; }
#accueil .k3-pilule__trait{ stroke:#1c1d1f; stroke-opacity:.4; stroke-width:1; stroke-dasharray:1 1; stroke-dashoffset:1; }
#accueil .k3-pilule__lueur{ stroke:#4f9a86; stroke-width:1.5; stroke-linecap:round; stroke-dasharray:.06 .94; stroke-dashoffset:0; opacity:0; transition:stroke 2.4s ease; }
#accueil .k3-pilule.is-on .k3-pilule__trait{ animation:k3p-trace 1.9s cubic-bezier(.65,0,.35,1) .1s forwards; }
#accueil .k3-pilule.is-on .k3-pilule__lueur{ animation:k3p-lueur-in .9s ease 2s forwards, k3p-lueur 7.5s linear 2s infinite; }
#accueil .k3-pilule.is-finale .k3-pilule__lueur{ stroke:#c4a36a; }
@keyframes k3p-trace{ to{ stroke-dashoffset:0; } }
@keyframes k3p-lueur-in{ to{ opacity:.9; } }
@keyframes k3p-lueur{ from{ stroke-dashoffset:0; } to{ stroke-dashoffset:-1; } }
html.oc-entree-passee #accueil :is(.k3-compteur,.k3-pilule){ display:none; }
/* V15 « voile unique » : après le clic sur « Entrer dans la Maison », la façade demeure 7 à 9 s pendant le grand mouvement du ruban. La phrase,
   l'entrée, son contour et les invites s'effacent aussitôt : le clic est reconnu, la scène est au ruban. Le nom gravé et les trois maisons demeurent. */
#accueil #k3h-scene[data-k3-gate-state="EXITING"] ~ :is(.oc-accueil-in,.oc-accueil-geste,.oc-accueil-suite,.k3-pilule,.k3-compteur){ opacity:0 !important; transition:opacity .7s ease !important; pointer-events:none; }
@media (prefers-reduced-motion: reduce){ #accueil .k3-pilule__trait{ stroke-dashoffset:0; animation:none !important; } #accueil .k3-pilule__lueur{ display:none; } }
#accueil .k3-pilule.is-statique .k3-pilule__trait{ stroke-dashoffset:0; animation:none !important; }
#accueil .k3-pilule.is-statique .k3-pilule__lueur{ display:none; }

/* V13 : la fontaine (fontaine.js) — sous les couches météo (la nuit assombrit aussi l'eau), sous les voiles */
#k3h-scene .k3-fontaine{ position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; }
@media (prefers-reduced-motion: reduce){ #k3h-scene .k3-fontaine{ display:none; } }

/* ── V13 : le portail fermé puis ouvert (texte.js, portailInit) — la pilule est la jauge, le mot s'éclaire à 100 % ── */
html.k3-portail-ferme #accueil .k3-pilule .k3-pilule__trait{ animation:none !important; transition:stroke-dashoffset .3s linear; }
html.k3-portail-ferme #accueil .k3-pilule .k3-pilule__lueur{ animation:none !important; opacity:0 !important; }
html.k3-portail-ferme #accueil .oc-accueil-entrer__mot{ opacity:.42; transition:opacity 1.2s ease; }
html.k3-portail-ouvert #accueil .k3-pilule.is-on .k3-pilule__trait{ animation:none !important; stroke-dashoffset:0; stroke-opacity:.55; transition:stroke-opacity 1.4s ease; }
html.k3-portail-ouvert #accueil .k3-pilule.is-on .k3-pilule__lueur{ animation:k3p-lueur-in .9s ease .15s forwards, k3p-lueur 7.5s linear .15s infinite; }
html.k3-portail-ouvert #accueil .oc-accueil-entrer__mot{ animation:k3-portail-mot 1.6s cubic-bezier(.16,1,.3,1) both; }
@keyframes k3-portail-mot{ 0%{opacity:.42;filter:blur(1.2px)} 100%{opacity:1;filter:blur(0)} }
#accueil .k3-compteur.is-ouvert .k3-compteur__mot{ font-style:italic; opacity:.8; }
@media (prefers-reduced-motion: reduce){ html.k3-portail-ouvert #accueil .oc-accueil-entrer__mot{ animation:none; opacity:1; } }
