/* Encart e-acte - page d'accueil (couleurs du thème : bleu #1c62b7, marine #14284b, vert #008629) */
.ea{float:left;width:100%;clear:both;position:relative;padding:56px 0 40px;color:#fff;background:linear-gradient(120deg,#14284b 0%,#1c4f93 60%,#1c62b7 100%);overflow:hidden}
/* Photo de l'hôtel communal en fond, très atténuée pour garder la lisibilité */
.ea .ea-fond{position:absolute;inset:0;background:url(../images/ea-fond-hotel-communal.jpg) center 30%/cover no-repeat;opacity:.13;filter:grayscale(1);pointer-events:none;z-index:0}
.ea:before{content:"";position:absolute;right:-120px;top:-120px;width:380px;height:380px;border-radius:50%;background:rgba(255,255,255,.06)}
.ea:after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:linear-gradient(90deg,#f77f00 0 33.3%,#fff 33.3% 66.6%,#008629 66.6% 100%)}
.ea .container{position:relative;z-index:1}
.ea-grid{display:flex;flex-wrap:wrap;align-items:center;margin:0 -15px}
.ea-texte{flex:1 1 560px;padding:0 15px}
.ea-etapes{flex:1 1 360px;padding:0 15px;margin:24px 0 0;list-style:none}
.ea-badge{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);border-radius:30px;padding:5px 14px;font-size:13px;font-weight:600;letter-spacing:.3px;margin-bottom:14px}
.ea-badge .fa{color:#ffc56b;margin-right:4px}
.ea h2{color:#fff;font-size:34px;line-height:1.25;font-weight:700;margin:0 0 14px;text-transform:none}
.ea h2 strong{color:#ffc56b}
.ea-intro{color:rgba(255,255,255,.9);font-size:17px;line-height:1.6;margin:0 0 18px;max-width:620px}
.ea-actes{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ea-actes li{background:rgba(255,255,255,.1);border-radius:6px;padding:7px 12px;font-size:14px;color:#fff}
.ea-actes .fa{color:#7fd69b;margin-right:6px}
.ea-boutons{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.ea-btn{display:inline-block;padding:14px 26px;border-radius:6px;font-size:16px;font-weight:700;text-decoration:none!important;transition:transform .15s,box-shadow .15s,background .15s}
.ea-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.25)}
.ea-btn-plein{background:#008629;color:#fff!important}
.ea-btn-plein:hover{background:#00a032}
.ea-btn-plein .fa{margin-left:8px}
.ea-btn-contour{border:2px solid #fff;color:#fff!important}
.ea-btn-contour:hover{background:#fff;color:#14284b!important}
.ea-connexion{font-size:14px;color:rgba(255,255,255,.85);margin:0}
.ea-connexion a{color:#ffc56b;text-decoration:underline}
.ea-etapes li{display:flex;align-items:flex-start;gap:14px;background:#fff;color:#14284b;border-radius:10px;padding:14px 16px;margin-bottom:10px;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.ea-etapes b{display:block;font-size:16px}
.ea-etapes small{display:block;color:#5b6577;font-size:13px;line-height:1.4;margin-top:2px}
.ea-num{flex:0 0 34px;height:34px;border-radius:50%;background:#1c62b7;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.ea-etapes .ea-url{background:transparent;box-shadow:none;color:rgba(255,255,255,.85);font-size:13px;padding:4px 2px;display:block}
.ea-etapes .ea-url a{color:#fff;font-weight:600}
.ea-faq{margin-top:28px;border-top:1px solid rgba(255,255,255,.2);padding-top:18px;display:flex;flex-wrap:wrap;gap:10px 24px}
.ea-faq h3{flex:1 1 100%;color:#fff;font-size:18px;margin:0 0 4px}
.ea-faq details{flex:1 1 420px;background:rgba(255,255,255,.08);border-radius:8px;padding:10px 14px}
.ea-faq summary{cursor:pointer;font-weight:600;font-size:15px;list-style-position:inside}
.ea-faq p{color:rgba(255,255,255,.9);font-size:14px;line-height:1.6;margin:8px 0 2px}
/* Lien e-acte dans le menu et la barre de services */
.ea-menu > a{background:#008629;color:#fff!important;font-weight:700!important;border-radius:4px;padding-left:10px!important;padding-right:10px!important}
.ea-menu > a:hover{background:#00a032}
.city_service_text.ea-service h5 a{color:#008629}
.ea-h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
@media (max-width:767px){
  .ea{padding:36px 0 30px}
  .ea h2{font-size:25px}
  .ea-intro{font-size:15px}
  .ea-btn{width:100%;text-align:center}
}

/* ---------- Carte flottante e-acte (accueil) ---------- */
.ea-promo{position:fixed;right:24px;bottom:24px;z-index:9990;width:340px;max-width:calc(100vw - 32px);display:flex;gap:12px;align-items:flex-start;
  background:#fff;color:#14284b;border-left:5px solid #008629;border-radius:10px;padding:16px 16px 14px;box-shadow:0 12px 34px rgba(20,40,75,.28);
  transform:translateY(130%);opacity:0;transition:transform .35s ease,opacity .35s ease;font-family:inherit}
.ea-promo.ea-promo-on{transform:none;opacity:1}
.ea-promo.ea-promo-on.ea-promo-cachee{transform:translateY(130%);opacity:0;pointer-events:none}
.ea-promo-x{position:absolute;top:6px;right:8px;border:0;background:none;font-size:22px;line-height:1;color:#8a93a3;cursor:pointer;padding:4px}
.ea-promo-x:hover{color:#14284b}
.ea-promo-icone{flex:0 0 40px;height:40px;border-radius:50%;background:#e8f4ec;color:#008629;display:flex;align-items:center;justify-content:center;font-size:18px}
.ea-promo-corps{flex:1;min-width:0;padding-right:14px}
.ea-promo-titre{font-weight:700;font-size:15px;line-height:1.3;margin:0 0 4px;color:#14284b}
.ea-promo-texte{font-size:13px;line-height:1.45;margin:0 0 12px;color:#5b6577}
.ea-promo-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ea-promo-btn{display:inline-block;background:#008629;color:#fff!important;font-weight:700;font-size:14px;padding:9px 16px;border-radius:6px;text-decoration:none!important}
.ea-promo-btn:hover{background:#00a032}
.ea-promo-btn .fa{margin-left:6px}
.ea-promo-court{display:none}
.ea-promo-plus-tard{border:0;background:none;color:#5b6577;font-size:13px;text-decoration:underline;cursor:pointer;padding:0}
@media (max-width:767px){
  .ea-promo{left:0;right:0;bottom:0;width:auto;max-width:none;border-radius:0;border-left:0;border-top:4px solid #008629;
    padding:10px 44px 10px 14px;align-items:center;gap:10px;box-shadow:0 -6px 20px rgba(20,40,75,.22)}
  .ea-promo-icone{flex-basis:34px;height:34px;font-size:15px}
  .ea-promo-corps{display:flex;align-items:center;gap:10px;padding-right:0}
  .ea-promo-titre{font-size:14px;margin:0;flex:1}
  .ea-promo-texte,.ea-promo-plus-tard,.ea-promo-long{display:none}
  .ea-promo-court{display:inline}
  .ea-promo-btn{padding:8px 12px;font-size:13px;white-space:nowrap}
  .ea-promo-x{top:50%;transform:translateY(-50%);right:6px}
}
@media (prefers-reduced-motion:reduce){.ea-promo{transition:none}}
.ea-promo[hidden]{display:none!important}

/* ---------- Barre de menu sur mobile (sans la recherche) ---------- */
.ea-mobile-brand{display:none}
@media (max-width:991px){
  .city_top_navigation,.city_top_navigation.sticky{padding:10px 15px!important}
  .city_top_navigation .col-md-12{display:flex;align-items:center;justify-content:space-between;min-height:44px}
  .ea-mobile-brand{display:flex;align-items:center;gap:8px;color:#fff!important;font-weight:700;font-size:16px;text-decoration:none!important;letter-spacing:.2px}
  .ea-mobile-brand img{border-radius:50%;background:#fff;padding:2px}
  .city_top_navigation .dl-menuwrapper{float:none;margin:0}
}
/* Dans le menu mobile (fond vert) : lien e-acte en blanc pour ressortir */
.dl-menuwrapper .ea-menu > a{background:#fff!important;color:#008629!important;border-radius:0;padding:10px 20px!important}

/* ---------- Barre de menu desktop : logo + nom de la mairie ---------- */
.ea-brand .ea-brand-logo{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:50%;flex:0 0 auto}
.ea-brand .ea-brand-logo img{display:block;width:100%;height:auto}
.ea-brand .ea-brand-txt{display:flex;flex-direction:column;line-height:1.1}
.ea-brand .ea-brand-txt strong{font-weight:700;color:#fff}
.ea-brand .ea-brand-txt small{font-size:11px;font-weight:400;color:rgba(255,255,255,.8);letter-spacing:.3px;margin-top:3px}
@media (min-width:992px){
  .city_top_navigation,.city_top_navigation.sticky{padding:0 40px!important}
  .city_top_navigation:before{display:none}
  .city_top_navigation.sticky{box-shadow:0 6px 18px rgba(0,0,0,.18)}
  .city_top_navigation .col-md-12{display:flex;align-items:center;min-height:78px;transition:min-height .3s ease}
  .city_top_navigation.sticky .col-md-12{min-height:66px}
  .ea-brand{display:flex!important;align-items:center;gap:12px;order:-1;flex:0 0 auto;margin-right:24px;text-decoration:none!important}
  .ea-brand .ea-brand-logo{width:50px;height:50px;padding:3px;box-shadow:0 2px 8px rgba(0,0,0,.15);transition:width .3s,height .3s}
  .city_top_navigation.sticky .ea-brand .ea-brand-logo{width:44px;height:44px}
  .ea-brand .ea-brand-txt strong{font-size:19px;letter-spacing:.2px}
  .ea-brand:hover .ea-brand-txt strong{color:#fff}
  .city_top_navigation .navigation{float:none;width:auto;margin-left:auto}
  .navigation > ul{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap}
  .navigation > ul > li{margin-right:0!important;margin-left:24px!important}
  .navigation > ul > li > a{padding:28px 0;white-space:nowrap}
  .navigation > ul > li.ea-menu > a{padding:6px 12px!important}
  .navigation ul > li > ul{top:86px}
  .navigation ul > li:hover > ul{top:76px}
  .city_top_navigation.sticky .navigation ul > li:hover > ul{top:70px}
  /* Indicateur de sous-menu */
  .navigation > ul > li.ea-sub > a:after{content:"\f107";font-family:FontAwesome;font-size:14px;margin-left:7px;display:inline-block;transition:transform .25s ease;opacity:.85}
  .navigation > ul > li.ea-sub:hover > a:after{transform:rotate(180deg)}
}
@media (min-width:992px) and (max-width:1250px){
  .city_top_navigation,.city_top_navigation.sticky{padding:0 20px!important}
  .navigation > ul > li{margin-left:14px!important}
  .navigation > ul > li > a{font-size:14px}
  .ea-brand .ea-brand-txt small{display:none}
  .ea-brand .ea-brand-txt strong{font-size:16px}
}
@media (min-width:992px) and (max-width:1120px){
  .ea-brand{margin-right:10px}
  .ea-brand .ea-brand-txt{display:none}
  .navigation > ul > li{margin-left:12px!important}
  .navigation > ul > li > a{font-size:13px}
  .navigation > ul > li.ea-menu > a{padding:5px 8px!important}
  .navigation > ul > li.ea-sub > a:after{margin-left:4px}
}
@media (max-width:991px){
  .ea-brand .ea-brand-logo{width:34px;height:34px;padding:3px}
  .ea-brand .ea-brand-txt strong{font-size:16px}
  .ea-brand .ea-brand-txt small{display:none}
}

/* ---------- Actualités (accueil) : cartes de même taille ---------- */
.ea-news{display:flex;flex-wrap:wrap}
.ea-news > [class*="col-"]{display:flex;float:none;margin-bottom:24px;position:relative}
.ea-news > [class*="col-"] > .city_blog_fig:not(.position){display:flex;flex-direction:column;width:100%!important;float:none;height:100%}
.ea-news .city_blog_fig.position{position:absolute;top:0;bottom:0;left:15px;right:15px;margin:0!important;width:auto!important;display:flex;flex-direction:column}
.ea-news .city_blog_fig.position .city_blog_text{flex:1 1 auto;display:flex;flex-direction:column}
.ea-news .city_blog_fig.position .city_blog_social{margin-top:auto}
.ea-news .city_blog_fig figure,.ea-news .city_blog_text{width:100%!important}
.ea-news .city_blog_fig figure{height:240px;overflow:hidden;flex:0 0 auto}
.ea-news .city_blog_fig figure img{width:100%;height:100%;object-fit:cover;display:block}
.ea-news .city_blog_fig:not(.position) .city_blog_text{display:flex;flex-direction:column;flex:1 1 auto}
.ea-news .city_blog_text h5,.ea-news .city_blog_text h4{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.ea-news .city_blog_text p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:4.5em}
.ea-news .city_blog_fig:not(.position) .city_blog_social{margin-top:auto}
.ea-news-more{text-align:center;margin:6px 0 10px;float:left;width:100%}
.ea-news-more .theam_btn i{margin-left:6px}
@media (max-width:767px){.ea-news .city_blog_fig figure{height:210px}}

/* ---------- Bande services (ruban vert) : logo parfaitement centré ---------- */
@media (min-width:992px){
  .city_office_list{display:flex!important;align-items:center;justify-content:space-between;padding:40px 60px!important;margin:0 auto!important}
  .city_office_list > .city_office_text{flex:1 1 0;float:none!important;min-width:0}
  .city_office_list > .city_office_text.pull_right{text-align:right}
  .city_office_list > .city_office_logo{flex:0 0 220px;width:220px!important;padding:0!important;float:none!important;align-self:stretch;margin:0 30px}
  .city_office_list > .city_office_logo a{width:220px!important;height:220px!important;top:50%!important;bottom:auto!important;left:0!important;right:0!important;transform:translateY(-50%)}
  .city_office_list > .city_office_logo img{width:100%;height:auto}
}

/* ---------- Galerie des actualités (detail_news.php) ---------- */
#myGallery .item{position:relative;background:#000}
#myGallery .item img{max-height:75vh;object-fit:contain;margin:0 auto}
#myGallery .carousel-control{width:12%;display:flex;align-items:center;justify-content:center;font-size:26px;background:none!important;opacity:.85;text-shadow:0 1px 4px rgba(0,0,0,.7)}
#myGallery .carousel-control:hover{opacity:1}
.ea-galerie-num{position:absolute;right:10px;bottom:10px;background:rgba(0,0,0,.6);color:#fff;font-size:12px;line-height:1;padding:5px 9px;border-radius:12px}
