/* Version « L'essentiel / Détail », 17/10/2026.
   Se charge après style.css. Les couleurs viennent des variables du site (clair et sombre) :
   --ink, --ink-soft, --surface, --surface-tint, --line, --line-strong, --link, --bronze.
   Sans JavaScript (pas de classe .vue-js sur <html>), l'essentiel et les commandes sont masqués :
   la page s'affiche en version détaillée complète. À l'impression : le détail seulement. */

/* ---------- Mécanique de bascule ---------- */
html:not(.vue-js) .v-ess,
html:not(.vue-js) .vo-ess,
html:not(.vue-js) .v-barre,
html:not(.vue-js) .vue-tools { display: none !important; }

html.vue-js[data-vue="essentiel"] .vo-det { display: none !important; }
html.vue-js[data-vue="detail"] .vo-ess { display: none !important; }

html.vue-js[data-vue="essentiel"] [data-vue-sec]:not([data-over="detail"]) .v-det { display: none; }
html.vue-js[data-vue="essentiel"] [data-vue-sec][data-over="detail"] .v-ess { display: none; }
html.vue-js[data-vue="detail"] [data-vue-sec]:not([data-over="essentiel"]) .v-ess { display: none; }
html.vue-js[data-vue="detail"] [data-vue-sec][data-over="essentiel"] .v-det { display: none; }

@media print {
  .v-ess, .vo-ess, .v-barre, .vue-tools { display: none !important; }
  .v-det, .vo-det { display: block !important; }
}

/* ---------- Bascule générale (bouton à deux positions, comme le mode sombre) ---------- */
.v-barre { border-bottom: 1px solid var(--line); background: var(--surface-tint); }
.v-barre__in { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 52px; }
.v-barre__lib { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.v-bascule { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--surface); }
.v-bascule button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; transition: background-color .2s, color .2s; }
.v-bascule button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.v-bascule button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.v-bascule--sombre { border-color: rgba(255,255,255,.55); background: rgba(14,21,48,.55); }
.v-bascule--sombre button { color: #fff; min-height: 44px; }
.v-bascule--sombre button[aria-pressed="true"] { background: #fff; color: #0e1530; }
.v-bascule--sombre button:focus-visible { outline-color: #fff; }

/* ---------- Bouton de section, discret, à côté du titre ---------- */
.vue-tools { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.vue-sec-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-soft); font: inherit; font-size: .88rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.vue-sec-btn::before { content: "+"; font-size: 1.1rem; line-height: 1; }
.vue-sec-btn[aria-expanded="true"]::before { content: "\2212"; }
.vue-sec-btn:hover { background: var(--surface-tint); color: var(--ink); }
.vue-sec-btn:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
@media (pointer: coarse) { .vue-sec-btn { min-height: 44px; } }

/* ---------- Accueil commercial (en haut, au-dessus de la ligne de flottaison) ---------- */
.v-accueil .container > * { max-width: 760px; }
.v-identite { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.v-identite img { width: 56px; height: 70px; flex: none; border-radius: 12px; object-fit: cover; object-position: 50% 18%; }
.v-identite p { margin: 0; line-height: 1.35; }
.v-identite strong { display: block; font-family: var(--font-titre); font-weight: 400; font-size: 1.2rem; color: var(--ink); }
.v-identite span { display: block; font-size: .9rem; color: var(--ink-soft); }
.v-accueil h1 { margin: 0 0 14px; max-width: 18ch; }
.v-sous { font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft); max-width: 42ch; margin: 0 0 26px; }
.v-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; transition: opacity .2s; }
.v-bouton svg { width: 18px; height: 12px; transition: transform .2s; }
.v-bouton:hover, .v-bouton:focus-visible { opacity: .88; }
.v-bouton:hover svg, .v-bouton:focus-visible svg { transform: translateX(4px); }
.v-bouton:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.v-lieu { display: block; margin: 12px 0 0; font-size: .95rem; color: var(--ink-soft); }
.v-statut { margin: 22px 0 0; font-size: .85rem; line-height: 1.5; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Blocs visuels ---------- */
.v-ess .section-head { margin-bottom: 0; }
.v-ligne { margin: 22px 0 0; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); max-width: 64ch; }

.v-trois { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v-trois--4 { grid-template-columns: repeat(4, 1fr); }
.v-trois li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.v-trois svg { width: 30px; height: 30px; color: var(--ink); flex: none; }
.v-trois strong { font-family: var(--font-titre); font-weight: 400; font-size: 1.2rem; line-height: 1.28; color: var(--ink); }
.v-num { font-family: var(--font-titre); font-size: 2.4rem; line-height: 1; color: var(--bronze); }

.v-chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0 0; }
.v-chiffres > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
.v-chiffres h3 { margin: 0 0 8px; font-size: .78rem; font-family: var(--font); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.v-gros { display: block; font-family: var(--font-titre); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; color: var(--ink); margin: 0 0 10px; }
.v-chiffres p { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--ink-soft); }

.v-frise { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.v-frise::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line-strong); }
.v-frise li { position: relative; padding: 28px 16px 0 0; }
.v-frise li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); }
.v-frise li:last-child::before { background: var(--bronze); border-color: var(--bronze); }
.v-frise b { display: block; font-family: var(--font-titre); font-weight: 400; font-size: 1.25rem; color: var(--ink); margin-bottom: 4px; }
.v-frise span { font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }

