/*
Theme Name: PiloteCSE Child
Theme URI: https://pilotecse.fr
Description: Thème enfant propre et structuré pour PiloteCSE.
Author: Christian Delgado
Template: twentytwentyfour
*/

/* ============================================================
   TYPOGRAPHIE GLOBALE — MAIS SANS IMPACTER LES ARCHIVES
   ============================================================ */

/* On applique la typographie globale UNIQUEMENT en dehors des pages archive */
body:not(.archive):not(.blog) p {
    font-size: 20px !important;
    line-height: 1.75 !important;
    letter-spacing: 0.1px;
    font-weight: 400;
}

/* Paragraphes Gutenberg (hors archives) */
body:not(.archive):not(.blog) .wp-block-paragraph {
    font-size: 20px !important;
    line-height: 1.75 !important;
}

/* Blockquotes, seulement dans les articles */
body:not(.archive):not(.blog) blockquote {
    font-size: 22px !important;
    line-height: 1.8 !important;
    font-style: italic;
}

/* Réglage titres (global safe) */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25 !important;
    font-weight: 800;
}

/* Protection archives → évite titres écrasés */
.archive .wp-block-post-title {
    line-height: 1.25 !important;
    font-weight: 800 !important;
    font-size: inherit !important;
}

/* ============================================================
   ZONES DE LECTURE (articles et pages)
   ============================================================ */

.entry-content,
.single .wp-block-post-content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Line-height raisonnable dans les contenus (hors archives) */
body:not(.archive):not(.blog) .wp-block-group,
body:not(.archive):not(.blog) .wp-block-group p {
    line-height: 1.6 !important;
}

/* Bloc essentiel */
body:not(.archive):not(.blog) .pilotecse-essentiel p,
body:not(.archive):not(.blog) .pilotecse-essentiel {
    line-height: 1.65 !important;
}

/* Sections colorées */
body:not(.archive):not(.blog) .has-background p {
    line-height: 1.6 !important;
}

/* ============================================================
   LARGEURS GÉNÉRALES DU SITE (header + pages)
   ============================================================ */

header.wp-block-template-part .wp-block-group.alignwide,
header.wp-block-template-part .wp-block-group.is-layout-constrained {
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px;
    padding-right: 30px;
}

.wp-block-group.alignwide,
.wp-block-group.is-layout-constrained {
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px;
    padding-right: 30px;
}

