/* Onglet « Parrainages 2027 » de J'agis : composants du tableau de bord (em-style.css), complétés ici. */

.eqx-p27__loading { text-align: center; color: var(--em-text-secondary); margin: 24px 0 12px; }

/* Message d'accueil : la carte jaune des bandeaux de l'accueil */
.eqx-p27 .eqx-p27__intro { margin: 0 0 24px; padding: 22px 24px; background: #fff8d6; border: 1px solid rgba(255, 212, 18, 0.6); border-radius: 16px; font-style: normal; }
.eqx-p27 .eqx-p27__intro p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--em-text-primary); }
.eqx-p27 .eqx-p27__intro p:last-child { margin-bottom: 0; }
.eqx-p27 .eqx-p27__intro p.eqx-p27__intro-hook { font-size: 18px; font-weight: 800; line-height: 1.4; color: var(--em-primary); }

/* Bandeau vers « Je connais un élu » : fin, entre l'accueil et le compteur */
.eqx-p27 .eqx-p27__nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: -8px 0 24px; padding: 12px 20px; background: #fff; border: 1px solid var(--em-gray); border-left: 4px solid var(--em-secondary); border-radius: 12px; }
.eqx-p27 .eqx-p27__nudge p { flex: 1 1 280px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--em-text-primary); }
.eqx-p27 .eqx-p27__nudge strong { color: var(--em-primary); }
.eqx-p27 .eqx-p27__nudge .em-btn { flex: 0 0 auto; width: auto; margin: 0; padding: 10px 18px; }

/* Compteur, sur la carte de la levée de fonds */
.em-levee-card.eqx-p27__counter { margin-bottom: 20px; }
.em-levee-card.eqx-p27__counter::before { display: none; }
.eqx-p27__progress-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 18px 0 8px; font-size: 15px; }
.eqx-p27__progress { height: 16px; background: rgba(255, 255, 255, 0.18); border-radius: 99px; overflow: hidden; }
.eqx-p27__progress-bar { height: 100%; background: var(--em-secondary); border-radius: 99px; }
.eqx-p27__stats { margin-bottom: 40px; }
.eqx-p27__stats .em-stat-details { justify-content: flex-start; gap: 12px; }
.eqx-p27__stats .em-stat-card { border-left: 1px solid var(--em-gray); }

/* Sections */
.eqx-p27__section { margin-bottom: 40px; }
.em-content-area .eqx-p27 h4.eqx-p27__title { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--em-primary); }
.eqx-p27 p.eqx-p27__lead { margin: 0 0 20px; font-size: 14px; color: var(--em-text-secondary); }

