/* =====================================================================
   VITRINE CAELYS · systeme visuel commun (refonte 2026-10-18, branche
   test-mise-en-page). Charge par marketing/_layout.html sur toutes les pages
   publiques ; l'espace agent, l'entreprise et l'administration n'y touchent
   pas (la classe `vitrine` n'est posee sur <html> que par la vitrine).

   L'IDEE. « Caelys » vient de caelum, le ciel. La vitrine se lit comme une
   nuit qui avance vers l'aube : des CHAPITRES de couleur pleine, de bord a
   bord, du noir chaud vers le cuivre de la marque, la ou l'on s'inscrit.
   Une seule police (Albert Sans, hebergee ici), une seule grille, un seul
   rayon, un seul bouton. Pas d'ornement : ni degrade, ni filet, ni lueur,
   ni verre, ni petit libelle au-dessus des titres. La richesse vient de
   l'echelle (titres tres grands), des aplats de couleur, des vraies photos
   et du contenu complet.

   Mouvement (regles d'Emil Kowalski) : transform et opacity seulement,
   courbes fortes, interface sous 300 ms, survol reserve a la souris,
   « moins d'animations » = fondus doux, jamais rien de cache sans script.
   ===================================================================== */

@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/albert-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/albert-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------------------------------------------------- */
.vitrine {
  /* Champs (fonds de chapitre), du plus sombre au cuivre. Deux champs
     voisins different toujours nettement en clarte. */
  --nuit: #0B0807;
  --espresso: #18110D;
  --graphite: #261C16;
  --brique: #3D1D12;
  --cuivre: #C44A1E;
  /* Encres */
  --encre: #F4EFE9;
  --encre-2: rgba(244, 239, 233, 0.76);
  --encre-3: rgba(244, 239, 233, 0.56);
  --encre-sombre: #170C07;
  --encre-sombre-2: rgba(23, 12, 7, 0.78);
  /* Accents : le cuivre agit (boutons, liens), l'or recompense (reussite). */
  --action: #C44A1E;
  --action-survol: #A93D16;
  --action-clair: #EE7A48;
  --or: #E5C06E;
  /* Mesures */
  /* 1760 et non plus 1320 : sur un grand ecran, le site ne doit pas tenir dans
     une bande centrale (retour Yohann 2026-10-18). Les textes gardent leur
     propre mesure (max-width en ch), seules les mises en page s'etalent. */
  --max: 1760px;
  --gout: clamp(16px, 3vw, 32px);
  --rayon: 16px;
  /* Echelle reduite d'un cran le 2026-10-18 : sur un portable de 13 a 15
     pouces, la premiere version etait surdimensionnee (retour Yohann). */
  --chapitre-y: clamp(64px, 7vw, 128px);
  /* Type : cinq tailles, pas une de plus */
  --t-petit: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --t-corps: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --t-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-titre: clamp(1.85rem, 1.2rem + 1.9vw, 3.1rem);
  --t-display: clamp(2.4rem, 1.1rem + 3.6vw, 4.75rem);
  /* Mouvement */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --duree-appui: 160ms;
  --duree-ui: 220ms;

  background-color: var(--nuit) !important;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Fond, police, surfaces du navigateur ---------------------- */
.vitrine body {
  background: var(--nuit);
  color: var(--encre);
  font-family: 'Albert Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--t-corps);
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* La nebuleuse animee (canvas fixe, sous la page) se voit a travers le
   fond de page et les chapitres « nuit » ; les autres champs restent pleins.
   Le fond de <html> garde la couleur nuit (cf. base.html) en attendant. */
.vitrine body { background: transparent; }
.vitrine .vit-chapitre[data-champ="nuit"] { --champ: transparent; }
/* Les autres champs sombres laissent transparaitre la nebuleuse a peine :
   le fond vit sur toute la page, les chapitres restent bien distincts. Le
   cuivre, lui, reste plein. */
.vitrine .vit-chapitre[data-champ="espresso"] { --champ: rgba(24, 17, 13, .82); }
.vitrine .vit-chapitre[data-champ="graphite"] { --champ: rgba(38, 28, 22, .86); }
.vitrine .vit-chapitre[data-champ="brique"] { --champ: rgba(61, 29, 18, .9); }
.vitrine ::selection { background: var(--cuivre); color: #fff; }
.vitrine { scrollbar-color: #4A3A30 var(--nuit); }
.vitrine input, .vitrine textarea { caret-color: var(--action-clair); }
.vitrine :focus-visible { outline: 2px solid var(--action-clair); outline-offset: 3px; }
.vitrine a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.vitrine h1, .vitrine h2, .vitrine h3, .vitrine h4 {
  font-family: 'Albert Sans', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.vitrine p, .vitrine li, .vitrine dd { text-wrap: pretty; }
.vitrine .tnum, .vitrine [data-chiffre] { font-variant-numeric: tabular-nums; }
/* Les boutons et commandes ne se selectionnent pas au doigt ; le texte, si. */
.vitrine button, .vitrine [role="button"], .vitrine .vit-btn {
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}

/* ---------- Chapitres (sections pleine largeur) ----------------------- */
.vit-chapitre {
  position: relative;
  padding-block: var(--chapitre-y);
  background: var(--champ, var(--nuit));
  color: var(--encre-champ, var(--encre));
  content-visibility: visible;
}
.vit-chapitre[data-champ="nuit"]     { --champ: var(--nuit); }
.vit-chapitre[data-champ="espresso"] { --champ: var(--espresso); }
.vit-chapitre[data-champ="graphite"] { --champ: var(--graphite); }
.vit-chapitre[data-champ="brique"]   { --champ: var(--brique); }
.vit-chapitre[data-champ="cuivre"]   { --champ: var(--cuivre); --encre-champ: var(--encre-sombre); }
.vit-grille {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gout);
}

/* ---------- Typographie ----------------------------------------------- */
.vit-display {
  font-size: var(--t-display); font-weight: 600; line-height: 0.98;
  letter-spacing: -0.04em; margin: 0;
}
.vit-titre {
  font-size: var(--t-titre); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.035em; margin: 0;
}
.vit-lead {
  font-size: var(--t-lead); line-height: 1.38; font-weight: 400;
  color: var(--encre-2); margin: 0; max-width: 36ch;
}
[data-champ="cuivre"] .vit-lead { color: var(--encre-sombre-2); }
.vit-texte { font-size: var(--t-corps); line-height: 1.6; max-width: 62ch; margin: 0; }
.vit-meta { font-size: var(--t-petit); color: var(--encre-3); margin: 0; }
[data-champ="cuivre"] .vit-meta { color: var(--encre-sombre-2); }
.vit-or { color: var(--or); }

/* ---------- Bouton (un seul, decide une fois : pilule pleine) -------- */
.vit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--action); color: #fff;
  font: 600 1.0625rem/1 'Albert Sans', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform var(--duree-appui) var(--ease-out), background-color var(--duree-ui) ease;
}
.vit-btn:active { transform: scale(0.97); }
.vit-btn svg { width: 18px; height: 18px; flex: none; }
.vit-btn--sombre { background: var(--encre-sombre); color: var(--encre); }
.vit-btn--clair { background: var(--encre); color: var(--encre-sombre); }
@media (hover: hover) and (pointer: fine) {
  .vit-btn:hover { background: var(--action-survol); }
  .vit-btn--sombre:hover { background: #000; }
  .vit-btn--clair:hover { background: #fff; }
  .vit-btn:hover svg { transform: translateX(3px); }
  .vit-btn svg { transition: transform var(--duree-ui) var(--ease-out); }
}
/* Lien d'accompagnement : du texte, souligne, jamais un second bouton. */
.vit-lien {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--encre); font-weight: 600; text-decoration: underline;
  text-decoration-color: rgba(244, 239, 233, 0.35); text-underline-offset: 0.3em;
  transition: text-decoration-color var(--duree-ui) ease;
}
.vit-lien svg { width: 18px; height: 18px; flex: none; transition: transform var(--duree-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .vit-lien:hover { text-decoration-color: currentColor; } .vit-lien:hover svg { transform: translateX(3px); } }
[data-champ="cuivre"] .vit-lien { color: var(--encre-sombre); text-decoration-color: rgba(23, 12, 7, 0.4); }

/* Boutons existants des pages : meme bouton partout (forme, couleur,
   appui). Les pages gardent leur balisage. */
.vitrine .mkt-cta-hero, .vitrine .mkt-cta-primary, .vitrine .mp-cta, .vitrine .ca-cta-btn,
.vitrine .tb-cta, .vitrine .ms-cta, .vitrine .tc-cta.tc-cta-primaire, .vitrine .wiz-btn-primary,
.vitrine .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px !important; border-radius: 999px !important; border: 0 !important;
  background: var(--action) !important; color: #fff !important; box-shadow:none !important;
  font-family: 'Albert Sans', 'Inter', system-ui, sans-serif !important; font-weight: 600 !important;
  text-decoration: none; letter-spacing: -0.005em;
  transition: transform var(--duree-appui) var(--ease-out), background-color var(--duree-ui) ease !important;
}
.vitrine .mkt-cta-hero:active, .vitrine .mkt-cta-primary:active, .vitrine .mp-cta:active, .vitrine .ca-cta-btn:active,
.vitrine .tb-cta:active, .vitrine .ms-cta:active, .vitrine .btn-primary:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .vitrine .mkt-cta-hero:hover, .vitrine .mkt-cta-primary:hover, .vitrine .mp-cta:hover, .vitrine .ca-cta-btn:hover,
  .vitrine .tb-cta:hover, .vitrine .ms-cta:hover, .vitrine .btn-primary:hover { background: var(--action-survol) !important; transform: none; }
}
.vitrine .mkt-cta-hero::before, .vitrine .mkt-cta-hero::after { display: none !important; }

/* Bouton secondaire (retour, modifier) : contour fin, meme pilule. */
.vitrine .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px !important; border-radius: 999px !important;
  border: 1px solid rgba(244, 239, 233, 0.22) !important; background: transparent !important;
  color: var(--encre) !important; box-shadow:none !important; font-weight: 600 !important;
  font-family: 'Albert Sans', 'Inter', system-ui, sans-serif !important;
  transition: transform var(--duree-appui) var(--ease-out), border-color var(--duree-ui) ease, background-color var(--duree-ui) ease !important;
}
.vitrine .btn-secondary:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .vitrine .btn-secondary:hover { border-color: rgba(244, 239, 233, 0.5) !important; background: rgba(244, 239, 233, 0.05) !important; }
}
.vitrine .btn-primary:disabled, .vitrine .btn-primary[disabled] { opacity: .42; cursor: not-allowed; transform: none; }

