/*
 * Module Vitrine / Portfolio : page publique (Views/vitrine/show.php) et formulaire du dashboard.
 *
 * Feuille CSS classique (pas de Tailwind) : elle ne demande aucune recompilation (bin\build-css.bat).
 * Les couleurs viennent des variables du thème de la page :
 *   - page publique (thème « home ")  : --accent, --accent-soft, --accent-dark, --fg, --muted, --border, --card-bg, --bg
 *   - dashboard                       : --brand, --line, --card, --text, --muted
 * Chaque règle essaie la variable du dashboard puis celle de la page publique.
 */

/* ------------------------------------------------------------ dashboard : miniatures du formulaire */
.vt-thumb { width: 7rem; height: 5rem; object-fit: cover; border-radius: .5rem; border: 1px solid var(--line, var(--border)); background: var(--card, var(--card-bg)); }
.vt-thumb-round { width: 5rem; height: 5rem; border-radius: 9999px; }
.vt-thumb-small { width: 4rem; height: 4rem; }
.vt-cover-item { display: flex; flex-direction: column; }
/* Fenêtre « Choisir sur la carte » (js/app/vitrine-map-picker.js) : zone de la carte et marqueur. « isolation » garde les couches
   de Leaflet (z-index élevés) sous les boutons de la fenêtre. */
