/* piec'oto — guides, pages pays, marques et décodeur VIN.
   Même registre que l'accueil (papier chaud, titres en serif, filets fins), réglé
   pour la lecture longue : une colonne de 68 caractères environ, des intertitres
   repérables, des encadrés rares. Chargé après styles.css. */

.page { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.page section { padding: 0; }

/* Fil d'Ariane ----------------------------------------------------------- */
.ariane { font-size: 13px; color: var(--encre-2); margin-bottom: 22px; }
.ariane ol { display: flex; flex-wrap: wrap; gap: 6px; }
.ariane li { display: inline-flex; align-items: center; gap: 6px; }
.ariane li + li::before { content: '/'; color: var(--filet); }
.ariane a { text-decoration: underline; text-decoration-color: var(--filet); text-underline-offset: 3px; }
.ariane a:hover { color: var(--encre); }

/* En-tête d'article -------------------------------------------------------- */
.tete-article { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.tete-article .surtitre { display: block; margin-bottom: 14px; }
.tete-article h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; margin-bottom: 20px; }
.tete-article .chapo { max-width: 40em; }
.meta { margin-top: 18px; font-size: 13px; color: var(--encre-2); display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Mise en page : texte + sommaire ---------------------------------------- */
.article-grille { display: grid; grid-template-columns: minmax(0, 720px) 240px; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 980px) { .article-grille { grid-template-columns: minmax(0, 1fr); } .sommaire { display: none; } }
.sommaire { position: sticky; top: 96px; font-size: 14px; border-top: 1px solid var(--encre); padding-top: 14px; }
.sommaire p { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 10px; }
.sommaire a { display: block; padding: 6px 0; color: var(--encre-2); border-bottom: 1px solid var(--filet); line-height: 1.35; }
.sommaire a:hover { color: var(--encre); }

/* Texte courant ------------------------------------------------------------ */
.texte { font-size: 17.5px; line-height: 1.7; color: var(--encre); }
.texte > * + * { margin-top: 1.05em; }
.texte h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -0.015em; margin-top: 1.9em; scroll-margin-top: 90px; }
.texte h3 { font-size: 18px; margin-top: 1.5em; }
.texte p, .texte li { max-width: 40em; }
.texte ul, .texte ol { padding-left: 1.2em; }
.texte ul { list-style: none; }
.texte ul > li { position: relative; }
.texte ul > li::before { content: ''; position: absolute; left: -1.05em; top: .72em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.texte ol { list-style: decimal; }
.texte ol > li::marker { font-weight: 600; color: var(--accent-fonce); }
.texte li + li { margin-top: .45em; }
.texte a { color: var(--accent-fonce); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.texte a:hover { color: var(--encre); }
.texte strong { font-weight: 600; }
.texte code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; letter-spacing: .02em; }
.texte code { background: var(--papier-2); padding: 1px 6px; border-radius: 6px; }

.encadre { background: var(--blanc); border: 1px solid var(--filet); border-left: 3px solid var(--accent); border-radius: 12px; padding: 18px 20px; font-size: 16px; }
.encadre.calme { border-left-color: var(--confiance); }
.encadre p { max-width: none; }
.encadre > * + * { margin-top: .6em; }
.encadre .titre-encadre { font-weight: 600; font-size: 15px; }

.texte table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.texte th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--encre); white-space: nowrap; }
.texte td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.texte td:first-child { font-weight: 500; }

.vin-exemple { display: flex; flex-wrap: wrap; gap: 2px; font-family: ui-monospace, Menlo, monospace; font-size: clamp(15px, 2.6vw, 22px); margin: 8px 0 4px; }
.vin-exemple span { padding: 8px 6px 4px; border-bottom: 3px solid var(--filet); text-align: center; min-width: 1.4em; }
.vin-exemple .wmi { border-color: var(--accent); }
.vin-exemple .vds { border-color: var(--confiance); }
.vin-exemple .vis { border-color: var(--encre-2); }
.legende-vin { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--encre-2); }
.legende-vin i { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 6px; }

/* Questions fréquentes dans un article ------------------------------------ */
.faq-article { margin-top: 2.2em; }
.faq-article h2 { margin-bottom: .5em; }
.faq-article details { border-top: 1px solid var(--filet); }
.faq-article details:last-child { border-bottom: 1px solid var(--filet); }
.faq-article summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq-article summary::-webkit-details-marker { display: none; }
.faq-article summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 22px; font-weight: 400; color: var(--encre-2); }
.faq-article details[open] summary::after { content: '–'; }
.faq-article details p { padding: 0 0 18px; color: var(--encre-2); }