/* ---------- Formulaires ------------------------------------------------ */
.vitrine .input-mp {
  min-height: 52px; padding: 13px 16px; border-radius: 12px;
  border: 1px solid rgba(244, 239, 233, 0.14); background: var(--nuit); color: var(--encre);
  font-family: inherit; font-size: 1rem;
  transition: border-color var(--duree-ui) ease, box-shadow var(--duree-ui) ease;
}
.vitrine .input-mp::placeholder { color: var(--encre-3); }
.vitrine .input-mp:focus { outline: 2px solid var(--action-clair); outline-offset: 1px; border-color: var(--action-clair); }
.vitrine select.input-mp { appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23F4EFE9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.vitrine textarea.input-mp { min-height: 160px; line-height: 1.55; resize: vertical; }
.vit-label { display: block; margin-bottom: 8px; color: var(--encre-2); font-size: var(--t-petit); font-weight: 600; }

/* ---------- Media (photos) -------------------------------------------- */
.vit-photo { position: relative; overflow: hidden; border-radius: var(--rayon); background: var(--espresso); }
.vit-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Apparition a l'arrivee (posee par le script) -------------- */
/* Rien n'est jamais cache sans script : c'est le script qui pose la classe
   `vit-js` sur <html>, et seulement s'il peut reveler ensuite. */
.vit-js [data-revele] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.vit-js [data-revele].est-vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .vit-js [data-revele] { transform: none; transition: opacity 400ms ease; transition-delay: 0ms; }
}
.vitrine.eco [data-revele] { opacity: 1 !important; transform: none !important; }

