/* Negoz — gabarit « guide » (section Guides) et page d'accueil de la section.
   S'ajoute à site.css. Fond blanc pour la lecture, bandeau de titre couleur pierre, sommaire collant à gauche dès 1000 px.
   Pas de dégradé, pas de motif : des aplats, un filet d'encre, le bleu pour ce qui se clique. */

/* ---------------------------------------------------------------- bandeau de titre */
.tete-guide h1 { max-width: 30ch; font-size: clamp(1.9rem, min(4vw, calc(7 * var(--svh, 1svh))), 3.4rem); text-wrap: balance; }
.tete-guide .chapo { margin-top: 1.2rem; max-width: 40rem; }
.fil { margin-bottom: 1.1rem; font-size: var(--text-interface); font-weight: 600; }
.fil ol { display: flex; flex-wrap: wrap; gap: .2rem .55rem; }
.fil li { display: inline-flex; align-items: center; gap: .55rem; }
.fil li + li::before { content: "›"; color: var(--color-galet); }
.fil a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline var(--color-bleu) 2px; text-underline-offset: .35em; }
.fil a:hover { color: var(--color-bleu); }
.tete-guide .maj { margin-top: 1.1rem; font-size: var(--text-interface); font-weight: 500; color: var(--color-encre); }

/* ---------------------------------------------------------------- deux colonnes : sommaire | texte */
.guide { padding-block: clamp(2.2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem); }
.guide-grille { display: grid; gap: 1.6rem; align-items: start; }
.guide-sommaire { background: var(--color-pierre); border-top: 4px solid var(--color-encre); }
.guide-sommaire summary { display: flex; align-items: center; justify-content: space-between; min-height: 3rem; padding: .6rem 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.guide-sommaire summary::-webkit-details-marker { display: none; }
.guide-sommaire summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.guide-sommaire[open] summary::after { content: "−"; }
.guide-sommaire ol { display: grid; gap: .05rem; padding: .1rem 1rem 1rem; }
.guide-sommaire a { display: block; padding-block: .4rem; font-size: var(--text-interface); line-height: 1.35; text-decoration: underline transparent 2px; text-underline-offset: .3em; }
.guide-sommaire a:hover { text-decoration-color: var(--color-bleu); }

.guide-texte { max-width: 44rem; gap: 1.1rem; min-width: 0; }
.guide-texte > p, .guide-texte li { text-wrap: pretty; }
.guide-texte h2 { margin-top: 2.2rem; padding-top: 1.5rem; border-top: 2px solid var(--color-encre); scroll-margin-top: 5.5rem; }
.guide-texte h3 { margin-top: 1rem; font-size: var(--text-chapo); font-stretch: 100%; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; scroll-margin-top: 5.5rem; }
.guide-texte ol { display: grid; gap: .5rem; padding-left: 1.4rem; list-style: decimal; }
.guide-texte ol li::marker { font-weight: 700; }
.guide-texte strong { font-weight: 700; }

/* La réponse courte, tout en haut : un filet bleu à gauche, rien d'autre. */
.guide-texte .reponse { padding-left: 1.1rem; border-left: 4px solid var(--color-bleu); font-size: var(--text-chapo); font-weight: 500; line-height: 1.5; }

/* Tableaux : lisibles sur téléphone, on fait défiler le tableau et pas la page. */
.guide-texte .table-wrap { overflow-x: auto; border-top: 2px solid var(--color-encre); }
.guide-texte table.large { min-width: 33rem; }
.guide-texte table { width: 100%; border-collapse: collapse; font-size: var(--text-interface); line-height: 1.45; }
.guide-texte th, .guide-texte td { padding: .7rem .8rem .7rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-trait); }
.guide-texte thead th { font-weight: 700; border-bottom: 1px solid var(--color-encre); }
.guide-texte tbody th { font-weight: 700; }
.guide-texte td:last-child, .guide-texte th:last-child { padding-right: 0; }

/* Exemple de paragraphe à écrire */
.guide-texte blockquote { padding: 1rem 1.2rem; background: var(--color-pierre); border-left: 4px solid var(--color-encre); }

