/* Direction Suisse — rubrique « Guides » (textes longs pour Google)
   Complète style.css, chargée juste après. Même identité : blanc, noir, rouge #da291c,
   Inter Tight (titres) + Inter (texte), angles droits, aucun visuel décoratif, aucune image. */

/* ---------- Zones à toucher : 44 px au moins (même règle que les pages à formulaire) ---------- */
.page-guide .marque { min-height: 44px; }
@media (min-width: 641px) { .page-guide .nav a { display: inline-flex; align-items: center; min-height: 44px; } }
.page-guide .nav__test { display: inline-flex; align-items: center; min-height: 44px; }
.page-guide .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rouge); }
.page-guide .pied__liens { gap: 0; }
.page-guide .pied__liens a { display: flex; align-items: center; min-height: 44px; }

/* Texte courant sans « tnum » : dans Inter, les chiffres à largeur fixe élargissent aussi le trait d’union
   (« Faut - il », « e - mail »). Les chiffres des tableaux restent alignés grâce à .tableau .nombre. */
.page-guide { font-feature-settings: "ss01", "cv11"; }

/* Formes interrogatives (faut-il, est-il, qu’est-ce) : jamais coupées au trait d’union dans les titres.
   Inter n’a pas de trait d’union insécable (U+2011) : on empêche la coupure au lieu de changer de caractère. */
.page-guide .insecable { white-space: nowrap; }

/* Exposants (13e, 1er) : sans décaler l’interligne */
.page-guide sup { font-size: 0.68em; line-height: 0; vertical-align: 0.5em; }

/* ---------- Fil d’Ariane ---------- */
.fil { padding-top: clamp(8px, 1.6vw, 20px); font-size: 0.875rem; color: var(--gris); }
.fil ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.fil li { display: flex; align-items: center; gap: 10px; }
.fil li + li::before { content: "/"; color: var(--gris); }
.fil a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--noir); }
.fil a:hover { color: var(--rouge); }
.fil [aria-current] { color: var(--gris); }

/* ---------- Article ---------- */
.guide { padding-block: clamp(8px, 1.5vw, 16px) clamp(56px, 8vw, 112px); align-items: start; }
.guide__tete { grid-column: 1 / -1; padding-bottom: clamp(28px, 4vw, 52px); border-bottom: var(--filet) solid var(--noir); }
.guide__tete .surtitre { margin-bottom: clamp(16px, 2vw, 28px); }
.guide__tete h1 {
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(2rem, 1.1rem + 3.7vw, 4.25rem);
  line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance; max-width: 22ch;
  overflow-wrap: break-word; hyphens: manual;
}
.guide__meta { margin-top: clamp(16px, 2vw, 24px); font-size: 0.875rem; color: var(--gris); }

/* La réponse courte, tout en haut */
.reponse { grid-column: 4 / -1; grid-row: 2; margin-top: clamp(28px, 4vw, 52px); border: var(--filet) solid var(--noir); max-width: 820px; }
.reponse__titre { margin: 0; padding: 10px clamp(16px, 2.4vw, 28px); background: var(--rouge); color: var(--blanc); font-family: var(--texte); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.5; text-transform: uppercase; }
.reponse ol { padding: clamp(18px, 2.4vw, 28px) clamp(16px, 2.4vw, 28px); display: grid; gap: 14px; counter-reset: reponse; }
.reponse li { counter-increment: reponse; display: grid; grid-template-columns: 1.4em minmax(0, 1fr); gap: 10px; font-family: var(--titre); font-weight: 600; font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.375rem); line-height: 1.28; letter-spacing: -0.02em; }
.reponse li::before { content: counter(reponse); color: var(--rouge); font-weight: 700; }
.reponse .source { margin: 0; max-width: none; padding: 12px clamp(16px, 2.4vw, 28px); border-top: var(--filet) solid var(--noir); }