/* =====================================================================
   BLOCS DE PAGE communs (refonte 2026-10-18). Toutes les pages de la
   vitrine s'en servent : en-tete de page, chiffres, colonnes, liste,
   questions, achat (cuivre), autres pages, texte long.
   ===================================================================== */
.vp-tete { padding-block: clamp(36px, 5vw, 80px) clamp(56px, 7vw, 112px); }
.vp-tete-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.vp-tete-grille.vp-seul { grid-template-columns: minmax(0, 1fr); }
.vp-tete-grille.vp-bas { align-items: end; }
.vp-tete-grille.vp-bas .lien-certif { margin: 0; justify-self: end; }
.vp-fil { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 clamp(20px, 2.6vw, 36px); font-size: var(--t-petit); color: var(--encre-3); }
.vp-fil a { color: var(--encre-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .vp-fil a:hover { color: var(--encre); text-decoration: underline; } }
.vp-h1 { margin: 0 0 clamp(18px, 2.2vw, 28px); font-size: clamp(2.2rem, 1rem + 2.9vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; max-width: 18ch; }
.vp-lead { margin: 0; font-size: var(--t-lead); line-height: 1.4; color: var(--encre-2); max-width: 44ch; }
.vp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(26px, 3vw, 40px); }
.vp-actions .vit-meta { color: var(--encre-2); }
.vp-media { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 480px; justify-self: end; border-radius: var(--rayon); overflow: hidden; background: var(--espresso); }
.vp-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }

