/* Politoscope, gabarits : raccords entre la charte « Veille de nuit » (politoscope-veille-de-nuit.css, intacte)
   et les gabarits de l'extension sous Divi 5. Les valeurs viennent des jetons de la charte ; rien n'est réinventé. */

/* Base : l'emporter sur la feuille et le personnaliseur de Divi */
html body.pol-gabarit { background: var(--pol-nuit); color: var(--pol-texte); font-family: var(--pol-serif); font-size: 19px; line-height: 1.65; margin: 0; }
body.pol-gabarit h1, body.pol-gabarit h2, body.pol-gabarit h3, body.pol-gabarit h4, body.pol-gabarit h5, body.pol-gabarit h6 { font-family: var(--pol-serif); font-weight: 600; color: var(--pol-titre); padding-bottom: 0; }
body.pol-gabarit a { color: var(--pol-ambre); text-decoration: none; transition: color .15s ease; }
body.pol-gabarit a:hover { color: var(--pol-corail); }
body.pol-gabarit img { max-width: 100%; height: auto; display: block; }
body.pol-gabarit p { padding-bottom: 0; }
body.pol-gabarit [hidden] { display: none !important; }
body.pol-gabarit .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pol-evitement { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--pol-corail); color: var(--pol-sur-corail) !important; font: 700 14px/1 var(--pol-sans); }
.pol-evitement:focus { left: 12px; }
.pol-main { display: block; }

/* En-tête */
body.pol-gabarit .pol-marque, body.pol-gabarit .pol-marque:hover { color: inherit; }
.pol-logo-img { display: block; height: 36px; width: auto; }
.pol-pied .pol-logo-img { height: 34px; }
body.pol-gabarit .pol-nav a { white-space: nowrap; }
body.pol-gabarit .pol-nav a:hover { color: var(--pol-titre); }
body.pol-gabarit .pol-nav a svg { flex: none; }
body.pol-gabarit .pol-bouton { text-decoration: none; }
body.pol-gabarit .pol-bouton-corail:hover { background: #ff7478; }
body.pol-gabarit .pol-bouton-trait:hover { border-color: var(--pol-doux); }
body.pol-gabarit .pol-icone:hover { color: var(--pol-corail); }
.pol-panneau { border-top: 1px solid var(--pol-filet); background: var(--pol-nuit-2); padding: 16px 0; }
.pol-cherche { display: flex; gap: 10px; align-items: center; max-width: 760px; }
.pol-cherche .pol-champ { flex: 1; min-width: 0; }
.pol-rubrique-in .pol-cherche { margin-top: 8px; }
.pol-menu-tel .pol-wrap { display: flex; flex-direction: column; gap: 2px; }
.pol-menu-tel a:not(.pol-bouton) { display: flex; align-items: center; gap: 10px; min-height: 48px; font: 600 15px/1 var(--pol-sans); font-stretch: 85%; letter-spacing: .07em; text-transform: uppercase; color: var(--pol-texte); border-bottom: 1px solid var(--pol-filet); }
.pol-menu-tel a.pol-actif { color: var(--pol-titre); }
.pol-menu-tel .pol-bouton { margin-top: 14px; align-self: flex-start; }
@media (min-width: 1100px) and (max-width: 1260px) { body.pol-gabarit .pol-nav a { padding: 0 7px; font-size: 13px; } .pol-tete-in { gap: 18px; } }
@media (max-width: 1099px) { body.pol-gabarit .pol-nav.pol-ord { display: none !important; } body.pol-gabarit .pol-tel { display: inline-flex !important; } .pol-actions { margin-left: auto; } }
@media (min-width: 1100px) { .pol-menu-tel { display: none !important; } }

/* Cartes : liens sans soulignement, titre qui s'allume au survol */
body.pol-gabarit a.pol-carte, body.pol-gabarit a.pol-carte-ligne, body.pol-gabarit a.pol-carte-horiz { color: inherit; text-decoration: none; }
body.pol-gabarit a.pol-carte:hover .pol-carte-titre, body.pol-gabarit a.pol-carte-ligne:hover .pol-carte-titre, body.pol-gabarit a.pol-carte-horiz:hover .pol-carte-titre { color: var(--pol-sable); }
.pol-carte-texte { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.pol-carte-horiz .pol-carte-texte { gap: 14px; }
.pol-carte-horiz .pol-carte-chapeau { font-size: 18px; }
.pol-carte-img img { width: 100%; }
.pol-sans-image { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--pol-nuit-3), var(--pol-nuit-2)); }
.pol-carte-ligne .pol-sans-image { aspect-ratio: 16 / 10; }
.pol-carte-horiz { margin-bottom: 56px; }
.pol-apres-horiz { margin-top: 0; }
.pol-teinte .pol-carte-horiz { margin-bottom: 44px; }