/* Sommaire : colonne de gauche, reste visible pendant la lecture sur grand écran */
.sommaire { grid-column: 1 / span 3; grid-row: 2 / span 3; position: sticky; top: 24px; margin-top: clamp(28px, 4vw, 52px); padding-right: clamp(8px, 1.5vw, 24px); }
.sommaire__titre { margin: 0 0 10px; font-family: var(--texte); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sommaire ol { border-top: var(--filet) solid var(--noir); }
.sommaire li { border-bottom: 1px solid var(--gris-clair); }
/* En bloc, pas en flex : un conteneur flex avale l’espace entre le texte et un exposant (« 13esalaire ») */
.sommaire a { display: block; min-height: 44px; padding-block: 12px; font-size: 0.9375rem; font-weight: 500; line-height: 1.3; text-decoration: none; }
.sommaire a:hover { color: var(--rouge); text-decoration: underline; }

/* Le texte long */
.guide__corps { grid-column: 4 / -1; grid-row: 3; max-width: 820px; min-width: 0; }
.guide__corps h2 {
  margin-top: clamp(44px, 5vw, 72px); padding-top: 18px; border-top: var(--filet) solid var(--noir);
  font-family: var(--titre); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.375rem);
  line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; scroll-margin-top: 20px;
}
.guide__corps > p, .guide__corps > ul, .guide__corps > ol { max-width: 66ch; }
.guide__corps > p { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.65; }
.guide__corps > h2 + p { margin-top: 20px; }
.guide__corps > p.source, .reponse .source { font-size: 0.875rem; line-height: 1.5; color: var(--gris); }
.guide__corps > p.source { margin-top: 8px; max-width: 66ch; }
.source a { color: var(--noir); overflow-wrap: anywhere; }
.source a:hover { color: var(--rouge); }
.guide__corps a:not(.bouton) { overflow-wrap: break-word; }

/* Citation officielle, mot pour mot */
.citation { margin: 24px 0 0; padding: 4px 0 4px clamp(16px, 2vw, 24px); border-left: 4px solid var(--rouge); max-width: 60ch; }
.citation p { font-family: var(--titre); font-weight: 600; font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.3; letter-spacing: -0.02em; }
.citation + .source { margin-top: 10px; }

/* Listes */
.guide__corps > ul, .guide__corps > ol { margin-top: 18px; border-top: var(--filet) solid var(--noir); }
.guide__corps > ul li, .guide__corps > ol li { padding: 12px 0 12px 36px; border-bottom: 1px solid var(--gris-clair); position: relative; line-height: 1.5; }
.guide__corps > ul li::before { content: "→"; position: absolute; left: 0; color: var(--rouge); }
.guide__corps > ol { counter-reset: etape; }
.guide__corps > ol li { counter-increment: etape; }
.guide__corps > ol li::before { content: counter(etape, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--titre); font-weight: 700; font-size: 0.875rem; color: var(--rouge); }

/* Tableau : il tient dans l’écran, jamais de défilement de la page */
.tableau-cadre { margin-top: 22px; max-width: 66ch; overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; border: var(--filet) solid var(--noir); font-size: 0.9375rem; line-height: 1.4; }
.tableau caption { caption-side: top; text-align: left; padding-bottom: 10px; font-weight: 600; }
.tableau th, .tableau td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--gris-clair); }
.tableau thead th { background: var(--noir); color: var(--blanc); font-family: var(--titre); font-weight: 600; border-bottom: 0; }
.tableau tbody th { font-family: var(--titre); font-weight: 700; }
.tableau td + td, .tableau th + td { border-left: 1px solid var(--gris-clair); }
.tableau .nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Ce qui vient de nous, pas d’une source : toujours signalé */
.conseil { margin-top: 24px; border: var(--filet) solid var(--noir); padding: clamp(16px, 2.2vw, 24px); max-width: 66ch; }
.conseil__titre { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rouge); }
.conseil p + p { margin-top: 8px; line-height: 1.6; }