/* Sources ---------------------------------------------------------------------- */
.sources { margin-top: 2.4em; padding-top: 16px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--encre-2); }
.sources p { font-weight: 600; color: var(--encre); margin-bottom: 6px; }
.sources li + li { margin-top: 4px; }
.sources a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Appel à l'action en fin d'article -------------------------------------------- */
.appel { margin-top: 2.6em; background: var(--encre); color: #F5F5F7; border-radius: 20px; padding: clamp(24px, 4vw, 36px); }
.appel h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; color: #fff; margin: 0 0 10px; }
.appel p { color: rgba(245,245,247,.75); margin: 0 0 18px; max-width: 36em; }
.appel .boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.bouton.clair { background: #fff; color: var(--encre); }
.bouton.clair:hover { background: var(--papier); }
.bouton.contour { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.bouton.contour:hover { background: rgba(255,255,255,.08); }

/* Cartes (index du blog, pays, marques, à lire aussi) ---------------------------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.carte { display: flex; flex-direction: column; gap: 8px; background: var(--blanc); border: 1px solid var(--filet); border-radius: 16px; padding: 20px; transition: border-color .15s ease, transform .15s var(--ease); }
.carte:hover { border-color: var(--encre); transform: translateY(-2px); }
.carte .surtitre { font-size: 11px; }
.carte h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.carte p { font-size: 15px; color: var(--encre-2); line-height: 1.5; }
.carte .suite { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent-fonce); }

.bloc { margin-top: clamp(40px, 6vw, 72px); }
.bloc > h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; margin-bottom: 8px; }
.bloc > .chapo { margin-bottom: 22px; }

.liste-pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 24px; border-top: 1px solid var(--encre); }
.liste-pays a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--filet); font-family: var(--serif); font-size: 21px; }
.liste-pays a small { font-family: var(--sans); font-size: 12px; color: var(--encre-2); }
.liste-pays a:hover { color: var(--accent-fonce); }

/* Décodeur VIN ----------------------------------------------------------------------- */
.decodeur { background: var(--blanc); border: 1px solid var(--filet); border-radius: 20px; padding: clamp(18px, 3vw, 28px); margin-bottom: clamp(32px, 5vw, 56px); }
.decodeur form { display: flex; flex-wrap: wrap; gap: 10px; }
.decodeur label { display: block; width: 100%; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.decodeur input { flex: 1 1 260px; min-width: 0; height: 56px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--filet); background: var(--papier); font: 600 20px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--encre); }
.decodeur input:focus { outline: none; border-color: var(--encre); background: #fff; }
.decodeur button { height: 56px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: 600 16px var(--sans); cursor: pointer; }
.decodeur button:hover { background: var(--accent-fonce); }
.decodeur .aide { width: 100%; font-size: 13px; color: var(--encre-2); margin-top: 4px; }
.decodeur .erreur { color: #B42318; font-weight: 500; }
.resultat { margin-top: 22px; }
.resultat[hidden] { display: none; }
.resultat h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 4px; }
.fiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; margin-top: 14px; border-top: 1px solid var(--encre); }
.fiche div { padding: 12px 0; border-bottom: 1px solid var(--filet); }
.fiche dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); }
.fiche dd { margin-top: 4px; font-size: 16px; font-weight: 500; }
.note-source { font-size: 13px; color: var(--encre-2); margin-top: 12px; }
.chargement-nhtsa { font-size: 14px; color: var(--encre-2); margin-top: 12px; }

/* Pied de page enrichi ---------------------------------------------------------------- */
.pied-liens { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; width: 100%; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--filet); }
.pied-liens p { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--encre); margin-bottom: 10px; }
.pied-liens a { display: block; padding: 4px 0; font-size: 14px; color: var(--encre-2); }
.pied-liens a:hover { color: var(--encre); }

@media (max-width: 600px) {
  .texte { font-size: 17px; }
  .decodeur input { font-size: 16px; letter-spacing: .02em; padding: 0 12px; }
  .decodeur button { width: 100%; }
}

/* Accueil : bloc « Guides et outils » */
.guides-accueil { border-top: 1px solid var(--filet); }
