/* ============================================================================
   Captain Auto - Pages de contenu rendues côté serveur, hors SPA, en mode Read
   (DESIGN.md, « L'instrument de verre », 14/10/2026) :
     - guides : public/blog.php (/guides et /guides/{slug})
     - cotes : public/cote.php (/cote/{slug}) et public/cote-index.php (/cote)
     - classeur partagé : public/classeur.php
     - encart d'appel et pied de page, partagés avec legal.php et rapport.php
   ----------------------------------------------------------------------------
   ORDRE DE CHARGEMENT : ce fichier passe EN DERNIER sur ces pages (après
   bordereau.css, responsive.css et components.css), pour garder la main à
   spécificité égale. bordereau.css garde encore quelques règles anciennes sur
   ces classes (libellés mono partagés, .cote-guides) : elles sont reprises ici.

   Aucune variable inventée : toutes sont déclarées dans base.css (:root).
   Un var() inconnu échoue EN SILENCE et la propriété retombe à sa valeur initiale.

   Ici on LIT longtemps : corps à 1.0625rem (17 px) et plus, interligne 1.7,
   colonne de 68 caractères. Les montants sont en Geist tabulaire, jamais en Mono.
   ========================================================================== */

/* ------------------------------------------------------------------- page */

.guides-body {
    background: var(--bg-0);
    color: var(--text-1);
}

/* Colonne de lecture : environ 68 caractères au corps de 18 px. */
.guides-page {
    width: min(44rem, 100% - 3rem);
    max-width: none;
    margin: 0 auto;
    padding: 40px 0 72px;
}
/* L'index des guides liste des liens, pas un texte : il peut s'élargir. */
.guides-page.guides-hub { width: min(64rem, 100% - 3rem); }
.guides-hub > h1,
.guides-hub > .guides-intro,
.guides-hub > .guides-filtre { max-width: 44rem; }

/* Fil d'Ariane discret : Mono, sans soulignement, la page courante en clair. */
.guides-breadcrumb,
.cote-fil {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    margin: 0 0 20px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.guides-breadcrumb a,
.cote-fil a {
    color: var(--text-3);
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: color var(--t);
}
.guides-breadcrumb > span:last-child,
.cote-fil > span:last-child { color: var(--text-2); }

/* Titre d'écran (Read) */
.guides-page h1,
.cote-wrap h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 640;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

/* Date : méta-donnée Mono, casse normale. (0,2,0) bat la règle des libellés de
   bordereau.css, qui la passait en majuscules 12 px. */
.guides-page .guides-date {
    margin: 0 0 32px;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--text-3);
}
.guides-intro {
    margin: 0 0 32px;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--text-2);
    text-wrap: pretty;
}

/* ---------------------------------------------- double cadre (cartes Read) */
/* Plaque (cœur) sertie dans un anneau de verre de 6 px puis un filet de 1 px :
   l'anneau est une ombre à étalement, il ne prend pas de place (marges de 8 px
   au moins autour, 20 px entre deux cartes). */
.guides-toc,
.guides-related,
.guides-content blockquote,
.cote-table-cadre,
.gen-card,
.cote-guides,
.cote-liste a,
.cl-card {
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    box-shadow: var(--coeur-lueur), var(--coque);
}

/* --------------------------------------------------------------- sommaire */
/* Index numéroté en Mono : ce qui rattache la page au reste de l'instrument. */
.guides-page .guides-toc {
    position: static;
    display: block;
    margin: 8px 0 40px;
    padding: 22px 24px 16px;
    border-left: 0;
}
.guides-toc > strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-3);
}
.guides-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}
.guides-toc li {
    counter-increment: toc;
    min-width: 0;
    border-top: 1px solid rgba(255, 255, 255, .05);
}
.guides-toc li:first-child { border-top: 0; }
.guides-page .guides-toc a {
    display: flex;
    gap: 14px;
    min-height: 44px;
    align-items: baseline;
    padding: 11px 0;
    font-family: var(--font);
    font-size: .9688rem;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.45;
    color: var(--text-2);
    text-decoration: none;
    border-radius: 10px;
    transition: color var(--t);
}
.guides-toc a::before {
    content: counter(toc, decimal-leading-zero);
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- contenu */

.guides-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-1);
}
.guides-page .guides-content h2 {
    margin: 56px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: clamp(1.5rem, 2.4vw, 1.75rem);
    font-weight: 620;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-1);
    text-wrap: balance;
    scroll-margin-top: calc(var(--haut-collant) + 8px);
}
.guides-page .guides-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.guides-content h3 {
    margin: 32px 0 10px;
    font-size: 1.1875rem;
    font-weight: 620;
    line-height: 1.35;
    letter-spacing: -0.015em;
    scroll-margin-top: calc(var(--haut-collant) + 8px);
}
.guides-content p { margin: 0 0 18px; text-wrap: pretty; }
.guides-content strong { color: var(--text-1); font-weight: 620; }

