/*
Theme Name: UE2008 Institutionnel
Description: Thème magazine pour ue2008.fr. Le contenu reste dans WordPress, le thème ne fait que l'afficher.
Version: 2.0
Requires PHP: 7.4
Text Domain: ue2008
*/

@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/*
  Repères de couleur (un rôle chacun) :
  --blue   : liens et éléments actifs.
  --gold   : le jaune européen, réservé à la marque, à la barre de lecture et aux rubriques posées sur une photo.
  --ink    : titres et fonds sombres.
*/
:root {
  --ink: #0b1533; --ink-2: #142251; --blue: #2547d0; --blue-soft: #edf1ff; --gold: #ffcc00;
  --bg: #ffffff; --soft: #f4f6fb; --text: #2a3346; --muted: #5f687b; --line: #e3e7ef;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 48px); --header-h: 72px; --radius: 18px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(11, 21, 51, .05), 0 8px 24px -12px rgba(11, 21, 51, .16);
  --shadow-up: 0 2px 4px rgba(11, 21, 51, .06), 0 22px 44px -18px rgba(11, 21, 51, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 650; line-height: 1.14; letter-spacing: -.015em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ue-skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.ue-skip:focus { top: 12px; }
.ue-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ue-wrap--narrow { max-width: calc(740px + 2 * var(--gutter)); }

/* Étiquette de section : petites capitales bleues. Même sens partout : elle nomme la page ou la section. */
.ue-eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Ligne d'information : rubrique (pastille), date, durée */
.ue-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ue-meta > time, .ue-meta > span { display: inline-flex; align-items: center; gap: 12px; }
.ue-meta > span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.ue-meta a { color: inherit; }
/* Pastille de rubrique : toujours une rubrique, toujours cliquable */
.ue-pill { position: relative; z-index: 2; display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue) !important; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; transition: background .2s, color .2s; }
.ue-pill:hover { background: var(--blue); color: #fff !important; text-decoration: none; }

.ue-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; transition: background .2s, transform .2s var(--ease); }
.ue-btn:hover { background: var(--blue); text-decoration: none; }
.ue-btn span, .ue-more span { display: inline-block; transition: transform .25s var(--ease); }
.ue-btn:hover span, .ue-more:hover span { transform: translateX(4px); }
.ue-more { flex: none; color: var(--blue); font-size: 14.5px; font-weight: 600; }
.ue-more:hover { text-decoration: none; }

.ue-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ue-chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.3; transition: border-color .2s, color .2s; }
.ue-chips a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* En-tête : marque, rubriques, recherche */
.ue-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.ue-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(11, 21, 51, .45); }
.ue-header__in { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); height: var(--header-h); }
.ue-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.ue-brand:hover { text-decoration: none; }
.ue-brand__mark { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.ue-brand__mark::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: var(--gold); }
.ue-brand__name { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.ue-brand__name i { font-style: normal; color: var(--muted); font-weight: 500; }
.ue-nav { flex: 1; min-width: 0; }
.ue-nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ue-nav__list a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); font-size: 14.5px; font-weight: 550; white-space: nowrap; transition: background .2s, color .2s; }
.ue-nav__list a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.ue-nav__list .current-menu-item a { background: var(--ink); color: #fff; }
.ue-searchbtn { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 42px; padding: 0 16px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s; }
.ue-searchbtn:hover, .ue-searchbtn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.ue-search { padding: 4px 0 20px; }
.ue-searchform { display: flex; align-items: center; gap: 8px; max-width: 720px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.ue-searchform input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.ue-searchform input:focus { outline: none; }
.ue-searchform:focus-within { border-color: var(--blue); }
.ue-searchform button { height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .2s; }
.ue-searchform button:hover { background: var(--blue); }
.ue-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: hidden; }
.ue-progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* Cartes d'article */
.ue-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ue-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.ue-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.ue-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ue-card:hover .ue-card__media img { transform: scale(1.045); }
.ue-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 20px 22px 24px; }
.ue-card__title { font-size: 21px; line-height: 1.22; }
.ue-card__title a { color: inherit; }
.ue-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ue-card__title a:hover { text-decoration: none; }
.ue-card:hover .ue-card__title { color: var(--blue); }
.ue-card__excerpt { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 15.5px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ue-card:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.ue-card__title a:focus-visible { outline: none; }
.ue-noimage { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 78% 18%, rgba(255, 204, 0, .28), transparent 34%), linear-gradient(135deg, var(--blue), var(--ink)); }

