/* UNSA CR BFC Premium - charte UNSA, Sora + Inter */

:root {
    --ucp-blue: #009fe3;
    --ucp-blue-dark: #0077b3;
    --ucp-navy: #29235c;
    --ucp-ink: #0f172a;
    --ucp-ink2: #1e293b;
    --ucp-muted: #64748b;
    --ucp-border: #e2e8f0;
    --ucp-bg: #ffffff;
    --ucp-bg2: #f8fafc;
    --ucp-radius: 12px;
    --ucp-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --ucp-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06);
}

html {
    -webkit-text-size-adjust: 100%;
}

/* overflow-x sur html ET body force overflow-y:auto, ce qui casse
   position:sticky du header. On le limite a body : le debordement
   lateral reste bride, et le header colle a nouveau. */
body {
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--ucp-bg);
    color: var(--ucp-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

*, *::before, *::after {
    box-sizing: border-box;
    min-width: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ucp-blue-dark);
}

h1, h2, h3, h4 {
    font-family: 'Sora', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ucp-ink);
}

.ucp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ucp-section {
    padding: 40px 24px 56px;
}

.ucp-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ucp-navy);
    color: #fff;
    padding: 10px 16px;
    z-index: 10000;
}

.ucp-skip:focus {
    left: 12px;
    top: 12px;
}

/* ---- Header ---- */

.ucp-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #fff;
    border-bottom: 1px solid var(--ucp-border);
    transition: box-shadow 0.2s ease;
}

.ucp-header-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* Barre d'administration WordPress : elle est fixed et recouvre la page.
   Le header collant doit se caler dessous, sinon il passe par-dessus
   le « Bonjour » et l'avatar. 32 px au-dessus de 782 px, 46 px en dessous. */
.admin-bar .ucp-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ucp-header {
        top: 46px;
    }
}

/* Sous 600 px, WordPress défige sa barre : plus rien à compenser. */
@media screen and (max-width: 600px) {
    .admin-bar .ucp-header {
        top: 0;
    }
}

.ucp-header-in {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}

.ucp-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 0 0 auto;
}

.ucp-brand .ucp-logo,
.ucp-brand .custom-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    flex: 0 0 auto;
}

.ucp-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.ucp-brand-name {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--ucp-navy);
}

.ucp-brand-sub {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ucp-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ucp-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.ucp-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    justify-content: flex-end;
}

.ucp-menu li {
    position: relative;
}

.ucp-menu a {
    display: inline-flex;
    align-items: center;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--ucp-ink2);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ucp-menu a:hover,
.ucp-menu .current-menu-item > a {
    background: #e0f2fe;
    color: var(--ucp-navy);
}

.ucp-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--ucp-border);
    border-radius: 12px;
    box-shadow: var(--ucp-shadow-hover);
    display: none;
    z-index: 950;
}

.ucp-menu li:hover > .sub-menu,
.ucp-menu li:focus-within > .sub-menu {
    display: block;
}

.ucp-menu .sub-menu a {
    display: block;
    white-space: normal;
}

.ucp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

/* ---- Boutons ---- */

.ucp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.ucp-btn-cta {
    background: var(--ucp-blue);
    color: #fff;
}

.ucp-btn-cta:hover {
    background: var(--ucp-blue-dark);
    color: #fff;
    box-shadow: var(--ucp-shadow-hover);
}

.ucp-btn-light {
    background: #fff;
    color: var(--ucp-navy);
}

.ucp-btn-light:hover {
    box-shadow: var(--ucp-shadow-hover);
    transform: translateY(-1px);
}

