/* Le site vitrine de Ticous : ce que la page ajoute aux composants tc-* de la charte (ticous.css).
   Toutes les valeurs viennent des jetons : couleurs, espacements, rayons, traits. Pas d'ombre :
   seule la lumière de Néon déborde (.v-ecran--lumiere). */

html { scroll-behavior: smooth; scroll-padding-top: var(--space-5); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: 17px; line-height: 1.55; font-weight: 500; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--lien); }

.v-saut { position: absolute; left: var(--space-4); top: -100px; z-index: 2; background: var(--encre); color: var(--sur-encre); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); font-weight: 700; }
.v-saut:focus { top: var(--space-3); }

/* En-tête et pied : leur contenu s'aligne sur celui de la page */
.v-entete, .v-pied { padding-inline: max(16px, env(safe-area-inset-left, 0px), calc((100% - var(--largeur-page)) / 2 + 16px)); }
.v-entete { position: relative; }
.v-logo { height: 30px; color: var(--encre); }
.v-logo--pied { height: 24px; }
.tc-nav a:focus-visible, .tc-pied a:focus-visible, .v-question summary:focus-visible, .v-note a:focus-visible { outline: var(--trait-focus) solid var(--focus); outline-offset: 2px; }
.v-pied p { margin: 0; }
.v-pied .tc-pied__texte { gap: var(--space-2); }

/* La page : une colonne de sections, séparées de space-8 */
.v-contenu { max-width: var(--largeur-page); margin: 0 auto; padding-block: var(--space-6) var(--space-8); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: var(--space-8); }
.v-section { display: grid; gap: var(--space-5); min-width: 0; }
.v-tete { display: grid; gap: var(--space-3); justify-items: start; }
.v-tete h2 { font-family: var(--font-chiffre); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.v-chapeau { font-size: 20px; line-height: 1.5; max-width: var(--largeur-texte); }
.v-titre-3 { font-size: 22px; line-height: 1.3; font-weight: 700; margin-top: var(--space-3); }
.v-texte { display: grid; gap: var(--space-4); max-width: var(--largeur-texte); align-content: start; }
.v-note { font-size: 15px; color: var(--encre-douce); max-width: var(--largeur-texte); }
.tc-tuile h3, .v-avantage h2 { font-size: 20px; line-height: 1.3; font-weight: 700; margin-bottom: var(--space-2); }
.tc-tuile p + p { margin-top: var(--space-3); }

.v-deux { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.v-cote { display: grid; gap: var(--space-4); }
.v-quatre { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.v-trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); }
.v-offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); }
@media (max-width: 760px) { .v-deux { grid-template-columns: 1fr; gap: var(--space-5); } }

/* Les photos : un trait d'encre et les coins de la charte, comme les tuiles */
.v-photo { margin: 0; display: grid; gap: var(--space-3); }
.v-photo img { display: block; width: 100%; height: auto; border: var(--trait-tuile) solid var(--encre); border-radius: var(--radius-panneau); background: var(--papier-creux); }
.v-app { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-weight: 700; font-size: 16px; }
.v-app span:first-child { margin-right: var(--space-1); }

/* Ouverture : la promesse et la photo, puis ce que le cadre change */
.v-ouverture { padding-top: var(--space-4); }
.v-ouverture__texte { display: grid; justify-items: start; }
.v-ouverture .tc-pilule { margin-bottom: var(--space-5); }
.v-ouverture h1 { font-size: clamp(38px, 5vw, 58px); }
.v-ouverture p { max-width: 34ch; }
.v-photo--une figcaption { justify-self: start; }
.v-avantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); margin-top: calc(-1 * var(--space-4)); }
.v-avantage { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5) var(--space-4); }
.v-avantage h2 { margin: 0; }
.v-avantage p:not(.tc-chiffre) { font-size: 16px; line-height: 1.45; }
.v-avantage:not(.tc-tuile--jaune) p { color: var(--encre-douce); }

