/* AG-Stab — footer unifié et interactions sur le site public. */
#page #colophon.ag-stab-footer{display:block;background:#53b8ba;color:#fff;margin:0;padding:38px 0 28px;font-size:1rem;clear:both;width:100%;border:0}
#page #colophon .ag-footer-inner{max-width:960px;width:100%;padding-inline:15px;margin-inline:auto;display:flex;flex-direction:column;align-items:stretch;gap:26px}
#page #colophon #footer-widget{margin:0!important;padding:0;background:transparent!important;width:100%;text-align:center;min-height:0}
#page #colophon .ag-footer-menu,#page #colophon #menu-footer,#page #colophon .ag-footer-widgets .wp-block-page-list,#page #colophon .ag-footer-widgets .wp-block-navigation__container{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px 34px;list-style:none;padding:0;margin:0;width:100%}
#page #colophon .ag-footer-menu li,#page #colophon #menu-footer li{display:block;margin:0;padding:0;max-width:100%}
#page #colophon #footer-widget a{color:#fff;font-family:'Gotham Rounded Medium',system-ui,sans-serif;font-size:.875rem;line-height:1.55;font-weight:600;text-transform:uppercase;text-decoration:none;overflow-wrap:anywhere;display:inline-block;padding:3px 0}
#page #colophon #footer-widget a:hover,#page #colophon #footer-widget a:focus-visible{color:#0d1d2f}
#page #colophon .ag-footer-widgets .widget{margin:0;background:transparent;padding:0;color:inherit}
#page #colophon .ag-footer-widgets .widget+.widget{margin-top:20px}
#page #colophon .ag-footer-widgets ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;justify-content:center;gap:14px 34px}
#page #colophon .logo-footer{margin:0;text-align:center;padding:0;line-height:0}
#page #colophon .logo-footer img{display:inline-block;width:130px;max-width:100%;height:auto;vertical-align:middle}
#page #colophon .site-info{border-top:1px solid rgba(255,255,255,.9);margin:7px 0 0;padding:22px 0 0;color:#fff;font-size:.875rem;line-height:1.5;text-align:left}
#page #colophon .site-info a{text-decoration:none;color:inherit}
#page #colophon a:focus-visible{outline-color:#0d1d2f}
@media(max-width:767px){#page #colophon.ag-stab-footer{padding:28px 0 22px}#page #colophon .ag-footer-inner{gap:22px;padding-inline:24px}#page #colophon .ag-footer-menu,#page #colophon #menu-footer,#page #colophon .ag-footer-widgets ul{gap:10px 20px}#page #colophon .site-info{text-align:center}}
/* Fondu discret sans déplacement, survol souris et focus clavier. */
#page :is(a,button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]):not(.skip-link){transition:color .22s ease,background-color .22s ease,border-color .22s ease,box-shadow .22s ease,opacity .22s ease,text-decoration-color .22s ease}
@media(hover:hover){#page :is(a,button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]):not(.skip-link):not(:disabled):not([aria-disabled="true"]):hover{opacity:.86}}
#page :is(a,button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]):not(.skip-link):not(:disabled):not([aria-disabled="true"]):focus-visible{opacity:.9;outline:2px solid #0d1d2f;outline-offset:3px;box-shadow:0 0 0 2px #fff}
@media(prefers-reduced-motion:reduce){#page :is(a,button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]){transition:none!important}}
/* Annuaire — même largeur et palette que les actualités. */
.ag-directory{color:#0d1d2f;position:relative;margin:0!important}
.ag-directory [hidden]{display:none!important}
.ag-directory-heading{position:relative;isolation:isolate;min-height:100px;display:grid;place-items:center;overflow:hidden;padding:24px;margin:0 0 40px;background:#fff;color:#0d1d2f;text-align:center}
.ag-directory-heading h1{font:600 clamp(20px,2.1vw,25px)/1.35 'Gotham Rounded Medium',system-ui,sans-serif;text-transform:uppercase;color:#0d1d2f;margin:0}
.ag-directory-panel{background:white;padding:clamp(20px,4.4vw,48px);margin-bottom:0}
.ag-directory-tools{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-bottom:12px}
.ag-directory-tools label{font:600 14px/1.5 'Gotham Rounded Medium',system-ui,sans-serif;display:grid;gap:6px;min-width:0}
.ag-directory-tools input,.ag-directory-tools select{width:100%;min-width:0;box-sizing:border-box;padding:11px 12px;border:1px solid #aeb9bd;background:#fff;color:#0d1d2f;border-radius:0;font:400 15px/1.4 system-ui,sans-serif}
.ag-directory-count{font-size:13px;color:#626d78;margin:0 0 26px}
.ag-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px;align-items:start}
.ag-directory-card{min-width:0;border-bottom:1px solid #e1e4e6;background:#fff}
.ag-directory-image{display:grid;place-items:center;aspect-ratio:2/1;background:#eeeff0;color:#71838b;overflow:hidden}
.ag-directory-image img{display:block;width:100%;height:100%;object-fit:cover}
.ag-directory-card h2{font:600 16px/1.4 'Gotham Rounded Medium',system-ui,sans-serif;text-align:left;background:#eeeff0;color:#0d1d2f;padding:12px 14px;margin:0;text-transform:none;overflow-wrap:anywhere}
.ag-directory-card ul{list-style:none;padding:0;margin:0}
.ag-directory-card li+li{border-top:1px solid #eeeff0}
.ag-directory-card li a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;color:#0d1d2f;text-decoration:none;font:400 15px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
.ag-directory-card li a:hover,.ag-directory-card li a:focus-visible{color:#53b8ba;background:#f0f8f8}
.ag-directory-card li a span{font-size:22px;line-height:1;color:#53b8ba}
@media(max-width:767px){.ag-directory-heading{margin-bottom:20px;min-height:80px}.ag-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}.ag-directory-tools{grid-template-columns:1fr;gap:12px}}
@media(max-width:479px){.ag-directory-grid{grid-template-columns:1fr}}

/* AG-Stab 2.1.1 — composants partagés, chargés après les styles historiques. */
.ag-icon{width:1em;height:1em;display:inline-block;flex:none;vertical-align:-.125em;fill:none;stroke:currentColor}
#page .external-links .ag-icon{width:17px;height:17px;fill:none}
#page .ag-social-card .ag-icon{width:26px;height:26px;fill:none}
#page .main-discipline .ag-icon{width:17px;height:17px;fill:none}
.ag-image-placeholder{display:block;width:100%;aspect-ratio:3/2;background:#eeeff0 url('../../../img/icons/image-placeholder.svg') center/32px 32px no-repeat;min-width:0;box-sizing:border-box}
#page .destination-1-figure>.ag-image-placeholder{position:absolute;inset:0;height:100%;aspect-ratio:auto}
#page :is(.ag-news-image,.ag-directory-image)>.ag-image-placeholder{height:100%;aspect-ratio:auto}
#page .categorie-image>.ag-image-placeholder{aspect-ratio:2/1}
#page .ag-discipline-no-photo{margin-bottom:20px}
#page .ag-gallery-main [data-ag-photo]>.ag-image-placeholder{aspect-ratio:3/2}
#page .ag-gallery-thumbs .ag-image-placeholder{width:70px;height:54px;aspect-ratio:auto;background-size:22px}
#page .ag-event-gallery .ag-image-placeholder{aspect-ratio:4/3}
#page .ag-event-cover>.ag-image-placeholder{aspect-ratio:16/9}
/* Bannières : conserver le texte lisible sans photo. */
#page :is(.ag-hero-slide,.ag-feature,.ag-news-heading):has(>.ag-image-placeholder){background:#eeeff0;color:#0d1d2f}
#page :is(.ag-hero-slide,.ag-feature,.ag-news-heading)>.ag-image-placeholder{position:absolute;inset:0;height:100%;aspect-ratio:auto;background-position:right 18px bottom 18px;pointer-events:none}
#page :is(.ag-hero-slide,.ag-feature,.ag-news-heading):has(>.ag-image-placeholder):after{opacity:0}
#page .ag-hero-slide:has(>.ag-image-placeholder) :is(.ag-hero-title,.ag-hero-text),#page .ag-feature:has(>.ag-image-placeholder) :is(h3,p){color:#0d1d2f;text-shadow:none}
#page .ag-feature:has(>.ag-image-placeholder) a{color:#0d1d2f;border-color:#0d1d2f}
#page .ag-news-heading:has(>.ag-image-placeholder) h1{color:#0d1d2f;position:relative}
#page .ag-news-heading{position:relative;isolation:isolate;overflow:hidden;background:#eeeff0}
#page .ag-news-banner-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
#page .ag-news-heading:after{content:'';position:absolute;inset:0;background:linear-gradient(204deg,rgba(13,29,47,.90),rgba(13,29,47,.10));z-index:-1}
#page .ag-news-heading h1{position:relative}
/* Espacement avant le footer sur les modèles classiques; les pages avec ag-inner-shell ont déjà 32px. */
#page #colophon.ag-stab-footer{margin-top:32px}
#page .ag-inner-shell + #colophon.ag-stab-footer{margin-top:0}
.ag-spab-home #page #colophon.ag-stab-footer{margin-top:0}
/* Même bouton gris pour les liens de navigation et toutes les paginations. */
#page .ag-grey-nav{margin:24px 0 0;padding:0;width:100%;background:transparent;overflow:visible}
#page .ag-home-more{margin:0 0 16px}
#page :is(.ag-grey-button,.ag-news-pagination a,.ag-event-links a,.ag-event-back a,:is(.navigation.pagination,.navigation.ag-event-pagination,.navigation.paginationag-event-pagination) .page-numbers){display:block;background:#eeeff0;color:#0d1d2f!important;border:0;border-radius:0;text-align:center;text-decoration:none!important;text-transform:uppercase;font:600 12px/1.5 'Gotham Rounded Medium',system-ui,sans-serif;padding:13px 15px;opacity:1;box-sizing:border-box;transition:background-color .22s ease,color .22s ease,outline-color .22s ease}
#page :is(.ag-grey-button,.ag-news-pagination a,.ag-event-links a,.ag-event-back a,:is(.navigation.pagination,.navigation.ag-event-pagination,.navigation.paginationag-event-pagination) a.page-numbers):is(:hover,:focus,:focus-visible){background:#c9cdd0;color:#0d1d2f!important;opacity:1}
#page :is(.ag-grey-button,.ag-news-pagination a,.ag-event-links a,.ag-event-back a,:is(.navigation.pagination,.navigation.ag-event-pagination,.navigation.paginationag-event-pagination) a.page-numbers):focus-visible{outline:2px solid #0d1d2f;outline-offset:3px;box-shadow:none}
#page :is(.ag-event-links a[aria-current=page],:is(.navigation.pagination,.navigation.ag-event-pagination,.navigation.paginationag-event-pagination) .page-numbers.current){background:#c9cdd0;color:#0d1d2f!important;font-weight:700}
#page :is(.navigation.pagination,.navigation.ag-event-pagination,.navigation.paginationag-event-pagination){display:block;margin:32px 0 0;padding:0;width:100%;background:none;overflow:visible}
#page :is(.navigation.pagination,.navigation.ag-event-pagination,.navigation.paginationag-event-pagination) .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;align-items:stretch}
#page :is(.navigation.pagination,.navigation.ag-event-pagination,.navigation.paginationag-event-pagination) .page-numbers{min-width:44px;margin:0;float:none}
#page :is(.navigation.pagination,.navigation.ag-event-pagination,.navigation.paginationag-event-pagination) .page-numbers.dots{background:transparent;padding-inline:5px;min-width:0}
/* Grille : toutes les cartes ont la même hauteur, sans couper les titres ni les lieux. */
#page .ag-event-grid{align-items:stretch;grid-auto-rows:1fr}
#page .ag-event-card{align-self:stretch;display:flex;min-width:0;height:100%}
#page .ag-event-card>a{width:100%;display:grid;grid-template-rows:minmax(5.5em,1fr) auto minmax(4em,1fr);align-items:stretch;justify-items:center;gap:24px;height:100%;box-sizing:border-box}
#page .ag-event-card h3{display:flex;align-items:center;justify-content:center;width:100%;min-width:0}
#page .ag-event-card .ag-event-date{align-self:center;justify-self:center}
#page .ag-event-card .ag-event-card-foot{align-self:stretch;justify-content:flex-end;min-width:0}
@media(max-width:767px){#page #colophon.ag-stab-footer{margin-top:24px}#page .ag-inner-shell + #colophon.ag-stab-footer,.ag-spab-home #page #colophon.ag-stab-footer{margin-top:0}#page .ag-event-card>a{gap:16px}}
@media(prefers-reduced-motion:reduce){#page :is(.ag-grey-button,.ag-news-pagination a,.ag-event-links a,.ag-event-back a,:is(.navigation.pagination,.navigation.ag-event-pagination,.navigation.paginationag-event-pagination) .page-numbers){transition:none!important}}

/* AG-Stab 2.1.2 — compact event cards, 300px social cards, balanced directory. */
#page .ag-events-panel>h2{margin-bottom:26px}
#page .ag-event-links{margin-bottom:22px}
#page .ag-event-single .ag-event-links{margin-top:0}
#page .ag-event-card>a{padding:14px;gap:10px;grid-template-rows:minmax(3em,1fr) auto minmax(2em,1fr)}
#page .ag-event-card h3{font-size:clamp(15px,1.55vw,19px);line-height:1.28;padding:10px 0 0}
#page .ag-event-card .ag-event-date{padding:2px 8px 6px;gap:2px}
#page .ag-event-card .ag-event-day{font-size:28px}
#page .ag-event-card .ag-event-month{font-size:14px}
#page .ag-event-card .ag-event-clock{width:24px;height:24px;margin-top:3px}
#page .ag-event-card .ag-event-card-foot{gap:3px;padding-bottom:10px;justify-content:center}
#page .ag-event-card .ag-event-time{font-size:15px}
#page .ag-event-card .ag-event-venue{font-size:12px;line-height:1.3}
#page .ag-event-card .ag-event-tbd{align-self:center;font-size:14px}
/* Home only: 300px viewport for the actual feed, plus title and footer link. */
#page .ag-social-container .ag-social-card{height:auto;box-sizing:border-box;min-height:0;padding:16px;gap:12px;overflow:visible}
#page .ag-social-container .ag-social-card h2{flex:0 0 auto;font-size:19px}
#page .ag-social-container .ag-social-card .ag-social-link{flex:0 0 auto;padding-top:10px}
#page .ag-social-container .ag-social-content{position:relative;flex:0 0 300px;height:300px;min-height:300px;overflow:auto;overscroll-behavior:contain;justify-content:flex-start}
#page .ag-social-container .ag-social-consent{min-height:300px;box-sizing:border-box;flex-shrink:0;padding:10px 12px;gap:8px}
#page .ag-social-container .ag-social-target{height:300px;min-height:300px;max-height:300px;flex:0 0 300px;overflow:auto}
#page .ag-social-container [data-ag-social="facebook"] .ag-social-target iframe{height:300px;min-height:300px}
#page .ag-social-container .ag-social-message{flex-shrink:0}
/* AG-Stab 2.1.3 — annuaire ouvert, sans encadrements ni défilement interne. */
#page .ag-directory-grid{align-items:start;grid-auto-rows:auto;gap:32px 26px}
#page .ag-directory-card{display:flex;flex-direction:column;min-width:0;border:0;box-shadow:none;background:transparent}
#page .ag-directory-image{height:100px;aspect-ratio:auto;min-width:0}
#page .ag-directory-image img{width:100%;height:100px;object-fit:cover}
#page .ag-directory-card h2{display:flex;align-items:center;padding:10px 15px;line-height:1.35;min-height:44px;background:#eeeff0}
#page .ag-directory-card .ag-directory-list{height:auto;min-height:108px;overflow:visible;margin:7px 0 0;padding:0;list-style:none}
#page .ag-directory-card li+li{border:0}
#page .ag-directory-card li a{display:flex;justify-content:flex-start;align-items:flex-start;gap:16px;padding:8px 10px;min-height:36px;font:400 15px/1.35 system-ui,sans-serif;color:#626d78;background:transparent;text-decoration:none}
#page .ag-directory-card li a:is(:hover,:focus-visible){color:#53b8ba;background:transparent;opacity:1}
#page .ag-directory-card li a:focus-visible{outline-offset:0;box-shadow:none}
#page .ag-directory-card li a .ag-directory-label{font:inherit;color:inherit;min-width:0;overflow-wrap:anywhere}
#page .ag-directory-card li a .ag-directory-arrow{display:block;flex:0 0 7px;width:7px;height:7px;margin:6px 3px 0 2px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);color:inherit}
#page .ag-directory-card .ag-directory-toggle{align-self:center;display:grid;place-items:center;width:36px;height:36px;min-height:36px;margin:3px 0 0;padding:0;background:transparent;color:#53b8ba;border:1.5px solid currentColor;border-radius:50%;box-shadow:none;cursor:pointer;transition:color .22s ease,background-color .22s ease,border-color .22s ease}
#page .ag-directory-card .ag-directory-toggle:is(:hover,:focus-visible){color:#53b8ba;background:transparent;opacity:1}
#page .ag-directory-card .ag-directory-toggle[aria-expanded=true]{color:#4b5560;border-color:currentColor;background:transparent;opacity:1}
#page .ag-directory-card .ag-directory-toggle:active{color:#4b5560;border-color:currentColor}
#page .ag-directory-card .ag-directory-toggle:focus-visible{outline-offset:0;box-shadow:none}
#page .ag-directory-plus{display:block;position:relative;width:15px;height:15px}
#page .ag-directory-plus::before,#page .ag-directory-plus::after{content:'';position:absolute;left:0;top:6.5px;width:15px;height:2px;background:currentColor;border-radius:1px}
#page .ag-directory-plus::after{transform:rotate(90deg);transition:transform .22s ease,opacity .22s ease}
#page .ag-directory-toggle[aria-expanded=true] .ag-directory-plus::after{transform:rotate(0);opacity:0}
@media(prefers-reduced-motion:reduce){#page .ag-directory-plus::after{transition:none}}
@media(max-width:767px){#page .ag-directory-grid{gap:26px 18px}}
@media(max-width:479px){#page .ag-event-card>a{padding:12px;gap:9px}#page .ag-directory-grid{gap:26px}}

/* AG-Stab 2.1.4 — exact public accent, including hover/focus (no parent opacity). */
#page .ag-directory-heading{background:#fff;color:#0d1d2f}
#page .ag-directory-heading::after{content:none}
#page .ag-directory-heading h1{color:#0d1d2f}
#page .ag-home-news .destination-1-title,#page .ag-news-card h2{transition:color .22s ease}
#page .ag-home-news .destination-1:is(:hover,:focus,:focus-visible),#page .ag-news-card a:is(:hover,:focus,:focus-visible),#page .ag-hero-button:is(:hover,:focus,:focus-visible),#page .ag-social-link:is(:hover,:focus,:focus-visible){opacity:1}
#page .ag-home-news .destination-1:is(:hover,:focus,:focus-visible) .destination-1-title,#page .ag-news-card a:is(:hover,:focus,:focus-visible) h2{color:#53b8ba}
/* Slider — bouton blanc opaque, zoom uniquement au survol et au focus. */
#page .ag-hero-copy a.ag-hero-button{background:#fff;border-color:#fff;color:#53b8ba!important;opacity:1;text-shadow:none;transform:scale(1);-webkit-transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transform-origin:center;max-width:90%;overflow-wrap:anywhere}
#page .ag-hero-copy a.ag-hero-button:is(:hover,:focus,:focus-visible){background:#fff;border-color:#fff;color:#53b8ba!important;opacity:1!important;-webkit-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1)}
@media(prefers-reduced-motion:reduce){#page .ag-hero-copy a.ag-hero-button:is(:hover,:focus,:focus-visible){transform:none;transition:none!important}}
@media(prefers-reduced-motion:reduce){#page .ag-home-news .destination-1-title,#page .ag-news-card h2,#page .ag-directory-toggle{transition:none!important}}


/* AG-Stab 2.1.7 — bandeaux de page : mêmes dimensions, typographie et rythme. */
#page .ag-inner-shell > main#main,
#page .ag-standard-shell #primary > main#main{margin-top:0!important}
#page :is(.ag-standard-shell,.ag-sidebar-layout) .site-main article > .entry-header,
#page :is(.ag-directory-heading,.ag-news-heading,.ag-event-title){
    box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:6px;min-height:100px;width:100%;margin:0 0 32px;padding:24px;
    text-align:center;background-color:#fff;color:#0d1d2f;
}
#page :is(.ag-standard-shell,.ag-sidebar-layout) .site-main article > .entry-header > h1,
#page :is(.ag-directory-heading,.ag-news-heading,.ag-event-title) > h1{
    font:600 clamp(18px,1.9vw,23px)/1.35 'Gotham Rounded Medium',system-ui,sans-serif;
    text-transform:uppercase;color:inherit;margin:0;padding:0;max-width:100%;overflow-wrap:anywhere;
}
#page .ag-news-heading{background:#0d1d2f;color:#fff}
#page .ag-news-heading:has(>.ag-image-placeholder){background:#eeeff0;color:#0d1d2f}
#page :is(.ag-standard-shell,.ag-sidebar-layout) .site-main article > .entry-header + :is(.entry-content,.main-discipline){margin-top:0}
#page .ag-standard-shell .entry-header .discipline-categorie{margin:0;padding:0;line-height:1.35}
@media(max-width:767px){
    #page :is(.ag-standard-shell,.ag-sidebar-layout) .site-main article > .entry-header,
    #page :is(.ag-directory-heading,.ag-news-heading,.ag-event-title){min-height:80px;padding:16px;margin-bottom:20px}
}


/* AG-Stab 2.1.12 — page title cards overlap the dark header zone. */
#page .ag-inner-shell,
#page .ag-sidebar-layout{position:relative}
#page :is(.ag-standard-shell,.ag-sidebar-layout) .site-main article > .entry-header,
#page :is(.ag-directory-heading,.ag-news-heading,.ag-event-title){
    position:relative;z-index:2;margin-top:-30px;
    box-shadow:none;
}
@media(max-width:767px){
    #page :is(.ag-standard-shell,.ag-sidebar-layout) .site-main article > .entry-header,
    #page :is(.ag-directory-heading,.ag-news-heading,.ag-event-title){margin-top:-18px}
}

/* AG-Stab 2.1.9 — unique content rail, independent of Bootstrap breakpoints.
   930px corresponds to the former inner-page content width (960px minus gutters).
   The full-bleed hero and top/footer backgrounds remain full width. */
:root { --ag-shell-max: 930px; --ag-shell-gutter: 16px; }
#page .ag-site-shell {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--ag-shell-gutter));
    max-width: var(--ag-shell-max);
    margin-inline: auto;
    padding-inline: 0;
}
#page .ag-site-shell > .row { margin-inline: 0; }
#page .ag-site-shell:not(.ag-home-news) > .row > #primary:only-child { padding-inline: 0; }
#page .ag-home-news > .row > #primary { padding-inline: 15px; }
#page .ag-home-main { margin: 0; padding: 0; width: 100%; }
#page .ag-home-main #content.site-content { margin-inline: 0; }
#page .ag-home-main .ag-home-news-content { margin-top: 0; }
#page .ag-home-news .row.actu { margin-inline: 0; }
#page #masthead { padding-inline: 0 !important; }
#page #masthead .ag-site-shell { position: relative; }
#page #masthead .navhead { width: 100%; }
#page #masthead .navbar-brand { width: 213px; left: 20px; top: 0; padding: 0; margin: 0; }
#page #masthead .navbar-brand > a { margin: 20px; }
#page #masthead .navbar-brand img { display: block; width: 100%; height: auto; }
#page #masthead .navbar { width: 100%; min-width: 0; }
#page .external-links .ag-site-shell { padding-inline: 0; max-width: var(--ag-shell-max); }
#page .external-links .ag-site-shell > .row { margin-inline: 0; }
#page .external-links .ag-site-shell > .row > div { padding-inline: 0; }
#page #colophon .ag-footer-inner.ag-site-shell { padding-inline: 0; }
@media (min-width:1200px) {
    #page #masthead .navbar { padding: 17px 15px !important; min-height: 71px; }
    #page #masthead .navbar-collapse { padding: 0 0 0 215px; }
    #page #masthead .navbar-nav { width: 100%; justify-content: space-between; }
}
@media (max-width:1199.98px) {
    /* The logo is centred on the fixed 70px bar, not on the expanding menu. */
    #page #masthead .ag-site-shell { --ag-mobile-bar: 70px; --ag-mobile-offset: 32px; }
    #page #masthead .navbar-brand {
        width: 176px; left: 10px;
        top: calc(var(--ag-mobile-offset) + var(--ag-mobile-bar) / 2);
        transform: translateY(-50%);
    }
    #page #masthead .navbar-brand > a { margin: 20px; }
    #page #masthead .navbar-brand img { max-height: 100px; object-fit: contain; }
    #page #masthead .navhead { padding: var(--ag-mobile-offset) 0 24px; }
    #page #masthead .navbar {
        display: grid; grid-template-columns: minmax(0, 1fr);
        grid-template-rows: var(--ag-mobile-bar) auto; align-items: start;
        justify-content: stretch; text-align: center;
        padding: 0 14px !important; min-height: 0;
    }
    #page #masthead .navbar-toggler {
        grid-row: 1; justify-self: end; align-self: center;
        display: grid; place-items: center; width: 48px; height: 48px;
        margin: 0; padding: 8px; line-height: 1;
        border: 0; outline: 0; box-shadow: none; background: transparent;
        color: #fff; opacity: 1; transform: none;
    }
    #page #masthead .navbar-toggler:is(:hover,:active,:focus,:focus-visible) {
        border: 0; outline: 0; box-shadow: none; opacity: 1; transform: none;
    }
    /* Indicateur clavier discret, sans contour. */
    #page #masthead .navbar-toggler:focus-visible { background: rgba(83,184,186,.25); }
    #page #masthead .navbar-toggler-icon { width: 30px; height: 30px; background-size: contain; }
    /* Bootstrap anime la hauteur du panneau, sans modifier la rangée du logo. */
    #page #masthead .navbar-collapse { grid-row: 2; width: 100%; min-width: 0; padding: 0; margin: 0; }
    #page #masthead .navbar-collapse.collapsing { overflow: hidden; transition: height .32s ease-in-out; }
    #page #masthead .navbar-collapse > .navbar-nav, #page #masthead .navbar-collapse > #menu-menu-1 {
        padding: 36px 0 12px !important;
    }
    #page #masthead .navbar-nav, #page #masthead #menu-menu-1 {
        width: 100%; padding: 0 !important; margin: 0 !important;
        align-items: stretch; justify-content: center; text-align: center;
    }
    #page #masthead .navbar-nav > li { width: 100%; text-align: center; margin: 0; }
    #page #masthead .navbar-nav > li > a { display: block; white-space: normal; overflow-wrap: anywhere; padding: 10px 6px; }
    #page #masthead .navbar-nav .dropdown-menu { position: static; text-align: center; width: 100%; margin: 0; padding: 0; min-width: 0; }
    #page #masthead .navbar-nav .dropdown-item { white-space: normal; overflow-wrap: anywhere; text-align: center; }
}
@media (max-width:767px) {
    #page #masthead .navbar-brand { width: 200px; }
    #page #masthead .navbar { padding: 0 12px !important; }
    #page .ag-home-news > .row > #primary { padding-inline: 12px; }
}
@media (max-width:359px) {
    :root { --ag-shell-gutter: 12px; }
}
#page #colophon .ag-footer-inner.ag-site-shell { max-width: var(--ag-shell-max); }
#page #masthead .ag-site-shell { padding-inline: 0; max-width: var(--ag-shell-max); }

@media (max-width:1199.98px) and (prefers-reduced-motion:reduce) {
    #page #masthead .navbar-collapse.collapsing { transition: none; }
}


/* AG-Stab 2.2.1 — galerie commune : cadre fixe, image entière, fondu. */
#page .ag-gallery { min-width: 0; margin-bottom: 20px; }
#page .ag-gallery-main {
    position: relative; width: 100%; height: 425px; overflow: hidden;
    background: #eeeff0; isolation: isolate;
}
#page .ag-gallery-main > [data-ag-photo] {
    position: absolute; inset: 0; width: 100%; height: 100%;
}
#page .ag-gallery-main > [data-ag-photo] > img {
    display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
    object-fit: contain; object-position: center; margin: 0; aspect-ratio: auto;
}
#page .ag-gallery-main > [data-ag-photo] > .ag-image-placeholder {
    width: 100%; height: 100%; aspect-ratio: auto;
}
#page .ag-gallery-main > [data-ag-photo].ag-gallery-enter { animation: agGalleryFade .35s ease-in-out both; }
@keyframes agGalleryFade { from { opacity: .15; } to { opacity: 1; } }
#page .ag-gallery-main > :is(.ag-gallery-prev,.ag-gallery-next) { z-index: 2; }
#page .ag-event-cover .ag-gallery-thumbs img { width: 70px; height: 54px; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
    #page .ag-gallery-main > [data-ag-photo].ag-gallery-enter { animation: none; }
}

/* AG-Stab 2.2.2 — page 404, sans ombre ni dépendance externe. */
#page .ag-error-shell { position: relative; margin-top: 0; padding-bottom: 32px; }
#page .ag-error-main { padding: 0; }
#page .ag-error-panel {
    position: relative; z-index: 2; box-sizing: border-box;
    margin-top: -30px; padding: clamp(36px, 7vw, 76px) clamp(18px, 5vw, 48px);
    background: #fff; color: #0d1d2f; text-align: center; box-shadow: none;
}
#page .ag-error-code {
    margin: 0 0 18px; font: 600 clamp(80px, 13vw, 144px)/1 'Gotham Rounded Medium',system-ui,sans-serif;
    letter-spacing: -.045em; color: #53b8ba;
}
#page .ag-error-panel h1 {
    margin: 0 0 18px; padding: 0; font: 600 clamp(18px,1.9vw,23px)/1.35 'Gotham Rounded Medium',system-ui,sans-serif;
    text-transform: uppercase; color: #0d1d2f;
}
#page .ag-error-message { margin: 0 auto; max-width: 550px; color: #626d78; line-height: 1.65; }
#page .ag-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
#page .ag-error-actions .ag-grey-button { min-width: 200px; max-width: 100%; }
@media (max-width:767px) {
    #page .ag-error-shell { padding-bottom: 24px; }
    #page .ag-error-panel { margin-top: -18px; }
}
@media (max-width:479px) {
    #page .ag-error-actions { flex-direction: column; }
    #page .ag-error-actions .ag-grey-button { min-width: 0; width: 100%; }
}

/* Long URLs and unbroken text in articles and news cards. */
#page .entry-content,
#page .destination-1-caption,
#page .ag-news-card {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}
#page .entry-content a,
#page .destination-1-title,
#page .destination-1-content,
#page .ag-news-card h2 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