.ucp-btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.ucp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.ucp-burger {
    display: none;
    appearance: none;
    background: #fff;
    border: 1px solid var(--ucp-border);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ucp-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ucp-ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ucp-burger-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ucp-burger-open span:nth-child(2) {
    opacity: 0;
}

.ucp-burger-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ---- Deux portes claires : se connecter, ou adhérer ---- */

.ucp-btn-connexion {
    background: #fff;
    color: var(--ucp-navy);
    border: 1px solid var(--ucp-border);
    gap: 8px;
}

.ucp-btn-connexion:hover,
.ucp-btn-connexion:focus-visible {
    background: #e0f2fe;
    color: var(--ucp-navy);
    border-color: #bae6fd;
}

.ucp-ic-btn {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

/* Adhérent connecté : le bouton devient « Mon espace », avec sa pastille verte. */
.ucp-btn-connexion.ucp-connecte {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #04684f;
}

.ucp-btn-connexion.ucp-connecte::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #059669;
    flex: 0 0 auto;
}

.ucp-btn-connexion.ucp-connecte .ucp-ic-btn {
    display: none;
}

/* Sous 900 px, le bouton de connexion se réduit à son icône (cible 44 px). */
@media (max-width: 900px) {
    .ucp-btn-connexion {
        padding: 10px;
        min-width: 44px;
        justify-content: center;
    }

    .ucp-btn-connexion #ucp-connexion-libelle {
        display: none;
    }

    .ucp-btn-connexion.ucp-connecte::before {
        margin: 0;
    }
}

@media (max-width: 520px) {
    .ucp-header-actions .ucp-btn-cta {
        padding: 10px 16px;
        font-size: 0.86rem;
    }

    /* Sous 520 px, les quatre actions ne tiennent plus (486 px requis pour
       375 px disponibles) : la maison s'efface, le logo reste le retour. */
    .ucp-home-btn {
        display: none;
    }
}

/* ---- Bandeau d'accueil ---- */

.ucp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ucp-blue) 0%, var(--ucp-navy) 100%);
    color: #fff;
    padding: 92px 0 96px;
}

.ucp-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ucp-hero-blob-a {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 70%);
    width: 560px;
    height: 560px;
    top: -220px;
    left: 8%;
}

.ucp-hero-blob-b {
    background: radial-gradient(circle, rgba(0, 22, 60, 0.55) 0%, rgba(0, 22, 60, 0) 70%);
    width: 640px;
    height: 640px;
    bottom: -300px;
    right: -6%;
}

.ucp-hero-blob-c {
    background: radial-gradient(circle, rgba(96, 215, 255, 0.4) 0%, rgba(96, 215, 255, 0) 70%);
    width: 420px;
    height: 420px;
    top: 10%;
    right: 22%;
}

.ucp-live .ucp-hero-blob-a {
    animation: ucp-drift-a 16s ease-in-out infinite alternate;
}

.ucp-live .ucp-hero-blob-b {
    animation: ucp-drift-b 20s ease-in-out infinite alternate;
}

.ucp-live .ucp-hero-blob-c {
    animation: ucp-drift-c 13s ease-in-out infinite alternate;
}

@keyframes ucp-drift-c {
    from { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.5; }
    to   { transform: translate3d(-90px, 60px, 0) scale(1.25); opacity: 0.9; }
}

/* Grain de pellicule, statique et léger. */
.ucp-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.ucp-hero-in {
    position: relative;
}

.ucp-hero-copy {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ucp-hero-kicker {
    margin: 0 0 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.ucp-hero-title {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 5.2vw, 3.7rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    text-wrap: balance;
}

.ucp-hero-text {
    margin: 0 0 30px;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
}

.ucp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Grande barre de recherche du bandeau : ouvre la recherche instantanée. */
.ucp-hero-search {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 640px);
    min-height: 60px;
    margin-top: 26px;
    padding: 8px 8px 8px 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    box-shadow: 0 18px 46px rgba(0, 20, 60, 0.35);
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ucp-hero-search:hover,
.ucp-hero-search:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 56px rgba(0, 20, 60, 0.45);
}

.ucp-hero-search:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

.ucp-hero-search-ic {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--ucp-blue-dark);
}

.ucp-hero-search-texte {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #64748b;
}

.ucp-hero-search-go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 22px;
    background: var(--ucp-blue);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.ucp-hero-search:hover .ucp-hero-search-go {
    background: var(--ucp-blue-dark);
}