/* Les idées : trois grandes scènes en quinconce, puis une grille */
.v-scenes { display: grid; gap: var(--space-7); }
.v-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.v-scene:nth-child(even) .v-photo { order: 2; }
.v-scene__texte { display: grid; gap: var(--space-3); justify-items: start; max-width: 46ch; }
.v-scene h3 { font-family: var(--font-chiffre); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.v-scene__texte > p:not(.tc-etiquette):not(.v-app) { font-size: 19px; line-height: 1.5; }
.v-idees { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6) var(--space-5); }
.v-idee { display: grid; gap: var(--space-2); align-content: start; }
.v-idee .v-photo { margin-bottom: var(--space-2); }
.v-idee .v-photo img { border-radius: var(--radius-tuile); }
.v-idee h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.v-idee > p:not(.tc-etiquette):not(.v-app) { color: var(--encre-douce); font-size: 16px; line-height: 1.45; }
@media (max-width: 760px) {
  .v-scene { grid-template-columns: 1fr; gap: var(--space-4); }
  .v-scene:nth-child(even) .v-photo { order: 0; }
}

/* Les rendus du cadre (les styles) */
.tc-apercu__cadre img { height: auto; }
@media (prefers-color-scheme: dark) { .tc-apercu__cadre { outline: var(--trait-fin) solid var(--ligne); } }

/* Les trois cadres */
.v-gammes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
/* L'écran de chaque produit, dans son cadre et son passe-partout (vitrine/ciel.py). Le cadre et le passe-partout
   gardent les couleurs de la marque dans les deux thèmes, comme un vrai objet. */
.v-ecran { margin: 0; display: grid; gap: var(--space-2); min-width: 0; }
.v-ecran { --passe-partout: var(--marque-papier); }
.v-ecran__cadre { background: var(--passe-partout); border: 7px solid var(--marque-encre); border-radius: var(--radius-case); padding: 8% 7%; }
.v-ecran__vitre { position: relative; overflow: hidden; border-radius: 2px; }
.v-ecran__vitre img { display: block; width: 100%; height: auto; }
.v-ecran picture { display: contents; }
.v-ecran figcaption { font-size: 15px; line-height: 1.45; color: var(--encre-douce); }
/* L'encre : mate comme du papier. Un grain fin, aucun reflet, et la lumière de la pièce sans plus. */
.v-ecran--encre .v-ecran__vitre { outline: var(--trait-fin) solid color-mix(in srgb, var(--marque-encre) 14%, transparent); }
.v-ecran--encre .v-ecran__vitre::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0.22; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.48 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E"); }
.v-ecran--encre img { filter: saturate(0.92) contrast(0.96); }
/* Dans une pièce sombre, l'encre et le passe-partout n'ont que la lumière de la pièce : seul Néon éclaire le sien */
@media (prefers-color-scheme: dark) {
  .v-ecran { --passe-partout: color-mix(in srgb, var(--marque-papier) 74%, var(--marque-encre)); }
  .v-ecran--encre img { filter: saturate(0.9) contrast(0.94) brightness(0.84); }
}
/* Néon éclaire : sa lumière déborde sur le passe-partout et la vitre a un reflet. La seule lueur du site, et ce n'est
   pas une ombre : c'est la lumière de l'écran. Ses couleurs sont celles de l'image (LUMIERE dans vitrine/ciel.py). */