.vp-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px clamp(18px, 3vw, 40px); margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; list-style: none; }
.vp-chiffres li { display: flex; flex-direction: column; gap: 6px; color: var(--encre-3); font-size: var(--t-petit); line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.vp-chiffres b { color: var(--encre); font-size: clamp(1.7rem, 1.1rem + 1.5vw, 2.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

.vp-h2 { margin: 0 0 clamp(24px, 3vw, 40px); font-size: var(--t-titre); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; max-width: 20ch; }
.vp-deux { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.vp-texte { color: var(--encre-2); font-size: var(--t-corps); line-height: 1.65; margin: 0 0 18px; max-width: 62ch; }
.vp-texte b, .vp-texte strong { color: var(--encre); font-weight: 600; }
.vp-grand { margin: 0; font-size: clamp(2.6rem, 1rem + 4.6vw, 5.75rem); font-weight: 600; line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.vp-puces { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vp-puces li { position: relative; padding-left: 26px; color: var(--encre-2); line-height: 1.55; }
.vp-puces li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--action-clair); }
[data-champ="cuivre"] .vp-puces li { color: var(--encre-sombre-2); }
[data-champ="cuivre"] .vp-puces li::before { background: var(--encre-sombre); }
/* Liste de chapitres : grandes lignes, deux colonnes sur grand ecran. */
.vp-liste { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: clamp(28px, 5vw, 80px); }
.vp-liste li { break-inside: avoid; padding: 14px 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--encre); }

/* Questions : accordeon sur aplat (memes reglages que l'accueil). */
.vp-faq { display: flex; flex-direction: column; gap: 10px; }
.vp-faq details { border-radius: 14px; background: var(--graphite); }
[data-champ="graphite"] .vp-faq details { background: var(--espresso); }
.vp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 16px 20px; cursor: pointer; list-style: none;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 600; line-height: 1.3; }
.vp-faq summary::-webkit-details-marker { display: none; }
.vp-faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background:
  linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; /* taste-skill-ignore : trace du signe +, pas un degrade */
  transition: transform var(--duree-ui) var(--ease-out); }
.vp-faq details[open] summary::after { transform: rotate(45deg); }
.vp-faq details > :not(summary) { margin: 0; padding: 0 20px 20px; color: var(--encre-2); line-height: 1.6; }

/* Achat : le chapitre cuivre, le prix en tres grand. */
.vp-achat-grille { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 56px; }
.vp-achat-nom { margin: 0 0 14px; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; }
.vp-prix { margin: 0; font-size: clamp(3rem, 1.4rem + 4.8vw, 6.25rem); font-weight: 600; line-height: .86; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp-prix small { font-size: .3em; letter-spacing: 0; margin-left: .2em; }
.vp-barre { margin: 0 0 10px; font-size: var(--t-corps); font-weight: 600; color: var(--encre-sombre-2); }
.vp-barre s { opacity: .8; }
.vp-achat-action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* Autres pages : photos + titres. */
.vp-liens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.vp-liens a { display: flex; flex-direction: column; gap: 12px; color: var(--encre); text-decoration: none; }
.vp-liens .vit-photo { aspect-ratio: 4 / 3; }
.vp-liens img { transition: transform 700ms var(--ease-out); }
.vp-liens span { font-weight: 600; font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) { .vp-liens a:hover img { transform: scale(1.04); } .vp-liens a:hover span { text-decoration: underline; } }

/* Texte long (guides, pages legales, a propos). */
.vp-prose { max-width: 70ch; font-size: var(--t-corps); line-height: 1.7; color: var(--encre-2); }
.vp-prose > * + * { margin-top: 1.1em; }
.vp-prose h1 { font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.04em; color: var(--encre); font-weight: 600; margin: 0 0 .5em; }
.vp-prose h2 { font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--encre); font-weight: 600; margin-top: 2.2em; }
.vp-prose h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.2; color: var(--encre); font-weight: 600; margin-top: 1.8em; }
.vp-prose strong, .vp-prose b { color: var(--encre); font-weight: 600; }
.vp-prose a { color: var(--action-clair); text-decoration: underline; }
.vp-prose ul, .vp-prose ol { padding-left: 1.3em; }
.vp-prose ul { list-style: disc; }
.vp-prose ol { list-style: decimal; }
.vp-prose li + li { margin-top: .45em; }
.vp-prose li::marker { color: var(--action-clair); }
.vp-prose blockquote { margin-left: 0; padding: 18px 22px; border-radius: 14px; background: var(--espresso); color: var(--encre); }
.vp-prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.vp-prose th, .vp-prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(244, 239, 233, .12); vertical-align: top; }
.vp-prose th { color: var(--encre); font-weight: 600; }