/* Lien dans un texte : bleu clair ET souligné (un chiffre favorable ne l'est jamais). */
.guides-content a,
.cote-lede a,
.cote-hub-guides a,
.guides-intro a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(124, 192, 240, .5);
    transition: text-decoration-color var(--t), color var(--t);
}

.guides-content ol { margin: 0 0 18px; padding-left: 24px; }
.guides-content ol > li::marker { color: var(--text-3); font-variant-numeric: tabular-nums; }
.guides-content ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.guides-content li { margin-bottom: 10px; min-width: 0; }
.guides-content ul > li { position: relative; padding-left: 24px; }
/* Tiret de liste fin : document technique, pas blog décoratif. */
.guides-content ul > li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .85em;
    width: 10px;
    height: 1px;
    background: var(--text-3);
}

/* Tableaux à filets : en-tête Mono, chiffres alignés. Le défilement horizontal vit
   dans le tableau, jamais sur la page. (0,2,x) pour battre bordereau.css. */
.guides-page .guides-content table {
    display: block;
    overflow-x: auto;
    width: 100%;
    margin: 8px 0 28px;
    border-collapse: collapse;
    background: none;
    font-size: .9375rem;
    font-variant-numeric: tabular-nums;
}
.guides-page .guides-content table th {
    height: auto;
    padding: 10px 14px 10px 0;
    text-align: left;
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--border-strong);
    white-space: nowrap;
}
.guides-page .guides-content table td {
    padding: 12px 14px 12px 0;
    color: var(--text-2);
    border: 0;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
    vertical-align: top;
}
.guides-page .guides-content table tr:last-child td { border-bottom: 0; }

.guides-content blockquote {
    margin: 8px 0 28px;
    padding: 18px 22px;
    color: var(--text-2);
    font-size: 1rem;
}
.guides-content blockquote p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------- index des guides */

/* Filtre : champ pilule, libellé Mono au-dessus. */
.guides-filtre { display: grid; gap: 8px; margin: 0 0 40px; max-width: 32rem; }
.guides-filtre label {
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-3);
}
.guides-filtre input {
    width: 100%;
    min-height: 48px;
    padding: 0 20px 0 46px;
    font: inherit;
    font-size: 1rem;
    color: var(--text-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background-color: var(--bg-inset);
    /* loupe fine en SVG, trait 1,5 */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93ab' stroke-width='1.5' stroke-linecap='round'><circle cx='11' cy='11' r='6.5'/><path d='m16 16 4 4'/></svg>");
    background-repeat: no-repeat;
    background-position: 16px 50%;
    background-size: 18px 18px;
    transition: border-color var(--t), box-shadow var(--t);
}
.guides-filtre input::placeholder { color: var(--text-3); }
.guides-filtre .guides-intro { margin: 4px 0 0; font-size: 1rem; }

.guides-cat { margin: 0 0 56px; }
.guides-page .guides-cat h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border-strong);
    font-size: 1.375rem;
    font-weight: 620;
    letter-spacing: -0.02em;
}
.guides-cat h2 small {
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.guides-cat > .guides-intro { font-size: 1rem; margin-bottom: 16px; }

/* Liste de liens soulignés, à filets, en deux colonnes sur grand écran. */
.guides-page .guides-list {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 900px) {
    .guides-hub .guides-list { grid-template-columns: 1fr 1fr; }
}
.guides-list li { min-width: 0; border-bottom: 1px solid var(--border); }
.guides-page .guides-list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    height: auto;
    padding: 10px 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--text-1);
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, .18);
    transition: color var(--t), text-decoration-color var(--t);
}
.guides-list a strong { font-weight: 620; }

