/*
 * vitrine-contenu.css — gabarit des pages de CONTENU éditorial de la vitrine (hub « Conseils », guides,
 * page partenaires). Réutilise les jetons --h-* du design system. Préfixe .vc-. Mobile-first, accessible
 * (gros texte, bons contrastes, focus visible). Indexable (pas de noindex) : pages SEO publiques.
 */

/* ══ En-tête & pied repris de la vitrine (index.html) pour un rendu homogène ══════════════════════
   Les pages de contenu n'ont pas de héros nocturne : le header est TOUJOURS en état « collé » (fond
   blanc, texte foncé) — pas d'état nuit ni de JS de scroll. Markup identique : .v-nav / .v-pied. */
.v-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--h-surface); border-bottom: 2px solid var(--h-bordure);
  box-shadow: 0 2px 12px rgba(30, 42, 71, .08);
}
.v-nav__inner {
  display: flex; align-items: center; gap: var(--h-esp-4);
  width: 100%; max-width: 1120px; margin-inline: auto;
  padding: var(--h-esp-3) var(--h-esp-4);
}
.v-nav__marque { display: inline-flex; align-items: center; flex-shrink: 0; }
.v-nav__marque img { height: 40px; width: auto; }
.v-nav__actions { margin-left: auto; display: flex; align-items: center; gap: var(--h-esp-3); }
.v-nav__actions .h-bouton { width: auto; min-height: 48px; padding-inline: var(--h-esp-5); }
@media (max-width: 560px) {
  .v-nav__inner { flex-direction: column; align-items: stretch; gap: var(--h-esp-3); }
  .v-nav__marque { align-self: flex-start; }
  .v-nav__marque img { height: 32px; }
  .v-nav__actions { margin-left: 0; width: 100%; }
  .v-nav__actions .h-bouton { flex: 1 1 0; padding-inline: var(--h-esp-3); }
}

