/* ══════════════════════════════════════════════════════════════════════════
   MARS WEBCAM, MOON WEBCAM : LA FEUILLE                          (01/10/2026)
   ══════════════════════════════════════════════════════════════════════════
   Le monde du sujet : la webcam de site (station, port, col), avec son bandeau
   plein sous l'image.
   ⛔ RIEN SUR L'IMAGE (demande de l'éditeur, 01/10 : « le titre contenu dans la
     barre du bas, pour ne pas altérer la vue de Mars ; à part le panneau il n'y
     a rien »). L'écran est coupé en deux : l'image en haut, la barre en bas. Le
     lieu, les deux heures et les commandes sont dans la barre. Ce que la vue du
     sol pose d'ordinaire sur son image (titre, boussole, conseil, crédit) est
     caché ici : le conseil est dit dans la popup d'accueil, le crédit dans la
     feuille « À propos ».
   ★ La barre prend la couleur du monde (--wc-couleur, posée par l'appli) :
     l'oxyde de Mars avec du blanc, le gris de la Lune avec du noir.
   ★ Aucune police téléchargée : le condensé du système (sur Android,
     « sans-serif-condensed » est Roboto Condensed), repli sur Arial Narrow.
   ★ Les classes .cf-sol* sont celles de la vue du sol (sol/vue-sol.mjs) : la
     vue fabrique ces éléments, cette feuille les habille. Leur feuille
     d'origine n'est pas reprise.
   ══════════════════════════════════════════════════════════════════════════ */