/* --------------------------------------------------- articles liés */

.guides-related {
    margin: 48px 0 0;
    padding: 24px 24px 20px;
}
.guides-page .guides-related h2 {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    font-size: 1.1875rem;
    font-weight: 620;
    letter-spacing: -0.02em;
}
.guides-related > p { margin: 0 0 8px; color: var(--text-2); font-size: .9688rem; }
.guides-related > p:last-child { margin: 14px 0 0; }
.guides-related > p a {
    color: var(--accent-strong);
    text-underline-offset: 3px;
    text-decoration-color: rgba(124, 192, 240, .5);
}
.guides-related ul { list-style: none; padding: 0; margin: 0; }
.guides-related li { min-width: 0; border-top: 1px solid rgba(255, 255, 255, .05); }
.guides-related li:first-child { border-top: 0; }
.guides-related ul a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 0;
    color: var(--text-1);
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, .18);
    transition: color var(--t), text-decoration-color var(--t);
}

/* ------------------------------------------- encart d'appel (conteneur majeur) */
/* « Analysez une vraie annonce » : conteneur majeur (32 px) à double cadre, lueur
   bleue en haut, bouton principal fléché. Partagé avec rapport.php. Aucun coin coupé. */
.guides-cta,
.cote-cta {
    position: relative;
    overflow: hidden;
    margin: 56px 0 8px;
    padding: clamp(28px, 5vw, 48px);
    text-align: left;
    border: 0;
    border-radius: var(--radius-lg);
    clip-path: none;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    box-shadow: var(--coeur-lueur), var(--coque);
}
.guides-cta::before,
.cote-cta::before {
    content: "";
    position: absolute;
    inset: -60% -20% auto;
    height: 90%;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(0, 87, 217, .32), transparent);
}
.guides-cta > *,
.cote-cta > * { position: relative; }
.guides-cta h2,
.guides-page .guides-cta h2,
.cote-cta > strong {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 640;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--text-1);
    text-wrap: balance;
}
.guides-cta p,
.cote-cta p {
    max-width: 36rem;
    margin: 0 0 24px;
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.6;
}
.guides-cta .btn-primary,
.cote-cta .btn-primary {
    display: inline-flex;
    margin: 0;
    text-decoration: none;
}

/* ------------------------------------------------------------------- pied */
/* Sobre, à filets : une ligne de liens, une note. */
.guides-footer {
    width: min(44rem, 100% - 3rem);
    max-width: none;
    margin: 32px auto 0;
    padding: 28px 0 40px;
    border-top: 1px solid var(--border);
    font-size: .875rem;
    color: var(--text-3);
    text-align: left;
}
.guides-footer > p:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 4px;
    margin: 0 0 0 -12px;
    color: var(--border-strong);
}
.guides-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    color: var(--text-2);
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: color var(--t), background-color var(--t);
}
/* Le pied suit la largeur de la colonne qu'il ferme. */
.guides-hub + .guides-footer { width: min(64rem, 100% - 3rem); }
.cote-wrap + .guides-footer { width: min(58rem, 100% - 3rem); }
.guides-footer-note {
    margin: 12px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    font-size: .8125rem;
    color: var(--text-3);
    max-width: 44rem;
}

/* ================================================================ COTES */

.cote-wrap {
    width: min(58rem, 100% - 3rem);
    max-width: none;
    margin: 0 auto;
    padding: 40px 0 72px;
}
.cote-lede {
    max-width: 44rem;
    margin: 0 0 32px;
    color: var(--text-2);
    font-size: 1.125rem;
    line-height: 1.65;
}

/* Tableau des générations, dans un conteneur à double cadre ; le défilement vit dans
   un enfant (sur le conteneur, overflow rognerait l'anneau). */