.vt-map-canvas { position: relative; isolation: isolate; width: 100%; height: min(58dvh, 28rem); border: 1px solid var(--line); border-radius: .75rem; background: var(--bg); }
.vt-map-marker { border: 0; background: none; color: var(--brand); filter: drop-shadow(0 .25rem .25rem rgb(0 0 0 / 28%)); }
.vt-map-marker svg { display: block; }
/* Formulaire, section Images : le logo (colonne étroite) et les images de couverture sur la même ligne dès 48rem ; empilés sur mobile. */
.vt-images-row { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) {
  .vt-images-row { grid-template-columns: minmax(13rem, auto) minmax(0, 1fr); align-items: start; gap: 2rem; }
  .vt-images-row > div + div { padding-inline-start: 2rem; border-inline-start: 1px solid var(--line); }
}
.vt-skip-link { position: absolute; z-index: 100; inset-block-start: .5rem; inset-inline-start: .5rem; padding: .6rem .9rem; transform: translateY(-160%); border-radius: .25rem; background: var(--accent-dark); color: var(--bg); font-size: .8rem; font-weight: 700; }
.vt-skip-link:focus { transform: translateY(0); }
.vt-site-header { position: sticky; z-index: 30; inset-block-start: 0; border-block-end: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); }
.vt-site-header-inner { position: relative; display: flex; width: min(72rem, calc(100% - 2.5rem)); min-height: 4.25rem; align-items: center; justify-content: space-between; gap: 1rem; margin-inline: auto; }
.vt-site-brand { display: inline-flex; min-width: 0; align-items: center; gap: .7rem; color: var(--fg); text-decoration: none; }
.vt-site-brand img, .vt-site-footer img { display: block; width: 6.5rem; height: auto; }
.vt-site-brand > span:nth-child(2) { width: 1px; height: 1.6rem; background: var(--border); }
.vt-site-brand .vt-site-brand-logo { width: auto; max-width: 9rem; height: 2.5rem; object-fit: contain; }
.vt-site-brand-name { max-width: 11rem; overflow: hidden; color: var(--muted); font-size: .72rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.vt-site-nav { display: flex; align-items: center; gap: 1.35rem; }
.vt-site-nav a, .vt-mobile-nav a { color: var(--muted); font-size: .75rem; font-weight: 600; text-decoration: none; }
.vt-site-nav a:hover, .vt-mobile-nav a:hover { color: var(--titre-bleu); }
.vt-site-header-actions { display: flex; align-items: center; gap: .5rem; }
.vt-site-contact-link { display: inline-flex; min-height: 2.5rem; align-items: center; gap: .55rem; padding-inline: .85rem; border: 1px solid var(--border); border-radius: .35rem; color: var(--fg); font-size: .75rem; font-weight: 650; text-decoration: none; }
.vt-site-contact-link span { color: var(--titre-bleu); }
.vt-site-menu-button { display: none; width: 2.65rem; height: 2.65rem; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; border: 1px solid var(--border); border-radius: .35rem; background: var(--card-bg); color: var(--fg); }
.vt-site-menu-button span { width: 1rem; height: 1px; background: currentColor; }
.vt-mobile-nav { display: none; position: absolute; inset-block-start: calc(100% - 1px); inset-inline: 0; padding: .5rem 1rem .75rem; border: 1px solid var(--border); border-block-start: 0; background: var(--bg); box-shadow: 0 .75rem 1.5rem rgb(0 0 0 / 8%); }
.vt-mobile-nav.is-open { display: grid; }
.vt-mobile-nav a { padding-block: .7rem; border-block-end: 1px solid var(--border); }
.vt-mobile-nav a:last-child { border-block-end: 0; }
.vt-site-footer { margin-block-start: 2rem; border-block-start: 1px solid var(--border); background: var(--card-bg); color: var(--muted); }
.vt-site-footer-inner { display: flex; width: min(72rem, calc(100% - 2.5rem)); min-height: 5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-inline: auto; padding-block: 1rem; }
.vt-site-footer-inner > p { margin: 0; font-size: .68rem; }
.vt-site-footer-inner > p span { padding-inline: .25rem; color: var(--orange); }
.vt-site-footer-inner nav { display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.vt-site-footer-inner nav a { color: var(--muted); font-size: .68rem; text-decoration: none; }
.vt-site-footer-inner nav a:hover { color: var(--titre-bleu); text-decoration: underline; }
/* Pages de santé (_vitrine_footer.php) : pied de page réduit à un lien discret vers l'hébergeur et aux mentions légales. */
.vt-site-footer--discreet .vt-site-footer-inner { min-height: 3.5rem; }
.vt-footer-host { color: var(--muted); font-size: .68rem; text-decoration: none; }
.vt-footer-host:hover { color: var(--titre-bleu); text-decoration: underline; }
.vt-palette-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.vt-palette-choice { position: relative; min-width: 0; }
.vt-palette-choice[hidden] { display: none; }
.vt-palette-radio { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.vt-palette-label { display: flex; min-height: 48px; align-items: center; gap: .65rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); color: var(--text); font-size: .75rem; font-weight: 650; cursor: pointer; }
.vt-palette-radio:checked + .vt-palette-label { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.vt-palette-radio:focus-visible + .vt-palette-label { outline: 2px solid var(--brand); outline-offset: 2px; }
.vt-palette-swatch { display: block; width: 2.5rem; height: 1.5rem; flex: none; border: 1px solid rgb(0 0 0 / 8%); border-radius: .25rem; }
.vt-palette-swatch--sauge { background: linear-gradient(135deg, #146b54 0 46%, #f5f4ef 46% 76%, #e7e1d6 76%); }
.vt-palette-swatch--original { background: linear-gradient(135deg, #171715 0 46%, #f4f1ea 46% 76%, #d9ff36 76%); }
.vt-palette-swatch--terre { background: linear-gradient(135deg, #8c6d53 0 46%, #fbfbfa 46% 76%, #e6dfd3 76%); }
.vt-palette-swatch--bleu { background: linear-gradient(135deg, #1d4ed8 0 46%, #eaf0fe 46% 76%, #f97316 76%); }
.vt-palette-swatch--vert { background: linear-gradient(135deg, #2f6847 0 46%, #e6f0e7 46% 76%, #b66f55 76%); }
.vt-palette-swatch--bordeaux { background: linear-gradient(135deg, #7c3046 0 46%, #f3e8ec 46% 76%, #ad7448 76%); }
.vt-palette-swatch--graphite { background: linear-gradient(135deg, #45566d 0 46%, #e9edf2 46% 76%, #b66f55 76%); }
.vt-palette-swatch--terracotta { background: linear-gradient(135deg, #a3472b 0 46%, #fbf7f1 46% 76%, #a86c33 76%); }
.vt-palette-swatch--clinique { background: linear-gradient(135deg, #0f766e 0 46%, #ffffff 46% 76%, #e3f2ef 76%); }
.vt-palette-swatch--braise { background: linear-gradient(135deg, #b91c1c 0 46%, #faf7f2 46% 76%, #ea580c 76%); }

/* Palettes de couleurs (:root[data-palette]) : déplacées dans css/modules/palettes.css, partagé avec le blog. */

/* ------------------------------------------------------------ page publique */
.vt-page {
  max-width: 56rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem;
  /* Les cartes partagées (css/modules/blocks.css) lisent les variables --article-* : on les relie à la charte du site. */
  --article-ink: var(--fg); --article-muted: var(--muted); --article-paper: var(--card-bg); --article-white: var(--bg);
  --article-line: var(--border); --article-green: var(--accent); --article-green-soft: var(--accent-soft);
  --article-orange: var(--accent); --article-sand: var(--card-bg);
}

.vt-preview { margin: 0; padding: .75rem 1.25rem; text-align: center; font-size: .875rem; background: var(--accent-soft); color: var(--accent-dark); }
.vt-preview a { margin-left: .5rem; text-decoration: underline; font-weight: 600; }

/* Couvertures : bandeau défilant (sans JavaScript), chaque image s'aligne sur le bord. */
.vt-covers-wrap { position: relative; margin-bottom: 1.5rem; }
.vt-covers { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 1rem; -webkit-overflow-scrolling: touch; }

.vt-cover { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 9; max-height: 26rem; object-fit: cover; scroll-snap-align: start; border-radius: 1rem; background: var(--card-bg); }

.vt-head { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; margin-bottom: 2rem; }
.vt-logo { width: 7.5rem; height: 7.5rem; padding: .4rem; object-fit: contain; border-radius: 9999px; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border); background: var(--card-bg); }
.vt-head-text { min-width: 0; width: 100%; }
.vt-name { margin: 0; font-size: .875rem; font-weight: 600; color: var(--accent-dark); }
.vt-title { margin: .25rem 0 0; font-size: 1.75rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.vt-tagline { margin: .75rem 0 0; font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }

.vt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.vt-chip { padding: .2rem .75rem; border-radius: 9999px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: .75rem; }

.vt-contact { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.vt-contact-box { display: contents; }
.vt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1.1rem; border: 0; border-radius: .625rem; background: var(--accent); color: var(--on-accent, #fff); font-size: .875rem; font-weight: 700; cursor: pointer; }
.vt-btn:hover { opacity: .92; }
.vt-btn:disabled { opacity: .6; cursor: wait; }
.vt-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: .625rem; font-size: .875rem; font-weight: 600; color: var(--fg); text-decoration: none; }
.vt-link:hover { border-color: var(--accent); color: var(--accent-dark); }
/* Coordonnées révélées (script show-info-contact.js) */
.vt-page .contact-revealed { gap: .5rem 1.25rem; font-size: .9375rem; }
.vt-page .contact-revealed a { color: var(--titre-bleu); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.vt-page .cv-k { margin-right: .35rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.vt-section { margin-top: 2.25rem; }
.vt-h2 { margin: 0 0 .875rem; font-size: 1.25rem; font-weight: 800; color: var(--accent-dark); }
.vt-h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; overflow-wrap: anywhere; }
.vt-lead { margin: 0 0 .75rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.6; }
.vt-text { margin: .5rem 0 0; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }
.vt-lead + .vt-text, .vt-section > .vt-text:first-of-type { margin-top: 0; }

/* Sections de texte libre du membre (_slot.php) : empilées simplement, sans grille. */
.vt-split { display: block; }
.vt-sectiontext { margin: .5rem 0 0; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }

.vt-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.vt-tag { padding: .4rem .9rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--card-bg); font-size: .875rem; font-weight: 600; }

.vt-checks { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.vt-checks li { position: relative; padding-left: 1.75rem; line-height: 1.6; }
.vt-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; display: flex; width: 1.25rem; height: 1.25rem; align-items: center; justify-content: center; border-radius: 9999px; background: var(--accent); color: var(--on-accent, #fff); font-size: .7rem; font-weight: 800; margin-top: .2rem; }

.vt-projects { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
.vt-project { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: var(--card-bg); }
.vt-project-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.vt-project-body { padding: 1rem 1.125rem 1.25rem; }
.vt-project-date { margin: .25rem 0 0; font-size: .75rem; font-weight: 600; text-transform: capitalize; color: var(--muted); }

@media (min-width: 640px) {
  .vt-page { padding-top: 2.5rem; }
  .vt-head { flex-direction: row; align-items: center; gap: 1.75rem; }
  .vt-title { font-size: 2.25rem; }
  .vt-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  .vt-preview, .vt-contact { display: none; }
  .vt-covers { overflow: visible; }
}

/* Cartes : espacement dans la page (le style des cartes est dans blocks.css) */
.vt-blocks .article-block:last-child { margin-bottom: 0; }

/* Le thème « classique » de la page publique a sa propre feuille : css/modules/vitrine-classique.css (préfixe vc-). */

/* ------------------------------------------------------------ thème Informatique */
html[data-page-theme="informatique"] .vt-page {
  --article-ink: var(--fg); --article-muted: var(--muted); --article-paper: var(--bg); --article-white: var(--card-bg);
  --article-line: var(--border); --article-green: var(--accent); --article-green-soft: var(--accent-soft);
  --article-orange: var(--orange); --article-sand: var(--card-bg);
  width: min(72rem, 100%); max-width: none; padding: 2.5rem 1.5rem 5rem;
  font-family: Inter, "Segoe UI", sans-serif;
}
.vti-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); align-items: center; gap: 3.5rem; padding-block: 3rem 4rem; }
.vti-hero-copy { min-width: 0; }
.vti-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 0; color: var(--titre-bleu); font-size: .75rem; font-weight: 750; }
.vti-kicker > span { width: 1.25rem; height: 2px; background: var(--orange); }
.vti-kicker b { color: var(--orange); }
.vti-logo { width: 4rem; height: 4rem; margin-block: 1.25rem .75rem; border: 1px solid var(--border); border-radius: 50%; padding: .25rem; object-fit: contain; background: var(--card-bg); }
.vti-name { margin: .75rem 0 0; color: var(--muted); font-size: .875rem; font-weight: 600; }
.vti-title { margin: .45rem 0 0; color: var(--fg); font-size: 3rem; font-weight: 750; letter-spacing: 0; line-height: 1.08; overflow-wrap: anywhere; }
.vti-tagline { max-width: 38rem; margin: 1rem 0 0; color: var(--accent-dark); font-size: 1.15rem; font-weight: 600; line-height: 1.55; }
.vti-expertise { max-width: 38rem; margin: .75rem 0 0; color: var(--muted); line-height: 1.75; }
.vti-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-block-start: 1.35rem; }
.vti-primary-action { display: inline-flex; min-height: 2.8rem; align-items: center; gap: .75rem; padding-inline: 1rem; border-radius: .45rem; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }
.vti-primary-action:hover { filter: brightness(.92); }
.vti-primary-action span { color: var(--orange-soft); font-size: 1.1rem; }
.vti-contact-button { min-height: 2.8rem; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: .45rem; background: var(--card-bg); color: var(--fg); font-size: .8rem; font-weight: 650; cursor: pointer; }
.vti-contact-button:hover { border-color: var(--accent); color: var(--accent-dark); }
.vti-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.vti-links a { color: var(--titre-bleu); font-size: .75rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.vti-links span { color: var(--orange); }
.vti-code-window { min-width: 0; overflow: hidden; border: 1px solid #35443c; border-radius: .55rem; background: #17231e; color: #e5eee7; box-shadow: 0 1.25rem 3rem rgb(24 34 30 / 18%); }
.vti-window-bar { display: flex; min-height: 2.8rem; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: 1rem; border-bottom: 1px solid rgb(255 255 255 / 10%); background: #202e27; }
.vti-window-bar > span { display: flex; gap: .35rem; }
.vti-window-bar i { width: .5rem; height: .5rem; border-radius: 50%; background: #ef785c; }
.vti-window-bar i:nth-child(2) { background: #e8c66c; }
.vti-window-bar i:nth-child(3) { background: #78b77c; }
.vti-window-bar code { color: #cbd6ce; font-size: .7rem; }
.vti-window-bar b { color: #8bc896; font-size: .65rem; }
.vti-code-body { display: flex; min-height: 14rem; gap: 1rem; padding: 1.35rem 1rem; direction: ltr; }
.vti-line-numbers { flex: none; color: #64746a; font-family: Consolas, monospace; font-size: .7rem; line-height: 1.9; text-align: end; }
.vti-code-body pre { overflow: auto; margin: 0; color: #d9e3dc; font-family: Consolas, monospace; font-size: .72rem; line-height: 1.9; white-space: pre; }
.vti-code-keyword { color: #d49eea; }
.vti-code-name { color: #c8f36b; }
.vti-code-string { color: #e7bd77; }
.vti-code-comment { color: #82948a; }
.vti-window-status { display: flex; min-height: 2.5rem; align-items: center; justify-content: space-between; gap: .75rem; padding-inline: 1rem; border-top: 1px solid rgb(255 255 255 / 9%); color: #b6d6ad; font-size: .65rem; }
.vti-window-status span:last-child { color: #97a79b; }
.vti-section-index { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .6rem; color: var(--titre-bleu); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.vti-section-index span { color: var(--muted); font-weight: 600; }
.vti-stack, .vti-about, .vti-project-section { margin-block-start: 2.75rem; }
.vti-blocks { margin-block-start: 1.3rem; }
.vti-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.vti-project { overflow: hidden; border: 1px solid var(--border); border-radius: .5rem; background: var(--card-bg); }
.vti-project > img, .vti-project-placeholder { display: grid; width: 100%; aspect-ratio: 16 / 9; place-items: center; object-fit: cover; background: var(--accent-soft); color: var(--accent-dark); }
.vti-project-placeholder { position: relative; overflow: hidden; background-image: linear-gradient(135deg, var(--accent-soft), var(--card-bg)); }
.vti-project-placeholder span { color: var(--titre-bleu); font-family: Consolas, monospace; font-size: 2rem; font-weight: 700; }
.vti-project-placeholder i { position: absolute; inset-inline-end: 1rem; inset-block-end: .5rem; color: var(--orange); font-family: Consolas, monospace; font-size: 1.25rem; font-style: normal; }
.vti-project-copy { padding: 1rem 1.1rem 1.25rem; }
.vti-project-meta { margin: 0 0 .4rem; color: var(--titre-bleu); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.vti-project-meta span { color: var(--orange); }
.vti-project-copy h3 { margin: 0; color: var(--fg); font-size: 1rem; font-weight: 750; }
.vti-project-copy > p:last-child { margin: .5rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.vt-page-tech .vt-team-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.vt-page-tech .vt-team-member { padding: .9rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--card-bg); }
.vt-page-tech .vt-team-avatar { width: 3rem; height: 3rem; border-radius: .6rem; background: var(--accent-soft); color: var(--accent-dark); }
.vt-page-tech .vt-location { padding: 1.25rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--card-bg); }
.vt-page-tech .vt-location-map { min-height: 15rem; }


.vt-team-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.vt-team-member { display: flex; min-width: 0; align-items: center; gap: .8rem; padding-block: .7rem; border-block: 1px solid var(--border); }
.vt-team-avatar { display: grid; width: 3.25rem; height: 3.25rem; flex: none; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-family: var(--font-titles); font-weight: 650; }
.vt-team-avatar--photo { display: block; object-fit: cover; }
.vt-team-copy { display: grid; min-width: 0; gap: .1rem; }
.vt-team-copy strong { overflow-wrap: anywhere; color: var(--fg); font-size: .9rem; }
.vt-team-role { color: var(--titre-bleu); font-size: .65rem; font-weight: 750; text-transform: uppercase; }
.vt-team-position { color: var(--muted); font-size: .75rem; }
.vt-location { display: grid; grid-template-columns: minmax(0, .8fr) minmax(16rem, 1.2fr); align-items: center; gap: 1.5rem; }
.vt-location-copy { min-width: 0; }
.vt-coordinates { display: flex; flex-wrap: wrap; gap: .3rem .6rem; margin: .6rem 0 0; color: var(--accent-dark); font-size: .75rem; }
.vt-coordinates span { color: var(--muted); }
.vt-map-link { display: inline-flex; gap: .4rem; margin-block-start: .8rem; color: var(--titre-bleu); font-size: .75rem; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.vt-map-link + .vt-map-link { margin-inline-start: 1.25rem; }
.vt-location-map { position: relative; display: block; min-height: 13rem; overflow: hidden; border: 1px solid var(--border); border-radius: .5rem; background-color: var(--accent-soft); background-image: linear-gradient(28deg, transparent 47%, var(--bg) 48%, var(--bg) 51%, transparent 52%), linear-gradient(145deg, transparent 47%, var(--bg) 48%, var(--bg) 52%, transparent 53%); background-size: 10rem 8rem, 13rem 11rem; }
.vt-map-water { position: absolute; inset-block-start: -25%; inset-inline-end: -10%; width: 32%; height: 70%; transform: rotate(20deg); border-radius: 0 0 0 70%; background: color-mix(in srgb, var(--accent) 15%, var(--bg)); }
.vt-map-road { position: absolute; inset-inline-start: -5%; width: 110%; height: .35rem; background: var(--bg); box-shadow: 0 0 0 1px var(--border); }
.vt-map-road-one { inset-block-start: 48%; transform: rotate(-15deg); }
.vt-map-road-two { inset-block-start: 52%; transform: rotate(38deg); }
.vt-map-pin { position: absolute; inset-block-start: 46%; inset-inline-start: 52%; display: grid; width: 1.6rem; height: 1.6rem; place-items: center; transform: translate(-50%, -50%) rotate(-45deg); border: 2px solid var(--bg); border-radius: 50% 50% 50% 0; background: var(--accent); box-shadow: 0 2px 6px rgb(0 0 0 / 20%); }
.vt-map-pin i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--bg); }
.vt-map-label { position: absolute; inset-inline-start: .65rem; inset-block-end: .65rem; padding: .35rem .5rem; border: 1px solid var(--border); border-radius: .25rem; background: var(--bg); color: var(--fg); font-size: .65rem; }
.vt-message-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 1.5rem; padding: 1.4rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--card-bg); }
.vt-message-intro { max-width: 24rem; }
.vt-message-kicker { margin: 0; color: var(--titre-bleu); font-size: .7rem; font-weight: 750; }
.vt-message-intro .vt-h2 { margin-block: .4rem; }
.vt-message-form { min-width: 0; }
.vt-message-form fieldset { display: grid; gap: .9rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.vt-message-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.vt-message-fields label { display: grid; min-width: 0; gap: .3rem; }
.vt-message-fields label > span { color: var(--fg); font-size: .7rem; font-weight: 650; }
.vt-message-fields input, .vt-message-fields select, .vt-message-fields textarea { width: 100%; min-height: 2.7rem; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: .25rem; background: var(--bg); color: var(--fg); font: inherit; font-size: .75rem; }
.vt-message-fields textarea { min-height: 7rem; resize: vertical; }
.vt-message-fields input::placeholder, .vt-message-fields textarea::placeholder { color: var(--muted); }
.vt-message-fields .vt-message-subject, .vt-message-fields .vt-message-body { grid-column: 1 / -1; }
.vt-message-submit { justify-self: start; min-height: 2.7rem; padding-inline: 1rem; border: 0; border-radius: .3rem; background: var(--accent); color: var(--on-accent, #fff); font-size: .75rem; font-weight: 700; cursor: pointer; }
.vt-message-submit:disabled { opacity: .65; cursor: wait; }
.vt-message-label { display: block; margin-bottom: .3rem; color: var(--fg); font-size: .7rem; font-weight: 650; }
.vt-message-field { width: 100%; min-height: 2.7rem; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: .25rem; background: var(--card-bg); color: var(--fg); font: inherit; font-size: .85rem; }
textarea.vt-message-field { min-height: 7rem; resize: vertical; }
.vt-message-field::placeholder { color: var(--muted); }
/* Couvertures du thème informatique : bandeau sous l'en-tête, coins sobres. */
.vt-page-tech .vt-covers-wrap { margin-block: 0 3rem; }
.vt-page-tech .vt-covers, .vt-page-tech .vt-cover { border-radius: .5rem; }
.vt-message-note { margin: .55rem 0 0; color: var(--muted); font-size: .65rem; }

@media (max-width: 700px) {
  .vt-site-header-inner, .vt-site-footer-inner { width: calc(100% - 2rem); }
  .vt-site-nav, .vt-site-contact-link { display: none; }
  .vt-site-menu-button { display: flex; }
  .vt-site-footer-inner { justify-content: flex-start; }
  .vt-site-footer-inner > p { order: 2; width: 100%; }
  .vti-hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 1.8rem 2.5rem; }
  .vti-title { font-size: 2.25rem; }
  .vti-code-body { min-height: 11rem; }
  .vt-location { grid-template-columns: minmax(0, 1fr); }
  .vt-message-section { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
  .vt-message-fields { grid-template-columns: minmax(0, 1fr); }
  .vt-message-fields .vt-message-subject, .vt-message-fields .vt-message-body { grid-column: auto; }
}
@media (max-width: 390px) {
  .vti-title { font-size: 1.9rem; }
  .vti-code-body pre { font-size: .62rem; }
}

/* ------------------------------------------------------------ carrousel des images de couverture (js/app/vitrine-covers.js)
 * Commun aux trois thèmes. Sans JavaScript, la bande reste défilable au doigt (scroll-snap) ; le script ajoute les flèches et
 * les repères quand il y a plus d'une image, SANS changer la forme de l'image. Boutons sombres et semi-transparents :
 * lisibles sur n'importe quelle photo. Propriétés logiques : l'arabe (dir="rtl") s'inverse tout seul. */
.cv-enhanced { scrollbar-width: none; scroll-behavior: smooth; }
.cv-enhanced::-webkit-scrollbar { display: none; }
.cv-nav { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cv-btn { position: absolute; inset-block-start: 50%; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; padding: 0; border: 0; border-radius: 9999px; translate: 0 -50%; background: rgb(0 0 0 / 55%); color: #fff; cursor: pointer; pointer-events: auto; transition: background-color .2s, opacity .2s; }
.cv-btn--prev { inset-inline-start: .5rem; }
.cv-btn--next { inset-inline-end: .5rem; }
.cv-btn:hover { background: rgb(0 0 0 / 78%); }
.cv-btn:focus-visible, .cv-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgb(0 0 0 / 70%); }
.cv-btn:disabled { opacity: .35; cursor: default; }
.cv-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .cv-btn svg { scale: -1 1; }
.cv-dots { position: absolute; inset-inline: 0; inset-block-end: .5rem; display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.cv-dot { display: grid; width: 1.5rem; height: 1.5rem; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.cv-dot::before { content: ""; width: .5rem; height: .5rem; border-radius: 9999px; background: rgb(255 255 255 / 62%); box-shadow: 0 0 0 1px rgb(0 0 0 / 45%); transition: width .2s, background-color .2s; }
.cv-dot[aria-current="true"]::before { width: .9rem; background: #fff; }
@media (prefers-reduced-motion: reduce) { .cv-enhanced { scroll-behavior: auto; } .cv-dot::before { transition: none; } }
@media print { .cv-nav { display: none; } }

/* Flèche « Revenir en haut » (17/11/2026), tous les thèmes de vitrine : layouts/_vitrine_footer.php.
 * Fond de carte et flèche en --titre-bleu (lisible dans toutes les palettes, claires et sombres) ; au survol, couleurs d'un bouton.
 * Masquée avec visibility (pas seulement opacity) : invisible, elle sort aussi de l'ordre de tabulation. */
.vt-to-top {
  position: fixed; inset-block-end: calc(1rem + env(safe-area-inset-bottom, 0px)); inset-inline-end: 1rem; z-index: 25;   /* sous l'en-tête et son menu mobile (30), sous les visionneuses (60) */
  display: grid; width: 2.75rem; height: 2.75rem; place-items: center;
  border: 1px solid var(--border); border-radius: 9999px; background: var(--card-bg); color: var(--titre-bleu);
  box-shadow: 0 .5rem 1.25rem rgb(0 0 0 / 16%);
  opacity: 0; visibility: hidden; transform: translateY(.75rem);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background-color .2s, color .2s;
}
.vt-to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease, visibility 0s, background-color .2s, color .2s; }
.vt-to-top:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent, #fff); }
.vt-to-top:focus-visible { outline: 2px solid var(--titre-bleu); outline-offset: 3px; }
@media (min-width: 48rem) { .vt-to-top { inset-block-end: 1.5rem; inset-inline-end: 1.5rem; } }
@media (prefers-reduced-motion: no-preference) { html:has(.vt-to-top) { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .vt-to-top, .vt-to-top.is-shown { transform: none; transition: none; } }
@media print { .vt-to-top { display: none; } }

/* Texte riche d'une section libre (Quill, HTML filtré) : mêmes règles pour tous les thèmes, couleurs héritées. */
.vt-richtext > :first-child { margin-top: 0; }
.vt-richtext > :last-child { margin-bottom: 0; }
.vt-richtext p { margin: 0 0 .75em; }
.vt-richtext ul, .vt-richtext ol { margin: 0 0 .75em; padding-inline-start: 1.4em; }
.vt-richtext ul { list-style: disc; }
.vt-richtext ol { list-style: decimal; }
.vt-richtext li { margin: .2em 0; }
.vt-richtext h3 { margin: 1em 0 .4em; font-size: 1.05em; font-weight: 700; }
/* Sous-intertitre (h4, 23/11/2026) : taille du texte, en gras. */
.vt-richtext h4 { margin: .9em 0 .35em; font-size: 1em; font-weight: 700; }
.vt-richtext blockquote { margin: 0 0 .75em; padding-inline-start: .9em; border-inline-start: 3px solid currentColor; opacity: .85; }
.vt-richtext a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