@media (max-width: 520px) {
    .ucp-hero-search {
        padding-left: 16px;
    }

    .ucp-hero-search-go {
        padding: 10px 16px;
    }
}

.ucp-hero-actions .ucp-btn {
    min-height: 50px;
    padding: 12px 30px;
    font-size: 1rem;
}

/* Entrée en scène du bandeau au chargement. */
.ucp-enter {
    opacity: 0;
    transform: translateY(22px);
    animation: ucp-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ucp-enter-1 { animation-delay: 0.05s; }
.ucp-enter-2 { animation-delay: 0.16s; }
.ucp-enter-3 { animation-delay: 0.3s; }
.ucp-enter-4 { animation-delay: 0.44s; }
.ucp-enter-5 { animation-delay: 0.58s; }

@keyframes ucp-enter {
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ucp-enter {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ---- À la une ---- */

.ucp-featured {
    display: grid;
    grid-template-columns: minmax(min(100%, 340px), 1.1fr) 1fr;
    gap: 28px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ucp-border);
    border-radius: 16px;
    box-shadow: var(--ucp-shadow);
    padding: 22px;
    margin-bottom: 44px;
}

.ucp-featured-media {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ucp-bg2);
    aspect-ratio: 16 / 10;
}

.ucp-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ucp-featured-title {
    margin: 10px 0 12px;
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
}

.ucp-featured-title a {
    color: var(--ucp-ink);
    text-decoration: none;
}

.ucp-featured-title a:hover {
    color: var(--ucp-navy);
}

.ucp-featured-body .ucp-btn {
    margin-top: 16px;
}

.ucp-badge-une {
    display: inline-flex;
    align-items: center;
    background: var(--ucp-navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 12px;
}

/* ---- Grille d'articles ---- */

.ucp-section-title {
    font-size: 1.35rem;
    margin: 0 0 20px;
}

.ucp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 22px;
}

.ucp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ucp-border);
    border-radius: var(--ucp-radius);
    overflow: hidden;
    box-shadow: var(--ucp-shadow);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ucp-card:hover {
    box-shadow: var(--ucp-shadow-hover);
    transform: translateY(-2px);
}

.ucp-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--ucp-bg2);
    overflow: hidden;
}

.ucp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ucp-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);
}

.ucp-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 18px;
    gap: 8px;
}

.ucp-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ucp-badge-cat {
    display: inline-flex;
    align-items: center;
    background: var(--ucp-blue);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}

.ucp-card-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ucp-muted);
    white-space: nowrap;
}

.ucp-on-blue {
    color: rgba(255, 255, 255, 0.85);
}

.ucp-card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.ucp-card-title a {
    color: var(--ucp-ink);
    text-decoration: none;
}

.ucp-card-title a:hover {
    color: var(--ucp-navy);
}

.ucp-card-excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ucp-muted);
}

.ucp-card-more {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ucp-blue-dark);
    text-decoration: none;
}

.ucp-card-more:hover {
    text-decoration: underline;
}

/* ---- Pagination ---- */

.ucp-pagination {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.ucp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    margin: 0 3px;
    border: 1px solid var(--ucp-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ucp-ink2);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.ucp-pagination .page-numbers.current {
    background: var(--ucp-blue);
    border-color: var(--ucp-blue);
    color: #fff;
}

.ucp-pagination .page-numbers:hover:not(.current) {
    box-shadow: var(--ucp-shadow-hover);
}

/* ---- Article ---- */

.ucp-article-head {
    background: linear-gradient(135deg, var(--ucp-blue) 0%, var(--ucp-navy) 100%);
    color: #fff;
    padding: 46px 0;
}

.ucp-article-head-in {
    max-width: 860px;
}

.ucp-article-title {
    margin: 12px 0 0;
    color: #fff;
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
}

.ucp-article-wrap {
    max-width: 860px;
    padding-top: 34px;
    padding-bottom: 56px;
}

.ucp-article-media {
    margin: 0 0 28px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ucp-shadow);
}