@media (max-width: 899px) {
  .vp-tete-grille, .vp-deux { grid-template-columns: minmax(0, 1fr); }
  .vp-media { justify-self: start; max-width: 520px; }
  .vp-tete-grille.vp-bas .lien-certif { justify-self: start; margin-top: 4px; }
  .vp-achat-grille { grid-template-columns: minmax(0, 1fr); }
  .vp-achat-action { align-items: stretch; }
  .vp-achat-action .vit-btn { width: 100%; }
}

/* Lien vers la page pilier « Certification AFA » (partiel commun) : une
   tuile pleine, sans bordure laterale (plus de « carte d'alerte »). */
.vitrine .lien-certif { display: flex; flex-direction: column; gap: 4px; max-width: 640px; margin: clamp(26px, 3vw, 40px) 0 0;
  padding: 18px 22px; border: 0; border-radius: var(--rayon); background: var(--espresso); text-decoration: none;
  transition: background-color var(--duree-ui) ease; }
[data-champ="espresso"] .lien-certif, [data-champ="graphite"] .lien-certif { background: var(--nuit); }
.vitrine .lien-certif:hover, .vitrine .lien-certif:focus-visible { background: var(--graphite); }
.vitrine .lien-certif-titre { display: block; margin: 0; color: var(--encre); font-size: 1.1rem; font-weight: 600; }
.vitrine .lien-certif-texte { display: block; color: var(--encre-2); font-size: 1rem; line-height: 1.5; }

