/* ==========================================================================
   Design system — BOUTONS D'ACTION d'un projet ou d'un parc :
   Suivre (centré, cloche qui sonne + étincelles au clic), J'ai hâte (cœur qui bat, rouge + petits cœurs au clic),
   icônes Agenda et Partager, description repliable, « Voir toute l'actualité » de l'accueil.
   ========================================================================== */

/* ---------- Suivre : contenu centré ---------- */
html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__suivre{justify-content:center;padding:0 22px !important;min-width:150px;height:46px;min-height:46px;text-align:center}
html body:not(#_) .ca-mb__bulle.ds-pop,html body:not(#_) .ca-mb__suivre .ds-pop{animation:ds-pop .55s cubic-bezier(.2,1.6,.4,1)}
@keyframes ds-pop{0%{transform:scale(.6) rotate(-20deg)}60%{transform:scale(1.25) rotate(8deg)}100%{transform:scale(1) rotate(0)}}

/* ---------- J'ai hâte ---------- */
html body:not(#_) .ca-hate{position:relative;overflow:visible;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;
  background:#fff !important;color:var(--ds-primaire,#124A9E) !important;border:1.5px solid var(--ds-bordure-forte,#B9C9E6) !important;border-radius:var(--ds-r-m,14px) !important;box-shadow:none !important;
  font:700 16px 'Barlow',system-ui,sans-serif !important;letter-spacing:normal !important;text-transform:none !important;transition:background .18s,border-color .18s,color .18s,transform .18s}
html body:not(#_) .ca-hate:hover{background:var(--ds-primaire-pale,#EEF3FB) !important;border-color:var(--ds-primaire,#124A9E) !important}
html body:not(#_) .ca-hate .ca-hate__txt{color:inherit !important}
html body:not(#_) .ca-hate .ca-hate__txt::after{content:none !important}
html body:not(#_) .ca-hate__n{display:none !important}
html body:not(#_) .ca-hate__coeur{display:inline-block;color:#E5322D !important;font-size:19px;line-height:1;transform-origin:50% 60%;animation:ds-coeur-bat 5s ease-in-out infinite}
@keyframes ds-coeur-bat{0%,14%,100%{transform:scale(1) rotate(0)}3%{transform:scale(1.35) rotate(-10deg)}6%{transform:scale(1) rotate(8deg)}9%{transform:scale(1.25) rotate(-6deg)}12%{transform:scale(1) rotate(0)}}
html body:not(#_) .ca-hate:hover .ca-hate__coeur{animation-duration:1s}
/* voté : le bouton devient rouge */
html body:not(#_) .ca-hate.is-vote{background:#E5322D !important;border-color:#E5322D !important;color:#fff !important;cursor:pointer;box-shadow:0 6px 18px rgba(229,50,45,.35) !important}
html body:not(#_) .ca-hate.is-vote .ca-hate__coeur{color:#fff !important;animation:ds-coeur-vote .6s cubic-bezier(.2,1.6,.4,1)}
@keyframes ds-coeur-vote{0%{transform:scale(.5)}50%{transform:scale(1.7)}100%{transform:scale(1)}}
/* petits cœurs et étincelles qui s'envolent */
.ds-vol{position:absolute;left:50%;top:50%;z-index:5;margin:-.5em 0 0 -.5em;font-style:normal;font-size:var(--s,16px);line-height:1;color:var(--c,#E5322D);pointer-events:none;opacity:0;animation:ds-vol 1.1s ease-out var(--d,0s) forwards}
@keyframes ds-vol{0%{opacity:0;transform:translate(0,0) scale(.4) rotate(0)}12%{opacity:1}100%{opacity:0;transform:translate(var(--x,0),var(--y,-80px)) scale(1.1) rotate(var(--r,0deg))}}

/* ---------- Icônes Agenda et Partager ---------- */
html body:not(#_) .pj-nav-suivre :is(.ca-act__btn--ico,[data-menu]){display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:0 !important;
  background:#fff !important;color:var(--ds-primaire,#124A9E) !important;border:1.5px solid var(--ds-bordure-forte,#B9C9E6) !important;border-radius:var(--ds-r-m,14px) !important;box-shadow:none !important;font-size:0}
html body:not(#_) .pj-nav-suivre :is(.ca-act__btn--ico,[data-menu]):hover{background:var(--ds-primaire-pale,#EEF3FB) !important;border-color:var(--ds-primaire,#124A9E) !important}
html body:not(#_) .pj-nav-suivre :is(.ca-act__btn--ico,[data-menu]):active{background:var(--ds-accent,#ec9521) !important;border-color:var(--ds-accent,#ec9521) !important;color:#fff !important}
html body:not(#_) .pj-nav-suivre :is(.ca-act__btn--ico,[data-menu]) svg{display:block;width:20px;height:20px}
html body:not(#_) .pj-nav-suivre .ca-act--nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html body:not(#_) .pj-nav-suivre .ca-act__menu{position:relative}
/* dans l'en-tête de la fiche, les icônes gardent leur dessin d'origine : on cache le doublon */
html body .pj-page .fh-right .ca-act__btn.pj-ico svg{display:none}

/* ---------- Description d'un projet : repliée à l'écran, entière dans la page ---------- */
.ca-pj-desc.is-court{position:relative;max-height:11.2em;overflow:hidden}
.ca-pj-desc.is-court::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4.2em;background:linear-gradient(rgba(255,255,255,0),#fff 85%);pointer-events:none}
.ca-pj-desc__plus{margin-top:12px;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;border:1.5px solid var(--ds-bordure-forte,#B9C9E6);border-radius:var(--ds-r-m,14px);background:#fff;color:var(--ds-primaire,#124A9E);font:700 16px 'Barlow',system-ui,sans-serif;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.ca-pj-desc__plus:hover{background:var(--ds-primaire-pale,#EEF3FB);border-color:var(--ds-primaire,#124A9E)}
.ca-pj-desc__plus:active{background:var(--ds-accent,#ec9521);border-color:var(--ds-accent,#ec9521);color:#fff}
.ca-pj-desc__plus[hidden]{display:none}

/* ---------- Titre de la fiche : parc sur une ligne dessous (SEO : dans le H1) ---------- */
html body .ca-fiche2__titre .ca-fiche2__titre-parc{display:block;margin-top:.25em;font-size:.42em;line-height:1.2;letter-spacing:.08em;color:var(--ds-accent,#ec9521)}

/* ---------- « Voir toute l'actualité » (accueil) : texte lisible ---------- */
html body:not(#_) #main-content .ca-flux__plus,html body:not(#_) .ca-flux__plus{color:var(--ds-primaire,#124A9E) !important}
html body:not(#_) .ca-flux__plus .ca-arr,html body:not(#_) .ca-flux__plus .ca-arr svg{color:inherit !important;stroke:currentColor}
html body:not(#_) .ca-flux__plus:active{color:#fff !important}
html body:not(#_) .ca-flux__plus:active .ca-arr{color:#fff !important}

/* Suivre dans la barre de la fiche : même hauteur que J'ai hâte et les icônes (44 px) */
html body:not(#_) .pj-nav-suivre .ca-mb .ca-mb__btn.ca-mb__suivre{height:44px !important;min-height:44px !important}

/* retirer son « J'ai hâte » : le cœur se brise */
html body:not(#_) .ca-hate.is-vote:hover{background:#C9282A !important;border-color:#C9282A !important}
.ds-brise{position:absolute;left:50%;top:50%;z-index:6;width:1em;margin:-.55em 0 0 -.5em;font-style:normal;font-size:26px;line-height:1;color:#E5322D;pointer-events:none;animation:ds-chute .95s cubic-bezier(.5,0,.8,.6) forwards}
.ds-brise--g{clip-path:polygon(0 0,56% 0,44% 30%,58% 52%,42% 76%,54% 100%,0 100%);--x:-30px;--r:-38deg}
.ds-brise--d{clip-path:polygon(56% 0,100% 0,100% 100%,54% 100%,42% 76%,58% 52%,44% 30%);--x:30px;--r:38deg}
@keyframes ds-chute{0%{opacity:1;transform:translate(0,0) rotate(0)}18%{transform:translate(calc(var(--x) * .25),-6px) rotate(calc(var(--r) * .2))}100%{opacity:0;transform:translate(var(--x),84px) rotate(var(--r))}}
.ds-eclat{position:absolute;left:50%;top:50%;z-index:6;width:5px;height:5px;margin:-2px 0 0 -2px;border-radius:50%;background:#E5322D;pointer-events:none;animation:ds-eclat .8s ease-in var(--d,0s) forwards}
@keyframes ds-eclat{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(var(--x),70px)}}

/* ---------- Accueil : réactions des compteurs ---------- */
.ca-h3__stat.is-fun{animation:ds-stat .6s cubic-bezier(.2,1.6,.4,1)}
@keyframes ds-stat{0%{transform:scale(1)}40%{transform:scale(1.14) rotate(-3deg)}100%{transform:scale(1)}}
.ca-fun{position:absolute;left:0;bottom:calc(100% + 14px);z-index:30;width:max-content;max-width:min(300px,80vw);padding:12px 16px;border-radius:16px;background:#fff;color:#0B2B66;font:600 16px/1.4 'Barlow',system-ui,sans-serif;text-transform:none;letter-spacing:0;box-shadow:0 14px 34px rgba(0,0,0,.28);animation:ds-bulle .4s cubic-bezier(.2,1.5,.4,1);cursor:default}
.ca-fun::after{content:"";position:absolute;left:28px;bottom:-7px;width:14px;height:14px;background:#fff;transform:rotate(45deg)}
.ca-fun.is-fin{opacity:0;transform:translateY(6px);transition:opacity .3s,transform .3s}
@keyframes ds-bulle{0%{opacity:0;transform:translateY(10px) scale(.85)}100%{opacity:1;transform:none}}
.ds-fun{position:absolute;top:0;z-index:25;font-style:normal;font-size:var(--s,18px);line-height:1;pointer-events:none;opacity:0;animation:ds-pluie 1.9s ease-in var(--d,0s) forwards}
.ds-fun--projets{top:auto;bottom:0;animation-name:ds-jaillit;animation-timing-function:ease-out}
.ds-fun--parcs{top:50%;animation-name:ds-etoile;animation-timing-function:ease-out}
@keyframes ds-pluie{0%{opacity:0;transform:translate(0,-60px) rotate(0)}12%{opacity:1}100%{opacity:0;transform:translate(var(--x,0),110px) rotate(220deg)}}
@keyframes ds-jaillit{0%{opacity:0;transform:translate(0,0) scale(.5)}15%{opacity:1}100%{opacity:0;transform:translate(var(--x,0),-110px) rotate(25deg) scale(1.1)}}
@keyframes ds-etoile{0%{opacity:0;transform:translate(0,0) scale(.4)}18%{opacity:1}100%{opacity:0;transform:translate(var(--x,0),-80px) rotate(40deg) scale(1.2)}}
.ds-train{position:absolute;left:-40px;top:-24px;z-index:26;font-style:normal;font-size:30px;line-height:1;pointer-events:none;animation:ds-train 1.6s cubic-bezier(.4,0,.6,1) forwards}
@keyframes ds-train{0%{transform:translate(0,14px) rotate(25deg)}25%{transform:translate(70px,-16px) rotate(-18deg)}55%{transform:translate(150px,10px) rotate(20deg)}80%{transform:translate(220px,-12px) rotate(-14deg)}100%{transform:translate(300px,4px) rotate(6deg);opacity:0}}

/* actions : repos blanc + contour/icône/texte orange, survol inversé (orange plein), AUCUNE ombre au survol ; activé = orange plein + halo */
:root{--ds-orange-vif:#E8801A;--ds-orange-fonce:#D06A0C;--ds-orange-halo:0 6px 18px rgba(232,128,26,.42);--ds-rouge-hate:#E5322D;--ds-rouge-hate-halo:0 6px 18px rgba(229,50,45,.38)}
html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__suivre,html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__visite{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;height:46px;padding:0 20px 0 12px !important;
  background:#fff !important;background-image:none !important;color:var(--ds-orange-vif) !important;border:1.5px solid var(--ds-orange-vif) !important;border-radius:var(--ds-r-m,14px) !important;
  box-shadow:none !important;animation:none !important;font:700 16px 'Barlow',system-ui,sans-serif !important;letter-spacing:normal !important;text-transform:none !important;transform:none !important;
  transition:background .18s,color .18s,border-color .18s}
html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__suivre:hover,html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__visite:hover{
  background:var(--ds-orange-vif) !important;color:#fff !important;border-color:var(--ds-orange-vif) !important;box-shadow:none !important;transform:none !important}
html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__suivre:active,html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__visite:active{transform:scale(.98) !important}
html body:not(#_) .ca-mb .ca-mb__suivre .ca-mb__bulle{background:transparent !important;box-shadow:none !important;color:inherit !important;width:30px;height:30px}
html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__suivre .ca-mb__ic{color:inherit}
html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__visite .ca-mb__ic{color:inherit;stroke:currentColor}
html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__suivre[aria-pressed="true"],html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__visite[aria-pressed="true"]{
  background:var(--ds-orange-vif) !important;color:#fff !important;border-color:var(--ds-orange-vif) !important;box-shadow:var(--ds-orange-halo) !important}
html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__suivre[aria-pressed="true"]:hover,html body:not(#_) .ca-mb .ca-mb__btn.ca-mb__visite[aria-pressed="true"]:hover{
  background:var(--ds-orange-fonce) !important;border-color:var(--ds-orange-fonce) !important;color:#fff !important;box-shadow:none !important}
html body:not(#_) .ca-mb .ca-mb__suivre[aria-pressed="true"] .ca-mb__bulle,html body:not(#_) .ca-mb .ca-mb__suivre[aria-pressed="true"]:hover .ca-mb__bulle{background:transparent !important;color:#fff !important}
/* J'ai hâte : même logique, mais cœur et ambiance rouges conservés */
html body:not(#_) .ca-hate{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px !important;background:#fff !important;color:var(--ds-rouge-hate) !important;border:1.5px solid var(--ds-rouge-hate) !important;border-radius:var(--ds-r-m,14px) !important;box-shadow:none !important;font:700 16px 'Barlow',system-ui,sans-serif !important;transform:none !important;transition:background .18s,color .18s,border-color .18s}
html body:not(#_) .ca-hate:hover{background:var(--ds-rouge-hate) !important;color:#fff !important;border-color:var(--ds-rouge-hate) !important;box-shadow:none !important}
html body:not(#_) .ca-hate .ca-hate__txt{color:inherit !important}
html body:not(#_) .ca-hate .ca-hate__coeur{color:var(--ds-rouge-hate) !important}
html body:not(#_) .ca-hate:hover .ca-hate__coeur{color:#fff !important}
html body:not(#_) .ca-hate.is-vote{background:var(--ds-rouge-hate) !important;border-color:var(--ds-rouge-hate) !important;color:#fff !important;box-shadow:var(--ds-rouge-hate-halo) !important}
html body:not(#_) .ca-hate.is-vote .ca-hate__coeur{color:#fff !important}
html body:not(#_) .ca-hate.is-vote:hover{background:#C9231E !important;border-color:#C9231E !important;box-shadow:none !important}
/* icônes Agenda / Partager */
html body:not(#_) .pj-nav-suivre :is(.ca-act__btn--ico,[data-menu]):hover{box-shadow:none !important}
html body:not(#_) .pj-nav-suivre :is(.ca-act__btn--ico,[data-menu]):active,html body:not(#_) .pj-nav-suivre :is(.ca-act__btn--ico,[data-menu])[aria-expanded="true"]{background:var(--ds-orange-vif) !important;border-color:var(--ds-orange-vif) !important;color:#fff !important;box-shadow:var(--ds-orange-halo) !important}
html body:not(#_) .ca-pj-desc__plus:active,html body:not(#_) .ca-me__btn--clair:active{background:var(--ds-orange-vif) !important;border-color:var(--ds-orange-vif) !important;color:#fff !important;box-shadow:var(--ds-orange-halo) !important}

/* pastille « à venir » : le lien reprend exactement l'aspect des autres pastilles */
.ca-h3__stat-a{display:contents;color:inherit;text-decoration:none}
.ca-h3__stat--lien:hover{background:rgba(255,255,255,.2)}
html body .ca-h3__chiffres .ca-h3__stat-a,html body .ca-h3__chiffres .ca-h3__stat-a:hover{color:inherit!important;text-decoration:none!important}

/* Vidéos de l'accueil : version claire (le fond bleu pesait trop à côté du pied de page bleu) */
html body .ca-videos.ca-videos--v2{background:#fff!important;background-image:none!important;border:1px solid #E1E7F2!important;box-shadow:0 10px 28px rgba(18,74,158,.07)!important}
html body .ca-videos--v2 .ca-videos__grain{display:none!important}
html body .ca-videos--v2 .ca-videos__titre,html body .ca-videos--v2 .ca-videos__titre span{color:#0B2B66!important}
html body .ca-videos--v2 .ca-videos__sous{color:#51607C!important}
html body .ca-videos--v2 .ca-videos__voir{color:#124A9E!important}
html body .ca-videos--v2 .ca-videos__voir:hover{color:#0B2B66!important}
html body .ca-videos--v2 .ca-videos__legende{color:#0B2B66!important;text-shadow:none!important}
html body .ca-videos--v2 .ca-videos__fleche{background:#fff!important;color:#124A9E!important;border:1px solid #D5DDEC!important;box-shadow:0 4px 12px rgba(18,74,158,.14)!important}
html body .ca-videos--v2 .ca-videos__item{box-shadow:0 8px 18px rgba(11,43,102,.12)}
html body:not(#_):not(#__) .ca-videos--v2 a.ca-videos__voir,html body:not(#_):not(#__) .ca-videos--v2 a.ca-videos__voir:visited{color:#124A9E!important;font-weight:700}
html body:not(#_):not(#__) .ca-videos--v2 a.ca-videos__voir:hover{color:#0B2B66!important}

/* « Bientôt dans les parcs » : date en blanc, parc dans un rectangle arrondi avec son drapeau */
html body .bt-m__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 6px}
html body .bt-m__tx small.bt-m__date{color:#fff!important;font:700 13px/1.2 "Barlow Condensed","Barlow",sans-serif;letter-spacing:.09em;text-transform:uppercase}
html body .bt-m__parc{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 7px;border-radius:10px;background:rgba(255,255,255,.95);color:#0B2B66;font:700 13.5px/1.25 "Barlow",sans-serif;max-width:100%}
html body .bt-m__parc img{display:block;width:18px;height:auto;border-radius:2px;flex:0 0 auto}

/* en-têtes de page : texte d'introduction sur toute la largeur */
html body .ca-ph p,html body .ca-ph .ca-pinfo__accroche,html body .ca-ph .ca-ag__p,html body .ca-ph .ca-m-sous{max-width:none!important}

/* plus de petits sur-titres orange au-dessus des titres de pages */
.pr-hero__sur,.casj-page__sur,.ca-rp__sur,.ca-pinfo__kicker,.ca-h3__sur{display:none!important}

/* mobile : pas de flèches ni de compteur en haut à gauche de la fenêtre d'une actu (on glisse pour changer) */
@media (max-width:820px){.ca-mnav{display:none!important}}