.cote-table-cadre { margin: 8px 0 12px; padding: 6px 22px 8px; }
.cote-table-defile { overflow-x: auto; }
.cote-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: .9375rem;
}
.cote-table th,
.cote-table td {
    padding: 14px 12px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.cote-table th:first-child,
.cote-table td:first-child { text-align: left; padding-left: 0; }
.cote-table th:last-child,
.cote-table td:last-child { padding-right: 0; }
.cote-table tbody tr:last-child td { border-bottom: 0; }
.cote-table thead th {
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
/* Montants : Geist tabulaire, jamais Mono. */
.cote-table .num {
    font-family: var(--font);
    font-variant-numeric: tabular-nums;
    color: var(--text-1);
    white-space: nowrap;
}
.cote-table td:first-child a {
    color: var(--text-1);
    font-weight: 560;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, .22);
    border: 0;
    transition: color var(--t), text-decoration-color var(--t);
}
/* Gain favorable : bleu clair, écrit avec son signe ; jamais souligné. */
.cote-gain { color: var(--success); font-weight: 600; }
.cote-gain.none { color: var(--text-3); font-weight: 400; }
.cote-note { max-width: 44rem; margin: 12px 0 0; color: var(--text-3); font-size: .8125rem; line-height: 1.55; }
/* Une déclinaison (997.1 Turbo) a sa fiche mais n'est pas une génération : le dire. */
.cote-declinaison {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-2);
    vertical-align: 2px;
}

/* Carte d'une génération */
.gen-card { margin-top: 28px; padding: 26px 28px 24px; }
.cote-table-cadre + .cote-note + .gen-card { margin-top: 40px; }
.gen-card h2 {
    margin: 0 0 4px;
    font-size: 1.375rem;
    font-weight: 620;
    letter-spacing: -0.02em;
}
.gen-card .gen-years {
    margin-bottom: 16px;
    font-family: var(--font);   /* porte la cote en euros : Geist tabulaire, plus la Mono */
    font-size: .8125rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

/* Barres de comparaison : libellé et valeur écrits au-dessus de chaque barre ;
   Allemagne en gris, France en gris clair (DESIGN.md, « Barres de comparaison »). */
.gen-barres { display: grid; gap: 14px; margin: 4px 0 22px; }
.gen-barre {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    font-size: .9375rem;
    color: var(--text-2);
}
.gen-barre b { color: var(--text-1); font-weight: 560; white-space: nowrap; }
.gen-barre i {
    grid-column: 1 / -1;
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .05);
}
.gen-barre i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--text-4);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
    transition: transform 1.4s var(--ressort);
}
.gen-barre i.claire::after { background: var(--gris-clair); }
.gen-ecart { margin: -8px 0 20px; font-size: .9375rem; color: var(--text-2); }
.gen-ecart strong { color: var(--success); font-weight: 600; }

/* Défauts connus : liste à filets ; la gravité est ÉCRITE dans une pastille (avant,
   seule une bordure colorée la portait). */
.gen-issues { display: grid; gap: 0; margin: 0; }
.gen-issue {
    padding: 14px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    font-size: .9688rem;
    line-height: 1.5;
}
.gen-issue:first-child { border-top: 0; padding-top: 4px; }
.gen-issue strong { display: block; color: var(--text-1); font-weight: 560; }
.gen-issue .gi-meta { margin-top: 4px; color: var(--text-3); font-size: .8438rem; font-variant-numeric: tabular-nums; }
.gen-gravite {
    display: inline-flex;
    align-items: center;
    margin: 0 0 6px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 620;
    line-height: 1.5;
}
.gen-gravite.g-critique { background: var(--danger); color: #1a0200; }
.gen-gravite.g-moyen { background: var(--warning); color: #1a1300; }
.gen-advice {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-2);
    font-size: .9688rem;
    line-height: 1.6;
}
.gen-advice strong { color: var(--text-1); font-weight: 600; }
.gen-search {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 6px;
    color: var(--accent-strong);
    font-size: .9375rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(124, 192, 240, .5);
}

/* Maillage vers les guides : carte à liens soulignés. (0,2,x) bat bordereau.css. */
.cote-wrap .cote-guides { margin: 40px 0 0; padding: 24px 24px 20px; border-top: 0; }
.cote-wrap .cote-guides h2 { margin: 0 0 8px; font-size: 1.1875rem; font-weight: 620; letter-spacing: -0.02em; }
.cote-wrap .cote-guides ul { list-style: none; padding: 0; margin: 0; display: block; }
.cote-wrap .cote-guides li { border-top: 1px solid rgba(255, 255, 255, .05); }
.cote-wrap .cote-guides li:first-child { border-top: 0; }
.cote-wrap .cote-guides li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 0;
    border: 0;
    color: var(--text-1);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, .18);
    transition: color var(--t), text-decoration-color var(--t);
}
.cote-wrap .cote-guides > p { margin: 12px 0 0; }
.cote-wrap .cote-guides > p a {
    color: var(--accent-strong);
    text-underline-offset: 3px;
    text-decoration-color: rgba(124, 192, 240, .5);
}