/* ---------------------------------------------------------------- encart « Collez le lien de l'annonce » */
.encart-annonce { display: grid; gap: .9rem; margin-block: 1.2rem .6rem; padding: clamp(1.2rem, 3vw, 1.9rem); background: var(--color-bleu-nuit); color: var(--color-blanc); }
.encart-annonce .encart-titre { font-family: var(--font-titre); font-size: var(--text-t3); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.encart-annonce .champ { max-width: none; }
.encart-annonce .champ-aide { margin-top: 0; color: rgb(255 255 255 / .92); }
.encart-annonce .champ-aide.est-erreur { justify-self: start; padding: .5rem .8rem .5rem 1rem; background: var(--color-encre); color: var(--color-blanc); font-weight: 600; box-shadow: inset 5px 0 0 var(--color-erreur-clair); }
.encart-annonce :focus-visible { outline-color: var(--color-jaune); }
.encart-annonce .champ input:focus-visible { outline-color: var(--color-bleu); }

/* ---------------------------------------------------------------- modèles à copier */
.modele { display: grid; border: 2px solid var(--color-encre); background: var(--color-blanc); scroll-margin-top: 5.5rem; }
.modele-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .6rem .6rem .6rem 1rem; background: var(--color-encre); color: var(--color-blanc); font-weight: 700; }
.modele-tete .bouton { min-height: 2.75rem; padding: .55rem 1rem; font-size: var(--text-interface); }
.modele-tete .bouton.est-copie { background: var(--color-blanc); }
.modele-texte { display: grid; gap: .85rem; padding: clamp(1rem, 3vw, 1.7rem); font-size: var(--text-interface); line-height: 1.55; }
.modele-texte ul { padding-left: 1.2rem; list-style: disc; display: grid; gap: .4rem; }
.modele-texte .a-remplir { background: var(--color-bleu-voile); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.telecharger { display: grid; gap: .7rem; padding: 1.1rem 1.2rem; background: var(--color-pierre); border-top: 4px solid var(--color-encre); }
.telecharger p { font-weight: 600; }
.telecharger .boutons { display: flex; flex-wrap: wrap; gap: .6rem; }
.telecharger .bouton { white-space: normal; text-decoration: none; }
.telecharger .petit-mot { font-size: var(--text-petit); font-weight: 400; color: var(--color-galet); }

/* ---------------------------------------------------------------- questions, mention, sources */
.guide-texte .avis-guide { margin-top: 1.6rem; padding: .9rem 1.1rem; background: var(--color-bleu-voile); font-size: var(--text-interface); line-height: 1.5; }
.guide-texte .sources { font-size: var(--text-interface); }
.guide-texte .sources li { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- à lire ensuite, et cartes de la page Guides */
.guide-suite { padding-block: clamp(2.5rem, 6vw, 5rem); }
.guide-suite h2, .rubrique h2 { font-size: var(--text-t2); }
.guide-suite .cartes { margin-top: 1.6rem; }
.cartes { display: grid; gap: 1rem; }
.carte-guide { display: grid; align-content: start; gap: .6rem; padding: 1.2rem 1.3rem 1.3rem; background: var(--color-blanc); border-top: 4px solid var(--color-encre); color: var(--color-encre); transition: border-color var(--duree-courte); }
.carte-guide:hover { border-top-color: var(--color-bleu); }
.carte-guide .sur { font-size: var(--text-petit); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-bleu); }
.carte-guide h3 { font-size: var(--text-chapo); font-stretch: 100%; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; text-wrap: balance; }
.carte-guide p { font-size: var(--text-interface); line-height: 1.45; }
.carte-guide .lien { min-height: 0; margin-top: .2rem; font-size: var(--text-interface); }
.partie-papier .carte-guide { background: var(--color-pierre); }

.rubrique { padding-block: clamp(2.5rem, 6vw, 5rem); scroll-margin-top: 4rem; }
.rubrique .chapo { margin-top: .8rem; }
.rubrique .cartes { margin-top: 1.8rem; }
.rubrique + .rubrique { padding-top: 0; }
.guides-questions { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.guides-questions p { margin-top: .8rem; max-width: 40rem; }
.guides-questions .lien { margin-top: .6rem; }

@media (min-width: 700px) {
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .guide-grille { grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); }
  .guide-sommaire { position: sticky; top: 5rem; max-height: calc(calc(100 * var(--svh, 1svh)) - 6.5rem); overflow-y: auto; }
  .guide-sommaire summary { pointer-events: none; cursor: default; }
  .guide-sommaire summary::after, .guide-sommaire[open] summary::after { content: none; }
  .cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  .site-header, .menu, .guide-sommaire, .encart-annonce, .guide-suite, .final, .pied, .modele-tete .bouton, .telecharger { display: none !important; }
  .tete-page { padding-top: 1rem; }
}