/* Encadré « À savoir » : une règle officielle mise à part (autre cas, autre public), toujours avec sa source */
.a-savoir { margin-top: 24px; border: var(--filet) solid var(--noir); padding: clamp(16px, 2.2vw, 24px); max-width: 66ch; }
.a-savoir__titre { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.a-savoir p + p { margin-top: 8px; line-height: 1.6; }
.a-savoir p.source { font-size: 0.875rem; line-height: 1.5; color: var(--gris); }

/* Mention finale */
.avertissement { grid-column: 4 / -1; grid-row: 4; max-width: 820px; margin-top: clamp(44px, 5vw, 72px); padding: 18px clamp(16px, 2vw, 24px); border: var(--filet) solid var(--gris-clair); font-size: 0.9375rem; line-height: 1.6; }
.avertissement p + p { margin-top: 6px; }
.avertissement strong { font-weight: 600; }

@media (max-width: 860px) {
  .reponse, .sommaire, .guide__corps, .avertissement { grid-column: 1 / -1; grid-row: auto; }
  .sommaire { position: static; padding-right: 0; }
}

/* ---------- Encadré « Teste ton CV » ---------- */
.encadre-test .section__corps > p { max-width: 46ch; }
.encadre-test__actions { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.encadre-test__prix { font-size: 0.9375rem; color: #c9c9c9; }
.encadre-test .encadre-test__suite { margin-top: clamp(20px, 2.4vw, 28px); font-size: 0.9375rem; color: #c9c9c9; max-width: 56ch; }

/* ---------- Les autres guides ---------- */
.autres { padding-block: clamp(40px, 6vw, 88px); }
.autres h2 { grid-column: 1 / -1; font-family: var(--titre); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.375rem); letter-spacing: -0.03em; line-height: 1.05; }
.autres__liste { grid-column: 1 / -1; margin-top: clamp(20px, 2.6vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gouttiere); border-top: var(--filet) solid var(--noir); }
.autres__liste li { border-bottom: 1px solid var(--gris-clair); }
.autres__liste a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 12px; align-items: baseline; min-height: 56px; padding-block: 16px; text-decoration: none; font-family: var(--titre); font-weight: 600; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.25; letter-spacing: -0.015em; }
.autres__liste a:hover span + span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.autres__numero { color: var(--rouge); font-weight: 700; }
.autres__tous { grid-column: 1 / -1; margin-top: 24px; }
.autres__tous a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) { .autres__liste { grid-template-columns: 1fr; } }

/* ---------- Accueil de la rubrique ---------- */
.rubrique { padding-block: clamp(8px, 1.5vw, 16px) clamp(48px, 7vw, 96px); }
.rubrique__tete { grid-column: 1 / -1; padding-bottom: clamp(28px, 4vw, 52px); border-bottom: var(--filet) solid var(--noir); }
.rubrique__tete .surtitre { margin-bottom: clamp(16px, 2vw, 28px); }
.rubrique__tete h1 { font-family: var(--titre); font-weight: 700; font-size: clamp(2.25rem, 1.2rem + 4.4vw, 5rem); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; max-width: 18ch; }
.rubrique__chapo { margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.5; max-width: 52ch; }

/* Cartes : une par guide */
.cartes { grid-column: 1 / -1; margin-top: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gouttiere); }
.cartes > li { display: flex; }
.carte { flex: 1; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: clamp(18px, 2.4vw, 32px); border: var(--filet) solid var(--noir); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.carte:hover { background: var(--noir); color: var(--blanc); }
.carte__numero { font-family: var(--titre); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--rouge); }
.carte__titre { font-family: var(--titre); font-weight: 700; font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.875rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.carte__texte { font-size: 1rem; line-height: 1.5; }
.carte__lien { font-weight: 600; }
.carte__lien::after { content: " →"; color: var(--rouge); }
@media (max-width: 760px) { .cartes { grid-template-columns: 1fr; } }

/* Méthode */
.methode { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere); border-top: var(--filet) solid var(--noir); padding-top: clamp(24px, 3vw, 40px); }
.methode h2 { grid-column: 1 / span 4; font-family: var(--titre); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.375rem); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.methode ul { grid-column: 6 / -1; border-top: var(--filet) solid var(--noir); }
.methode li { padding: 14px 0 14px 36px; border-bottom: 1px solid var(--gris-clair); position: relative; line-height: 1.5; }
.methode li::before { content: "→"; position: absolute; left: 0; color: var(--rouge); }
@media (max-width: 860px) {
  .methode h2, .methode ul { grid-column: 1 / -1; }
  .methode ul { margin-top: 20px; }
}