.cote-cta { text-align: left; }
.cote-cta p { margin-top: 0; }
.cote-independance {
    max-width: 44rem;
    margin: 28px 0 0;
    color: var(--text-3);
    font-size: .8125rem;
    line-height: 1.55;
    text-align: left;
}

/* Index des cotes : une carte par modèle, regroupées par marque. */
.cote-marque { margin-top: 48px; padding-top: 0; border-top: 0; }
.cote-marque h2 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-strong);
    font-size: 1.375rem;
    font-weight: 620;
    letter-spacing: -0.02em;
}
.cote-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 7px;
    margin: -7px;
}
.cote-liste a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 76px;
    padding: 14px 18px;
    color: var(--text-1);
    text-decoration: none;
    transition: transform 700ms var(--ressort), box-shadow 700ms var(--ressort);
}
.cote-liste strong { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.cote-liste small {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
}
.cote-hub-guides {
    max-width: 44rem;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-2);
    line-height: 1.65;
}

/* ============================================================ CLASSEUR */

.cl-wrap {
    width: min(64rem, 100% - 3rem);
    max-width: none;
    margin: 0 auto;
    padding: 40px 0 72px;
}
.cl-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
    margin: 8px 0 40px;
    padding: 22px 22px 22px 26px;
    border: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 87, 217, .22), rgba(0, 87, 217, .05)), var(--bg-1);
    box-shadow: var(--coeur-lueur), var(--coque);
    color: var(--text-2);
}
.cl-banner strong { color: var(--text-1); font-weight: 620; }
.cl-banner .btn-primary { white-space: nowrap; text-decoration: none; }
.cl-title {
    margin: 0 0 6px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 640;
    line-height: 1.1;
    letter-spacing: -0.035em;
}
.cl-sub { margin: 0 0 28px; color: var(--text-2); }
.cl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding: 7px;
    margin: -7px;
}
.cl-card { display: flex; flex-direction: column; overflow: visible; }
/* L'image touche le bord : rayon du cœur moins l'anneau, pour rester concentrique. */
.cl-card img,
.cl-photo-empty {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--bg-3);
}
.cl-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 12px; }
.cl-card-title { font-size: 1.0625rem; font-weight: 620; line-height: 1.3; letter-spacing: -0.015em; }
/* Prix affiché : un fait, pas un gain ; en blanc, Geist tabulaire. */
.cl-card-price {
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-1);
    font-variant-numeric: tabular-nums;
}
.cl-card-meta { margin-top: auto; color: var(--text-3); font-family: var(--font-mono); font-size: .75rem; }
.cl-card a.cl-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0 8px 8px;
    border-top: 0;
    border-radius: var(--radius-pill);
    background: var(--verre);
    border: 1px solid var(--border);
    color: var(--text-1);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--t), border-color var(--t);
}
.cl-foot { margin-top: 40px; color: var(--text-3); font-size: .8125rem; text-align: left; max-width: 44rem; }

/* =============================================== survols et focus */

@media (hover: hover) {
    .guides-breadcrumb a:hover,
    .cote-fil a:hover { color: var(--text-1); }
    .guides-page .guides-toc a:hover { color: var(--text-1); }
    .guides-content a:hover,
    .cote-lede a:hover,
    .cote-hub-guides a:hover,
    .gen-search:hover,
    .guides-related > p a:hover,
    .cote-wrap .cote-guides > p a:hover { text-decoration-color: currentColor; }
    .guides-page .guides-list a:hover,
    .guides-related ul a:hover,
    .cote-wrap .cote-guides li a:hover,
    .cote-table td:first-child a:hover { color: var(--accent-strong); text-decoration-color: rgba(124, 192, 240, .6); }
    .guides-footer a:hover { color: var(--text-1); background: rgba(255, 255, 255, .05); }
    .cote-liste a:hover {
        transform: translateY(-3px);
        box-shadow: var(--coeur-lueur), 0 0 0 6px rgba(255, 255, 255, .035), 0 0 0 7px var(--border-strong);
    }
    .cl-card a.cl-link:hover { background: rgba(255, 255, 255, .08); border-color: var(--border-strong); }
}
.guides-filtre input:hover { border-color: var(--border-strong); }