/* Grand titre à la une */
.pol-une { min-height: 380px; }
.pol-une-img { display: block; }
.pol-une-titre a { color: inherit !important; text-decoration: none; }
.pol-une-titre a:hover { color: var(--pol-sable) !important; }
.pol-une-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.pol-une-actions .pol-meta { margin-left: 6px; }

/* Bandeau du #PIC */
.pol-pic-surtitre { margin-bottom: 16px; }
.pol-pic-texte { font: 400 18px/1.6 var(--pol-serif); color: var(--pol-texte); max-width: 560px; margin: 0 0 26px; }
body.pol-gabarit .pol-pic-lien:hover { border-color: rgba(255,90,95,.55); }

/* Rubrique */
.pol-rubrique-tete { color: var(--u); }
.pol-rubrique-tete .pol-rubrique-titre, .pol-rubrique-tete .pol-rubrique-desc { color: inherit; }
.pol-rubrique-tete .pol-rubrique-titre { color: var(--pol-titre); }
.pol-rubrique-tete .pol-rubrique-desc { color: var(--pol-texte); }
.pol-cercles-rubrique { opacity: .55; }
body.pol-gabarit a.pol-puce { color: var(--pol-texte); }
body.pol-gabarit a.pol-puce.pol-actif { color: var(--pol-sur-corail); }
body.pol-gabarit .pol-pagination .pol-page-num { color: var(--pol-texte); }
body.pol-gabarit .pol-pagination .pol-page-num.pol-actif { color: var(--pol-nuit); }
.pol-pagination .pol-points { border: 0; }
.pol-pagination .pol-bouton { margin-left: 8px; }
.pol-vide { display: flex; flex-direction: column; gap: 18px; }

/* Article */
.pol-article-tete .pol-surtitre { margin-bottom: 0; }
.pol-auteur .pol-meta a { color: var(--pol-discret); }
.pol-initiale { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--pol-nuit-3); color: var(--pol-ambre); font: 600 20px/1 var(--pol-serif); flex: none; }
.pol-bio .pol-initiale { width: 72px; height: 72px; font-size: 30px; }
.pol-partage button.pol-icone { font: inherit; }
.pol-partage .pol-icone.pol-copie { color: var(--pol-corail); }
.pol-article-image { max-width: 1100px; margin: 8px auto 36px; }
.pol-article-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 65% 35%; border-radius: 14px; }
.pol-contenu-article, .pol-contenu-page { padding-bottom: 8px; }
.single .entry-content, .page .pol-contenu-page { font-size: 20px; line-height: 1.66; }
.page .pol-contenu-page > * { max-width: var(--pol-mesure); margin-left: auto; margin-right: auto; }
.page .pol-contenu-page h2 { color: var(--pol-sable); font-size: 30px; line-height: 1.18; }
.page .pol-contenu-page a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.pol-gabarit .entry-content p, body.pol-gabarit .entry-content ul, body.pol-gabarit .entry-content ol, body.pol-gabarit .entry-content blockquote { margin-bottom: 1.05em; }
body.pol-gabarit .entry-content h2, body.pol-gabarit .entry-content h3 { margin-top: 1.5em; margin-bottom: .55em; }
body.pol-gabarit .entry-content h3 { font-size: 24px; line-height: 1.25; color: var(--pol-titre); }
body.pol-gabarit .entry-content ul, body.pol-gabarit .entry-content ol { padding-left: 1.3em; }
body.pol-gabarit .entry-content li { margin-bottom: .35em; }
body.pol-gabarit .entry-content strong { color: var(--pol-titre); }
body.pol-gabarit .entry-content iframe { max-width: 100%; }
body.pol-gabarit .entry-content figure img { border-radius: 12px; }
body.pol-gabarit .entry-content figcaption { font: 500 13.5px/1.5 var(--pol-sans); color: var(--pol-discret); margin-top: 10px; }
body.pol-gabarit .entry-content hr { border: 0; border-top: 1px solid var(--pol-filet); margin: 2em auto; }
body.pol-gabarit .entry-content blockquote:not(.pol-citation) { border-left: 3px solid var(--pol-ambre); padding: 4px 0 4px 20px; font-style: italic; color: var(--pol-titre); }
.pol-page-tete { padding-bottom: 20px; }
.pol-page-tete .pol-article-titre { font-size: 50px; }