.ucp-article-media img {
    display: block;
    width: 100%;
    height: auto;
}

.ucp-page-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin: 0 0 22px;
}

.ucp-search-count {
    margin: -12px 0 22px;
    color: var(--ucp-muted);
    font-size: 0.92rem;
}

/* ---- Contenu riche ---- */

.ucp-prose {
    font-size: 1.02rem;
    color: var(--ucp-ink2);
}

.ucp-prose h2 {
    font-size: 1.45rem;
    margin: 1.8em 0 0.6em;
}

.ucp-prose h3 {
    font-size: 1.18rem;
    margin: 1.5em 0 0.5em;
}

.ucp-prose p {
    margin: 0 0 1.1em;
}

.ucp-prose img {
    border-radius: 10px;
}

.ucp-prose blockquote {
    margin: 1.4em 0;
    padding: 18px 22px;
    background: #e0f2fe;
    border-radius: 12px;
    font-weight: 500;
    color: var(--ucp-ink);
}

.ucp-prose blockquote p:last-child {
    margin-bottom: 0;
}

.ucp-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.ucp-prose .wp-block-table,
.ucp-prose figure.wp-block-table {
    overflow-x: auto;
}

.ucp-prose th,
.ucp-prose td {
    padding: 10px 12px;
    border: 1px solid var(--ucp-border);
    text-align: left;
}

.ucp-prose th {
    background: var(--ucp-bg2);
    font-weight: 700;
}

.ucp-prose a {
    color: var(--ucp-blue-dark);
}

/* ---- Navigation entre articles ---- */

.ucp-postnav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    margin-top: 40px;
}

.ucp-postnav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--ucp-border);
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    box-shadow: var(--ucp-shadow);
}

.ucp-postnav-item:hover {
    box-shadow: var(--ucp-shadow-hover);
}

.ucp-postnav-next {
    text-align: right;
}

.ucp-postnav-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ucp-muted);
}

.ucp-postnav-title {
    font-weight: 600;
    color: var(--ucp-ink);
    font-size: 0.94rem;
}

/* ---- Vide / 404 ---- */

.ucp-empty {
    text-align: center;
    padding: 60px 0;
}

.ucp-empty .ucp-btn {
    margin-top: 18px;
}

/* ---- Pied de page ---- */

.ucp-footer {
    background: var(--ucp-navy);
    color: #fff;
    margin-top: 48px;
}

.ucp-footer a {
    color: #fff;
}

.ucp-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 40px;
}

.ucp-footer-brand {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0 0 10px;
    color: #fff;
}

.ucp-footer-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 12px;
    color: #fff;
}

.ucp-footer-text {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.ucp-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ucp-footer-menu a {
    text-decoration: none;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
}

.ucp-footer-menu a:hover {
    color: #fff;
    text-decoration: underline;
}

.ucp-footer .ucp-btn-light {
    margin-top: 4px;
    color: var(--ucp-navy);
}

.ucp-footer .ucp-btn-light:hover {
    color: var(--ucp-navy);
}

.ucp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 0;
}

.ucp-footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ---- Recherche ---- */

.ucp-search-btn {
    appearance: none;
    background: #fff;
    border: 1px solid var(--ucp-border);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ucp-ink2);
    transition: box-shadow 0.15s ease, color 0.15s ease;
}

.ucp-search-btn:hover {
    color: var(--ucp-navy);
    box-shadow: var(--ucp-shadow-hover);
}

.ucp-search-btn svg {
    width: 19px;
    height: 19px;
}

/* Retour a l'accueil : le logo y mene deja, mais tout le monde ne connait
   pas cette convention. Meme forme que la loupe pour faire paire. */
.ucp-home-btn {
    background: #fff;
    border: 1px solid var(--ucp-border);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--ucp-ink2);
    text-decoration: none;
    transition: box-shadow 0.15s ease, color 0.15s ease;
}

.ucp-home-btn:hover {
    color: var(--ucp-navy);
    box-shadow: var(--ucp-shadow-hover);
}