/* Mots longs (allemand surtout : « Ausbildungsangebote ») : un grand titre
   peut couper son mot plutot que de deborder de sa colonne. */
.vp-h1, .vp-h2, .vit-titre, .vit-display { overflow-wrap: break-word; }
:lang(de) .vp-h1, :lang(de) .vp-h2, :lang(de) .vit-titre, :lang(de) .vit-display { hyphens: auto; }

/* Bandeau de photos en quinconce, a droite d'un en-tete (retour Yohann
   2026-10-18 : plus de moitie droite vide, plus de page tassee au centre).
   Il deborde de la grille jusqu'au bord de l'ECRAN et s'y fond. `--bord` =
   distance entre le bord de la grille et celui de l'ecran (100cqw = largeur
   du chapitre). Pur decor : aria-hidden, aucun texte dessus. */
.vp-tete { container-type: inline-size; }
.vp-collage {
  --bord: max(var(--gout), calc((100cqw - var(--max)) / 2 + var(--gout)));
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(8px, 1vw, 16px); align-items: start;
  margin: 0 calc(-1 * var(--bord)) 0 0; padding: 0; list-style: none;
  /* taste-skill-ignore : masque de fondu vers le bord, pas un remplissage */
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 100%); /* taste-skill-ignore */
          mask-image: linear-gradient(90deg, #000 60%, transparent 100%); /* taste-skill-ignore */
}
@media (min-width: 900px) { .vp-tete-grille:has(> .vp-collage) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.vp-collage .vit-photo { aspect-ratio: 3 / 5; }
.vp-collage .vit-photo:nth-child(even) { margin-top: 18%; }
.vp-collage img { object-position: 50% 18%; }
@media (max-width: 899px) {
  .vp-collage { margin: clamp(28px, 6vw, 44px) calc(-1 * var(--gout)) 0; padding-left: var(--gout); grid-auto-columns: clamp(120px, 34vw, 200px); overflow: hidden; }
  .vp-collage .vit-photo { aspect-ratio: 3 / 4; }
}
/* Photo de groupe en tete (2026-10-21, templates/marketing/_photo_groupe.html) :
   meme place que le bandeau, jusqu'au bord droit de l'ECRAN, mais SANS fondu
   (il effacerait la personne de droite) ; coin droit droit, contre l'ecran.
   Sur grand ecran, hauteur plafonnee : la photo se recadre par le bas (les
   tetes restent, cf. object-position). */
@media (min-width: 900px) { .vp-tete-grille:has(> .vp-groupe) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.vp-groupe {
  --bord: max(var(--gout), calc((100cqw - var(--max)) / 2 + var(--gout)));
  margin: 0 calc(-1 * var(--bord)) 0 0; aspect-ratio: 3 / 2; max-height: min(72vh, 680px);
  /* Dans une grille, un element a ratio se cale a gauche et tire sa LARGEUR
     de sa hauteur plafonnee : il n'atteindrait plus le bord (vu a 2560 px). */
  justify-self: stretch;
  border-radius: var(--rayon) 0 0 var(--rayon);
}
/* 8 % et non 22 % : a 2560 px la photo se recadre presque toute par le bas,
   les cheveux de l'homme a lunettes gardent de l'air (Yohann, 2026-10-21 :
   « que la tete ne soit jamais coupee »). */
.vp-groupe img { object-position: 50% 8%; }
@media (max-width: 899px) {
  .vp-groupe { margin: clamp(28px, 6vw, 44px) calc(-1 * var(--gout)) 0; border-radius: 0; max-height: none; }
}