/* Pied de page (identique à la vitrine). */
.v-pied { border-top: 2px solid var(--h-bordure); background: var(--h-surface); padding-top: var(--h-esp-7); color: var(--h-texte); }
/* Grille principale : Marque + Légal + Contact (3 colonnes). « Découvrir » est sortie dessous. */
.v-pied__grille { display: grid; gap: var(--h-esp-6); grid-template-columns: 1fr; padding-bottom: var(--h-esp-5); }
@media (min-width: 720px) { .v-pied__grille { grid-template-columns: 1.6fr 1fr 1.2fr; } }
/* « Découvrir » en pleine largeur, liens en ligne (gagne de la hauteur). */
.v-pied__decouvrir { padding-block: var(--h-esp-4); border-top: 2px solid var(--h-bordure); }
.v-pied__decouvrir h3 { font-size: var(--h-taille-m); margin: 0 0 var(--h-esp-3); }
.v-pied__decouvrir nav { display: flex; flex-wrap: wrap; gap: var(--h-esp-2) var(--h-esp-5); }
.v-pied__decouvrir a { color: var(--h-texte-doux); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.v-pied__decouvrir a:hover { color: var(--h-titre); text-decoration: underline; }
.v-pied__marque img { height: 40px; width: auto; }
.v-pied__baseline { margin: var(--h-esp-3) 0 var(--h-esp-4); color: var(--h-texte-doux); max-width: 34ch; }
.v-pied__social { display: flex; gap: var(--h-esp-3); }
.v-pied__social a {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--h-bordure); color: var(--h-titre); font-size: 1.2rem; text-decoration: none;
}
.v-pied__social a:hover { background: var(--h-ventre); border-color: var(--h-fauve); }
.v-pied__col h3 { font-size: var(--h-taille-m); margin: 0 0 var(--h-esp-3); }
.v-pied__col { display: flex; flex-direction: column; gap: var(--h-esp-2); }
.v-pied__col a { color: var(--h-texte-doux); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.v-pied__col a:hover { color: var(--h-titre); text-decoration: underline; }
.v-pied__contact { display: flex; align-items: center; gap: var(--h-esp-2); color: var(--h-texte-doux); margin: 0; min-height: 40px; }
.v-pied__contact i { color: var(--h-sarcelle); width: 20px; text-align: center; }
.v-pied__acces { display: flex; flex-wrap: wrap; gap: var(--h-esp-3); justify-content: center; padding-block: var(--h-esp-5); border-top: 2px solid var(--h-bordure); }
.v-pied__tuile {
  display: inline-flex; align-items: center; gap: var(--h-esp-2);
  min-height: 48px; padding: var(--h-esp-2) var(--h-esp-4);
  border: 2px solid var(--h-bordure); border-radius: var(--h-rayon-pilule);
  color: var(--h-titre); text-decoration: none; font-weight: 700; font-size: var(--h-taille-s);
}
.v-pied__tuile:hover { background: var(--h-ventre); border-color: var(--h-fauve); }
.v-pied__tuile i { color: var(--h-sarcelle); }
.v-pied__bas {
  display: flex; flex-wrap: wrap; gap: var(--h-esp-3); justify-content: space-between; align-items: center;
  padding-block: var(--h-esp-4); border-top: 2px solid var(--h-bordure);
  color: var(--h-texte-doux); font-size: var(--h-taille-s);
}
.v-pied__heberge { display: inline-flex; align-items: center; gap: var(--h-esp-2); }
.v-pied__heberge i { color: var(--h-sarcelle); }

/* Conteneur d'article : largeur de lecture confortable. */
.vc-article { max-width: 960px; margin-inline: auto; padding: var(--h-esp-6) var(--h-esp-4) var(--h-esp-8); }
.vc-fil { font-size: var(--h-taille-s); color: var(--h-texte-doux); margin-bottom: var(--h-esp-4); }
.vc-fil a { color: var(--h-sarcelle); font-weight: 700; }
.vc-article h1 { font-size: var(--h-taille-2xl); line-height: 1.15; margin-bottom: var(--h-esp-3); }
.vc-chapo { font-size: var(--h-taille-l); color: var(--h-texte-doux); line-height: 1.6; margin-bottom: var(--h-esp-5); }
.vc-article h2 { font-size: var(--h-taille-xl); margin-top: var(--h-esp-7); margin-bottom: var(--h-esp-3); color: var(--h-titre); }
.vc-article h3 { font-size: var(--h-taille-l); margin-top: var(--h-esp-5); margin-bottom: var(--h-esp-2); }
/* max-width:none : neutralise le plafond global « p { max-width: 65ch } » (hulotte.css) pour que les
   paragraphes occupent toute la largeur du conteneur d'article (960px). */
.vc-article p, .vc-article li { font-size: var(--h-taille-m); line-height: 1.7; max-width: none; }
.vc-article ul, .vc-article ol { padding-left: 1.4em; margin-block: var(--h-esp-3); }
.vc-article li { margin-bottom: var(--h-esp-2); }
.vc-article a { color: var(--h-sarcelle); font-weight: 700; }
.vc-article strong { color: var(--h-titre); }

/* Encart d'alerte / point de vigilance réutilisable (reprend .h-alerte, variante sarcelle pour conseils). */
.vc-encart {
  display: flex; gap: var(--h-esp-4); align-items: flex-start;
  background: var(--h-ventre); border: 3px solid var(--h-sarcelle); border-radius: var(--h-rayon-l);
  padding: var(--h-esp-5); margin-block: var(--h-esp-5);
}
.vc-encart img { width: 56px; height: 56px; flex-shrink: 0; }
.vc-encart__titre { font: 800 var(--h-taille-l)/1.2 var(--h-police-titre); color: var(--h-sarcelle); margin: 0 0 var(--h-esp-2); }
.vc-encart p { margin: 0; }
/* Variante « danger » (vrai signal d'alerte, ex. arnaque) : bordure et titre alerte. */
.vc-encart--alerte { border-color: var(--h-alerte); background: var(--h-alerte-fond); }
.vc-encart--alerte .vc-encart__titre { color: var(--h-alerte); }

/* CTA de bas d'article : invite à essayer Hulotte. */
.vc-cta {
  text-align: center; background: var(--h-nuit); color: var(--h-creme);
  border-radius: var(--h-rayon-l); padding: var(--h-esp-7) var(--h-esp-5); margin-top: var(--h-esp-8);
}
.vc-cta h2 { color: var(--h-creme); margin-top: 0; }
.vc-cta p { color: color-mix(in srgb, var(--h-creme) 85%, var(--h-plumage)); max-width: 46ch; margin-inline: auto; }
/* Mascotte accueillante en haut du bloc CTA. */
.vc-cta__mascotte { width: 84px; height: auto; margin-bottom: var(--h-esp-3); }
/* Bouton sur fond nuit : en OR (le bleu nuit se fondrait dans le fond — même choix que la vitrine). */
.vc-cta .h-bouton {
  width: auto; margin-top: var(--h-esp-4);
  background: var(--h-or); color: var(--h-encre); border-color: var(--h-or);
}
.vc-cta .h-bouton:hover { filter: brightness(1.06); }

/* Hub « Conseils » : grille de cartes vers les guides. */
.vc-hub { max-width: 1080px; margin-inline: auto; padding: var(--h-esp-6) var(--h-esp-4) var(--h-esp-8); }
/* En-tête du hub : mascotte accueillante à côté du titre (empilée sur mobile). */
.vc-hub__intro { display: flex; align-items: center; gap: var(--h-esp-5); flex-wrap: wrap; }
.vc-hub__mascotte { width: 110px; height: auto; flex-shrink: 0; }
.vc-hub__intro h1 { margin-bottom: var(--h-esp-2); }
.vc-hub__intro .vc-chapo { margin-bottom: 0; }
.vc-grille { display: grid; grid-template-columns: 1fr; gap: var(--h-esp-4); margin-top: var(--h-esp-5); }
@media (min-width: 640px) { .vc-grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .vc-grille { grid-template-columns: 1fr 1fr 1fr; } }
.vc-carte {
  display: flex; flex-direction: column; gap: var(--h-esp-2);
  background: var(--h-surface); border: 2px solid var(--h-bordure); border-radius: var(--h-rayon-l);
  padding: var(--h-esp-5); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s;
}
.vc-carte:hover { border-color: var(--h-sarcelle); transform: translateY(-2px); }
.vc-carte:focus-visible { outline: 4px solid var(--h-focus); outline-offset: 2px; }
.vc-carte i { font-size: 1.8rem; color: var(--h-sarcelle); }
.vc-carte h2 { font-size: var(--h-taille-l); margin: 0; }
.vc-carte p { font-size: var(--h-taille-s); color: var(--h-texte-doux); margin: 0; }

/* ══ Barre d'écoute de page (js/ecoute-page.js) ════════════════════════════════════════════════
   Boutons « Écouter la page » / « Depuis le début », insérés sous le titre de l'article. */
.ecp-barre { display: flex; flex-wrap: wrap; gap: var(--h-esp-3); margin: var(--h-esp-4) 0 var(--h-esp-5); transition: none; }
.ecp-barre .h-bouton { width: auto; min-height: 48px; }
/* Pendant la lecture (ou pause), la barre FLOTTE en bas de l'écran pour rester accessible même après
   avoir fait défiler la page. Le placeholder (hauteur réservée via JS) évite tout saut de contenu. */
.ecp-barre--flottante {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  margin: 0; padding: var(--h-esp-3) var(--h-esp-4);
  justify-content: center;
  background: var(--h-surface); border-top: 2px solid var(--h-bordure);
  box-shadow: 0 -4px 16px rgba(30, 42, 71, .12);
}
.ecp-barre--flottante .h-bouton { min-height: 52px; }
/* Le mot en cours de lecture (.h-mot--actif de hulotte.css) hérite du surlignage or + contour.
   Les mots non lus restent du texte normal (pas de style, pour ne pas alourdir l'article). */
.vc-article .h-mot { border-radius: 4px; }