/* ---------------------------------------------------------- téléphone */

@media (max-width: 767px) {
    .guides-page,
    .guides-page.guides-hub,
    .cote-wrap,
    .cl-wrap,
    .guides-footer,
    .guides-hub + .guides-footer,
    .cote-wrap + .guides-footer { width: calc(100% - 32px); }
    .guides-page,
    .cote-wrap,
    .cl-wrap { padding: 28px 0 48px; }
    .guides-breadcrumb a,
    .cote-fil a { display: inline-flex; align-items: center; min-height: 44px; }
    .guides-breadcrumb,
    .cote-fil { margin-bottom: 8px; }
    .guides-content { font-size: 1.0625rem; }
    .guides-page .guides-content h2 { font-size: 1.4375rem; margin-top: 44px; }
    .guides-intro,
    .cote-lede { font-size: 1.0625rem; }
    .guides-page .guides-toc,
    .guides-related,
    .cote-wrap .cote-guides { padding: 18px 18px 12px; }
    .gen-card { padding: 22px 18px 18px; }
    .guides-cta .btn-primary,
    .cote-cta .btn-primary { width: 100%; justify-content: space-between; }

    /* Le tableau des cotes devient une carte par génération ; chaque cellule rappelle
       son libellé (data-label). */
    .cote-table-cadre { padding: 0; background: none; box-shadow: none; }
    /* Les cartes empilées ne défilent plus en largeur : le défilement rognait leur anneau. */
    .cote-table-defile { overflow-x: visible; }
    .cote-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .cote-table,
    .cote-table tbody,
    .cote-table tr,
    .cote-table td { display: block; width: 100%; }
    .cote-table tr {
        margin: 0 0 20px;
        padding: 10px 18px;
        border-radius: var(--radius);
        background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
        box-shadow: var(--coeur-lueur), var(--coque);
    }
    .cote-table td,
    .cote-table td:first-child,
    .cote-table td:last-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        min-height: 40px;
        padding: 6px 0;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, .05);
        text-align: right;
    }
    .cote-table td:first-child { border-top: 0; font-weight: 600; }
    .cote-table td::before {
        content: attr(data-label);
        font-family: var(--font-mono);
        font-size: .6875rem;
        font-weight: 500;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--text-3);
        text-align: left;
    }
    .cote-table td:first-child a { display: inline-flex; align-items: center; min-height: 44px; }
    .cote-liste { grid-template-columns: 1fr; }
    .cl-banner .btn-primary { width: 100%; justify-content: space-between; }
}

/* -------------------------------------------------------- mouvement réduit */

@media (prefers-reduced-motion: reduce) {
    .gen-barre i::after { transition: none; }
    .cote-liste a,
    .cote-liste a:hover { transition: none; transform: none; }
}

/* ------------------------------------------------------------- impression */

@media print {
    .entete-verre, .guides-cta, .cote-cta, .guides-related, .guides-footer, .guides-filtre { display: none !important; }
    body.guides-body, body { background: #fff; color: #000; padding: 0; }
    body::before, body::after { display: none; }
    .guides-page, .cote-wrap { width: auto; padding: 0; }
    .guides-content { font-size: 12pt; color: #000; }
    .guides-toc, .gen-card, .cote-table-cadre { box-shadow: none; background: none; border: 1px solid #C4CCD4; }
}

/* ================================================= page introuvable (404) */
/* cote.php et classeur.php, sans îlot : une carte majeure centrée, un bouton. */
.page-introuvable {
    width: min(34rem, 100% - 32px);
    margin: clamp(48px, 14vh, 140px) auto 48px;
    padding: clamp(28px, 6vw, 48px);
    text-align: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    box-shadow: var(--coeur-lueur), var(--coque);
}
.page-introuvable h1 {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 640;
    letter-spacing: -0.035em;
}
.page-introuvable p { color: var(--text-2); margin: 0 0 20px; }
.page-introuvable p:last-child { margin: 0; }
.page-introuvable .btn-secondary { display: inline-flex; text-decoration: none; }