.ucp-home-btn svg {
    width: 19px;
    height: 19px;
}

/* Sur la page d'accueil, le bouton n'a plus d'objet : on le retire. */
.home .ucp-home-btn,
.blog .ucp-home-btn {
    display: none;
}

.ucp-no-scroll {
    overflow: hidden;
}

.ucp-search-overlay {
    position: fixed;
    inset: 0;
    /* Au-dessus des pop-ins de plugins (newsletter…) pendant la recherche. */
    z-index: 100000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    padding: 8vh 16px 16px;
    overflow-y: auto;
}

.ucp-search-box {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    padding: 18px;
}

.ucp-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--ucp-border);
    border-radius: 12px;
    padding: 4px 10px 4px 14px;
}

.ucp-search-form:focus-within {
    box-shadow: 0 0 0 3px #e0f2fe;
}

.ucp-search-ic {
    width: 18px;
    height: 18px;
    color: var(--ucp-blue);
    flex: 0 0 auto;
}

#ucp-search-input {
    flex: 1 1 auto;
    border: 0;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 12px 0;
    color: var(--ucp-ink);
    background: transparent;
}

.ucp-search-close {
    appearance: none;
    background: var(--ucp-bg2);
    border: 1px solid var(--ucp-border);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ucp-muted);
    flex: 0 0 auto;
}

.ucp-search-close svg {
    width: 16px;
    height: 16px;
}

.ucp-search-hint {
    margin: 10px 4px 0;
    font-size: 0.8rem;
    color: var(--ucp-muted);
}

.ucp-search-results {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 52vh;
    overflow-y: auto;
}

/* Réponses directes (grilles, décrets, CGFP) au-dessus des articles. */
.ucp-search-directes {
    margin-top: 12px;
    padding: 12px 12px 8px;
    background: #f0f9ff;
    border-radius: 12px;
    max-height: 46vh;
    overflow-y: auto;
}

.ucp-sg-bloc + .ucp-sg-bloc {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.ucp-sg-head {
    margin: 0 4px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ucp-navy);
}

.ucp-sg-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    min-height: 44px;
}

.ucp-sg-item:hover {
    background: #e0f2fe;
}

.ucp-sg-pill {
    flex: 0 0 auto;
    margin-top: 1px;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    display: inline-flex;
    align-items: center;
    background: var(--ucp-navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
}

.ucp-sg-texte {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ucp-sg-label {
    min-width: 0;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--ucp-ink);
    line-height: 1.35;
}

.ucp-sg-detail {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    color: var(--ucp-muted);
    line-height: 1.4;
}

.ucp-search-status {
    margin: 8px 4px;
    font-size: 0.9rem;
    color: var(--ucp-muted);
}

.ucp-sr-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
}

.ucp-sr-item:hover {
    background: #e0f2fe;
}

.ucp-sr-title {
    font-weight: 600;
    color: var(--ucp-ink);
    font-size: 0.95rem;
    line-height: 1.35;
}

.ucp-sr-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ucp-blue-dark);
}

.ucp-sr-excerpt {
    font-size: 0.83rem;
    color: var(--ucp-muted);
}

.ucp-sr-all {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--ucp-border);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ucp-blue-dark);
    text-decoration: none;
}

.ucp-sr-all:hover {
    text-decoration: underline;
}

/* ---- Vidéos : bande cinématographique ---- */

.ucp-cinema {
    position: relative;
    overflow: hidden;
    background: #021a33;
    color: #fff;
    padding: 64px 0 72px;
    margin-top: 12px;
}

.ucp-cinema-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ucp-blob {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.7;
    will-change: transform, opacity;
}

.ucp-blob-a {
    background: radial-gradient(circle, rgba(0, 158, 224, 0.75) 0%, rgba(0, 158, 224, 0) 70%);
    width: 620px;
    height: 620px;
    top: -200px;
    left: -140px;
}