/* Carte « titre sur la photo » (accueil) */
.ue-card--overlay { justify-content: flex-end; min-height: 260px; background: var(--ink); color: #fff; }
.ue-card--overlay .ue-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.ue-card--overlay .ue-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 21, 51, 0) 20%, rgba(11, 21, 51, .6) 52%, rgba(11, 21, 51, .94)); }
.ue-card--overlay .ue-card__body { position: relative; flex: none; padding: clamp(20px, 2.4vw, 32px); }
.ue-card--overlay .ue-card__title { color: #fff; font-size: clamp(21px, 1.9vw, 26px); }
.ue-card--overlay:hover .ue-card__title { color: #fff; }
.ue-card--overlay .ue-card__excerpt { color: rgba(255, 255, 255, .82); font-size: 16.5px; -webkit-line-clamp: 2; max-width: 640px; }
.ue-card--overlay .ue-meta { color: rgba(255, 255, 255, .8); }
.ue-card--overlay .ue-pill { background: var(--gold); color: var(--ink) !important; }
.ue-card--overlay .ue-pill:hover { background: #fff; color: var(--ink) !important; }
.ue-card--big .ue-card__title { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.08; }

/* Accueil : à la une */
.ue-top { padding-top: clamp(12px, 2vw, 24px); padding-bottom: clamp(48px, 6vw, 80px); }
.ue-bento { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: clamp(14px, 1.6vw, 22px); min-height: min(640px, 76vh); }
.ue-bento .ue-card--big { grid-row: span 2; }

/* Accueil : rubriques */
.ue-band { background: var(--ink); color: #fff; padding: clamp(52px, 7vw, 96px) 0; }
.ue-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); margin: 0; padding: 0; list-style: none; }
.ue-topics a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 168px; padding: 22px 24px; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); color: #fff; isolation: isolate; }
.ue-topics a:hover { text-decoration: none; }
.ue-topics img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform .7s var(--ease), opacity .3s; }
.ue-topics a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 21, 51, .1), rgba(11, 21, 51, .85)); }
.ue-topics a:hover img { transform: scale(1.06); opacity: .62; }
.ue-topics__name { font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); font-weight: 650; line-height: 1.15; }
.ue-topics__count { color: rgba(255, 255, 255, .78); font-size: 14px; }
.ue-topics__count span { display: inline-block; margin-left: 4px; color: var(--gold); transition: transform .25s var(--ease); }
.ue-topics a:hover .ue-topics__count span { transform: translateX(5px); }