.v-ecran--lumiere { --neon-nuit: #0B0F14; --neon-bleu: #8C96FF; --neon-vert: #36E0A0; }
.v-ecran--lumiere .v-ecran__cadre { background: radial-gradient(ellipse 75% 70% at 50% 50%, color-mix(in srgb, var(--neon-bleu) 30%, var(--marque-papier)), color-mix(in srgb, var(--neon-vert) 10%, var(--passe-partout)) 62%, var(--passe-partout) 100%); }
.v-ecran--lumiere .v-ecran__vitre { background: var(--neon-nuit); box-shadow: 0 0 4px color-mix(in srgb, var(--neon-bleu) 55%, transparent), 0 0 20px 4px color-mix(in srgb, var(--neon-bleu) 35%, transparent), 0 0 44px 12px color-mix(in srgb, var(--neon-vert) 20%, transparent); }
.v-ecran--lumiere .v-ecran__vitre::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgb(255 255 255 / 0.13) 0%, rgb(255 255 255 / 0.04) 34%, transparent 35%); }
.v-gamme { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); }
.v-gamme__tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.v-gamme h3 { font-family: var(--font-chiffre); font-size: 22px; line-height: 1.2; font-weight: 600; margin: 0; }
.v-gamme .tc-chiffre { margin-top: var(--space-2); }
.v-gamme__sorte { font-weight: 700; color: var(--encre-douce); margin-top: calc(-1 * var(--space-2)); }
.v-gamme__rythme { font-family: var(--font-mono); font-size: 12px; color: var(--encre-douce); margin-top: calc(-1 * var(--space-2)); }
.v-gamme__pour { border-top: var(--trait-fin) solid var(--ligne-douce); padding-top: var(--space-3); color: var(--encre-douce); font-size: 16px; }
.v-gamme__pour b { color: var(--encre); }
.v-gamme .v-encres { margin: 0; gap: var(--space-2) var(--space-3); font-size: 15px; }
/* Les gris de l'encre rapide, fixes comme les encres : ils ne changent pas avec le thème */
.v-nuancier { display: flex; gap: var(--space-2); }
.v-gris { width: 24px; height: 24px; border-radius: var(--radius-pill); border: var(--trait-tuile) solid var(--encre); }
.v-gris-1 { background: var(--marque-encre); }
.v-gris-2 { background: color-mix(in srgb, var(--marque-encre) 75%, var(--marque-papier)); }
.v-gris-3 { background: color-mix(in srgb, var(--marque-encre) 50%, var(--marque-papier)); }
.v-gris-4 { background: color-mix(in srgb, var(--marque-encre) 25%, var(--marque-papier)); }
.v-gris-5 { background: var(--marque-papier); }
.v-deux--egal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
@media (max-width: 760px) { .v-deux--egal { grid-template-columns: 1fr; } }

/* Le cadre : les six encres */
.v-encres { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
.v-encres li { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
/* Les encres de la dalle ne changent pas avec le thème : le noir reste noir */
.v-encre-encre { background: var(--marque-encre); }
.v-encre-papier { background: var(--marque-papier); }
.v-encre-jaune { background: var(--jaune); }
.v-encre-rouge { background: var(--rouge); }
.v-encre-bleu { background: var(--bleu); }
.v-encre-vert { background: var(--vert); }

/* Toutes les apps, repliées */
.v-familles { columns: 3 280px; column-gap: var(--space-4); margin-top: var(--space-4); }
.v-famille { break-inside: avoid; margin-bottom: var(--space-4); }
.v-famille h4 { font-size: 18px; line-height: 1.3; font-weight: 700; display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-2); }
.v-famille h4 span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--encre-douce); }
.v-liste { list-style: none; margin: 0; padding: 0; }
.v-liste li { display: flex; align-items: center; gap: var(--space-2); padding: 7px 0; border-top: var(--trait-fin) solid var(--ligne-douce); font-size: 15px; line-height: 1.35; }
.v-liste li span:first-child { margin-right: auto; }
.v-liste li:first-child { border-top: 0; }
.v-liste .tc-badge { font-size: 10px; padding: 3px 8px; }
.v-toutes summary { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border: var(--trait-tuile) solid var(--encre); border-radius: var(--radius-pill); background: var(--papier-relief); font-weight: 700; cursor: pointer; list-style: none; }
.v-toutes summary::-webkit-details-marker { display: none; }
.v-toutes summary:hover { background: var(--papier-creux); }
.v-toutes summary:focus-visible { outline: var(--trait-focus) solid var(--focus); outline-offset: 2px; }
.v-toutes[open] summary { background: var(--encre); color: var(--sur-encre); }