/* Commentaires */
.pol-commentaires { margin-top: 56px; }
.pol-commentaires > .pol-section-titre { margin-bottom: 18px; }
.pol-liste-commentaires, .pol-liste-commentaires .children { list-style: none; margin: 0 0 32px; padding: 0; }
.pol-liste-commentaires .children { margin: 16px 0 0 24px; padding-left: 18px; border-left: 1px solid var(--pol-filet); }
.pol-liste-commentaires li.comment { padding: 18px 0; border-top: 1px solid var(--pol-filet); }
.pol-liste-commentaires .comment-author { font: 600 15px/1.3 var(--pol-sans); color: var(--pol-titre); }
.pol-liste-commentaires .comment-author .says { display: none; }
.pol-liste-commentaires .comment-meta, .pol-liste-commentaires .comment-metadata { font: 500 13px/1.4 var(--pol-sans); color: var(--pol-discret); margin: 4px 0 10px; }
.pol-liste-commentaires .comment-meta a, .pol-liste-commentaires .comment-metadata a { color: var(--pol-discret); }
.pol-liste-commentaires p { font: 400 17px/1.6 var(--pol-serif); margin-bottom: .7em; }
.pol-liste-commentaires .reply a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pol-filet); font: 700 13px/1 var(--pol-sans); color: var(--pol-texte); }
.pol-titre-reponse { display: block; margin: 0 0 12px; font-size: 15px; color: var(--pol-titre); }
.pol-titre-reponse small a { margin-left: 10px; font: 500 13px/1 var(--pol-sans); }
.pol-commentaire .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font: 500 13px/1.45 var(--pol-sans); color: var(--pol-discret); }
.pol-commentaire .form-submit { margin: 0; }
.pol-commentaire .logged-in-as { font: 500 13px/1.45 var(--pol-sans); color: var(--pol-discret); }
.pol-commentaire .pol-champ:focus, .pol-commentaire textarea:focus { border-color: var(--pol-ambre); outline: none; }

/* À lire ensuite */
.pol-ensuite { margin-top: 40px; background: var(--pol-nuit-2); }

/* Pied */
.pol-pied-doctrine { margin: 14px 0 0; font: 400 15.5px/1.55 var(--pol-serif); color: var(--pol-doux); max-width: 340px; }
body.pol-gabarit .pol-pied li a:hover { color: var(--pol-titre); }
.pol-reseaux .pol-icone { color: var(--pol-doux); }

/* Téléphone */
@media (max-width: 760px) {
  .pol-logo-img { height: 28px; }
  .pol-pied .pol-logo-img { height: 30px; }
  .pol-une { min-height: 0; }
  .pol-cherche { flex-direction: column; align-items: stretch; }
  .pol-cherche .pol-bouton { align-self: flex-start; }
  .pol-article-image { margin: 0 calc(-1 * var(--pol-marge)) 24px; max-width: none; }
  .pol-article-image img { border-radius: 0; }
  .single .entry-content, .page .pol-contenu-page { font-size: 18.5px; }
  .pol-page-tete .pol-article-titre { font-size: 34px; }
  .page .pol-contenu-page h2 { font-size: 25px; }
  .pol-carte-horiz { margin-bottom: 40px; }
  .pol-partage { width: 100%; justify-content: space-between; }
}

/* 1.0.1 : les blocs d'onglets Otter des articles portent la classe pol-onglets (convention d'avant la charte) :
   la barre d'onglets des maquettes (.pol-onglets, grille de cinq colonnes) ne doit pas s'appliquer à leur enveloppe. */
body.pol-gabarit .wp-block-themeisle-blocks-tabs.pol-onglets { display: block; grid-template-columns: none; gap: 0; padding: 0; margin-top: 0; margin-bottom: 1.6em; border-radius: 0; background: transparent; border: 0; position: static; }
@media (max-width: 760px) {
  body.pol-gabarit .wp-block-themeisle-blocks-tabs.pol-onglets { position: static; margin-left: 0; margin-right: 0; padding: 0; border-radius: 0; grid-template-columns: none; }
}
/* Les encadrés qui imposent margin:0 en ligne restent dans la colonne de lecture. */
body.pol-gabarit.single .entry-content > *:not(.alignfull):not(.alignwide), body.pol-gabarit.page .pol-contenu-page > *:not(.alignfull):not(.alignwide) { margin-left: auto !important; margin-right: auto !important; }
/* La pagination passe à la ligne sur téléphone. */
.pol-pagination { flex-wrap: wrap; }

/* 1.0.2 (demande de Frédéric, 05/11/2026, 14 h 16) : sur un article, le texte prend la largeur du lecteur vidéo de tête
   et de l'image à la une (1 100 px), au lieu de la mesure de 680 px de la charte. La tête de l'article s'aligne sur la même largeur. */
body.pol-gabarit.single { --pol-mesure: 1100px; }
body.pol-gabarit.single .pol-article-tete { max-width: var(--pol-mesure); }
body.pol-gabarit.single .pol-article-chapeau { max-width: none; }