/* Titre de section : titre à gauche, lien « tout voir » à droite */
.ue-sectionhead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 3vw, 34px); }
.ue-sectionhead h2 { font-size: clamp(28px, 3vw, 40px); }
.ue-sectionhead--light h2 { color: #fff; }

/* Listes d'articles */
.ue-listing { background: var(--soft); padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.ue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ue-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: clamp(36px, 4vw, 56px); }
.ue-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow); }
.ue-pagination a.page-numbers:hover { color: var(--blue); text-decoration: none; }
.ue-pagination .current { background: var(--ink); color: #fff; }
.ue-pagination .dots { background: transparent; box-shadow: none; }

/* En-tête des pages de liste et des pages simples */
.ue-pagehead { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 84px) 0 clamp(32px, 4vw, 52px); background: radial-gradient(circle at 92% -20%, rgba(37, 71, 208, .14), transparent 45%), var(--bg); border-bottom: 1px solid var(--line); }
.ue-pagehead h1 { font-size: clamp(36px, 5vw, 66px); line-height: 1.04; }
.ue-pagehead__intro { max-width: 720px; margin-top: 16px; font-size: 18px; }
.ue-pagehead__intro p { margin: 0; }
.ue-pagehead__count { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.ue-pagehead .ue-searchform { margin-top: 24px; }
.ue-empty { padding-top: 48px; padding-bottom: 96px; }
.ue-empty p { margin: 0 0 24px; }

/* Article */
.ue-article__head { padding: clamp(32px, 5vw, 68px) 0 clamp(26px, 3vw, 40px); }
.ue-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.ue-crumbs a { color: var(--muted); }
.ue-crumbs a:last-child { padding: 4px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ue-crumbs a:last-child:hover { background: var(--blue); color: #fff; text-decoration: none; }
.ue-article__head h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.07; }
.ue-meta--article { margin-top: 22px; font-size: 14px; }
.ue-article__figure { max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto clamp(32px, 4vw, 56px); }
.ue-article__figure img { display: block; width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.ue-content { color: var(--text); font-size: 18.5px; line-height: 1.75; overflow-wrap: break-word; }
.ue-content > *:first-child { margin-top: 0; }
.single .ue-content > p:first-of-type { color: var(--ink); font-size: 21px; line-height: 1.6; }
.ue-content p { margin: 0 0 1.35em; }
.ue-content h2 { margin: 1.9em 0 .6em; font-size: clamp(25px, 2.6vw, 32px); }
.ue-content h3 { margin: 1.7em 0 .5em; font-size: clamp(21px, 2vw, 25px); }
.ue-content h4 { margin: 1.5em 0 .5em; font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.ue-content a { text-decoration: underline; text-decoration-color: rgba(37, 71, 208, .35); text-underline-offset: 3px; }
.ue-content a:hover { text-decoration-color: currentColor; }
.ue-content ul, .ue-content ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.ue-content li { margin-bottom: .45em; }
.ue-content li::marker { color: var(--blue); font-weight: 600; }
.ue-content blockquote { margin: 1.8em 0; padding: 22px 26px; border-radius: var(--radius-s); background: var(--soft); border-left: 4px solid var(--gold); color: var(--ink); font-family: var(--serif); font-size: 22px; line-height: 1.5; }
.ue-content blockquote p:last-child { margin-bottom: 0; }
.ue-content figure { margin: 2em 0; }
.ue-content figure img, .ue-content p > img, .ue-content a > img { border-radius: var(--radius-s); }
.ue-content figcaption, .ue-content .wp-caption-text { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ue-content .wp-caption { max-width: 100%; }
.ue-content img { height: auto; }
.ue-content .alignleft { float: left; margin: 6px 28px 16px 0; max-width: 46%; }
.ue-content .alignright { float: right; margin: 6px 0 16px 28px; max-width: 46%; }
.ue-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.ue-content::after { content: ""; display: block; clear: both; }
.ue-content table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; font-size: 16px; }
.ue-content th, .ue-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.ue-content th { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.ue-content iframe, .ue-content video { max-width: 100%; border-radius: var(--radius-s); }
.ue-article__foot { display: grid; gap: 14px; margin: clamp(36px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); padding-top: 26px; border-top: 1px solid var(--line); }
.ue-taxo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ue-taxo > span { min-width: 96px; color: var(--muted); font-size: 13px; font-weight: 600; }
.ue-related { background: var(--soft); padding: clamp(48px, 6vw, 88px) 0; }
.ue-content--page { padding: clamp(32px, 4vw, 56px) 0 clamp(56px, 7vw, 104px); }

/* Formulaires (page Contact, commentaires) */
.ue-content form p { margin-bottom: 18px; }
.ue-content label { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.ue-content input[type="text"], .ue-content input[type="email"], .ue-content input[type="url"], .ue-content input[type="tel"], .ue-content textarea, .ue-content select,
.ue-comments input[type="text"], .ue-comments input[type="email"], .ue-comments input[type="url"], .ue-comments textarea { display: block; width: 100%; margin-top: 8px; padding: 13px 16px; border: 1px solid #c9d0dc; border-radius: var(--radius-s); background: #fff; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.ue-content textarea, .ue-comments textarea { min-height: 180px; resize: vertical; }
.ue-content input:focus, .ue-content textarea:focus, .ue-comments input:focus, .ue-comments textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 71, 208, .14); }
.ue-content input[type="submit"], .ue-comments input[type="submit"] { padding: 14px 28px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .2s; }
.ue-content input[type="submit"]:hover, .ue-comments input[type="submit"]:hover { background: var(--blue); }
.ue-content .wpcf7-not-valid-tip { margin-top: 6px; color: #b42318; font-size: 14px; font-weight: 400; }
.ue-content .wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-s); font-size: 15.5px; }
.ue-comments { margin-bottom: 72px; }
.ue-comments h2, .ue-comments h3 { font-size: 26px; margin-bottom: 18px; }
.ue-comments__list { margin: 0 0 32px; padding: 0; list-style: none; }
.ue-comments__list li { padding: 18px 0; border-bottom: 1px solid var(--line); }

/* Pied de page */
.ue-footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .74); padding: clamp(56px, 7vw, 96px) 0 0; font-size: 15px; line-height: 1.6; }
.ue-footer a { color: #fff; }
.ue-footer__grid { display: grid; grid-template-columns: 1.4fr .8fr .7fr 1.5fr; gap: clamp(28px, 4vw, 56px); }
.ue-footer__about p { max-width: 340px; margin: 18px 0 0; }
.ue-footer__small { color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.ue-brand--light, .ue-brand--light .ue-brand__name i { color: #fff; }
.ue-brand--light .ue-brand__name i { opacity: .6; }
.ue-brand--light .ue-brand__mark::after { border-color: var(--ink); }
.ue-widget__title { margin: 4px 0 16px; color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ue-widget ul { margin: 0; padding: 0; list-style: none; }
.ue-widget li { margin-bottom: 10px; }
.ue-widget li a { color: rgba(255, 255, 255, .78); }
.ue-widget li a:hover { color: #fff; }
.ue-widget .textwidget { color: rgba(255, 255, 255, .62); font-size: 14px; line-height: 1.85; }
.ue-widget .textwidget a { color: #fff; font-weight: 600; }
.ue-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 5vw, 72px); padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.ue-footer__bottom p { margin: 0; }
.ue-footer__word { margin: 0 0 -.22em; color: transparent; font-size: clamp(90px, 21vw, 330px); font-weight: 800; letter-spacing: -.06em; line-height: .9; text-align: center; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); user-select: none; pointer-events: none; }

@media (max-width: 1100px) {
  .ue-nav__list a { padding: 8px 11px; font-size: 14px; }
  .ue-searchbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ue-searchbtn { width: 42px; padding: 0; justify-content: center; }
}
@media (max-width: 980px) {
  /* Les rubriques passent sous la marque et défilent à l'horizontale */
  :root { --header-h: 112px; }
  .ue-header__in { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 10px 16px; }
  .ue-searchbtn { margin-left: auto; }
  .ue-nav { order: 3; flex-basis: 100%; margin: 0 calc(-1 * var(--gutter)); }
  .ue-nav__list { overflow-x: auto; padding: 0 var(--gutter) 12px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent); }
  .ue-nav__list::-webkit-scrollbar { display: none; }
  .ue-nav__list a { background: var(--soft); }
  .ue-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 0; }
  .ue-bento .ue-card--big { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .ue-grid, .ue-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ue-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .ue-brand__mark { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
  .ue-brand__name { font-size: 19px; }
  .ue-bento { grid-template-columns: 1fr; }
  .ue-bento .ue-card--big { min-height: 440px; }
  .ue-card--overlay { min-height: 230px; }
  .ue-grid { grid-template-columns: 1fr; }
  .ue-topics { gap: 10px; }
  .ue-topics a { min-height: 120px; padding: 16px; }
  .ue-topics__name { font-size: 19px; }
  .ue-topics__count { font-size: 13px; }
  .ue-sectionhead { flex-direction: column; gap: 6px; }
  .ue-content { font-size: 17.5px; }
  .single .ue-content > p:first-of-type { font-size: 19px; }
  .ue-content .alignleft, .ue-content .alignright { float: none; display: block; margin: 0 0 18px; max-width: 100%; }
  .ue-article__figure { padding: 0; }
  .ue-article__figure img { border-radius: 0; }
  .ue-footer__grid { grid-template-columns: 1fr; }
  .ue-footer__bottom { flex-direction: column; gap: 10px; }
  .ue-taxo > span { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