/* Les chartes : des boutons radio et une image par charte, sans script */
.v-chartes-choix { border: 0; margin: 0; padding: 0; min-width: 0; }
.v-chartes { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.v-chartes input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.v-chartes label { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: var(--trait-tuile) solid var(--encre); border-radius: var(--radius-pill); background: var(--papier-relief); font-weight: 700; font-size: 16px; cursor: pointer; }
.v-chartes label:hover { background: var(--papier-creux); }
.v-chartes input:checked + label { background: var(--encre); color: var(--sur-encre); }
.v-chartes input:focus-visible + label { outline: var(--trait-focus) solid var(--focus); outline-offset: 2px; }
.v-chartes__ecrans { flex: 1 0 100%; margin-top: var(--space-3); max-width: 760px; }
.v-chartes__ecran { display: none; }
.v-chartes__ecran figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); font-family: var(--font-texte); font-size: 15px; color: var(--encre-douce); }
.v-chartes__ecran figcaption b { color: var(--encre); }

/* Comment ça marche */
.v-etapes { gap: var(--space-4); }
.v-etapes .tc-etape { align-items: flex-start; font-size: 18px; }
.v-etapes .tc-etape__numero { margin-top: 1px; }

/* Inclus ou abonnement */
.v-offre { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); }

/* Bientôt au mur : un bandeau jaune, comme le mur de la photo du prototype */
.v-final { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; background: var(--jaune); color: var(--sur-jaune); border: var(--trait-tuile) solid var(--marque-encre); border-radius: var(--radius-panneau); padding: var(--space-6); }
.v-final__texte { display: grid; gap: var(--space-4); justify-items: start; }
.v-final h2 { font-family: var(--font-chiffre); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.v-final p { font-size: 19px; max-width: 32ch; }
.v-final .tc-bouton--primaire { background: var(--marque-encre); color: var(--marque-papier); border-color: var(--marque-encre); }
.v-final__photo { margin: 0; display: grid; gap: var(--space-2); }
.v-final__photo img { display: block; width: 100%; height: auto; border: var(--trait-tuile) solid var(--marque-encre); border-radius: var(--radius-tuile); }
.v-final__photo figcaption { font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 760px) { .v-final { grid-template-columns: 1fr; padding: var(--space-5); } }

/* Questions */
.v-questions { display: grid; max-width: 820px; border-top: var(--trait-tuile) solid var(--encre); }
.v-question { border-bottom: var(--trait-fin) solid var(--ligne); }
.v-question summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; font-weight: 700; font-size: 18px; min-height: 44px; }
.v-question summary::-webkit-details-marker { display: none; }
.v-question summary::after { content: ""; flex: none; width: 14px; height: 14px; border-radius: var(--radius-pill); border: var(--trait-tuile) solid var(--encre); background: var(--papier-relief); }
.v-question[open] summary::after { background: var(--jaune); }
.v-question p { padding: 0 0 var(--space-4); max-width: var(--largeur-texte); }

/* « Être prévenu de la sortie » : l'adresse et le bouton sur une ligne, qui passe à deux sur un téléphone. Le champ
   piège reste hors de l'écran ; les messages du retour ne se montrent que sur leur ancre (#merci…). */
.v-prevenir { width: 100%; max-width: 560px; }
.v-prevenir .tc-champ { max-width: none; }
.v-prevenir__ligne { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.v-prevenir__ligne input { flex: 1 1 16rem; min-width: 0; width: auto; }
.v-prevenir__ligne .tc-bouton { flex: none; }
.v-prevenir .tc-champ__aide { font-size: 14px; max-width: none; margin: 0; }
.v-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.v-retour { width: 100%; max-width: 560px; margin-bottom: var(--space-4); scroll-margin-top: var(--space-6); }
.v-retour:not(:target) { display: none; }
.v-ouverture .v-retour p, .v-final .v-retour p { font-size: 16px; max-width: none; margin: 0; }
.v-final .tc-champ label, .v-final .tc-champ__aide { color: var(--sur-jaune); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .v-contenu { gap: var(--space-7); padding-top: var(--space-5); }
  .v-chapeau, .v-ouverture p { font-size: 18px; }
  .tc-vitrine__boutons .tc-bouton { width: 100%; }
  .v-prevenir__ligne .tc-bouton { width: 100%; }
  .v-encres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-chartes label { padding: 6px 12px; font-size: 15px; min-height: 40px; }
}