.ucp-blob-b {
    background: radial-gradient(circle, rgba(0, 90, 180, 0.9) 0%, rgba(0, 66, 137, 0) 70%);
    width: 680px;
    height: 680px;
    bottom: -260px;
    right: -160px;
}

.ucp-blob-c {
    background: radial-gradient(circle, rgba(96, 215, 255, 0.45) 0%, rgba(96, 215, 255, 0) 70%);
    width: 380px;
    height: 380px;
    top: 30%;
    left: 40%;
}

.ucp-live .ucp-blob-a {
    animation: ucp-drift-a 15s ease-in-out infinite alternate;
}

.ucp-live .ucp-blob-b {
    animation: ucp-drift-b 19s ease-in-out infinite alternate;
}

.ucp-live .ucp-blob-c {
    animation: ucp-drift-c 12s ease-in-out infinite alternate;
}

@keyframes ucp-drift-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(180px, 90px, 0) scale(1.25); }
}

@keyframes ucp-drift-b {
    from { transform: translate3d(0, 0, 0) scale(1.15); }
    to   { transform: translate3d(-160px, -100px, 0) scale(0.9); }
}

.ucp-cinema-in {
    position: relative;
}

.ucp-cinema-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 26px;
}

.ucp-cinema-kicker {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.ucp-cinema-title {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
}

/* Vidéo vedette */

.ucp-video-hero {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    aspect-ratio: 21 / 9;
    background: #0b2a4a;
}

.ucp-video-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ucp-video-hero:hover img {
    transform: scale(1.05);
}

.ucp-video-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 24, 51, 0.92) 0%, rgba(2, 24, 51, 0.25) 45%, rgba(2, 24, 51, 0.05) 100%);
}

.ucp-video-hero-meta {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ucp-video-hero-tag {
    align-self: flex-start;
    background: var(--ucp-blue);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 13px;
}

.ucp-video-hero-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    line-height: 1.3;
    color: #fff;
    max-width: 820px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Grille de vignettes */

.ucp-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.ucp-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.ucp-video {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
}

.ucp-video-thumb {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0b2a4a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ucp-video:hover .ucp-video-thumb {
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    transform: translateY(-3px);
}

.ucp-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ucp-video:hover .ucp-video-thumb img {
    transform: scale(1.06);
}

.ucp-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(2, 24, 51, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ucp-video-play::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
    transform: translateX(2px);
}

.ucp-video:hover .ucp-video-play,
.ucp-video-hero:hover .ucp-video-play {
    background: var(--ucp-blue);
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(0, 158, 224, 0.2);
}

.ucp-video-play-xl {
    width: 76px;
    height: 76px;
}

.ucp-video-play-xl::after {
    border-width: 13px 0 13px 21px;
    transform: translateX(3px);
}

.ucp-video-title {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}

/* ---- Apparitions au scroll ---- */

.ucp-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--ucp-delay, 0s);
}

.ucp-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .ucp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ucp-live .ucp-blob-a,
    .ucp-live .ucp-blob-b {
        animation: none;
    }

    .ucp-video-hero img,
    .ucp-video-thumb img {
        transition: none;
    }
}

/* ---- Pages Elementor ---- */

.ucp-elementor-page {
    min-height: 40vh;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .ucp-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--ucp-border);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        padding: 12px 20px 18px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .ucp-nav-open {
        display: block;
    }

    .ucp-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .ucp-menu a {
        display: block;
        padding: 12px 10px;
        white-space: normal;
        font-size: 0.95rem;
    }

    .ucp-menu .sub-menu {
        display: block;
        position: static;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 16px;
    }

    .ucp-burger {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .ucp-section {
        padding: 28px 16px 40px;
    }

    .ucp-container {
        padding: 0 16px;
    }

    .ucp-hero {
        padding: 44px 0;
    }

    .ucp-featured {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }


    .ucp-btn-cta {
        padding: 10px 16px;
        font-size: 0.86rem;
    }
}

@media (max-width: 480px) {
    .ucp-brand-sub {
        display: none;
    }

    .ucp-header-in {
        min-height: 62px;
        gap: 10px;
    }
}