/* Sections repliables : le titre se clique, un chevron dit l'état */
.eqx-p27__fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding: 14px 0; border-top: 1px solid var(--em-gray); border-bottom: 1px solid var(--em-gray); list-style: none; cursor: pointer; }
.eqx-p27__fold > summary::-webkit-details-marker { display: none; }
.eqx-p27__fold > summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--em-primary); border-bottom: 2px solid var(--em-primary); margin: -4px 4px 0 0; transform: rotate(45deg); transition: transform 0.2s; }
.eqx-p27__fold[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.eqx-p27__fold > summary:hover h4.eqx-p27__title { text-decoration: underline; text-underline-offset: 4px; }
.eqx-p27__fold > summary:focus-visible { outline: 2px solid var(--em-primary); outline-offset: 2px; }
.em-content-area .eqx-p27 .eqx-p27__fold > summary h4.eqx-p27__title { margin: 0; }
.eqx-p27__fold[open] > summary { margin-bottom: 14px; }
.eqx-p27__fold:not([open]) { margin-bottom: 0; }
.eqx-p27__fold + .eqx-p27__fold > summary { border-top: none; }
.eqx-p27__fold:not([open]) > summary { margin-bottom: 0; }
.eqx-p27__fold:not([open]) + .eqx-p27__section:not(.eqx-p27__fold) { margin-top: 28px; }

/* Cartes : étapes et outils, étirées sur toute la largeur quelle qu'elle soit */
.eqx-p27 .em-tools-grid.eqx-p27__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.eqx-p27__step-number { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.eqx-p27__card--done .eqx-p27__step-number { color: #15803d; }
div.em-tool-card.eqx-p27__card:hover { transform: none; box-shadow: none; border-color: var(--em-gray); }
.eqx-p27__card--locked,
.eqx-p27__card--soon { opacity: 0.65; cursor: not-allowed; }
.eqx-p27 .em-tool-card .em-btn { width: 100%; }
.eqx-p27 .em-tool-card .eqx-p27__btn-ghost { background: transparent !important; color: var(--em-primary) !important; border-color: var(--em-gray) !important; }
.eqx-p27 .em-tool-card .eqx-p27__btn-ghost:hover { border-color: var(--em-primary) !important; }
.eqx-p27 .eqx-p27__documents { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.eqx-p27__documents li { margin: 0; }
.eqx-p27 .eqx-p27__documents a { font-size: 13px; font-weight: 600; color: var(--em-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Sessions de formation, dans les étapes du parcours */
.eqx-p27__sessions { width: 100%; }
.eqx-p27 .eqx-p27__session-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.eqx-p27 .eqx-p27__session { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 12px; background: var(--em-light-gray); border-radius: 10px; text-align: center; }
.eqx-p27__session-when { font-size: 14px; font-weight: 700; color: var(--em-primary); }
.eqx-p27__session-seats { font-size: 12px; color: var(--em-text-secondary); }
.eqx-p27__session-seats:empty { display: none; }
.eqx-p27 .eqx-p27__session .em-btn { width: auto; padding: 8px 14px; font-size: 12px; }
.eqx-p27__session-done { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; font-size: 13px; font-weight: 700; color: #15803d; }
.eqx-p27 .eqx-p27__session-done .eqx-p27__change { text-transform: none; letter-spacing: normal; }
.eqx-p27 p.eqx-p27__sessions-empty { margin: 0 0 10px; font-size: 13px; color: var(--em-text-secondary); }

/* Je connais un élu : la carte jaune des bandeaux de l'accueil */
.eqx-p27 [hidden] { display: none !important; }
.eqx-p27__recommend-card { padding: 24px; background: #fff8d6; border: 1px solid rgba(255, 212, 18, 0.6); border-radius: 16px; }
.eqx-p27 .eqx-p27__recommend-card button { text-transform: none; letter-spacing: normal; }
.eqx-p27 .eqx-p27__recommend-card .em-submit-btn { text-transform: uppercase !important; }
.eqx-p27 .eqx-p27__choices.em-form-group input[type="radio"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; padding: 0; }
.eqx-p27__recommend-card .em-form-group input:not([type="checkbox"]):not([type="radio"]),
.eqx-p27__recommend-card .em-form-group textarea { background: #fff; resize: vertical; }
.eqx-p27__optional { font-weight: 400; color: var(--em-text-secondary); }
.eqx-p27 .eqx-p27__results { list-style: none; margin: 8px 0 0; padding: 4px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; max-height: 280px; overflow-y: auto; }
.eqx-p27 .eqx-p27__results li { margin: 0; }
.eqx-p27 .eqx-p27__results button { display: block; width: 100%; padding: 10px 12px; background: transparent; border: none; border-radius: 6px; text-align: left; font: inherit; font-size: 14px; color: var(--em-primary); cursor: pointer; }
.eqx-p27 .eqx-p27__results button:hover,
.eqx-p27 .eqx-p27__results button:focus-visible { background: var(--em-light-gray); outline: none; }
.eqx-p27__results-empty { padding: 10px 12px; font-size: 13px; color: var(--em-text-secondary); }
.eqx-p27 .eqx-p27__chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 12px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.eqx-p27 .eqx-p27__change { background: transparent; border: none; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--em-primary); text-decoration: underline; cursor: pointer; }
.eqx-p27 .eqx-p27__choices { border: none; padding: 0; margin: 0 0 20px; }
.eqx-p27 .eqx-p27__choices legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--em-text-primary); }
.eqx-p27 .eqx-p27__choices label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.eqx-p27__introduce { margin-bottom: 20px; }
.eqx-p27__introduce label { font-size: 14px; }
.eqx-p27__recommend-card .em-submit-btn { width: auto; }
.eqx-p27 p.eqx-p27__status { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #15803d; }
.eqx-p27 p.eqx-p27__status:empty { display: none; }
.eqx-p27 p.eqx-p27__status.is-error { color: #b91c1c; }

/* Prochains déplacements : la carte sur le bleu du compteur, la liste en cartes */
.eqx-p27 p.eqx-p27__empty { margin: 0; padding: 20px; border: 1px solid var(--em-gray); border-radius: 12px; font-size: 14px; color: var(--em-text-secondary); }
.eqx-p27__trips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.eqx-p27 .eqx-p27__map { margin: 0; padding: 20px; background: linear-gradient(135deg, #102234 0%, #1c355a 100%); border-radius: 16px; }
.eqx-p27__map-canvas { min-height: 200px; }
.eqx-p27__map-canvas svg { display: block; width: 100%; height: auto; }
.eqx-p27__map-canvas path { fill: #213760; stroke: #5b8dc0; stroke-width: 1; }
.eqx-p27__map-canvas path.is-team { fill: #5b8dc0; stroke: #fff; }
.eqx-p27__map-canvas path.is-candidate { fill: var(--em-secondary); stroke: #fff; }
.eqx-p27 .eqx-p27__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: #fff; }
.eqx-p27__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.eqx-p27__swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid #fff; }
.eqx-p27__swatch--candidate { background: var(--em-secondary); }
.eqx-p27__swatch--team { background: #5b8dc0; }
.eqx-p27 .eqx-p27__trip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.eqx-p27 .eqx-p27__trip { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--em-gray); border-radius: 12px; }
.eqx-p27__trip-where { font-size: 15px; font-weight: 700; color: var(--em-primary); }
.eqx-p27__trip-when { font-size: 14px; color: var(--em-text-secondary); }
.eqx-p27__trip-badge { align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 99px; background: #fff8d6; border: 1px solid rgba(255, 212, 18, 0.6); font-size: 12px; font-weight: 700; color: var(--em-primary); }
.eqx-p27 .eqx-p27__more { margin-top: 10px; padding: 0; background: transparent; border: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--em-primary); text-decoration: underline; text-transform: none; letter-spacing: normal; cursor: pointer; }
.eqx-p27__trip-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; }
.eqx-p27__trip-actions .em-btn { width: auto; }
.eqx-p27 .eqx-p27__link { font-size: 14px; font-weight: 700; color: var(--em-primary); text-decoration: underline; text-underline-offset: 3px; }