.v-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; }
.v-compare > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; }
.v-compare .v-compare__lux { border: 2px solid var(--bronze); }
.v-compare h3 { margin: 0 0 14px; font-size: 1.3rem; font-weight: 400; font-family: var(--font-titre); color: var(--ink); }
.v-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.v-compare li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--ink); font-size: .98rem; line-height: 1.4; }
.v-compare li svg { width: 24px; height: 24px; color: var(--ink-soft); }
.v-compare__lux li svg { color: var(--bronze); }

.v-schema { margin: 26px 0 0; }
.v-schema svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.v-schema .vs-noeud { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.v-schema .vs-centre { fill: var(--surface-tint); stroke: var(--bronze); stroke-width: 2; }
.v-schema .vs-trait { stroke: var(--ink-soft); stroke-width: 2; fill: none; stroke-dasharray: 6 6; }
.v-schema text { fill: var(--ink); font-family: var(--font); font-size: 15px; text-anchor: middle; }
.v-schema .vs-petit { font-size: 13px; fill: var(--ink-soft); }

.v-portrait { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin: 28px 0 0; }
.v-portrait img { width: 200px; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; display: block; }

.v-lien { margin: 18px 0 0; font-size: .95rem; }
.v-lien a { color: var(--link); text-underline-offset: 4px; display: inline-block; padding: 10px 0; }

@media (max-width: 1023px) {
  .v-trois--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .v-barre__in { min-height: 56px; }
  .v-barre__lib { display: none; }
  .v-bascule { width: 100%; }
  .v-bascule button { flex: 1; }
  .v-identite img { width: 48px; height: 60px; }
  .v-identite strong { font-size: 1.1rem; }
  .v-identite span { font-size: .84rem; }
  .v-accueil h1 { font-size: 1.95rem; }
  .v-sous { font-size: 1.05rem; margin-bottom: 20px; }
  .v-bouton { width: 100%; }
  .v-trois, .v-trois--4 { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .v-trois li { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .v-trois strong { font-size: 1.08rem; }
  .v-num { font-size: 1.8rem; min-width: 1.1ch; }
  .v-chiffres { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .v-chiffres > div { padding: 18px 18px; }
  .v-frise { grid-template-columns: 1fr; margin-top: 22px; }
  .v-frise::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .v-frise li { padding: 0 0 20px 38px; }
  .v-frise li:last-child { padding-bottom: 0; }
  .v-frise li::before { top: 2px; }
  .v-compare { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .v-compare > div { padding: 18px 16px; }
  .v-portrait { grid-template-columns: 1fr; gap: 16px; }
  .v-portrait img { width: 140px; }
  .v-ligne { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .v-bouton, .v-bouton svg, .v-bascule button, .vue-sec-btn { transition: none; }
}

/* ---------- Finitions (17/10/2026) ---------- */
/* Un saut de ligne après chaque phrase (balisage), jamais de mot orphelin en bout de ligne. */
.v-ess p, .v-ess h2, .v-ess strong, .v-ess b, .v-ess span, .v-accueil p, .v-accueil h1, .v-accueil span, .v-sas p, .v-sas h2, .v-sas strong, .v-sas span { text-wrap: balance; }
.v-bouton--clair { background: #fff; color: #0e1530; }
/* Section en version essentiel : moins de vide au-dessus du titre (le bouton Détail occupe déjà la première ligne). */
html.vue-js[data-vue="essentiel"] .section[data-vue-sec] { padding-top: 28px; padding-bottom: 44px; }
@media (max-width: 767px) {
  html.vue-js[data-vue="essentiel"] .section[data-vue-sec] { padding-top: 18px; padding-bottom: 30px; }
}
#rdv .cta-band { align-items: center; }
.v-ident-bande { padding: 26px 0 0; }
.v-ident-bande .v-identite { margin: 0; }
.v-ident-bande + .v-accueil, .v-ident-bande + .vo-ess { padding-top: 18px; }
@media (max-width: 767px) { .v-ident-bande { padding-top: 18px; } }
.v-cta { margin: 26px 0 0; }
@media (max-width: 767px) { .v-cta { margin-top: 20px; } }

/* S1 (23/10/2026) : un item de comparatif sans pictogramme n'a qu'un seul enfant ; la grille « 26px 1fr » le plaçait dans la colonne de 26 px
   (un mot par ligne). Sans pictogramme, l'item reprend toute la largeur, précédé d'un tiret fin. */
.v-compare li:not(:has(> svg)) { display: block; position: relative; padding-left: 18px; }
.v-compare li:not(:has(> svg))::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1.5px; background: var(--bronze); }
