/* MIA Côte Basque · Atelier vivant · 26 octobre 2026 */
:root{--mia-apricot:#ffd1b5;--mia-mint:#c9e5d8;--mia-yellow:#f6e49b;--mia-soft:#eeedf7;--mia-ease:cubic-bezier(.16,1,.3,1);--mia-radius:12px}
::selection{background:#c6c2ef;color:#332c55}
html{scrollbar-color:#8271b3 #eeedf7}
input,textarea{caret-color:#615198}
body{overflow-x:clip}
body h1,body h2{letter-spacing:-.035em;text-wrap:balance}
body a,body button{-webkit-tap-highlight-color:#c6c2ef55}
body :focus-visible{outline:3px solid #615198;outline-offset:4px}
body button,body .button,body .btn{transition:background-color .18s,color .18s,border-color .18s,box-shadow .18s}
body .button.primary,body .btn.primary{background:#615198!important;color:#fff!important;border-color:#615198!important}
body .button.primary:hover,body .btn.primary:hover{background:#332c55!important;border-color:#332c55!important}
body button:disabled{cursor:default}
body .mia-network{background:#332c55;position:relative}
body .mia-network>a:not(.network-brand){position:relative;border-bottom-color:transparent;text-decoration:none}
body .mia-network>a:not(.network-brand)::after{content:"";position:absolute;bottom:2px;left:0;right:0;height:2px;background:#c6c2ef;transform:scaleX(0);transform-origin:left;transition:transform .24s var(--mia-ease)}
body .mia-network>a:is(:hover,:focus-visible,[aria-current="page"])::after{transform:scaleX(1)}
body .mia-network a:focus-visible{outline-color:#f6e49b}
body .mia-page-header{box-shadow:0 6px 20px #332c5505;background:#f6f8f8}
body .mia-page-header nav a,body .mia-page-header nav button{transition:color .18s,background-color .18s}
body .mia-page-header nav a:hover,body .mia-page-header nav button:hover{color:#615198}
body .mia-site-footer{background:#332c55;color:#fff;border:0!important}
body .mia-site-footer a{color:#fff}
body .mia-footer-bottom{border-color:#ffffff36}
body .mia-footer-name{color:#fff}
body .mia-footer-logo-card{border-radius:8px}
body .mia-footer-signature{flex-wrap:wrap}
body .mia-footer-about a:hover,body .mia-footer-bottom a:hover{color:#f6e49b}
body .mia-motion-control{border:1px solid #b9afd1;background:transparent;color:#fff;font:600 10px/1.4 Manrope,Arial,sans-serif;min-height:36px;padding:8px 12px;border-radius:5px;gap:8px;white-space:nowrap}
body .mia-motion-control:hover{background:#ffffff14}
body .mia-motion-control svg{width:14px;height:14px;flex-shrink:0}
body .mia-motion-control:focus-visible{outline-color:#f6e49b}
/* The original four-entry composition becomes the site's motion signature. */
body[data-mia-page="home"] .hubhero{grid-template-columns:1.04fr 1fr;gap:70px;padding-top:58px;padding-bottom:68px;min-height:610px}
body[data-mia-page="home"] .hubhero h1{font-size:clamp(48px,5.2vw,72px);line-height:1.04;max-width:630px}
body[data-mia-page="home"] .hubhero h1 em{line-height:1.08}
body[data-mia-page="home"] .hubhero p:not(.eyebrow){max-width:505px;line-height:1.8;margin:26px 0}
body[data-mia-page="home"] .heroactions .button{border-radius:5px;padding:13px 20px;min-height:48px}
.mia-atelier{isolation:isolate;position:relative;transform:none!important;padding:24px!important;gap:13px!important;border-radius:18px;background:#e5e1f3!important;margin:12px 0 0;box-shadow:0 18px 48px #332c5510}
.mia-atelier::before{content:"";position:absolute;inset:-15px 22px 18px -12px;z-index:-1;border:1px solid #a99dcd;border-radius:18px;transform:rotate(-4deg);pointer-events:none}
.mia-atelier::after{content:"";position:absolute;width:62px;height:62px;border:13px solid #f6e49b;border-radius:50%;right:-18px;top:-25px;z-index:2;pointer-events:none}
body .mia-atelier>a{position:relative;min-height:172px;padding:24px;border:0;border-radius:9px;overflow:hidden;transition:transform .3s var(--mia-ease),box-shadow .3s;justify-content:space-between}
body .mia-atelier>a::after{content:"↗";font:500 23px Manrope,Arial;position:absolute;right:20px;top:18px;opacity:.7;transition:transform .24s var(--mia-ease)}
body .mia-atelier>a:nth-child(1){background:#c6c2ef;color:#332c55;--entry-x:-26px;--entry-y:-16px;--entry-r:-8deg}
body .mia-atelier>a:nth-child(2){background:#332c55;color:#fff;--entry-x:24px;--entry-y:-18px;--entry-r:8deg}
body .mia-atelier>a:nth-child(3){background:#ffd1b5;color:#332c55;--entry-x:-20px;--entry-y:24px;--entry-r:6deg}
body .mia-atelier>a:nth-child(4){background:#c9e5d8;color:#15343b;--entry-x:28px;--entry-y:22px;--entry-r:-7deg}
body .mia-atelier .icon{width:53px;height:53px;color:inherit;transform-origin:40% 60%;transition:transform .3s var(--mia-ease)}
body .mia-atelier span{font-size:12px;font-weight:800;letter-spacing:.025em}
body .mia-atelier>a:is(:hover,:focus-visible){transform:translateY(-5px) rotate(-1deg);box-shadow:0 10px 22px #332c5520;z-index:3}
body .mia-atelier>a:is(:hover,:focus-visible) .icon{transform:rotate(-8deg) scale(1.07)}
body .mia-atelier>a:is(:hover,:focus-visible)::after{transform:translate(3px,-3px)}
body[data-mia-page="home"] .hubsection{padding-top:54px;padding-bottom:56px;border-top-color:#cdd3d5}
body[data-mia-page="home"] .projectgrid{gap:0 40px}
body[data-mia-page="home"] .projectcard{grid-template-columns:112px 1fr;gap:23px;padding:27px 0;border-top-color:#dcd8e7}
body[data-mia-page="home"] .projectcard .tile{height:130px;border-radius:10px;background:#e8e4f5;overflow:hidden;position:relative}
body[data-mia-page="home"] .projectcard .tile::before{content:"";width:100px;height:100px;position:absolute;left:48px;top:70px;border:1px solid #332c5520;border-radius:50%;transition:transform .35s var(--mia-ease)}
body[data-mia-page="home"] .projectcard:nth-child(6n+2) .tile{background:#ffd1b5}
body[data-mia-page="home"] .projectcard:nth-child(6n+3) .tile{background:#c9e5d8}
body[data-mia-page="home"] .projectcard:nth-child(6n+4) .tile{background:#f6e49b}
body[data-mia-page="home"] .projectcard:nth-child(6n+5) .tile{background:#d5e5ed}
body[data-mia-page="home"] .projectcard:nth-child(6n+6) .tile{background:#ded1ea}
body[data-mia-page="home"] .projectcard .icon{color:#332c55;transition:transform .28s var(--mia-ease)}
body[data-mia-page="home"] .projectcard:is(:hover,:focus-visible) .icon{transform:rotate(-7deg) scale(1.07)}
body[data-mia-page="home"] .projectcard:is(:hover,:focus-visible) .tile::before{transform:translate(-16px,-16px)}
body[data-mia-page="home"] .projectcard h3{font-size:25px}
body[data-mia-page="home"] .projectcard .entry{color:#615198}
body[data-mia-page="home"] #entrees{background:#eeedf7;border:0;border-radius:18px;padding-top:48px;padding-bottom:45px;margin-top:12px;margin-bottom:55px}
body[data-mia-page="home"] .entrygrid{gap:20px 30px}
body[data-mia-page="home"] .entrycard{border-top:1px solid #b8aecf;padding:24px 0 10px;transition:color .18s}
body[data-mia-page="home"] .entrycard:hover h3{color:#615198}
body[data-mia-page="home"] .entrycard h3{font-size:23px;margin:16px 0 12px}
body[data-mia-page="home"] .entrycard .icon{color:#615198}
body[data-mia-page="home"] .entrycard span{color:#615198}
/* Homepage agenda always uses the separate published JSON. */
.mia-next{padding-top:22px;padding-bottom:56px}
.mia-next-intro{max-width:330px;font-size:13px}
.mia-next-intro .button{margin-top:18px;border-radius:5px}
.mia-next-events{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.mia-next-event{display:flex;flex-direction:column;align-items:flex-start;min-height:260px;text-decoration:none;border-top:1px solid #b8aecf;padding:22px 0 10px}
.mia-next-date{display:flex;align-items:center;gap:12px;font-size:12px;margin-bottom:19px}
.mia-next-date strong{font:500 38px/1 Newsreader,Georgia,serif;color:#332c55;display:grid;place-items:center;width:65px;height:65px;border-radius:10px;background:#c6c2ef}
.mia-next-event:nth-child(2) .mia-next-date strong{background:#ffd1b5}
.mia-next-event:nth-child(3) .mia-next-date strong{background:#c9e5d8}
.mia-next-event h3{font-size:21px;line-height:1.35;letter-spacing:-.02em;margin:0 0 12px}
.mia-next-event p{font-size:12px;line-height:1.6}
.mia-next-event>span:last-child{font-size:11px;font-weight:800;color:#615198;margin-top:auto;padding-top:20px}
.mia-next-event:is(:hover,:focus-visible) h3{text-decoration:underline;text-underline-offset:5px}
.mia-next-source{font-size:10px;color:#526269;margin-top:20px}
.mia-next-fallback{font-size:14px;grid-column:1/-1}
body[data-mia-page="home"] .mia-radar-access{background:#c9e5d8;border:0;border-radius:18px;padding:36px 42px;margin-bottom:60px}
body[data-mia-page="home"] .radar-access-art{background:transparent;border-color:#93b8a5}
/* Consistent accents on catalogues, tools, and reading surfaces. */
body .toolcard{border-radius:10px;transition:border-color .2s,background-color .2s}
body .toolcard:is(:hover,:focus-within){border-color:#615198;background:#f2effa}
body .toolcard .tile{background:#eeedf7;border-radius:8px}
body .toolcard:nth-child(5n+2) .tile{background:#ffd1b5}
body .toolcard:nth-child(5n+3) .tile{background:#c9e5d8}
body .toolcard:nth-child(5n+4) .tile{background:#f6e49b}
body .theme-card{border-radius:9px;transition:background-color .18s,border-color .18s}
body .theme-card:nth-child(6n+2){background:#fff2e9}
body .theme-card:nth-child(6n+3){background:#e4f1e9}
body .theme-card:nth-child(6n+4){background:#faf2d0}
body .theme-card[aria-pressed="true"]{background:#615198;color:#fff;border-color:#615198}
body .theme-card[aria-pressed="true"] strong,body .theme-card[aria-pressed="true"] span{color:#fff}
body .family{border-radius:7px}
body .family:nth-child(4n+2):not([aria-pressed="true"]){background:#fff0e6}
body .family:nth-child(4n+3):not([aria-pressed="true"]){background:#e5f0e9}
body .family:nth-child(4n+4):not([aria-pressed="true"]){background:#f9f1d2}
body .family[aria-pressed="true"]{background:#615198;color:white}
body .family[aria-pressed="true"] .icon,body .family[aria-pressed="true"] small{color:white}
body .stage[open]>summary{background:#eeedf7;border-radius:8px;padding-left:16px;padding-right:16px;margin-left:-16px;margin-right:-16px}
body[data-mia-page="tool"] .hero .art{border-radius:12px;background:#eeedf7}
body .intro-note.illustrated-intro{background:#eeedf7;border-radius:12px}
/* Agenda: readable color, immediate state changes. */
body[data-mia-page="agenda"] .hero{padding-top:48px;padding-bottom:28px;gap:64px}
body[data-mia-page="agenda"] .watch-card{background:#332c55;color:#fff;border:0;border-radius:14px;padding:28px 30px;overflow:hidden;box-shadow:0 15px 35px #332c5510}
body[data-mia-page="agenda"] .watch-card h2{color:#fff}
body[data-mia-page="agenda"] .watch-card p{color:#eee9fa}
body[data-mia-page="agenda"] .watch-card .kicker,body[data-mia-page="agenda"] .watch-card .watch-schedule{color:#e5def5}
body[data-mia-page="agenda"] #watch-schedule,body[data-mia-page="agenda"] .watch-card .watch-bottom{color:#e5def5}
body[data-mia-page="agenda"] .watch-card .btn{color:#fff;border-color:#b5a7d7;background:transparent}
body[data-mia-page="agenda"] .watch-card .btn:hover{background:#615198}
body[data-mia-page="agenda"] .watch-radar{color:#c6c2ef;opacity:.25}
body[data-mia-page="agenda"] .metrics{gap:12px;border:0;padding:12px 0 26px}
body[data-mia-page="agenda"] .metric{border:0!important;background:#eeedf7;padding:17px 20px;border-radius:10px;gap:14px}
body[data-mia-page="agenda"] .metric:nth-child(2){background:#f6e49b}
body[data-mia-page="agenda"] .metric:nth-child(3){background:#c9e5d8}
body[data-mia-page="agenda"] .metric:nth-child(4){background:#ffd1b5}
body[data-mia-page="agenda"] .metric-number{font-size:40px;color:#332c55}
body[data-mia-page="agenda"] .metric-label{color:#15343b}
body[data-mia-page="agenda"] .filter-panel{background:#eeedf7;padding:20px 18px;border-radius:10px}
body[data-mia-page="agenda"] .filter-help{background:#e1daef;color:#332c55;border-radius:6px}
body[data-mia-page="agenda"] .filter-title{border-bottom-color:#c4bad9}
body[data-mia-page="agenda"] .event{border-radius:10px;border-color:#d9d4e5;margin-bottom:14px;transition:border-color .2s,background-color .2s}
body[data-mia-page="agenda"] .event:focus-within,body[data-mia-page="agenda"] .event:hover{border-color:#9786bc;background:#fff}
body[data-mia-page="agenda"] .date-tile{border-radius:7px;background:#eeedf7;color:#332c55;border:0}
body[data-mia-page="agenda"] .event[data-mia-type="Atelier"] .date-tile{background:#ffd1b5}
body[data-mia-page="agenda"] .event[data-mia-type="Conférence"] .date-tile{background:#c6c2ef}
body[data-mia-page="agenda"] .event[data-mia-type="Formation"] .date-tile{background:#c9e5d8}
body[data-mia-page="agenda"] .event[data-mia-type="Rencontre"] .date-tile{background:#f6e49b}
body[data-mia-page="agenda"] .event[data-mia-type="Salon"] .date-tile{background:#d5e5ed}
body[data-mia-page="agenda"] .date-tile .day,body[data-mia-page="agenda"] .date-tile .month,body[data-mia-page="agenda"] .date-tile .dayname{color:#332c55}
body[data-mia-page="agenda"] .selection-bar{background:#eeedf7;border:0;border-radius:7px;padding:14px 18px}
body[data-mia-page="agenda"] .month-label{color:#615198;font-weight:800;letter-spacing:.08em}
body[data-mia-page="agenda"] .event-type{color:#615198}
body[data-mia-page="agenda"] .cal-event{border-radius:5px;border:0;color:#332c55}
body[data-mia-page="agenda"] .cal-event[data-mia-type="Atelier"]{background:#ffd1b5}
body[data-mia-page="agenda"] .cal-event[data-mia-type="Conférence"]{background:#c6c2ef}
body[data-mia-page="agenda"] .cal-event[data-mia-type="Formation"]{background:#c9e5d8}
body[data-mia-page="agenda"] .cal-event[data-mia-type="Rencontre"]{background:#f6e49b}
body[data-mia-page="agenda"] .cal-event:hover{box-shadow:inset 0 0 0 1px #615198}
body[data-mia-page="agenda"] .iconbtn[aria-pressed="true"]{background:#f6e49b;color:#332c55;border-color:#d6bd60}
body[data-mia-page="agenda"] dialog{border-radius:14px;border:0;box-shadow:0 24px 80px #20182b38}
body[data-mia-page="agenda"] dialog::backdrop{background:#20182b70}
body[data-mia-page="agenda"] .dialog-head{background:#eeedf7}
@media(max-width:1100px){body[data-mia-page="home"] .hubhero{gap:35px}.mia-atelier{padding:16px!important;gap:10px!important}body .mia-atelier>a{padding:20px;min-height:155px}.mia-atelier::after{right:-8px}body[data-mia-page="agenda"] .metric{padding:15px 12px;gap:10px}body[data-mia-page="agenda"] .hero{gap:30px}}
@media(max-width:760px){
 body[data-mia-page="home"] .hubhero{grid-template-columns:1fr;gap:25px;min-height:0;padding:34px 22px 40px}
 body[data-mia-page="home"] .hubhero h1{font-size:clamp(43px,9.2vw,61px);max-width:650px}
 body[data-mia-page="home"] .hubhero p:not(.eyebrow){font-size:14px;margin:21px 0}
 body[data-mia-page="home"] .hubhero .eyebrow{font-size:9px;margin-bottom:18px}
 .mia-atelier{max-width:540px;width:calc(100% - 10px);margin:15px auto 0!important;padding:14px!important;gap:10px!important;border-radius:12px}
 .mia-atelier::before{inset:-9px 15px 14px -5px;border-radius:12px}
 .mia-atelier::after{width:42px;height:42px;border-width:9px;top:-15px;right:-5px}
 body .mia-atelier>a{min-height:137px;padding:18px;border-radius:7px}
 body .mia-atelier .icon{width:40px;height:40px}
 body .mia-atelier span{font-size:10px}
 body .mia-atelier>a::after{font-size:20px;right:14px;top:12px}
 body[data-mia-page="home"] .hubsection{padding:35px 22px}
 body[data-mia-page="home"] .projectgrid{grid-template-columns:1fr;gap:0}
 body[data-mia-page="home"] .projectcard{grid-template-columns:82px 1fr;gap:18px;padding:23px 0}
 body[data-mia-page="home"] .projectcard .tile{height:100px}
 body[data-mia-page="home"] .projectcard h3{font-size:22px}
 body[data-mia-page="home"] #entrees{border-radius:0;margin:0 0 36px}
 body[data-mia-page="home"] .entrygrid{grid-template-columns:1fr;gap:7px}
 body[data-mia-page="home"] .entrycard{display:grid;grid-template-columns:38px 1fr;gap:0 15px;padding:21px 0}
 body[data-mia-page="home"] .entrycard .icon{grid-column:1;grid-row:1/4;margin-top:3px;width:30px}
 body[data-mia-page="home"] .entrycard h3,body[data-mia-page="home"] .entrycard p,body[data-mia-page="home"] .entrycard span{grid-column:2}
 body[data-mia-page="home"] .entrycard h3{margin:0 0 10px;font-size:22px}
 body[data-mia-page="home"] .entrycard span{margin-top:12px}
 .mia-next{padding-left:22px;padding-right:22px;padding-bottom:35px}
 .mia-next-intro{max-width:none;margin-top:18px}
 .mia-next-events{grid-template-columns:1fr;gap:8px}
 .mia-next-event{min-height:0;display:grid;grid-template-columns:74px 1fr;gap:0 15px;padding:20px 0}
 .mia-next-date{grid-row:1/4;display:flex;flex-direction:column;gap:7px;margin:0;font-size:10px}
 .mia-next-event h3{font-size:19px}
 .mia-next-event>span:last-child{padding-top:12px}
 body[data-mia-page="home"] .mia-radar-access{margin:0 18px 40px;padding:28px 23px;border-radius:12px}
 body[data-mia-page="agenda"] .hero{padding-top:30px;gap:22px}
 body[data-mia-page="agenda"] .watch-card{padding:23px;border-radius:10px}
 body[data-mia-page="agenda"] .metrics{gap:10px;padding:5px 0 20px}
 body[data-mia-page="agenda"] .metric{display:flex;align-items:center;padding:16px 12px}
 body[data-mia-page="agenda"] .metric-number{font-size:35px}
 body[data-mia-page="agenda"] .metric-label{font-size:10px}
 body[data-mia-page="agenda"] .metric-symbol{display:none}
 body[data-mia-page="agenda"] .filter-panel{padding:18px;margin-bottom:18px}
 body[data-mia-page="agenda"] .event{padding:18px 13px}
 body .mia-motion-control{margin-top:8px}
}
@media(max-width:380px){body .mia-atelier>a{padding:14px;min-height:125px}body .mia-atelier span{font-size:9px}body[data-mia-page="home"] .heroactions{gap:10px}body[data-mia-page="home"] .heroactions .button{font-size:11px;padding:11px 14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}body .mia-atelier>a:is(:hover,:focus-visible),body .mia-atelier>a:is(:hover,:focus-visible) .icon{transform:none}}
html[data-mia-motion="off"]{scroll-behavior:auto!important}
html[data-mia-motion="off"] *,html[data-mia-motion="off"] *::before,html[data-mia-motion="off"] *::after{animation:none!important;transition:none!important}
@media print{.mia-motion-control,.mia-next,.mia-atelier{display:none!important}body .mia-site-footer{background:white!important;color:#15343b!important}.mia-next-event,body .event{break-inside:avoid}body{overflow:visible}}

/* Preserve the legacy button shapes while restoring category colors. */
body[data-mia-page] button.theme-card:nth-child(6n+2):not([aria-pressed="true"]){background:#fff2e9!important}
body[data-mia-page] button.theme-card:nth-child(6n+3):not([aria-pressed="true"]){background:#e4f1e9!important}
body[data-mia-page] button.theme-card:nth-child(6n+4):not([aria-pressed="true"]){background:#faf2d0!important}
body[data-mia-page] button.family:nth-child(4n+2):not([aria-pressed="true"]){background:#fff0e6!important}
body[data-mia-page] button.family:nth-child(4n+3):not([aria-pressed="true"]){background:#e5f0e9!important}
body[data-mia-page] button.family:nth-child(4n+4):not([aria-pressed="true"]){background:#f9f1d2!important}
