:root{
  --im-yellow:#e8aa00;
  --im-primary:#e8aa00;
  --im-ink:#202020;
  --im-soft:#f6f4ee;
  --im-line:#e7e4dc;
  --im-muted:#737373;
  --im-alert-bg:#e8aa00;
  --im-alert-text:#202020;
  --im-radius:16px;
  --im-button-radius:10px;
  --im-search-radius:18px;
  --im-card-shadow:0 6px 24px rgba(0,0,0,.06);
  --im-alert-height:0px
}

/* Base */
.im-mairie-cards{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:26px}
.im-mairie-card{background:#fff;border:1px solid var(--im-line);border-radius:var(--im-radius);overflow:hidden;box-shadow:var(--im-card-shadow);display:flex;flex-direction:column;min-width:0;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.im-mairie-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--im-primary) 34%,var(--im-line))}
.im-card-image{display:block;aspect-ratio:3/2;overflow:hidden;background:var(--im-soft)}
.im-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.im-card-image:hover img,.im-mairie-card:hover .im-card-image img{transform:scale(1.035)}
.im-card-image-placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#f4f1e8,#e9e5da);color:color-mix(in srgb,var(--im-primary) 60%,#202020);font-size:34px;font-weight:900;letter-spacing:-.08em}
.im-card-body{padding:21px 22px 22px;display:flex;flex-direction:column;flex:1}
.im-card-body h3,.im-event-copy h3{font-size:22px;line-height:1.2;margin:11px 0 9px;font-weight:800}
.im-card-body h3 a,.im-event-copy h3 a{color:inherit;text-decoration:none}
.im-card-body p{color:var(--im-muted)}
.im-card-excerpt{margin:0 0 12px;line-height:1.55}
.im-card-link{display:inline-flex;align-items:center;gap:8px;width:max-content;max-width:100%;margin-top:auto;padding-top:13px;text-decoration:none;font-weight:800;color:var(--im-ink)}
.im-card-link span{color:var(--im-primary);transition:transform .2s ease}
.im-card-link:hover span{transform:translateX(3px)}
.im-empty{padding:18px;background:var(--im-soft);border-radius:var(--im-radius)}

/* Domaines */
.im-domain-badges{display:flex;gap:6px;flex-wrap:wrap}
.im-domain-badges span{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 10px;background:color-mix(in srgb,var(--term) 11%,#fff);color:color-mix(in srgb,var(--term) 78%,#111);font-size:11px;font-weight:800;line-height:1.2}
.im-domain-badges b{font-size:12px}

/* Filtres communs */
.im-content-section{width:100%}
.im-section-filters{margin:0 0 28px;padding:18px 20px;border:1px solid var(--im-line);border-radius:var(--im-radius);background:#fff;box-shadow:var(--im-card-shadow)}
.im-section-filter-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px}
.im-section-filter-head strong{font-size:17px}
.im-filter-reset{border:0;background:transparent;color:var(--im-ink);font-size:13px;font-weight:750;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:4px}
.im-filter-chips{display:flex;flex-wrap:wrap;gap:8px}
.im-filter-chip{appearance:none;border:1px solid var(--im-line);background:#fff;color:var(--im-ink);border-radius:999px;padding:8px 14px;display:inline-flex;align-items:center;gap:8px;font-weight:750;cursor:pointer;transition:.18s ease}
.im-filter-chip .im-filter-icon{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--term,var(--im-primary));color:#fff;flex:0 0 28px;overflow:hidden}
.im-filter-chip .im-filter-icon img{width:16px;height:16px;display:block;object-fit:contain}
.im-filter-chip .im-filter-chip-label{display:inline-block}
.im-filter-chip:hover{border-color:color-mix(in srgb,var(--im-primary) 55%,var(--im-line))}
.im-filter-chip.is-active{background:var(--im-ink);border-color:var(--im-ink);color:#fff}
.im-filter-summary{margin-top:12px;font-size:13px;color:var(--im-muted)}
.im-filter-more-wrap{text-align:center;margin-top:28px}
.im-filter-empty{margin-top:20px;padding:18px;background:var(--im-soft);border-radius:var(--im-radius)}
.im-filter-overflow{display:none}
[hidden]{display:none!important}

/* Actualités : rendu éditorial */
.im-news-card .im-news-image{aspect-ratio:16/10}
.im-news-card .im-card-body{padding-top:18px}
.im-news-card .im-domain-badges span{background:transparent;padding:0;color:var(--im-ink);border-radius:0;text-transform:none;font-size:12px}
.im-news-card .im-domain-badges b{width:9px;height:9px;border-radius:50%;overflow:hidden;font-size:0;background:var(--term)}
.im-news-meta{font-size:12px!important;color:#898989!important;margin:0 0 11px!important;line-height:1.45}
.im-news-meta span{white-space:nowrap}
.im-news-card h3{font-size:23px;margin-top:9px}

/* Agenda */
.im-event-card{display:block}
.im-event-image{aspect-ratio:16/9}
.im-event-body{display:grid;grid-template-columns:64px minmax(0,1fr);gap:17px;padding:20px}
.im-event-date{align-self:start;text-align:center;border-right:1px solid var(--im-line);padding-right:16px;color:var(--im-ink)}
.im-event-date strong{display:block;font-size:31px;line-height:1;font-weight:900}
.im-event-date span{display:block;margin-top:5px;font-size:11px;font-weight:900;letter-spacing:.08em;color:var(--im-primary)}
.im-event-copy{min-width:0;display:flex;flex-direction:column}
.im-event-copy h3{margin:8px 0 8px}
.im-event-meta,.im-event-place{margin:0 0 7px;color:var(--im-muted);font-size:13px;line-height:1.45}
.im-event-place{font-weight:700;color:#555}

/* Pavés accueil prêts à poser dans Divi */
.im-home-block{width:100%}
.im-home-block-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:0 0 24px}
.im-home-block-head h2{margin:0;font-size:clamp(30px,3vw,48px);line-height:1;font-weight:850;letter-spacing:-.025em}
.im-home-block-head>a{display:inline-flex;align-items:center;gap:8px;color:var(--im-ink);font-weight:800;text-decoration:none;white-space:nowrap}
.im-home-block-head>a span{color:var(--im-primary)}
.im-home-news-layout{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:clamp(30px,4vw,64px);align-items:start}
.im-home-news-main,.im-home-news-side{min-width:0}
.im-home-news-side{display:grid;gap:clamp(28px,3.2vw,52px)}
.im-home-news-item{position:relative;min-width:0}
.im-home-news-visual{display:block;background:var(--im-soft);overflow:hidden;text-decoration:none}
.im-home-news-visual img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.im-home-news-item:hover .im-home-news-visual img{transform:scale(1.025)}
.im-home-news-placeholder{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(135deg,#f4f1e8,#e9e5da);font-size:44px;font-weight:900;color:color-mix(in srgb,var(--im-primary) 62%,#202020)}
.im-home-news-panel{position:relative;z-index:2;background:#fff;box-shadow:var(--im-card-shadow)}
.im-home-news-panel h3{margin:0;font-weight:800;letter-spacing:-.025em;line-height:1.16}
.im-home-news-panel h3 a{color:var(--im-ink);text-decoration:none}
.im-home-news-panel .im-domain-badges{position:absolute;left:0;top:0;transform:translateY(-50%);z-index:3}
.im-home-news-panel .im-domain-badges span{border-radius:0;padding:5px 10px;color:#fff;background:var(--term,var(--im-primary));font-size:11px;font-weight:850;letter-spacing:.025em;text-transform:uppercase;box-shadow:none}
.im-home-news-panel .im-domain-badges b{display:none}
.im-home-news-meta{margin:17px 0 0!important;color:#245267!important;font-size:12px!important;line-height:1.45}
.im-home-news-meta span{white-space:nowrap}
.im-home-news-clock{display:inline-block;color:var(--im-primary);font-size:18px;vertical-align:-1px;margin-right:4px}
.im-home-news-primary{padding-bottom:58px}
.im-home-news-primary .im-home-news-visual{aspect-ratio:1.22/1}
.im-home-news-primary .im-home-news-panel{width:min(76%,660px);margin:-34px 0 0 28px;padding:35px 34px 25px}
.im-home-news-primary .im-home-news-panel h3{font-size:clamp(28px,3vw,48px)}
.im-home-news-secondary{display:grid;grid-template-columns:minmax(220px,.58fr) minmax(0,.82fr);align-items:center;padding-right:18px}
.im-home-news-secondary .im-home-news-visual{aspect-ratio:1.55/1}
.im-home-news-secondary .im-home-news-panel{margin-left:-72px;padding:31px 28px 25px;min-height:132px}
.im-home-news-secondary .im-home-news-panel h3{font-size:clamp(20px,1.7vw,29px)}
.im-home-agenda-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.im-home-agenda-grid .im-event-card{height:100%}

/* Alerte automatique au-dessus du header Divi */
.im-global-alert{position:relative;z-index:100000;background:var(--im-alert-bg);color:var(--im-alert-text);width:100%;transition:opacity .2s ease,transform .2s ease;overflow:hidden}
.im-global-alert-stage{position:relative;width:100%}
.im-global-alert-slide{width:100%;background:var(--im-alert-bg);color:var(--im-alert-text)}
.im-global-alert-slide[hidden]{display:none!important}
.im-global-alert-slide.is-active{display:block}
.im-global-alert-count{font-size:12px;font-weight:850;opacity:.72;white-space:nowrap}
.im-global-alert.is-closing{opacity:0;transform:translateY(-8px)}
.im-global-alert-inner{max-width:1500px;margin:0 auto;min-height:54px;padding:9px 22px;display:flex;align-items:center;gap:13px}
.im-global-alert-icon{width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:grid;place-items:center;background:var(--im-alert-text);color:var(--im-alert-bg);font-weight:900;font-size:16px}
.im-global-alert-copy{display:flex;align-items:center;gap:12px;min-width:0;flex:1;line-height:1.25}
.im-global-alert-copy strong{font-size:15px;white-space:nowrap}
.im-global-alert-copy>span{opacity:.88;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.im-global-alert-more{appearance:none;border:0;background:transparent;color:inherit;font:inherit;font-weight:850;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;padding:4px 0;cursor:pointer}
.im-global-alert-close{width:36px;height:36px;flex:0 0 36px;border:0;background:transparent;color:inherit;font-size:29px;line-height:1;cursor:pointer;border-radius:var(--im-button-radius)}
.im-global-alert-close:hover,.im-global-alert-close:focus-visible,.im-global-alert-more:hover,.im-global-alert-more:focus-visible{background:color-mix(in srgb,var(--im-alert-text) 10%,transparent)}
.im-global-alert-details{border-top:1px solid color-mix(in srgb,var(--im-alert-text) 15%,transparent)}
.im-global-alert-details-inner{max-width:1500px;margin:0 auto;padding:16px 22px 19px;font-size:14px;line-height:1.6}
.im-global-alert-details-inner p{margin:0 0 9px}
.im-global-alert-details-inner p:last-child{margin-bottom:0}
.im-global-alert-external{color:inherit;font-weight:850;text-decoration:underline;text-underline-offset:3px}

.im-home-alert-rotator{position:relative;width:100%;overflow:hidden;border-radius:0 0 calc(var(--im-radius) + 8px) calc(var(--im-radius) + 8px);box-shadow:0 14px 34px rgba(12,25,39,.05)}
.im-home-alert-stage{position:relative;width:100%}
.im-home-alert-slide{position:relative;width:100%;overflow:hidden;border:1px solid rgba(31,45,61,.08);background:linear-gradient(135deg,#f8f8f5 0%,#fff 100%);transition:opacity .28s ease,transform .28s ease}
.im-home-alert-slide[hidden]{display:none!important}
.im-home-alert-slide.is-active{display:block}
.im-home-alert-slide:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--im-alert-accent,#64748b)}
.im-home-alert-slide:after{content:"";position:absolute;right:-70px;top:-70px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--im-alert-accent,#64748b) 11%,#fff) 0%,rgba(255,255,255,0) 70%);pointer-events:none}
.im-home-alert-slide.im-alert-info,
.im-home-alert-slide.im-alert-attention,
.im-home-alert-slide.im-alert-urgent{--im-alert-accent:var(--im-alert-bg);background:linear-gradient(135deg,color-mix(in srgb,var(--im-alert-bg) 9%,#fff) 0%,#fff 72%)}
.im-home-alert-inner{min-height:108px;display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:18px;align-items:center;padding:22px 28px 22px 30px;position:relative;z-index:1}
.im-home-alert-slide .im-alert-icon{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;background:var(--im-alert-accent);color:#fff;box-shadow:0 10px 24px color-mix(in srgb,var(--im-alert-accent) 25%,transparent)}
.im-home-alert-slide.im-alert-info .im-alert-icon,
.im-home-alert-slide.im-alert-attention .im-alert-icon,
.im-home-alert-slide.im-alert-urgent .im-alert-icon{background:linear-gradient(135deg,var(--im-alert-bg),color-mix(in srgb,var(--im-alert-bg) 76%,#000));color:var(--im-alert-text)}
.im-home-alert-copy{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px}
.im-home-alert-copy strong{font-size:20px;line-height:1.15;color:#1f2d3d;white-space:nowrap;letter-spacing:-.01em}
.im-home-alert-summary{font-size:15px;line-height:1.5;color:#5b6773;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.im-home-alert-link{display:inline-flex;align-items:center;gap:8px;color:#1f2d3d;text-decoration:none;font-weight:800;white-space:nowrap;padding:10px 14px;border-radius:999px;background:#fff;border:1px solid color-mix(in srgb,var(--im-alert-accent) 22%,#e6e6e2);transition:transform .18s ease,border-color .18s ease,color .18s ease}
.im-home-alert-link span{color:var(--im-alert-accent)}
.im-home-alert-link:hover{transform:translateX(2px);border-color:var(--im-alert-accent);color:var(--im-alert-accent)}
.im-home-alert-count{font-size:12px;font-weight:850;color:#66717d;white-space:nowrap}
@media (max-width:980px){
  .im-home-alert-inner{grid-template-columns:52px minmax(0,1fr) auto;padding:18px 20px 18px 24px;gap:14px;min-height:96px}
  .im-home-alert-slide .im-alert-icon{width:46px;height:46px;border-radius:15px}
  .im-home-alert-copy{grid-template-columns:1fr auto;gap:7px 12px}
  .im-home-alert-copy strong{font-size:18px}
  .im-home-alert-summary{grid-column:1 / -1;font-size:14px}
  .im-home-alert-link{grid-column:2;grid-row:1 / span 2;font-size:14px;padding:8px 12px}
}
@media (max-width:640px){
  .im-home-alert-rotator{border-radius:0 0 18px 18px}
  .im-home-alert-inner{grid-template-columns:44px minmax(0,1fr);padding:16px 16px 16px 20px;gap:12px;min-height:88px}
  .im-home-alert-slide .im-alert-icon{width:42px;height:42px;border-radius:13px}
  .im-home-alert-copy{display:block}
  .im-home-alert-copy strong{font-size:17px;white-space:normal;display:block;margin-bottom:4px}
  .im-home-alert-summary{font-size:13px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .im-home-alert-link{display:inline-flex;margin-top:8px;font-size:13px;padding:7px 10px}
  .im-home-alert-count{position:absolute;right:14px;top:12px}
}

/* Recherche */
.im-search-bubble-wrap{display:flex;justify-content:flex-end;position:relative;max-width:900px;margin-left:auto}
.im-mairie-search{display:flex;align-items:center;justify-content:flex-end;position:relative;overflow:visible;background:transparent;border:0;box-shadow:none;max-width:none;width:auto}
.im-search-trigger,.im-search-submit{appearance:none;-webkit-appearance:none;border:0;outline:0;display:grid;place-items:center;cursor:pointer;color:var(--im-search-bubble,var(--im-primary));background:#fff;box-shadow:0 10px 26px rgba(0,0,0,.12);transition:transform .22s ease,box-shadow .22s ease,background .22s ease,color .22s ease}
.im-search-trigger{width:58px;height:58px;flex:0 0 58px;border-radius:50%;position:relative;z-index:3}
.im-search-trigger:before{content:"";position:absolute;inset:-6px;border-radius:50%;border:1px solid color-mix(in srgb,var(--im-search-bubble,var(--im-primary)) 45%,transparent);opacity:0;transform:scale(.82);transition:opacity .22s ease,transform .22s ease}
.im-search-trigger:hover,.im-search-trigger:focus-visible{transform:translateY(-2px) scale(1.02);box-shadow:0 14px 30px rgba(0,0,0,.16)}
.im-search-trigger:hover:before,.im-search-trigger:focus-visible:before{opacity:1;transform:scale(1)}
.im-search-trigger svg,.im-search-submit svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.im-search-trigger-open,.im-search-trigger-close{display:grid;place-items:center;position:absolute;inset:0;transition:opacity .18s ease,transform .22s ease}
.im-search-trigger-close{opacity:0;transform:rotate(-75deg) scale(.72)}
.im-search-bubble-wrap.is-open .im-search-trigger-open{opacity:0;transform:rotate(75deg) scale(.72)}
.im-search-bubble-wrap.is-open .im-search-trigger-close{opacity:1;transform:rotate(0) scale(1)}
.im-search-panel{display:flex;align-items:center;position:absolute;right:68px;top:50%;transform:translateY(-50%) translateX(16px) scale(.98);transform-origin:right center;width:min(520px,calc(100vw - 110px));height:50px;background:#fff;border:1px solid rgba(32,32,32,.10);border-radius:999px;box-shadow:0 14px 34px rgba(0,0,0,.12);opacity:0;visibility:hidden;pointer-events:none;overflow:hidden;transition:opacity .2s ease,transform .22s ease,visibility .2s ease}
.im-search-panel:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.75);pointer-events:none}
.im-search-bubble-wrap:not(.is-manually-closed):hover .im-search-panel,.im-search-bubble-wrap:not(.is-manually-closed):focus-within .im-search-panel,.im-search-bubble-wrap.is-open .im-search-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(-50%) translateX(0) scale(1)}
.im-search-panel input{appearance:none;-webkit-appearance:none;flex:1;min-width:0;height:48px;border:0!important;outline:0!important;box-shadow:none!important;border-radius:999px 0 0 999px!important;background:#fff;color:#202020;font-size:16px;line-height:1.2;padding:0 18px 0 22px}
.im-search-panel input::placeholder{color:#7d7d7d;opacity:1}
.im-search-submit{width:50px;height:50px;flex:0 0 50px;border-radius:50%;box-shadow:none;background:#fff;color:var(--im-search-bubble,var(--im-primary));position:relative;z-index:2}
.im-search-submit:hover,.im-search-submit:focus-visible{transform:scale(.95);background:color-mix(in srgb,var(--im-search-bubble,var(--im-primary)) 8%,#fff);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--im-search-bubble,var(--im-primary)) 22%,transparent)}
.im-search-bubble-wrap.is-open .im-search-trigger{transform:scale(1.02)}
.im-search-results{margin-top:22px;display:grid;gap:12px}
.im-search-results>h3{margin:0 0 4px}
.im-search-result{background:#fff;border:1px solid var(--im-line);border-radius:var(--im-radius);padding:15px 18px;box-shadow:var(--im-card-shadow);overflow:hidden}
.im-search-result.has-image{display:grid;grid-template-columns:170px minmax(0,1fr);gap:18px;padding:0}
.im-search-result-image{display:block;min-height:124px;overflow:hidden}
.im-search-result-image img{display:block;width:100%;height:100%;min-height:124px;object-fit:cover}
.im-search-result-copy{padding:0}
.im-search-result.has-image .im-search-result-copy{padding:17px 18px 17px 0}
.im-search-type{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#8a8a8a}
.im-search-results h4{margin:4px 0;font-size:19px}
.im-search-results h4 a{text-decoration:none;color:inherit}
.im-search-results p{margin:5px 0;color:#707070}

/* Boutons */
.im-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:var(--im-primary);color:#202020;font-weight:800;border:0;border-radius:var(--im-button-radius);padding:10px 14px;transition:transform .15s ease,filter .15s ease;cursor:pointer}
.im-button:hover{transform:translateY(-1px);filter:brightness(.97)}
.im-button-secondary{background:#fff;border:1px solid var(--im-line);color:var(--im-ink)}

/* Cantine */
.im-canteen-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.im-canteen-card{background:#fff;border:1px solid var(--im-line);border-radius:var(--im-radius);overflow:hidden;box-shadow:var(--im-card-shadow);position:relative}
.im-canteen-card.is-current{border-color:color-mix(in srgb,var(--im-primary) 65%,var(--im-line))}
.im-canteen-image{aspect-ratio:16/9;background:var(--im-soft);overflow:hidden}
.im-canteen-image img{width:100%;height:100%;object-fit:cover;display:block}
.im-canteen-body{padding:20px}
.im-canteen-current{display:inline-flex;background:var(--im-primary);color:#202020;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}
.im-canteen-period{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#777;font-weight:800}
.im-canteen-card h3{font-size:21px;margin:7px 0 5px}
.im-canteen-school{font-weight:700;color:#555}
.im-canteen-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}

/* Carte */
.im-map-wrap{width:100%}
.im-map-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.im-map-filters button{border:1px solid #dedbd2;background:#fff;border-radius:999px;padding:8px 13px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-weight:700}
.im-map-filters button .im-filter-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--term,#202020);color:#fff;flex:0 0 28px;overflow:hidden}
.im-map-filters button .im-filter-icon img{width:16px;height:16px;display:block;object-fit:contain}
.im-map-filters button .im-map-filter-label{display:inline-block}
.im-map-filters button.is-active{background:#202020;color:#fff;border-color:#202020}
.im-map{width:100%;min-height:360px;border-radius:var(--im-radius);overflow:hidden;background:#e9e8e3}
.im-map-empty{margin-top:8px;color:#777}
.im-leaflet-marker{width:38px;height:38px!important;border-radius:50% 50% 50% 10%;transform:rotate(-45deg);display:grid;place-items:center;border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.28)}
.im-leaflet-marker span{transform:rotate(45deg);font-size:16px;line-height:1;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.12)}
.im-leaflet-marker svg,.im-leaflet-marker img{transform:rotate(45deg);display:block;width:16px;height:16px;object-fit:contain;filter:brightness(0) invert(1)}
.im-leaflet-marker svg{width:16px;height:16px;color:#fff;fill:currentColor;stroke:currentColor}
.im-popup{min-width:180px}
.im-popup small{display:block;color:#777;margin-bottom:3px}
.im-popup strong{font-size:16px}
.im-popup p{margin:7px 0}
.im-popup a{font-weight:700;text-decoration:none}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:1200px){
  .im-home-news-layout{grid-template-columns:1fr;gap:38px}
  .im-home-news-primary{padding-bottom:0}
  .im-home-news-primary .im-home-news-visual{aspect-ratio:16/10}
  .im-home-news-primary .im-home-news-panel{width:82%;margin:-34px 0 0 22px}
  .im-home-news-side{gap:32px}
}
@media(max-width:980px){
  .im-mairie-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .im-canteen-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .im-home-agenda-grid{grid-template-columns:1fr}
  .im-global-alert-copy{display:block}
  .im-global-alert-copy strong,.im-global-alert-copy>span,.im-global-alert-copy .im-global-alert-more{display:inline;white-space:normal}
  .im-global-alert-copy>span:before{content:" — "}
  .im-global-alert-more{margin-left:8px}
}
@media(max-width:600px){
  .im-mairie-cards,.im-canteen-grid{grid-template-columns:1fr}
  .im-home-news-primary .im-home-news-panel{width:calc(100% - 24px);margin:-24px 0 0 12px;padding:30px 22px 22px}
  .im-home-news-secondary{grid-template-columns:1fr;padding-right:0}
  .im-home-news-secondary .im-home-news-visual{aspect-ratio:16/9}
  .im-home-news-secondary .im-home-news-panel{margin:-22px 12px 0;padding:29px 20px 21px;min-height:0}
  .im-home-block-head{align-items:flex-start;flex-direction:column;gap:10px}
  .im-section-filters{padding:15px}
  .im-filter-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
  .im-filter-chip{white-space:nowrap}
  .im-search-result.has-image{grid-template-columns:100px minmax(0,1fr);gap:12px}
  .im-search-result-image,.im-search-result-image img{min-height:100px}
  .im-search-result.has-image .im-search-result-copy{padding:12px 12px 12px 0}
  .im-search-results p{display:none}
  .im-map-filters{flex-wrap:nowrap;overflow:auto;padding-bottom:5px}
  .im-map-filters button{white-space:nowrap}
  .im-global-alert-inner{padding:8px 12px;gap:9px;align-items:flex-start}
  .im-global-alert-icon{margin-top:2px}
  .im-global-alert-copy{font-size:13px}
  .im-global-alert-copy strong{font-size:14px}
  .im-global-alert-details-inner{padding:14px 12px 17px}
  .im-event-body{grid-template-columns:55px minmax(0,1fr);padding:17px;gap:13px}
  .im-event-date{padding-right:12px}
  .im-event-date strong{font-size:27px}
}


/* Menu accueil À la une */
.im-home-menu{width:100%;background:var(--im-primary);color:#fff;overflow:hidden;border-radius:var(--im-radius)}
.im-home-menu.im-home-menu-profile{background:var(--im-profile-button,var(--im-primary));color:var(--im-profile-text,#fff)}
.im-home-menu-grid{display:grid;grid-template-columns:repeat(var(--im-home-menu-cols,6),minmax(0,1fr));align-items:stretch}
.im-home-menu-item{min-height:132px;padding:22px 14px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff!important;text-decoration:none!important;text-align:center;border-right:1px solid rgba(255,255,255,.35);transition:background .22s ease,transform .22s ease,box-shadow .22s ease;position:relative;z-index:1;will-change:transform}
.im-home-menu-profile .im-home-menu-item{color:var(--im-profile-text,#fff)!important;border-right-color:color-mix(in srgb,var(--im-profile-text,#fff) 35%,transparent)}
.im-home-menu-item:last-child{border-right:0}
.im-home-menu-item:hover,.im-home-menu-item:focus-visible{background:rgba(255,255,255,.12);color:#fff!important;transform:translateY(-8px);box-shadow:0 14px 26px rgba(0,0,0,.14);z-index:3}
.im-home-menu-profile .im-home-menu-item:hover,.im-home-menu-profile .im-home-menu-item:focus-visible{background:color-mix(in srgb,var(--im-profile-text,#fff) 12%,transparent);color:var(--im-profile-text,#fff)!important;transform:translateY(-8px);box-shadow:0 14px 26px rgba(0,0,0,.14);z-index:3}
.im-home-menu-icon-wrap{width:48px;height:48px;display:grid;place-items:center}
.im-home-menu-icon{width:43px;height:43px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;transition:transform .22s ease}.im-home-menu-item:hover .im-home-menu-icon,.im-home-menu-item:focus-visible .im-home-menu-icon{transform:translateY(-2px) scale(1.06)}
.im-home-menu-label{font-size:14px;font-weight:800;line-height:1.35;letter-spacing:.09em;text-transform:uppercase;max-width:145px}
@media(max-width:980px){.im-home-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.im-home-menu-item{border-bottom:1px solid rgba(255,255,255,.28)}.im-home-menu-profile .im-home-menu-item{border-bottom-color:color-mix(in srgb,var(--im-profile-text,#fff) 28%,transparent)}}
@media(max-width:600px){.im-home-menu{border-radius:0}.im-home-menu-grid{display:flex;overflow-x:auto;scroll-snap-type:x proximity}.im-home-menu-item{min-width:145px;min-height:112px;padding:16px 10px;scroll-snap-align:start}.im-home-menu-icon{width:36px;height:36px}.im-home-menu-label{font-size:12px}}

/* Icônes d'alertes selon niveau */
.im-alert-level-icon svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.im-alert-level-icon-urgent svg{fill:currentColor;stroke:none}
.im-alert .im-alert-icon{display:grid;place-items:center}
.im-alert .im-alert-icon svg{width:19px;height:19px}


/* Agenda accueil — fidèle au cross-slider de référence */
.im-cross-slider{position:relative;margin:54px 0 70px;min-height:720px;overflow:hidden;padding:0}
.im-cross-slider-bg{position:absolute;left:0;top:0;bottom:0;width:68%;background:#f7f7f6;border-radius:28px;z-index:0}
.im-cross-slider-wrapper{position:relative;z-index:1;display:grid;grid-template-columns:42% 58%;min-height:720px;align-items:center}
.im-cross-slider-detail{padding:72px 48px 68px 70px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
.im-cross-slider-detail h2{margin:0;color:#202d3a;font-size:clamp(38px,3.5vw,50px);line-height:1.02;letter-spacing:-.03em;font-weight:800;max-width:15ch}
.im-cross-slider-bar{display:block;width:74px;height:7px;background:var(--im-primary);border-radius:999px;margin:22px 0 34px 4px;transform:none}
.im-cross-slider-link{display:inline-flex;align-items:center;gap:18px;color:#202d3a;text-decoration:none;font-size:18px;font-weight:850;background:#fff;padding:18px 26px;border-radius:999px;box-shadow:0 10px 28px rgba(0,0,0,.035)}
.im-cross-slider-link i{font-style:normal;color:var(--im-primary);font-size:24px;line-height:1}
.im-cross-slider-slider{min-width:0;padding:56px 0 0}
.im-cross-slider-viewport{overflow:hidden;margin-left:-70px;padding:0 0 8px}
.im-cross-slider-track{display:flex;gap:22px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;padding-right:26px}
.im-cross-slider-track::-webkit-scrollbar{display:none}
.im-home-agenda-slide{flex:0 0 405px;width:405px;scroll-snap-align:start}
.im-home-agenda-card{position:relative;background:#080808;border-radius:26px;overflow:hidden;color:#fff;box-shadow:0 18px 38px rgba(0,0,0,.14)}
.im-home-agenda-card-link{display:block;color:inherit;text-decoration:none}
.im-home-agenda-card article{position:relative;min-height:560px;background:#080808}
.im-home-agenda-flag{position:absolute;z-index:4;top:0;left:24px;background:var(--im-primary);color:#fff;box-shadow:0 8px 18px rgba(0,0,0,.12)}
.im-home-agenda-flag ul{display:flex!important;list-style:none!important;margin:0!important;padding:0!important}
.im-home-agenda-flag li{min-width:72px;padding:14px 14px 12px;text-align:center;position:relative}
.im-home-agenda-flag li+li:before{content:"›";position:absolute;left:-5px;top:23px;font-size:20px;font-weight:700;opacity:.8}
.im-home-agenda-flag-day{font-size:21px;line-height:1;font-weight:900;letter-spacing:-.02em}
.im-home-agenda-flag-month{margin-top:8px;font-size:12px;line-height:1;font-weight:850;letter-spacing:.03em}
.im-home-agenda-img{height:340px;background:#1a1a1a;overflow:hidden}
.im-home-agenda-img img{width:100%;height:100%;object-fit:cover;display:block}
.im-home-agenda-img-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#3c3c3c,#171717);font-weight:900;font-size:32px}
.im-home-agenda-body{min-height:220px;padding:28px 28px 30px;background:#080808;color:#fff}
.im-home-agenda-type{margin-bottom:15px}
.im-home-agenda-type span{display:inline-block;padding:6px 10px;background:var(--term,var(--im-primary));color:#fff;font-size:12px;line-height:1;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.im-home-agenda-title h3{margin:0 0 10px;color:#fff;font-size:27px;line-height:1.12;font-weight:850}
.im-home-agenda-subtitle{font-size:15px;line-height:1.4;font-weight:700;color:#fff;margin-bottom:18px}
.im-home-agenda-date{font-size:14px;line-height:1.45;color:rgba(255,255,255,.96)}
.im-home-agenda-date strong{font-weight:850;color:#fff}
.im-cross-slider-footer{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-left:-70px;padding:34px 22px 0 0}
.im-cross-slider-pagination{display:flex;align-items:center;gap:0;height:6px;flex:1;max-width:430px;background:#d7d7d7;border-radius:999px;overflow:hidden}
.im-cross-slider-pagination button{appearance:none;border:0;margin:0;padding:0;height:100%;flex:1;background:transparent;cursor:pointer;position:relative}
.im-cross-slider-pagination button:after{content:"";position:absolute;inset:0;background:transparent;transition:background .2s ease}
.im-cross-slider-pagination button.is-active:after{background:var(--im-primary)}
.im-cross-slider-navigation{display:flex;align-items:center;justify-content:center;gap:16px}
.im-cross-slider-navigation button{appearance:none;border:0;width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--im-primary);color:#fff;cursor:pointer;line-height:1;padding:0;transition:opacity .18s ease,transform .18s ease;box-shadow:none}
.im-cross-slider-navigation button svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.im-cross-slider-navigation button:hover{transform:translateY(-2px)}
.im-cross-slider-navigation button[disabled]{opacity:.35;cursor:default;transform:none}
@media(max-width:1250px){
  .im-cross-slider-bg{width:72%}
  .im-cross-slider-wrapper{grid-template-columns:38% 62%}
  .im-cross-slider-detail{padding-left:44px;padding-right:28px}
  .im-cross-slider-detail h2{font-size:clamp(36px,4vw,50px)}
  .im-home-agenda-slide{flex-basis:360px;width:360px}
  .im-home-agenda-img{height:310px}
}
@media(max-width:980px){
  .im-cross-slider{min-height:0;margin:32px 0 50px;overflow:visible}
  .im-cross-slider-bg{position:absolute;width:100%;height:310px;bottom:auto;border-radius:22px}
  .im-cross-slider-wrapper{display:block;min-height:0}
  .im-cross-slider-detail{padding:38px 26px 32px}
  .im-cross-slider-detail h2{font-size:clamp(32px,8vw,44px);max-width:9ch}
  .im-cross-slider-bar{margin:16px 0 24px 4px}
  .im-cross-slider-slider{padding:0 0 0 22px}
  .im-cross-slider-viewport{margin-left:0;overflow:hidden}
  .im-cross-slider-footer{margin-left:0;padding:24px 18px 0 0}
  .im-home-agenda-slide{flex-basis:320px;width:320px}
  .im-home-agenda-card article{min-height:500px}
  .im-home-agenda-img{height:290px}
  .im-home-agenda-body{min-height:210px;padding:24px}
  .im-cross-slider-navigation button{width:48px;height:48px}
}
@media(max-width:640px){
  .im-cross-slider-bg{height:285px}
  .im-cross-slider-detail{padding:30px 20px 26px}
  .im-cross-slider-detail h2{font-size:clamp(30px,9vw,40px)}
  .im-cross-slider-link{font-size:15px;padding:14px 18px}
  .im-cross-slider-slider{padding-left:18px}
  .im-home-agenda-slide{flex-basis:280px;width:280px}
  .im-home-agenda-card{border-radius:20px}
  .im-home-agenda-card article{min-height:455px}
  .im-home-agenda-img{height:255px}
  .im-home-agenda-body{min-height:200px;padding:22px 20px}
  .im-home-agenda-title h3{font-size:24px}
  .im-home-agenda-flag{left:18px}
  .im-home-agenda-flag li{min-width:62px;padding:12px 12px 10px}
  .im-home-agenda-flag-day{font-size:18px}
  .im-home-agenda-flag-month{font-size:11px;margin-top:6px}
  .im-cross-slider-footer{display:grid;grid-template-columns:1fr auto;gap:16px;padding-top:20px}
  .im-cross-slider-pagination{max-width:none}
  .im-cross-slider-navigation{gap:10px}
  .im-cross-slider-navigation button{width:52px;height:52px;font-size:20px}
}

@media (max-width:680px){.im-alert{grid-template-columns:52px 1fr;padding:18px 18px 18px 20px;gap:14px;border-radius:18px}.im-alert-icon{width:44px;height:44px;border-radius:14px}.im-alert strong{font-size:20px}.im-alert p{font-size:15px;line-height:1.55}}


/* Recherche bulle responsive */
@media (max-width:680px){
  .im-search-bubble-wrap{max-width:none;width:100%;justify-content:flex-end}
  .im-search-trigger{width:52px;height:52px;flex-basis:52px}
  .im-search-panel{right:60px;width:calc(100vw - 92px);height:46px}
  .im-search-panel input{height:44px;font-size:15px;padding-left:17px}
  .im-search-submit{width:46px;height:46px;flex-basis:46px}
  .im-search-trigger svg,.im-search-submit svg{width:21px;height:21px}
}

/* Agenda accueil — taille du titre validée */
.im-cross-slider-detail h2{font-size:clamp(38px,3.5vw,50px);max-width:15ch}



/* Le shortcode de header peut être placé dans une section Divi : supprimer les
   espacements de cette seule chaîne hôte pour ne pas conserver de grand vide. */
.et_pb_section.im-municipal-header-host{padding-top:0!important;padding-bottom:0!important;min-height:0!important;row-gap:0!important}
.et_pb_row.im-municipal-header-host{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;row-gap:0!important;column-gap:0!important}
.et_pb_column.im-municipal-header-host{padding:0!important;margin:0!important;row-gap:0!important;column-gap:0!important}
.et_pb_module.im-municipal-header-host{margin:0!important;padding:0!important}
.et_pb_module.im-municipal-header-host>.et_pb_text_inner{margin:0!important;padding:0!important}

/* =========================================================
   IMAGINARIUM MAIRIE — HEADER / MENU PRINCIPAL
   Shortcode : [imaginarium_mairie_header]
   ========================================================= */
.im-municipal-header{position:relative;z-index:2147483000;width:100%;background:#fff;color:#173342;font-family:inherit;transition:box-shadow .25s ease,transform .25s ease}
.im-municipal-header-placeholder{display:none;width:100%;height:0}.im-municipal-header-placeholder.is-active{display:block}
.im-municipal-header.is-ported{position:absolute!important;top:var(--im-header-natural-top,0px)!important;left:0!important;right:0!important;width:100%!important;margin:0!important;z-index:2147483000!important;isolation:isolate}.im-municipal-header.is-fixed{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;z-index:2147483000!important;margin:0!important;isolation:isolate}

.im-municipal-header.is-condensed{box-shadow:0 8px 28px rgba(10,35,46,.12)}
.im-municipal-header-shell{display:grid;grid-template-columns:minmax(320px,390px) minmax(0,1fr);width:100%;max-width:none;margin:0;min-height:132px;background:#fff;transition:min-height .25s ease,grid-template-columns .25s ease}
.im-municipal-brand{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:18px;padding:14px 24px 14px 30px;background:#fff;min-width:0;z-index:3;overflow:visible;transition:padding .25s ease,gap .25s ease}
.im-municipal-brand:after{content:"";position:absolute;inset:0;background:#fff;z-index:-1}
.im-municipal-divi-logo{display:flex;align-items:center;justify-content:center;flex:0 0 auto;text-decoration:none!important;animation:im-municipal-logo-beat 3.6s ease-in-out infinite;transform-origin:center;position:relative;z-index:4}
.im-municipal-divi-logo img{display:block;width:auto;max-width:142px;max-height:118px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(16,42,54,.08));transition:max-width .25s ease,max-height .25s ease,transform .25s ease}
.im-municipal-brand-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;text-decoration:none!important;color:#173342!important;position:relative;z-index:4}
.im-municipal-brand-copy strong{font-size:36px;line-height:.94;font-weight:900;letter-spacing:-.04em;color:#173342;transition:font-size .25s ease}
.im-municipal-brand-copy span{display:block;margin-top:7px;font-size:14px;line-height:1.1;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#6a7880;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:font-size .25s ease,margin .25s ease}
.im-municipal-brand.is-title-hidden{justify-content:flex-start}
@keyframes im-municipal-logo-beat{0%,72%,100%{transform:scale(1)}78%{transform:scale(1.035)}84%{transform:scale(1)}90%{transform:scale(1.025)}}
@media(prefers-reduced-motion:reduce){.im-municipal-divi-logo{animation:none}}
.im-municipal-header-content{display:grid;grid-template-rows:44px 1fr;min-width:0;transition:grid-template-rows .25s ease}
.im-municipal-utility{display:flex;justify-content:flex-end;background:var(--im-header-dark,#0B3C49);color:#fff;clip-path:polygon(22px 0,100% 0,100% 100%,0 100%);max-height:44px;opacity:1;overflow:hidden;transition:max-height .25s ease,opacity .18s ease}
.im-municipal-utility-inner{display:flex;align-items:center;justify-content:flex-end;gap:18px;width:100%;padding:0 30px 0 44px}
.im-municipal-contact-link{display:inline-flex;align-items:center;gap:8px;color:#fff!important;text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap;opacity:.96;transition:opacity .18s ease,transform .18s ease}
.im-municipal-contact-link:hover{opacity:1;transform:translateY(-1px)}
.im-municipal-contact-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.im-municipal-socials{display:flex;align-items:center;gap:9px}
.im-municipal-socials a{width:31px;height:31px;border:1px solid rgba(255,255,255,.78);border-radius:50%;display:grid;place-items:center;color:#fff!important;text-decoration:none;transition:background .18s ease,color .18s ease,transform .18s ease,border-color .18s ease}
.im-municipal-socials a:hover{background:var(--im-primary);border-color:var(--im-primary);color:#172f3b!important;transform:translateY(-2px)}
.im-municipal-socials svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.im-municipal-socials .im-icon-fill{fill:currentColor;stroke:none}
.im-municipal-mainrow{display:flex;align-items:stretch;min-width:0;background:#fff;min-height:88px;transition:min-height .25s ease}
.im-municipal-nav{display:flex;align-items:stretch;flex:1;min-width:0}
.im-municipal-nav-list{list-style:none!important;margin:0!important;padding:0!important;display:flex;align-items:stretch;width:100%}
.im-municipal-nav-list>li{position:relative;display:flex;align-items:stretch;flex:1 1 0;min-width:0;margin:0!important;padding:0!important}
.im-municipal-nav-list>li:not(:last-child):after{content:"";position:absolute;right:0;top:32%;height:36%;width:1px;background:color-mix(in srgb,var(--im-primary) 45%,#d9e0e3);transform:skew(-12deg)}
.im-municipal-nav-list>li>a{display:flex;align-items:center;justify-content:center;width:100%;padding:18px 14px;text-align:center;text-transform:uppercase;text-decoration:none!important;color:#173342!important;font-size:15px;font-weight:850;line-height:1.25;letter-spacing:.015em;transition:color .18s ease,background .18s ease,padding .25s ease,font-size .25s ease}
.im-municipal-nav-list>li:hover>a,.im-municipal-nav-list>li.current-menu-item>a,.im-municipal-nav-list>li.current-menu-ancestor>a{color:var(--im-primary)!important;background:color-mix(in srgb,var(--im-primary) 5%,transparent)}
.im-municipal-nav-list .sub-menu{position:absolute;left:0;top:100%;z-index:25;min-width:240px;margin:0!important;padding:10px!important;list-style:none!important;background:#fff;border-top:3px solid var(--im-primary);box-shadow:0 18px 42px rgba(10,35,46,.15);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.im-municipal-nav-list li:hover>.sub-menu,.im-municipal-nav-list li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.im-municipal-nav-list .sub-menu li{margin:0!important;padding:0!important}
.im-municipal-nav-list .sub-menu a{display:block;padding:11px 12px;color:#173342!important;text-decoration:none!important;font-size:14px;font-weight:750;border-radius:6px}
.im-municipal-nav-list .sub-menu a:hover{background:color-mix(in srgb,var(--im-primary) 10%,#fff);color:#173342!important}
.im-profile-switcher{position:relative;display:flex;flex:0 0 auto;align-items:stretch;margin:10px 24px 10px 14px;transition:margin .25s ease}
.im-profile-switcher summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:9px;min-width:142px;padding:0 18px;border-radius:999px;background:var(--im-profile-button,var(--im-primary));color:var(--im-profile-text,#fff);cursor:pointer;font-size:15px;font-weight:900;white-space:nowrap;box-shadow:0 8px 20px color-mix(in srgb,var(--im-profile-button,var(--im-primary)) 24%,transparent);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,min-width .25s ease,font-size .25s ease}
.im-profile-switcher summary::-webkit-details-marker{display:none}
.im-profile-switcher summary:hover{transform:translateY(-2px);box-shadow:0 11px 24px color-mix(in srgb,var(--im-profile-button,var(--im-primary)) 30%,transparent);filter:saturate(1.05)}
.im-profile-switcher-icon{width:26px;height:26px;display:grid;place-items:center;background:transparent;color:var(--im-profile-text,#fff);box-shadow:none}
.im-profile-switcher-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
.im-profile-chevron{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.im-profile-switcher[open] .im-profile-chevron{transform:rotate(180deg)}
.im-profile-switcher-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:40;width:max-content;min-width:235px;max-width:320px;padding:9px;background:#fff;border-top:3px solid var(--im-profile-button,var(--im-primary));box-shadow:0 18px 42px rgba(10,35,46,.18)}
.im-profile-switcher-menu:before{content:"";position:absolute;right:28px;top:-9px;width:14px;height:14px;background:var(--im-profile-button,var(--im-primary));transform:rotate(45deg);z-index:-1}
.im-profile-switcher-menu a{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 13px;color:#173342!important;text-decoration:none!important;font-size:14px;font-weight:800;border-radius:7px;transition:background .16s ease,padding-left .16s ease}
.im-profile-switcher-menu a:hover{background:color-mix(in srgb,var(--im-profile-button,var(--im-primary)) 12%,#fff);padding-left:17px}
.im-profile-switcher-menu a span{color:var(--im-profile-button,var(--im-primary));font-size:18px}
.im-profile-switcher-empty{display:block;padding:11px 12px;color:#71808a;font-size:13px;line-height:1.35}
.im-municipal-menu-toggle{display:none;width:52px;height:52px;margin:auto 16px auto 0;border:0;border-radius:50%;background:var(--im-primary);padding:0;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer}
.im-municipal-menu-toggle span{display:block;width:21px;height:2px;background:#173342;transition:transform .2s ease,opacity .2s ease}
.im-municipal-header.menu-open .im-municipal-menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.im-municipal-header.menu-open .im-municipal-menu-toggle span:nth-child(2){opacity:0}
.im-municipal-header.menu-open .im-municipal-menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.im-municipal-header.is-condensed .im-municipal-header-content{grid-template-rows:0 1fr}
.im-municipal-header.is-condensed .im-municipal-utility{max-height:0;opacity:0;pointer-events:none}
.im-municipal-header.is-condensed .im-municipal-header-shell{grid-template-columns:minmax(250px,300px) minmax(0,1fr);min-height:74px}
.im-municipal-header.is-condensed .im-municipal-brand{padding:7px 20px 7px 26px;gap:13px}
.im-municipal-header.is-condensed .im-municipal-divi-logo img{max-width:76px;max-height:62px}
.im-municipal-header.is-condensed .im-municipal-brand-copy strong{font-size:26px}
.im-municipal-header.is-condensed .im-municipal-brand-copy span{font-size:11px;margin-top:4px}
.im-municipal-header.is-condensed .im-municipal-mainrow{min-height:74px}
.im-municipal-header.is-condensed .im-municipal-nav-list>li>a{padding:12px 10px;font-size:13px}
.im-municipal-header.is-condensed .im-profile-switcher{margin-top:8px;margin-bottom:8px}
.im-municipal-header.is-condensed .im-profile-switcher summary{min-width:128px;font-size:14px}
@media(max-width:1180px){
  .im-municipal-header-shell{grid-template-columns:280px minmax(0,1fr)}
  .im-municipal-brand{padding:14px 16px 14px 22px;gap:14px}
  .im-municipal-divi-logo img{max-width:110px;max-height:92px}
  .im-municipal-brand-copy strong{font-size:30px}
  .im-municipal-nav-list>li>a{font-size:13px;padding:15px 8px}
  .im-profile-switcher{margin-left:8px;margin-right:14px}
  .im-profile-switcher summary{min-width:128px;padding:0 14px;font-size:14px}
}
@media(max-width:860px){
  .im-municipal-header-shell,.im-municipal-header.is-condensed .im-municipal-header-shell{display:block;min-height:0}
  .im-municipal-header,.im-municipal-header.is-condensed{background:#fff}
  .im-municipal-brand,.im-municipal-header.is-condensed .im-municipal-brand{min-height:78px;padding:10px 88px 10px 18px;justify-content:flex-start;gap:12px}
  .im-municipal-brand-copy strong,.im-municipal-header.is-condensed .im-municipal-brand-copy strong{font-size:27px}
  .im-municipal-brand-copy span,.im-municipal-header.is-condensed .im-municipal-brand-copy span{font-size:11px;margin-top:4px}
  .im-municipal-divi-logo img,.im-municipal-header.is-condensed .im-municipal-divi-logo img{max-width:70px;max-height:62px}
  .im-municipal-header-content,.im-municipal-header.is-condensed .im-municipal-header-content{display:block}
  .im-municipal-utility{clip-path:none;min-height:42px;max-height:42px}
  .im-municipal-header.is-condensed .im-municipal-utility{min-height:0;max-height:0}
  .im-municipal-utility-inner{justify-content:flex-start;gap:12px;overflow-x:auto;padding:5px 14px;scrollbar-width:none}
  .im-municipal-utility-inner::-webkit-scrollbar{display:none}
  .im-municipal-contact-link span{font-size:13px}
  .im-municipal-mainrow,.im-municipal-header.is-condensed .im-municipal-mainrow{position:absolute;right:0;top:0;width:80px;height:78px;min-height:78px;align-items:center;background:transparent;z-index:2147483002;pointer-events:none}
  .im-municipal-menu-toggle{display:flex;position:absolute;right:14px;top:13px;margin:0;width:52px;height:52px;z-index:2147483003;box-shadow:0 8px 20px color-mix(in srgb,var(--im-primary) 24%,transparent);pointer-events:auto;touch-action:manipulation}
  .im-profile-switcher{display:none}
  .im-profile-switcher summary{height:52px;min-width:auto;padding:0 14px}
  .im-profile-switcher summary>span:last-of-type{display:none}
  .im-profile-chevron{display:none}
  .im-profile-switcher-menu{right:0;top:60px;min-width:220px}
  .im-municipal-nav{position:fixed!important;left:0!important;right:0!important;top:var(--im-header-current-height,120px)!important;width:100vw!important;background:#fff;box-shadow:0 20px 40px rgba(10,35,46,.18);max-height:calc(100dvh - var(--im-header-current-height,120px));overflow:auto;opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease;z-index:2147483001!important;pointer-events:none;-webkit-overflow-scrolling:touch}
  .im-municipal-header.menu-open .im-municipal-nav{opacity:1;visibility:visible;transform:none;pointer-events:auto}
  .im-municipal-nav-list{display:block;width:100%;padding:10px 18px 22px!important}
  .im-municipal-nav-list>li{display:block;min-width:0;border-bottom:1px solid #edf0f1}
  .im-municipal-nav-list>li:after{display:none}
  .im-municipal-nav-list>li>a{justify-content:flex-start;text-align:left;padding:16px 4px;font-size:15px}
  .im-municipal-nav-list .sub-menu{position:static;min-width:0;box-shadow:none;border-top:0;border-left:3px solid var(--im-primary);opacity:1;visibility:visible;transform:none;margin:0 0 12px!important;padding:0 0 0 12px!important}
}
@media(max-width:560px){
  .im-municipal-brand,.im-municipal-header.is-condensed .im-municipal-brand{padding-right:84px}
  .im-municipal-mail span{display:none}
  .im-municipal-socials{gap:6px}
  .im-municipal-socials a{width:29px;height:29px}
  .im-municipal-utility-inner{gap:10px}
}

@media(max-width:860px){
  body.im-municipal-mobile-menu-open{overflow:hidden!important}
  .im-municipal-header{z-index:2147483000!important}
  .im-municipal-header-shell{position:relative;z-index:2147483000}
  .im-municipal-brand{position:relative;z-index:2147483001}
}


/* En-tête de page + fil d’Ariane */
.im-page-heading{width:100%;background:#fff}
.im-page-heading-inner{width:min(94%,1500px);margin:0 auto;padding:42px 0 30px}
.im-page-heading h1,.im-page-title-only h1{margin:0;padding:0;color:var(--im-ink);font-size:clamp(38px,4.2vw,66px);line-height:.98;font-weight:850;letter-spacing:-.035em}
.im-page-heading h1:after,.im-page-title-only h1:after{content:"";display:block;width:70px;height:5px;margin-top:18px;background:var(--im-primary)}
.im-page-title-only{width:min(94%,1500px);margin:0 auto;padding:42px 0 30px}
.im-page-breadcrumb{width:100%;background:color-mix(in srgb,var(--im-primary) 10%,#fff);border-top:1px solid color-mix(in srgb,var(--im-primary) 16%,#fff);border-bottom:1px solid color-mix(in srgb,var(--im-primary) 16%,#fff)}
.im-page-breadcrumb-inner{width:min(94%,1500px);margin:0 auto;min-height:50px;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;line-height:1.35;overflow:hidden}
.im-page-breadcrumb a{color:var(--im-primary);text-decoration:none;transition:opacity .18s ease}
.im-page-breadcrumb a:hover{opacity:.72}
.im-page-breadcrumb span[aria-current="page"]{color:var(--im-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.im-page-breadcrumb-sep{color:color-mix(in srgb,var(--im-primary) 55%,#666);font-size:19px;line-height:1}
@media(max-width:680px){.im-page-heading-inner,.im-page-title-only{padding:28px 0 22px}.im-page-heading h1,.im-page-title-only h1{font-size:clamp(32px,10vw,45px)}.im-page-heading h1:after,.im-page-title-only h1:after{width:52px;height:4px;margin-top:13px}.im-page-breadcrumb-inner{min-height:44px;font-size:12px;gap:8px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.im-page-breadcrumb-inner::-webkit-scrollbar{display:none}}


/* Pages Je suis — profils */
.im-profile-page,.im-profiles-directory{--im-profile-accent:var(--im-profile-button,var(--im-primary));color:#20252b}
.im-profile-hero,.im-profile-heading{padding:52px 0 34px;max-width:1100px}
.im-profile-kicker,.im-profile-section-head>span{display:block;margin-bottom:10px;font-size:12px;font-weight:900;letter-spacing:.14em;color:var(--im-profile-accent);text-transform:uppercase}
.im-profile-hero h1,.im-profile-heading h1{margin:0;padding:0;font-size:clamp(44px,5vw,78px);line-height:.98;font-weight:850;letter-spacing:-.045em;color:#20252b}
.im-profile-hero p,.im-profile-heading p{max-width:780px;margin:22px 0 0;font-size:18px;line-height:1.65;color:#65707a}
.im-profile-quick{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;align-items:stretch;margin:0 0 58px;background:var(--im-profile-accent);color:var(--im-profile-text,#fff);border-radius:22px;overflow:hidden;box-shadow:0 16px 40px color-mix(in srgb,var(--im-profile-accent) 18%,transparent)}
.im-profile-quick-title{display:flex;align-items:center;padding:24px 26px;font-size:15px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;border-right:1px solid color-mix(in srgb,var(--im-profile-text,#fff) 25%,transparent)}
.im-profile-quick-links{display:flex;align-items:stretch;overflow-x:auto}
.im-profile-quick-links a{min-width:170px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;color:var(--im-profile-text,#fff)!important;font-weight:850;text-decoration:none;border-right:1px solid color-mix(in srgb,var(--im-profile-text,#fff) 20%,transparent);transition:background .2s ease,transform .2s ease}
.im-profile-quick-links a:hover{background:color-mix(in srgb,var(--im-profile-text,#fff) 12%,transparent)}
.im-profile-quick-links b{font-size:21px;font-weight:400}
.im-profile-section{padding:48px 0 60px;scroll-margin-top:120px}
.im-profile-section-soft{position:relative;padding:52px 34px 58px;background:#f7f7f5;border-radius:28px;margin:10px -34px 16px}
.im-profile-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:26px}
.im-profile-section-head>span{margin:0}
.im-profile-section-head h2{margin:0;padding:0;font-size:clamp(30px,3vw,46px);line-height:1.05;font-weight:820;letter-spacing:-.035em;color:#20252b}
.im-profile-useful-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.im-profile-useful-card{position:relative;min-height:178px;padding:22px 46px 22px 22px;border:1px solid #e7e7e2;background:#fff;color:#20252b!important;text-decoration:none;display:flex;flex-direction:column;gap:10px;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.im-profile-useful-card:hover{transform:translateY(-5px);border-color:color-mix(in srgb,var(--im-profile-accent) 38%,#ddd);box-shadow:0 14px 28px rgba(20,30,40,.08)}
.im-profile-card-type{font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--im-profile-accent)}
.im-profile-useful-card strong{font-size:19px;line-height:1.22}
.im-profile-card-excerpt{font-size:14px;line-height:1.45;color:#6c757d}
.im-profile-card-arrow{position:absolute;right:20px;bottom:18px;color:var(--im-profile-accent);font-size:22px}
.im-profile-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.im-profile-agenda-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.im-profile-empty{padding:34px;border-left:5px solid var(--im-profile-accent);background:#f6f6f3;display:grid;gap:6px;font-size:15px}.im-profile-empty strong{font-size:20px}
.im-profiles-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-bottom:70px}
.im-profile-directory-card{min-height:130px;padding:26px;background:var(--im-profile-accent);color:var(--im-profile-text,#fff)!important;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;text-decoration:none;border-radius:18px;font-size:22px;font-weight:850;transition:transform .22s ease,box-shadow .22s ease}
.im-profile-directory-card:hover{transform:translateY(-7px);box-shadow:0 16px 34px color-mix(in srgb,var(--im-profile-accent) 24%,transparent)}
.im-profile-directory-card b{font-size:27px;font-weight:400}
@media(max-width:980px){.im-profile-useful-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.im-profile-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.im-profiles-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.im-profile-quick{grid-template-columns:1fr}.im-profile-quick-title{padding-bottom:0;border-right:0}.im-profile-section-soft{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}}
@media(max-width:640px){.im-profile-hero,.im-profile-heading{padding:34px 0 24px}.im-profile-hero h1,.im-profile-heading h1{font-size:44px}.im-profile-hero p,.im-profile-heading p{font-size:16px}.im-profile-quick{margin-bottom:34px;border-radius:16px}.im-profile-quick-links a{min-width:150px;padding:18px}.im-profile-useful-grid,.im-profile-news-grid,.im-profile-agenda-grid,.im-profiles-directory-grid{grid-template-columns:1fr}.im-profile-section{padding:34px 0 42px}.im-profile-section-soft{border-radius:20px}.im-profile-section-head{display:block}.im-profile-section-head>span{margin-bottom:8px}.im-profile-directory-card{min-height:105px}}

@media (hover:none){.im-home-menu-item:hover{transform:none;box-shadow:none}.im-home-menu-item:hover .im-home-menu-icon{transform:none}}