.page main,
.page .entry-content,
.page .wp-block-post-content.has-global-padding.is-layout-constrained {
    max-width: 1600px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* ============================================================
   COLONNES
   ============================================================ */

.pilotecse-layout-cols {
    align-items: flex-start !important;
}

/* ============================================================
   FIL D’ARIANE
   ============================================================ */

.pilotecse-breadcrumb {
    font-size: 14px;
    color: #5a6782;
    margin: 12px 0 25px;
}

.pilotecse-breadcrumb a {
    color: #2a4d8f;
    text-decoration: none;
}

.pilotecse-breadcrumb a:hover {
    text-decoration: underline;
    color: #1e3770;
}

.pilotecse-breadcrumb span {
    color: #333;
    font-weight: 500;
}
/* ====================================================================== */
/* 🧯 MODE PROTECTION — Empêche le style global de casser les pages CATEGORIES */
/* ====================================================================== */

.archive.category * {
    font-size: revert !important;
    line-height: revert !important;
    letter-spacing: revert !important;
}

/* Les paragraphes reviennent à une taille normale */
.archive.category p,
.archive.category .wp-block-post-excerpt {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
}

/* Les titres retrouvent un comportement normal */
.archive.category h2.wp-block-post-title {
    font-size: 1.10rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
}

/* Empêche la réduction automatique de largeur */
.archive.category .wp-block-post {
    overflow: visible !important;
}

/* Évite la compression des mots */
.archive.category * {
    word-break: normal !important;
    hyphens: manual !important;
}
/* ===========================================
   PAGE ENCYclopédie CSE +50
   (tout est scoped sous .encyclo-cse)
=========================================== */

/* conteneur global (optionnel) */
.encyclo-cse {
    max-width: 1200px;
    margin: 0 auto;
}

/* .encyclo-cards = bloc Colonnes des cartes sur la page d'entrée */
.encyclo-cse .encyclo-cards {
    align-items: stretch;             /* toutes les colonnes même hauteur */
}

/* chaque colonne devient un flex-container */
.encyclo-cse .encyclo-cards > .wp-block-column {
    display: flex;
}

/* la carte (Group à l'intérieur de la colonne) remplit la hauteur */
.encyclo-cse .encyclo-cards > .wp-block-column > .wp-block-group {
    background: #f5f5f5;
    border: 1px solid #d7d7d7;
    padding: 18px 20px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    padding-top: 24px; /* place pour la barre de couleur */
}

/* Titre et texte */
.encyclo-cse .encyclo-cards > .wp-block-column > .wp-block-group h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.encyclo-cse .encyclo-cards > .wp-block-column > .wp-block-group p {
    margin-bottom: 14px;
}

/* pousser les boutons en bas de la carte */
.encyclo-cse .encyclo-cards .wp-block-buttons {
    margin-top: auto;
}

/* bouton pleine largeur */
.encyclo-cse .encyclo-cards .wp-block-button {
    width: 100%;
}

.encyclo-cse .encyclo-cards .wp-block-button__link {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- barre colorée par thème (classe sur le Group : card-xxx) --- */

.encyclo-cse .encyclo-cards > .wp-block-column > .wp-block-group::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: #0f2940; /* couleur par défaut */
}

/* Couleurs par thème (si tu as mis les classes) */
.encyclo-cse .wp-block-group.card-fonctionnement::before { background: #0077b6; }
.encyclo-cse .wp-block-group.card-ssct::before          { background: #008f5a; }
.encyclo-cse .wp-block-group.card-asc::before           { background: #e08c1f; }
.encyclo-cse .wp-block-group.card-bdese::before         { background: #6c5ce7; }
.encyclo-cse .wp-block-group.card-mandat::before        { background: #d63031; }
.encyclo-cse .wp-block-group.card-compta::before        { background: #2d3436; }

/* responsive : 1 carte par ligne sur mobile */
@media (max-width: 768px) {
    .encyclo-cse .encyclo-cards {
        flex-wrap: wrap;
    }

    .encyclo-cse .encyclo-cards > .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 16px;
    }
}

/* ==========================================
   LAYOUT DOSSIER ENCYclopédie (2 colonnes)
   ========================================== */

/* Bloc Colonnes auquel tu as mis la classe "encyclo-layout" */
.encyclo-layout {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;

    /* 2 colonnes : navigation / contenu */
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
}

/* Colonne de gauche = navigation du dossier */
.encyclo-sidebar {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 18px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
    position: sticky;
    top: 110px;   /* à ajuster si ton header est plus haut ou plus bas */
}

/* Titre du sommaire */
.encyclo-sidebar h2,
.encyclo-sidebar h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #0f2940;
}

/* Liste principale du sommaire */
.encyclo-sidebar .wp-block-list {
    margin: 0;
    padding-left: 0;
}

.encyclo-sidebar ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

/* Chaque ligne du sommaire */
.encyclo-sidebar li {
    margin: 0 0 4px 0;
}

/* Niveau 1 du sommaire (1. La réunion du CSE, 2. Le mandat…) */
.encyclo-sidebar > .wp-block-list > li > a {
    font-weight: 700;
}

/* Style commun des liens dans le sommaire */
.encyclo-sidebar a {
    text-decoration: none !important;
    color: #0f2940;
    display: block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease;
}

/* Survol : léger fond bleu, pas trop agressif */
.encyclo-sidebar a:hover {
    background: #e1f0fb;
    color: #003355;
}

/* Sous-niveau (1.1, 1.2, etc.) : indentation + petite barre à gauche */
.encyclo-sidebar ul ul {
    margin-top: 4px;
    margin-bottom: 6px;
    padding-left: 14px;
    border-left: 2px solid #d0dde8;
}

/* Lignes de sous-niveau un peu plus compactes */
.encyclo-sidebar ul ul li {
    margin-bottom: 3px;
}

/* Colonne de droite : on évite les problèmes de largeur */
.encyclo-layout > .wp-block-column:nth-child(2),
.encyclo-layout > .wp-block-group:nth-child(2) {
    min-width: 0;
}

/* Responsive : sous 900px, la nav passe au-dessus du contenu */
@media (max-width: 900px) {
    .encyclo-layout {
        grid-template-columns: 1fr;
    }
    .encyclo-sidebar {
        position: static;
        margin-bottom: 24px;
    }
}  /* ← on ferme le @media ICI */

/* ==========================================
   Icône "Imprimer" (WordPress détourné)
   ========================================== */

.wp-block-social-links .wp-social-link-wordpress a svg {
    display: none !important;
}

.wp-block-social-links .wp-social-link-wordpress a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-social-links .wp-social-link-wordpress a::before {
    content: "";
    display: block;
    width: 1em;
    height: 1em;
    background-image: url("https://pilotecse.fr/wp-content/uploads/2025/12/icone-imprimante-bleu.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: none;
    opacity: 1;
}

/* ==========================================
   Icône "Feedback" (Reddit détourné)
   ========================================== */

.wp-block-social-links .wp-social-link-reddit a svg {
    display: none !important;
}

.wp-block-social-links .wp-social-link-reddit a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-social-links .wp-social-link-reddit a::before {
    content: "";
    display: block;
    width: 1em;
    height: 1em;
    background-image: url("https://pilotecse.fr/wp-content/uploads/2025/12/icone-feedback-rouge.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: none;
    opacity: 1;
}

/* S'assurer que le style "logos only" ne recolorise pas ces deux-là */
.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress a::before,
.wp-block-social-links.is-style-logos-only .wp-social-link-reddit a::before {
    filter: none;
    opacity: 1;
}
/* =========================================================
   IMPRESSION – FILIGRANE + TEXTE DE PIED DE PAGE
   ========================================================= */

/* =========================================================
   IMPRESSION — FILIGRANE + TEXTE DE PIED DE PAGE
   (limité aux pages piliers via .pcse-pilier)
   ========================================================= */
@media print {

  body{
    background:#fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Désactive l'ancien filigrane global (body::before/body::after) */
  body::before,
  body::after{
    content: none !important;
    background: none !important;
  }

  /* Filigrane sur pages piliers */
  main .wp-block-post-content .pcse-pilier::before{
    content:"";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);

    width: 600px;
    height: 600px;

    background-image: url("https://pilotecse.fr/wp-content/uploads/2025/11/logo-10-nov.-2025-22_55_40.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.045;          /* baissez/montez selon lisibilité */
    pointer-events: none;
    z-index: 9999;           /* AU-DESSUS => ne peut plus être masqué */
  }

  /* Texte bas de page (pages piliers) */
  main .wp-block-post-content .pcse-pilier::after{
    content: "Document issu de pilotecse.fr – Tous droits réservés.";
    position: fixed;
    bottom: 8mm;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #666;
    opacity: 0.9;
    z-index: 10000;
  }
}
/* ÉCRAN : très discret + pas sur mobile */
@media screen {
  .pcse-pilier::before{
    opacity: 0.025;
    pointer-events:none;
  }
}
@media screen and (max-width: 900px){
  .pcse-pilier::before{ content:none !important; }
}

/* IMPRESSION : un peu plus visible */
@media print {
  .pcse-pilier::before{
    opacity: 0.06;
    pointer-events:none;
  }
}


  /* === FILIGRANE LOGO PILOTECSE AU CENTRE === */
  body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);

    /* Taille du filigrane */
    width: 600px;
    height: 600px;

    /* 👉 À ADAPTER avec l’URL exacte de ton logo */
    background-image: url("https://pilotecse.fr/wp-content/uploads/2025/11/logo-10-nov.-2025-22_55_40.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.06;          /* ajuster entre 0.04 et 0.10 selon ton goût */
    pointer-events: none;
    z-index: 0;             /* derrière la plupart des éléments, mais visible */
  }

  /* === TEXTE EN BAS DE CHAQUE PAGE IMPRIMÉE === */
  body::after {
    content: "Document issu de pilotecse.fr – Tous droits réservés.";
    position: fixed;
    bottom: 8mm;            /* marge du bas */
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #666666;
    opacity: 0.9;
  }

}
/* Titres H5 dans le contenu (hors archives/blog) */
body:not(.archive):not(.blog) h5.wp-block-heading {
    font-size: 22px !important;
    line-height: 1.4;
    font-weight: 600;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
}
/* Forcer une hiérarchie H3 > H4 dans le contenu */

/* H3 un peu plus grand */
.entry-content h3 {
    font-size: 1.5rem !important;
}

/* H4 un cran en dessous */
.entry-content h4 {
    font-size: 1.3rem !important;
}
/* HEADER — rappel du rond orange "magazine" */
.header-magazine{
  position: relative;
  background:
    radial-gradient(circle at 92% 10%,
      rgba(225,71,0,0.12) 0 150px,
      transparent 151px),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%) !important;
  border-bottom: 1px solid #e7eefc;
}

/* Mobile : effet plus discret */
@media (max-width: 900px){
  .header-magazine{
    background:
      radial-gradient(circle at 105% 0%,
        rgba(225,71,0,0.10) 0 110px,
        transparent 111px),
      #ffffff !important;
  }
}
/* HEADER — rond orange à gauche (style Hero) */
.header-magazine{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%) !important;
  border-bottom: 1px solid #e7eefc;
}

/* Le rond à gauche */
.header-magazine::after{
  content:"";
  position: absolute;
  left: -70px;   /* pousse vers l’extérieur à gauche */
  top: -70px;
  width: 240px;
  height: 240px;
  background: rgba(225,71,0,0.10);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

/* Le contenu du header au-dessus du rond */
.header-magazine > *{
  position: relative;
  z-index: 1;
}

/* Mobile : rond plus discret */
@media (max-width: 900px){
  .header-magazine::after{
    left: -90px;
    top: -90px;
    width: 200px;
    height: 200px;
    opacity: 0.7;
  }
}
.header-nav-magazine{
  position: relative;
  overflow: hidden;
}

.header-nav-magazine::after{
  content:"";
  position:absolute;
  left:-120px;
  top:-140px;
  width:240px;
  height:240px;
  background: rgba(225,71,0,0.08);
  border-radius:999px;
  pointer-events:none;
  z-index:0;
}

.header-nav-magazine > *{
  position: relative;
  z-index: 1;
}
/* =======================================================
   PilotCSE — Bloc "Pour aller plus loin"
   (Groupe Gutenberg avec classe : pcse-plusloin)
   ======================================================= */

body:not(.archive):not(.blog) main .wp-block-group.pcse-plusloin{
  margin: 28px 0 34px !important;
  padding: 18px 18px 14px !important;

  background: #f6f7f9 !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-left: 6px solid var(--wp--preset--color--accent, #FFAF63) !important;
  border-radius: 16px !important;

  box-shadow: 0 10px 26px rgba(0,0,0,.06) !important;
  position: relative;
}

/* --- Titre de section --- */
body:not(.archive):not(.blog) main .wp-block-group.pcse-plusloin :is(h2,h3,.wp-block-heading){
  margin: 0 0 14px !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;

  display: flex;
  align-items: center;
  gap: 10px;

  padding-right: 0 !important; /* plus besoin : on supprime les pictos */
}

body:not(.archive):not(.blog) main .wp-block-group.pcse-plusloin :is(h2,h3,.wp-block-heading)::before{
  content:"↗";
  font-weight: 900;

  color: var(--wp--preset--color--primary, #2a4d8f);
  background: rgba(42,77,143,.10);

  width: 28px;
  height: 28px;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

/* --- Cartes : Query Loop --- */
body:not(.archive):not(.blog) main .pcse-plusloin .wp-block-post-template{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: grid;
  gap: 10px;
}

body:not(.archive):not(.blog) main .pcse-plusloin .wp-block-post{
  margin: 0 !important;
  padding: 12px 14px !important;

  background: #fff !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 12px !important;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

body:not(.archive):not(.blog) main .pcse-plusloin .wp-block-post:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-color: rgba(42,77,143,.25) !important;
}

body:not(.archive):not(.blog) main .pcse-plusloin .wp-block-post-title{
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
}

body:not(.archive):not(.blog) main .pcse-plusloin .wp-block-post-title a{
  text-decoration: none !important;
}

body:not(.archive):not(.blog) main .pcse-plusloin .wp-block-post-date{
  margin-top: 6px !important;
  font-size: .88rem !important;
  opacity: .75;
}

/* =======================================================
   IMPORTANT : suppression des pictos d’actions
   (ils sont dans ul.wp-block-social-links.encyclo-actions-icons)
   ======================================================= */

body:not(.archive):not(.blog) main .wp-block-group.pcse-plusloin
ul.wp-block-social-links.encyclo-actions-icons{
  display: none !important;
}

/* Responsive (si besoin) */
@media (max-width: 782px){
  body:not(.archive):not(.blog) main .wp-block-group.pcse-plusloin{
    padding: 14px 14px 10px !important;
    border-left-width: 4px !important;
  }
}
:root{
  --pcse-site-bg: rgb(246, 247, 249); /* valeur récupérée sur une page normale */
}
/* ✅ ÉCRAN : pas de filigrane */
@media screen {
  body::before,
  body::after{
    content: none !important;
    background: none !important;
  }
}
/* ============================================================
   PilotCSE — Bouton "Retour en haut" (global)
   ============================================================ */

.pcse-back-top{
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9999;

  background: #2a4d8f;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 9999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  border: 0;
  cursor: pointer;

  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: 0.2s;

  /* Caché par défaut (si vous activez le JS ci-dessous) */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
}

.pcse-back-top:hover{
  background: #1d3358;
}

.pcse-back-top:focus-visible{
  outline: 3px solid rgba(42,77,143,.35);
  outline-offset: 3px;
}

/* Visible quand on a scrollé */
.pcse-back-top.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Respect "réduction des animations" */
@media (prefers-reduced-motion: reduce){
  .pcse-back-top{ transition: none; }
}
/* =======================================================
   PilotCSE — NORME FAQ (pages piliers/paliers)
   Bloc robuste (ne dépend pas de wp-block-group)
   ======================================================= */

body:not(.archive):not(.blog) .pcse-faqs{
  margin: 24px 0 34px;
  padding: 18px 18px 12px;

  background: #f6f7f9;
  border: 1px solid rgba(0,0,0,.08);
  border-left: 6px solid var(--wp--preset--color--accent, #FFAF63);
  border-radius: 16px;

  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

body:not(.archive):not(.blog) .pcse-faqs .wp-block-heading{
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Liste */
body:not(.archive):not(.blog) .pcse-faqs__list{
  margin: 0;
  padding: 0;
}

/* Item */
body:not(.archive):not(.blog) details.pcse-faqs__item{
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #e6e6e6;
}

body:not(.archive):not(.blog) details.pcse-faqs__item:first-child{
  border-top: 0;
}

/* Question */
body:not(.archive):not(.blog) details.pcse-faqs__item > summary{
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

body:not(.archive):not(.blog) details.pcse-faqs__item > summary::-webkit-details-marker{
  display: none;
}

body:not(.archive):not(.blog) details.pcse-faqs__item > summary::before{
  content: "▸";
  line-height: 1.1;
  font-weight: 900;
  transform: translateY(2px);
  opacity: .85;
}

body:not(.archive):not(.blog) details.pcse-faqs__item[open] > summary::before{
  content: "▾";
}

/* Réponse */
body:not(.archive):not(.blog) .pcse-faqs__answer{
  margin-top: 10px;
  padding-left: 22px; /* aligne avec l’icône */
}

body:not(.archive):not(.blog) .pcse-faqs__answer p{
  margin: 0 0 10px;
}

body:not(.archive):not(.blog) .pcse-faqs__answer p:last-child{
  margin-bottom: 0;
}
/* ==========================================================
   PilotCSE — Hub "Ordre du jour" : cartes de choix
   ========================================================== */

.pcse-odj-hub{
  margin: 18px 0 26px;
}

.pcse-odj-hub__title{
  margin: 0 0 8px;
  font-weight: 900;
  line-height: 1.15;
}

.pcse-odj-hub__lead{
  margin: 0 0 16px;
  color: rgba(0,0,0,.72);
  line-height: 1.45;
  max-width: 980px;
}

.pcse-odj-hub__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px){
  .pcse-odj-hub__grid{ grid-template-columns: 1fr; }
}

.pcse-odj-card{
  position: relative;
  display: block;
  padding: 16px 16px 14px;
  border-radius: 14px;

  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);

  text-decoration: none;
  color: inherit;
}

.pcse-odj-card:hover{
  border-color: rgba(0,0,0,.18);
}

.pcse-odj-card__badge{
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;

  background: #f6f7f9;
  border: 1px solid rgba(0,0,0,.10);
}

.pcse-odj-card__badge.is-live{
  background: rgba(0,115,170,.10);
  border-color: rgba(0,115,170,.20);
  color: var(--bleu-cse, #0073aa);
}

.pcse-odj-card__icon{
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pcse-odj-card__title{
  margin: 0 0 8px;
  font-weight: 900;
  line-height: 1.2;
}

.pcse-odj-card__text{
  margin: 0 0 12px;
  color: rgba(0,0,0,.72);
  line-height: 1.45;
}

.pcse-odj-card__cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-weight: 900;
  color: var(--bleu-cse, #0073aa);
  border-bottom: 1px dashed rgba(0,115,170,.35);
}

/* Cartes "bientôt" désactivées */
.pcse-odj-card.is-soon{
  opacity: .70;
  background: #f6f7f9;
}
.pcse-odj-card.is-soon .pcse-odj-card__cta{
  border-bottom: none;
  color: rgba(0,0,0,.55);
}

/* Petit texte d’aide */
.pcse-odj-hub__help{
  margin: 12px 0 0;
  color: rgba(0,0,0,.68);
  font-style: italic;
}