html, body { margin: 0; height: 100%; background: #000; overscroll-behavior: none; }
.wc {
  --wc-couleur: #b4532a; --wc-fond: #1b0f0a; --wc-encre: #fff; --wc-creux: rgba(0, 0, 0, 0.24); --wc-vif: #e3261b;
  position: fixed; inset: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--wc-fond); color: #fff;
  font-family: "sans-serif-condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-stretch: condensed;
  font-size: 16px; line-height: 1.25; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.wc[data-site="lune"] { --wc-encre: #111316; --wc-creux: rgba(0, 0, 0, 0.11); }
.wc [hidden] { display: none !important; }
.wc button { font: inherit; color: inherit; border: 0; margin: 0; cursor: pointer; }
.wc p { margin: 0; }

/* ── L'attente ─────────────────────────────────────────────────────────── */
.wc-attente { font-family: "sans-serif-condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; color: #fff; position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--wc-fond); transition: opacity 0.6s; }
.wc-attente--fini { opacity: 0; pointer-events: none; }
/* Le chargeur d'Astro Moment, repris à l'identique (éditeur, 14/10/2026) : les planètes tournent avec leur sillage ; quand la vue
   est prête, on plonge dans le système et la vue paraît dessous. */
.wc-attente .bm-fond-systeme { animation: bm-orbites .9s ease-out backwards; }
.wc-attente .bm-orrery { position: relative; width: min(80vw, 340px); aspect-ratio: 1; will-change: transform, opacity; }
.wc-attente .bm-orrery svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wc-attente .bm-calque, .wc-attente .bm-calque-halo { position: absolute; inset: 0; will-change: transform; }
.wc-attente .bm-calque { transform: rotate(var(--a)); animation: bm-ronde var(--d) linear infinite, bm-pose .5s ease-out backwards; animation-delay: 0s, calc(.25s + var(--i) * 90ms); }
.wc-attente .bm-calque-halo { animation: bm-halo-div 2.8s ease-in-out infinite; }
.wc-attente .bm-orbite { fill: none; stroke: #f4efe9; stroke-width: .35; opacity: .2; }
.wc-attente .bm-planete { fill: var(--c); }
.wc-attente .bm-sillage { fill: none; stroke: var(--c); stroke-width: 1.9; stroke-linecap: round; opacity: var(--o); }
.wc-attente .bm-anneau-saturne { fill: none; stroke: var(--c); stroke-width: .9; opacity: .9; }
.wc-attente .bm-soleil { fill: #F0B24A; }
.wc-attente .bm-soleil-halo { fill: none; stroke: #F0B24A; stroke-width: .8; opacity: .45; }
/* Le nom SOUS le système, sans le décentrer : le Soleil reste au centre exact de l'écran. */
.wc-attente .wc-attente__nom { position: absolute; left: 0; right: 0; top: calc(50% + min(40vw, 170px) + 22px); text-align: center; font-size: 22px; animation: bm-pose .8s .5s ease-out backwards; }
.wc-attente .wc-attente__etat { position: absolute; left: 0; right: 0; top: calc(50% + min(40vw, 170px) + 58px); max-width: none; animation: bm-pose .8s .7s ease-out backwards; }
.wc-attente--sort { pointer-events: none; animation: bm-fond-sort .7s ease-in forwards; }
.wc-attente--sort .bm-orrery { animation: bm-plonge .7s cubic-bezier(.6, 0, .9, .4) forwards; }
.wc-attente--sort p { animation: bm-efface .25s ease-in forwards; }
@keyframes bm-ronde { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) + 360deg)); } }
@keyframes bm-orbite-trace { from { opacity: 0; transform: scale(.7); } }
@keyframes bm-halo-div { 50% { transform: scale(1.28); opacity: .3; } }
@keyframes bm-orbites { from { opacity: 0; transform: scale(.7); } }
@keyframes bm-pose { from { opacity: 0; } }
@keyframes bm-plonge { to { transform: scale(9); opacity: 0; } }
@keyframes bm-fond-sort { 0%, 35% { opacity: 1; } to { opacity: 0; } }
@keyframes bm-efface { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wc-attente *, .wc-attente--sort { animation: none !important; } .wc-attente--sort { opacity: 0; transition: opacity .3s; } }
.wc-attente__nom { font-family: "Archivo Black", "Arial Black", sans-serif; font-stretch: normal; font-size: 30px; font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; color: var(--wc-couleur); }
.wc-attente__etat { font-size: 15px; color: rgba(255, 255, 255, 0.7); max-width: 80%; text-align: center; }

/* ── La popup d'accueil : par-dessus tout, la vue reste visible autour ─── */
.wc-accueil { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.42); }
.wc-accueil__carte { box-sizing: border-box; width: min(430px, 100%); padding: 22px 22px 20px; background: var(--wc-couleur); color: var(--wc-encre); }
.wc-accueil h1 { margin: 0 0 12px; font-size: 40px; line-height: 1; font-weight: 700; text-transform: uppercase; }
.wc-accueil p { margin: 0 0 10px; font-family: "Helvetica Neue", Arial, sans-serif; font-stretch: normal; line-height: 1.4; }
.wc-accueil__phrase { font-size: 18px; }
.wc-accueil__vrai { font-size: 15px; opacity: 0.86; }
/* ⚠ « .wc button { color: inherit } » l'emporte sur une classe seule : sans le « .wc » devant, le texte du bouton sortait
   blanc sur blanc (capture du 01/10). */
.wc .wc-accueil__entrer { display: block; width: 100%; min-height: 50px; margin-top: 16px; background: #fff; color: #14110f; font-size: 19px; font-weight: 700; text-transform: uppercase; border-radius: 2px; }
.wc-accueil__entrer:focus-visible { outline: 2px solid var(--wc-encre); outline-offset: 3px; }
.wc-accueil__appli { margin: 14px 0 0 !important; font-size: 15px; }
.wc-accueil__appli a { color: inherit; font-weight: 700; margin-inline-start: 8px; }
.wc-accueil__appli .wc-accueil__badge { display: block; margin: 8px 0 0; }
.wc-accueil__badge img { display: block; height: 48px; width: auto; }
/* La bande « appli » (Android seulement) : au-dessus de la barre et de sa languette, sous la popup et la feuille. */
.wc-appli { position: absolute; z-index: 13; left: 50%; transform: translateX(-50%); bottom: calc(var(--wc-bas, 0px) + 36px); box-sizing: border-box; max-width: calc(100% - 20px); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; background: var(--wc-couleur); color: var(--wc-encre); border-radius: 4px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); font-family: "Helvetica Neue", Arial, sans-serif; font-size: 15px; font-weight: 700; white-space: nowrap; }
.wc-appli span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wc-appli a { flex: none; }
.wc-appli img { display: block; height: 40px; width: auto; }
.wc .wc-appli button { flex: none; width: 40px; height: 40px; padding: 0; background: transparent; font-size: 26px; line-height: 1; opacity: 0.8; }
.wc[data-plein] .wc-appli, .wc[data-nu] .wc-appli { display: none; }

/* ── Le bouton des langues : un globe. Dans la popup il dit le nom de la langue en cours ; dans la barre il n'est
   qu'un pictogramme, à côté de « À propos ». Il ouvre la mosaïque. ───────────────────────────────────────────── */
.wc-langue { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.wc-langue svg { width: 22px; height: 22px; flex: none; }
.wc-langue__drapeau { width: 30px; height: 22px; flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
/* « Welcome to Mars! » : deux petites étiquettes d'affiche en haut à gauche, trois secondes, sans rien bloquer ni couvrir le panneau. */
@font-face { font-family: "Archivo Black"; src: url("archivo-black.woff2") format("woff2"); font-display: swap; }
.wc-bienvenue { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); inset-inline-start: 14px; z-index: 35; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; transform: rotate(-3deg); transform-origin: 0 0; transition: opacity 0.45s; }
.wc-bienvenue span { font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-stretch: normal; font-weight: 400; text-transform: uppercase; line-height: 1; white-space: nowrap; padding: 0.14em 0.3em; background: #0d0b0a; color: #fff; font-size: min(6.4vw, 34px); animation: wc-bienvenue 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) backwards; }
.wc-bienvenue span + span { background: #ffd23c; color: #0d0b0a; font-size: min(7.4vw, 40px); margin-top: -0.04em; animation-delay: 0.22s; }
.wc-bienvenue--part { opacity: 0; }
@keyframes wc-bienvenue { from { opacity: 0; transform: scale(0.6); } }
.wc-langue:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.wc-accueil__langue { margin: 12px 0 0 !important; text-align: center; }
/* ⚠ « .wc » devant : « .wc button { font: inherit } » l'emporte sur une classe seule. */
.wc .wc-langue--nom { min-height: 42px; padding: 0 14px; background: var(--wc-creux); border-radius: 2px; font-family: system-ui, "Helvetica Neue", Arial, sans-serif; font-stretch: normal; font-size: 16px; font-weight: 700; }
.wc-langue--nom::after { content: ""; width: 0; height: 0; border: 5px solid transparent; border-top: 6px solid currentColor; border-bottom-width: 0; opacity: 0.8; }

/* ── La mosaïque des langues : une carte sur l'image, une grille de drapeaux qui défile DANS la carte ──────────
   ★ Elle s'arrête au-dessus de la barre du bas (--wc-bas, hauteur de la barre, posée par l'appli) : la barre reste
     visible, et hors de la carte il n'y a rien de plus sur l'image qu'un voile.
   ★ Trois colonnes sur un téléphone tenu droit, six sur un écran large. La grille suit le sens d'écriture (dir).
   ★ Chaque nom est écrit dans sa langue, donc dans son écriture : la police du système, pas le condensé de la barre.
   ⚠ Les drapeaux sont des SVG recadrés sur leur dessin (36 × 26) : pas de vide au-dessus ni en dessous à rattraper ici. */
.wc-mosaique { position: absolute; inset: 0 0 var(--wc-bas, 0px) 0; z-index: 50; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(0, 0, 0, 0.5); }
.wc-mosaique__carte { box-sizing: border-box; display: flex; flex-direction: column; width: min(430px, 100%); max-height: 100%; min-height: 0; background: var(--wc-couleur); color: var(--wc-encre); }
.wc-mosaique__tete { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; padding-inline: 14px 10px; }
.wc-mosaique__tete h2 { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.wc-mosaique__tete h2 svg { width: 24px; height: 24px; flex: none; }
.wc-mosaique__tete h2 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-mosaique__grille { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 2px 10px 10px; }
.wc .wc-mosaique__tuile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; min-width: 0; min-height: 76px; padding: 10px 4px 8px; background: var(--wc-creux); border-radius: 2px; font-family: system-ui, "Helvetica Neue", Arial, sans-serif; font-stretch: normal; font-size: 13px; line-height: 1.25; font-weight: 600; text-align: center; }
.wc-mosaique__tuile img { display: block; flex: none; width: 36px; height: 26px; border-radius: 4px; }
.wc-mosaique__tuile span { max-width: 100%; overflow-wrap: anywhere; }
.wc .wc-mosaique__tuile[aria-current="true"] { background: #fff; color: #14110f; box-shadow: inset 0 0 0 2px var(--wc-vif); }
.wc-mosaique__tuile:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.wc-mosaique__credit { flex: none; margin: 0; padding: 5px 14px 7px; font-family: system-ui, "Helvetica Neue", Arial, sans-serif; font-stretch: normal; font-size: 11.5px; opacity: 0.75; text-align: end; }
/* Écran large ou couché : autant de colonnes que la carte en porte (neuf sur un écran d'ordinateur : les 54 langues
   tiennent alors en six rangées, sans défilement). */
.wc[data-large] .wc-mosaique__carte { width: min(1000px, 100%); }
.wc[data-large] .wc-mosaique__grille { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

/* ── L'image : tout ce qui reste au-dessus de la barre, et rien dessus ──── */
.wc-vue { position: relative; flex: 1 1 auto; min-height: 0; background: #000; }
.cf-sol { position: absolute; inset: 0; background: #000; }
.cf-sol__toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; outline: none; }
.cf-sol__toile:active { cursor: grabbing; }
.cf-sol__tete, .cf-sol__compas, .cf-sol__conseil, .cf-sol__credit, .cf-sol__noms { display: none !important; }
/* Seul texte admis sur l'image : l'état du chargement, et l'erreur si la vue ne peut pas s'ouvrir. */
.cf-sol__charge { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); max-width: 84%; font-size: 17px; color: rgba(255, 255, 255, 0.8); text-align: center; pointer-events: none; }
.cf-sol__charge:empty { display: none; }

/* ── La barre ──────────────────────────────────────────────────────────── */
.wc-bandeau { position: relative; z-index: 12; flex: none; box-sizing: border-box; padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px)); background: var(--wc-couleur); color: var(--wc-encre); display: flex; flex-direction: column; gap: 8px; }
/* Le lieu, l'heure qu'il y est, l'heure qu'il est sur Terre (celle de l'appareil : on appuie dessus pour en changer). */
.wc-infos { min-width: 0; }
.wc-lieu { font-size: 19px; line-height: 1.15; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Les écritures à lettres empilées (arabe, ourdou, écritures de l'Inde, thaï, vietnamien : marque « haute » de la liste des
   langues, posée par l'appli en data-haute) : une ligne aussi serrée, rognée par « overflow », leur coupait la tête ou le pied. */
.wc[data-haute] .wc-lieu { line-height: 1.5; }
.wc[data-haute] .wc-locale, .wc[data-haute] .wc-date { line-height: 1.55; }
.wc[data-haute] .wc-bouton, .wc[data-haute] .wc-direct { line-height: 1.5; }
.wc[data-haute] .wc-accueil h1 { letter-spacing: 0; }
:lang(ur) .wc-lieu, :lang(ur) .wc-locale, :lang(ur) .wc-date, :lang(ur) .wc-bouton, :lang(ur) .wc-direct { line-height: 1.9; }
.wc-locale, .wc-date { font-size: 14.5px; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-locale { min-height: 1.3em; }
.wc-date { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "ou direct ." "heure heure heure" "quand quand quand"; align-items: center; column-gap: 8px; row-gap: 0; max-width: 100%; margin: 4px 0 0; margin-inline-start: -4px; padding: 4px 8px 5px; background: rgba(0, 0, 0, 0.16); border-radius: 8px; text-align: start; }
/* ★ L'heure de la Terre, bien visible (15/10/2026) : la ligne « Earth time » et le témoin, l'heure en grand, la date et le fuseau dessous. */
.wc-date__ou { grid-area: ou; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.wc-date__direct { grid-area: direct; display: none; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 7px 1px 6px; border-radius: 10px; background: #fff; color: #14110f; }
.wc-date__direct i { width: 7px; height: 7px; border-radius: 50%; background: #e53b2f; animation: wc-pouls 1.6s ease-in-out infinite; }
.wc-date[data-present] .wc-date__direct { display: inline-flex; }
@keyframes wc-pouls { 50% { opacity: 0.25; } }
.wc-date__heure { grid-area: heure; font-size: 26px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.wc-date__quand { grid-area: quand; font-size: 13px; opacity: 0.9; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .wc-date__direct i { animation: none; } }
.wc-date__champ { position: absolute; inset-inline-start: 10px; bottom: 100%; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
/* Les commandes : où aller dans le temps, puis à quelle allure. */
.wc-commandes { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wc-rang { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wc-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 12px; background: var(--wc-creux); font-size: 15px; font-weight: 700; text-transform: uppercase; white-space: nowrap; border-radius: 2px; }
.wc-bouton svg { width: 22px; height: 22px; flex: none; }
/* Un bouton qui est un LIEN (« Nous écrire », partage) garde l'encre du bouton : sans cela, le bleu souligné du navigateur. */
a.wc-bouton, a.wc-bouton:visited { color: inherit; text-decoration: none; }
.wc-bouton--picto { width: 42px; padding: 0; flex: none; }
.wc .wc-recul[data-actif] { background: #fff; color: #14110f; }      /* le temps recule : le bouton reste allumé */
.wc a.wc-selfie, .wc a.wc-selfie:visited { background: #ffd23c; color: #14110f; }
/* Le bouton d'un astre à regarder (la Terre, sur la Lune) : son pictogramme et son nom, jamais écrasé par la vitesse. */
.wc-astre { flex: none; max-width: 42%; }
.wc-astre span { overflow: hidden; text-overflow: ellipsis; }
.wc-bouton--large { flex: 1 1 0; min-width: 0; }
.wc-bouton--large span { overflow: hidden; text-overflow: ellipsis; }
.wc-vitesse span { font-variant-numeric: tabular-nums; }
.wc-bouton:disabled { opacity: 0.38; cursor: default; }
.wc-bouton:focus-visible, .wc-direct:focus-visible, .wc-date:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Direct : plein quand on y est (pastille rouge qui bat), en creux quand on l'a quitté. */
.wc-direct { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; background: var(--wc-creux); font-size: 16px; font-weight: 700; text-transform: uppercase; border-radius: 2px; white-space: nowrap; }
.wc-direct i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: 0.45; }
.wc-direct[aria-pressed="true"] { background: #fff; color: #14110f; }
.wc-direct[aria-pressed="true"] i { background: var(--wc-vif); opacity: 1; animation: wc-bat 1.6s steps(2, jump-none) infinite; }
/* Sur la Lune la barre est gris clair : un bouton blanc ne s'y « allume » pas (éditeur, 01/10 : « le bouton maintenant ne
   s'allume pas en rouge comme sur Mars »). Il passe en sombre, la pastille rouge dessus. */
.wc[data-site="lune"] .wc-direct[aria-pressed="true"] { background: #14110f; color: #fff; }
@keyframes wc-bat { from { opacity: 1; } to { opacity: 0.45; } }
/* Sur un téléphone, « Direct », « Lever » et « Coucher » se partagent la largeur : dans bien des langues le mot est plus
   long qu'en français (« Solnedgang », « Gün batımı », « Pôr do sol »). Les marges se serrent pour qu'il tienne entier, et
   le texte perd un point sur les écrans les plus étroits (360 px). */
.wc:not([data-large]) .wc-rang--ou { gap: 6px; }
.wc:not([data-large]) .wc-rang--ou .wc-bouton { padding: 0 7px; gap: 5px; }
.wc:not([data-large]) .wc-rang--ou .wc-direct { padding: 0 10px; gap: 6px; }
@media (max-width: 380px) { .wc:not([data-large]) .wc-rang--ou .wc-bouton, .wc:not([data-large]) .wc-rang--ou .wc-direct { font-size: 14px; } .wc:not([data-large]) .wc-rang--ou .wc-bouton svg { width: 20px; height: 20px; } }
/* L'avis de nuit : une ligne de la barre, qui s'en va toute seule. */
.wc-avis { display: flex; align-items: center; gap: 10px; padding: 0 0 8px; border-bottom: 1px solid var(--wc-creux); }
.wc-avis p { flex: 1 1 auto; min-width: 0; font-size: 15px; }
/* Sur un téléphone, dans une langue où le bouton est long, il passe sous la phrase plutôt que de l'écraser sur quatre lignes. */
.wc:not([data-large]) .wc-avis { flex-wrap: wrap; gap: 6px 10px; }
.wc:not([data-large]) .wc-avis p { flex: 1 1 13em; }
/* ⚠ « a.wc-bouton:visited { color: inherit } » l'emportait sur la ligne d'après : le lien DÉJÀ VISITÉ (page de location) sortait blanc sur blanc (éditeur, 12/10). */
.wc-avis .wc-bouton, .wc-avis a.wc-bouton:visited { flex: none; background: #fff; color: #14110f; }
/* La ligne du panneau, quand on en est près : vers l'annonceur, ou vers la page de location. Un lien, habillé en bouton. */
.wc-pub a.wc-bouton { text-decoration: none; max-width: 100%; min-width: 0; }
.wc-pub a.wc-bouton span { overflow: hidden; text-overflow: ellipsis; }
.wc-pub p { font-weight: 700; text-transform: uppercase; }
/* Les liens de partage, quand le système n'a pas le sien : une ligne qui passe à la suivante sur un écran étroit. */
.wc-partage { flex-wrap: wrap; gap: 8px; }
.wc-partage a.wc-bouton { text-decoration: none; }

/* ── La feuille « À propos » ───────────────────────────────────────────── */
.wc-feuille { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; box-sizing: border-box; max-height: 78%; overflow-y: auto; padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--wc-couleur); color: var(--wc-encre); -webkit-user-select: text; user-select: text; }
.wc-feuille h2 { margin: 0 0 10px; margin-inline-end: 96px; font-size: 24px; text-transform: uppercase; }
.wc-feuille h3 { margin: 16px 0 6px; font-size: 15px; text-transform: uppercase; opacity: 0.8; }
.wc-feuille p { margin: 0 0 10px; max-width: 62ch; font-family: "Helvetica Neue", Arial, sans-serif; font-stretch: normal; font-size: 16px; line-height: 1.45; }
.wc-feuille__credits { font-size: 14px !important; }
.wc-feuille__fermer { position: absolute; top: 12px; inset-inline-end: 12px; }
/* Les liens légaux : deux liens côte à côte, qui passent l'un sous l'autre si la langue les allonge. */
.wc-feuille__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px !important; font-size: 14px !important; }
.wc-feuille__legal a { color: inherit; }
.wc-feuille__aussi a { color: inherit; font-weight: 700; margin-inline-start: 6px; }

/* ── Sur un écran large ou couché (760 px au moins, ou plus large que haut) : la barre tient sur une ligne ── */
/* ⚠ Une marque posée par l'appli (data-large), pas une requête média : la disposition suit la taille RÉELLE de l'écran de
   l'appli, qui n'est pas celle de la fenêtre quand la page est agrandie pour une copie d'écran (?echelle=2). */
.wc[data-large] .wc-bandeau { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.wc[data-large] .wc-avis { flex: 1 0 100%; }
.wc[data-large] .wc-infos { flex: 1 1 auto; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; }
.wc[data-large] .wc-lieu { grid-row: 1 / span 2; align-self: center; font-size: 22px; }
.wc[data-large] .wc-date { padding: 0 4px; }
.wc[data-large] .wc-commandes { flex: none; flex-direction: row; gap: 22px; }
.wc[data-large] .wc-bouton--large { flex: none; }
.wc[data-large] .wc-vitesse { min-width: 124px; }
.wc[data-large] .wc-feuille { inset-inline-start: auto; width: min(520px, 100%); }
@media (prefers-reduced-motion: reduce) { .wc-direct[aria-pressed="true"] i { animation: none; } .wc-attente { transition: none; } }

/* ── L'enregistreur vidéo (?enregistrer=1, app/enregistreur.mjs) : pour l'éditeur seul, hors de l'image filmée ── */
.wc-rec { position: absolute; top: 10px; left: 10px; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; background: rgba(0, 0, 0, 0.62); border-radius: 4px; font-size: 14px; }
.wc .wc-rec__bouton { min-height: 36px; padding: 0 14px; background: #fff; color: #111; border-radius: 3px; font-weight: 700; }
.wc .wc-rec[data-actif] .wc-rec__bouton { background: var(--wc-vif); color: #fff; }
.wc-rec__etat { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.85); }
.wc-rec__cadre { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.85); cursor: pointer; }
.wc-rec-cadre { position: absolute; z-index: 44; box-sizing: border-box; border: 2px dashed rgba(255, 255, 255, 0.75); pointer-events: none; }
.wc-feuille__contact { margin: 14px 0 0 !important; }

/* ── La languette (07/10/2026) : replie et déplie le bandeau. Posée sur son bord haut, au milieu ; bandeau replié, elle
   reste seule au bas de l'image. Le bandeau garde sa place dans la page (hauteur nulle) pour qu'elle y reste accrochée.
   Soignée (éditeur : « l'UX à cet endroit doit être soignée ») : grande cible pour le doigt, chevron qui se retourne,
   contenu qui s'efface en glissant puis remonte, contour visible au clavier. ── */
.wc-languette { position: absolute; left: 50%; bottom: calc(100% - 1px); transform: translateX(-50%); width: 76px; height: 24px; padding: 0; border: 0; border-radius: 14px 14px 0 0;
  background: var(--wc-couleur); color: var(--wc-encre); display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wc-languette::before { content: ""; position: absolute; inset: -14px -12px 0; }   /* la cible du doigt : 100 × 38 px au moins */
.wc-languette svg { width: 20px; height: 20px; opacity: 0.9; transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.3, 1); }
.wc-languette:hover svg, .wc-languette:focus-visible svg { opacity: 1; transform: translateY(1px); }
.wc-languette:focus-visible { outline: 2px solid var(--wc-encre); outline-offset: -3px; }
.wc[data-replie] .wc-languette { height: 28px; }
.wc[data-replie] .wc-languette svg { transform: rotate(180deg); }
.wc[data-replie] .wc-languette:hover svg, .wc[data-replie] .wc-languette:focus-visible svg { transform: rotate(180deg) translateY(1px); }
.wc[data-replie] .wc-bandeau { padding: 0 0 env(safe-area-inset-bottom, 0px); gap: 0; }
.wc[data-replie] .wc-bandeau > :not(.wc-languette) { display: none !important; }
/* Le contenu part (data-part, posé 170 ms avant de replier) et revient. */
.wc-bandeau > :not(.wc-languette) { animation: wc-revient 0.24s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.wc[data-part] .wc-bandeau > :not(.wc-languette) { animation: none; opacity: 0; transform: translateY(10px); transition: opacity 0.16s ease-in, transform 0.16s ease-in; }
@keyframes wc-revient { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .wc-languette svg { transition: none; } .wc-bandeau > :not(.wc-languette) { animation: none; } }

/* ── Le studio de reels (?studio=1, 07/10/2026) : l'appli en colonne verticale 9:16 à gauche, le pupitre à droite ── */
.wc[data-studio] { inset: 0 auto 0 0; width: calc(100vh * 9 / 16); max-width: 100vw; }
.wc-studio { position: fixed; top: 0; bottom: 0; right: 0; left: calc(100vh * 9 / 16); z-index: 50; display: flex; flex-direction: column; box-sizing: border-box;
  background: #14110e; color: #f3ede4; font: 15px/1.4 -apple-system, "Helvetica Neue", Arial, sans-serif; }
.wc-studio * { box-sizing: border-box; }
.wc-studio__tete { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #2a231c; position: relative; z-index: 3; }
.wc-studio h2 { margin: 0; font-size: 20px; }
.wc-studio h3 { margin: 20px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: #a89e91; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.wc-studio__corps { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 18px 20px; }
.wc-studio__aide { margin: 0; padding: 10px 12px; border-radius: 10px; background: #211b15; color: #cfc5b8; font-size: 14px; }
.wc-studio button { font: inherit; font-weight: 600; border-radius: 9px; border: 1px solid #372e25; background: #2c241c; color: #f3ede4; padding: 6px 12px; min-height: 34px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.wc-studio button:hover { border-color: #6a5a48; } .wc-studio button:disabled { opacity: 0.4; cursor: default; }
.wc-studio label { cursor: pointer; }
.wc-studio__choix { display: inline-flex; gap: 6px; }
/* Le scénario : des cartes à choix unique, toute la carte se clique. */
.wc-studio__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 8px; }
.wc-studio__liste label { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 11px; background: #211b15; border: 2px solid transparent; }
.wc-studio__liste label:has(input:checked) { border-color: #f0be1e; background: #2a2217; }
.wc-studio__liste input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: #f0be1e; }
.wc-studio__liste span { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; flex: 1; align-items: baseline; }
.wc-studio__liste b { font-weight: 600; } .wc-studio__liste em { grid-column: 1 / -1; font-style: normal; font-size: 13px; color: #a89e91; line-height: 1.35; }
.wc-studio h3 input[type=search] { flex: 1 1 180px; min-width: 0; font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid #4a4034; background: #15110d; color: #f3ece2; }
.wc-studio__affiches label[hidden] { display: none; }
.wc-studio__texte { margin-top: 10px; display: grid; gap: 10px; padding: 12px; border-radius: 11px; background: #211b15; }
.wc-studio__texte[hidden] { display: none; }
.wc-studio__texte label { display: grid; gap: 4px; font-size: 13px; color: #a89e91; }
.wc-studio__texte input { font: inherit; font-size: 15px; padding: 9px 11px; border-radius: 8px; border: 1px solid #4a4034; background: #15110d; color: #f3ece2; }
.wc-studio__texte p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: #a89e91; }
.wc-studio__texte button { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 8px; border: 1px solid #f0be1e; background: none; color: #f0be1e; cursor: pointer; }
.wc-studio__liste small { color: #a89e91; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc-studio__affiches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.wc-studio__affiches label { position: relative; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #a89e91; }
.wc-studio__affiches input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; margin: 0; accent-color: #f0be1e; z-index: 1; }
.wc-studio__affiches img:not([src]) { visibility: hidden; }
.wc-studio__affiches img, .wc-studio__affiches i { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 8px; background: #fff7f2; color: #d8102f; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 28px; outline: 2px solid transparent; outline-offset: 1px; }
.wc-studio__affiches input:checked ~ img, .wc-studio__affiches input:checked ~ i { outline-color: #f0be1e; }
.wc-studio__affiches input:not(:checked) ~ img, .wc-studio__affiches input:not(:checked) ~ i { opacity: 0.35; }
.wc-studio__affiches span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Le pied : toujours à l'écran, jamais recouvert. */
.wc-studio__pied { flex: none; padding: 12px 18px 14px; background: #1b1611; border-top: 1px solid #2a231c; position: relative; z-index: 2; }
.wc-studio__ligne { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wc-studio__nombre { display: inline-flex; align-items: stretch; border: 1px solid #372e25; border-radius: 11px; overflow: hidden; }
.wc-studio .wc-studio__nombre button { border: 0; border-radius: 0; width: 44px; min-height: 48px; font-size: 22px; padding: 0; }
.wc-studio__nombre input { width: 58px; border: 0; background: #17130f; color: #f3ede4; font: inherit; font-size: 18px; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.wc-studio__nombre input::-webkit-outer-spin-button, .wc-studio__nombre input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wc-studio__resume { flex: 1 1 160px; color: #cfc5b8; font-size: 14px; }
.wc-studio .wc-studio__go, .wc-studio .wc-studio__stop { min-height: 52px; min-width: 190px; padding: 0 28px; font-size: 18px; font-weight: 700; border-radius: 12px; }
.wc-studio .wc-studio__voir { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.wc-studio .wc-studio__go { background: #f0be1e; border-color: #f0be1e; color: #15120d; } .wc-studio .wc-studio__go:hover { background: #ffd040; }
.wc-studio .wc-studio__stop { background: #c8553d; border-color: #c8553d; color: #fff; }
.wc-studio__barre { height: 5px; border-radius: 3px; background: #2a231c; margin-top: 12px; overflow: hidden; } .wc-studio__barre i { display: block; height: 100%; width: 0; background: #f0be1e; transition: width 0.4s; }
.wc-studio__etat { margin: 8px 0 0; color: #f0be1e; font-weight: 600; min-height: 1.4em; font-size: 14px; }
/* Le menu : le même burger que sur les pages de l'éditeur. */
.wc-studio__menu { position: relative; } .wc-studio__menu summary { list-style: none; width: 46px; height: 46px; border-radius: 12px; background: #2c241c; border: 1px solid #372e25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.wc-studio__menu summary::-webkit-details-marker { display: none; } .wc-studio__menu summary i { width: 22px; height: 2.5px; border-radius: 2px; background: #f3ede4; transition: transform 0.2s, opacity 0.2s; }
.wc-studio__menu[open] summary i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); } .wc-studio__menu[open] summary i:nth-child(2) { opacity: 0; } .wc-studio__menu[open] summary i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.wc-studio__menu nav { position: absolute; right: 0; top: 54px; min-width: 240px; background: #211b15; border: 1px solid #372e25; border-radius: 14px; padding: 8px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; }
.wc-studio__menu a, .wc-studio__menu b, .wc-studio .wc-studio__menu form button { display: block; width: 100%; text-align: start; padding: 12px 14px; border-radius: 9px; color: #f3ede4; text-decoration: none; background: none; border: 0; font-weight: 500; }
.wc-studio__menu b { color: #f0be1e; font-weight: 700; } .wc-studio__menu a:hover, .wc-studio .wc-studio__menu form button:hover { background: #2c241c; }
.wc-studio__menu form { border-top: 1px solid #372e25; margin-top: 6px; padding-top: 6px; }
/* Fenêtre étroite : l'image en haut, le pupitre dessous. */
@media (max-aspect-ratio: 1/1) { .wc[data-studio] { inset: 0 0 auto 0; width: 100vw; height: 46vh; } .wc-studio { left: 0; top: 46vh; } }

/* ── Plein écran (03/10/2026) : la barre se masque, un seul bouton discret la fait revenir ── */
.wc-revenir { display: none; }
.wc[data-plein] .wc-bandeau { display: none; }
.wc[data-plein] .wc-revenir { display: flex; align-items: center; justify-content: center; position: absolute; z-index: 25;
  right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.42); color: #fff; opacity: 0.7; transition: opacity 0.2s; }
.wc[data-plein] .wc-revenir:hover, .wc[data-plein] .wc-revenir:focus-visible { opacity: 1; }
.wc-revenir svg { width: 22px; height: 22px; }
.wc[data-nu] .wc-revenir { display: none !important; }
