/* =========================================================================
   Rotary District 9101 — feuille de style du site public
   Charte : bleu Rotary, or en accent unique, blanc, bleu nuit pour le pied de page.
   ========================================================================= */
:root {
    --r-blue: #17458F;
    --r-blue-dark: #0F3470;
    --r-azure: #0067C8;
    --r-gold: #F7A81B;
    --r-gold-dark: #D98E00;
    --r-night: #0C2340;
    --r-sky: #EAF1FA;
    --r-gray: #F4F5F7;
    --r-line: #E3E7ED;
    --r-text: #1F2A37;
    --r-muted: #5B6675;
    --r-radius: 14px;
    --r-shadow: 0 6px 24px rgba(12, 35, 64, .08);
    --r-shadow-hover: 0 14px 36px rgba(12, 35, 64, .14);
    --bs-primary: var(--r-blue);
    --bs-primary-rgb: 23, 69, 143;
    --bs-link-color: var(--r-azure);
    --bs-link-color-rgb: 0, 103, 200;
    --bs-link-hover-color: var(--r-blue);
    --bs-body-color: var(--r-text);
    --bs-body-font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { font-size: 1rem; line-height: 1.65; background: #fff; }
h1, h2, h3, h4, h5, h6, .section-title, .navbar-nav .nav-link, .btn { font-family: "Montserrat", "Open Sans", system-ui, sans-serif; }
h1, h2, h3 { font-weight: 700; color: var(--r-night); letter-spacing: -.01em; }
a { text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--r-gold); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

/* ---------- Boutons ---------- */
.btn { font-weight: 600; border-radius: 10px; }
.btn-primary { --bs-btn-bg: var(--r-blue); --bs-btn-border-color: var(--r-blue); --bs-btn-hover-bg: var(--r-blue-dark); --bs-btn-hover-border-color: var(--r-blue-dark); --bs-btn-active-bg: var(--r-night); }
.btn-outline-primary { --bs-btn-color: var(--r-blue); --bs-btn-border-color: var(--r-blue); --bs-btn-hover-bg: var(--r-blue); --bs-btn-hover-border-color: var(--r-blue); }
.btn-gold { background: var(--r-gold); border-color: var(--r-gold); color: var(--r-night); }
.btn-gold:hover, .btn-gold:focus, .btn-gold.active { background: var(--r-gold-dark); border-color: var(--r-gold-dark); color: var(--r-night); }

/* ---------- En-tête ---------- */
.topbar { background: var(--r-night); color: rgba(255,255,255,.8); font-size: .85rem; padding: .4rem 0; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--r-gold); }
.topbar-tagline { font-family: "Montserrat", sans-serif; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .75rem; color: var(--r-gold); }
.topbar-search .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; width: 200px; }
.topbar-search .form-control::placeholder { color: rgba(255,255,255,.55); }
.lang-switch { display: flex; gap: .15rem; background: rgba(255,255,255,.08); border-radius: 999px; padding: .15rem; }
.lang-switch a { padding: .15rem .6rem; border-radius: 999px; font-weight: 600; font-size: .75rem; }
.lang-switch a.active { background: var(--r-gold); color: var(--r-night); }

.site-header { background: rgba(255,255,255,.97); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--r-line); }
.site-header .navbar { padding: .55rem 0; }
.navbar-brand img { height: 52px; width: auto; }
.navbar-toggler { border: 0; font-size: 1.8rem; color: var(--r-blue); }
.navbar-nav .nav-link { color: var(--r-night); font-weight: 600; font-size: .9rem; padding: .6rem .75rem !important; border-radius: 8px; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--r-blue); background: var(--r-sky); }
.dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--r-shadow-hover); padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .9rem; font-size: .92rem; }
.dropdown-item:hover { background: var(--r-sky); color: var(--r-blue); }

/* ---------- Héros ---------- */
.home-hero {
    position: relative; overflow: hidden; color: #fff; padding: 4.5rem 0 5rem;
    background: radial-gradient(1200px 500px at 85% -10%, rgba(0,103,200,.55), transparent 60%),
                linear-gradient(135deg, var(--r-night) 0%, var(--r-blue) 65%, var(--r-azure) 100%);
}
.home-hero::after {
    content: ""; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%;
    border: 60px solid rgba(247,168,27,.12); pointer-events: none;
}
.hero-kicker, .section-kicker, .page-hero-kicker { font-family: "Montserrat", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--r-gold); margin-bottom: .6rem; }
.section-kicker { color: var(--r-azure); }
.hero-title { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.1; margin-bottom: 1rem; }
.hero-theme { font-family: "Montserrat", sans-serif; font-size: 1.35rem; font-weight: 600; color: var(--r-gold); margin-bottom: 1rem; }
.hero-excerpt { font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 40rem; }
.hero-portrait { position: relative; margin: 0 auto; max-width: 380px; z-index: 1; }
.hero-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 6px solid rgba(255,255,255,.12); }
.hero-portrait figcaption { position: absolute; left: -1rem; bottom: 1.5rem; background: #fff; color: var(--r-night); border-radius: 14px; padding: .8rem 1.1rem; box-shadow: var(--r-shadow-hover); display: flex; flex-direction: column; line-height: 1.3; border-left: 5px solid var(--r-gold); }
.hero-portrait figcaption span { font-size: .85rem; color: var(--r-muted); }

.page-hero, .article-hero, .mandate-hero { background: linear-gradient(135deg, var(--r-night), var(--r-blue)); color: #fff; padding: 3.2rem 0 2.8rem; }
.page-hero h1, .article-hero h1, .mandate-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 46rem; }
.article-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 56rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: rgba(255,255,255,.8); font-size: .92rem; margin-top: 1rem; }
.article-meta a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.breadcrumb-light { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); font-size: .85rem; }
.breadcrumb-light a { color: rgba(255,255,255,.9); }

.mandate-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 20px; border: 5px solid rgba(255,255,255,.15); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.mandate-role { color: rgba(255,255,255,.8); }
.mandate-facts li { display: flex; gap: .6rem; align-items: baseline; color: rgba(255,255,255,.9); margin-bottom: .35rem; }
.mandate-facts i { color: var(--r-gold); }
.badge-current { background: var(--r-gold); color: var(--r-night); font-weight: 700; }
.badge-current i { font-size: .5rem; vertical-align: middle; }
.badge-archive { background: rgba(255,255,255,.15); color: #fff; }
.badge-year { background: rgba(255,255,255,.15); color: #fff; font-weight: 600; }
.article-hero .badge-year { background: var(--r-gold); color: var(--r-night); }

.subnav { background: #fff; border-bottom: 1px solid var(--r-line); position: sticky; top: 74px; z-index: 900; }
.subnav .container { display: flex; gap: .3rem; overflow-x: auto; padding-top: .4rem; padding-bottom: .4rem; }
.subnav a { white-space: nowrap; font-weight: 600; font-size: .88rem; color: var(--r-night); padding: .45rem .9rem; border-radius: 999px; }
.subnav a:hover { background: var(--r-sky); color: var(--r-blue); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--r-gray); }
.section-dark { background: var(--r-night); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-kicker { color: var(--r-gold); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0; }
.content-block { margin-bottom: 3.5rem; scroll-margin-top: 140px; }
.content-block > .section-title { margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem; }
.content-block > .section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; border-radius: 2px; background: var(--r-gold); }

.stats-band { background: var(--r-blue); color: #fff; padding: 2.2rem 0; }
.stat-value { font-family: "Montserrat", sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--r-gold); line-height: 1.1; }
.stat-label { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: rgba(255,255,255,.85); }
.stats-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
.stats-inline > div { background: var(--r-sky); border-radius: var(--r-radius); padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.stats-inline strong { font-family: "Montserrat", sans-serif; font-size: 1.8rem; color: var(--r-blue); line-height: 1.1; }
.stats-inline span { font-size: .85rem; color: var(--r-muted); }

/* ---------- Cartes ---------- */
.card-content { border: 0; border-radius: var(--r-radius); overflow: hidden; box-shadow: var(--r-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.card-content:hover { transform: translateY(-4px); box-shadow: var(--r-shadow-hover); }
.card-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--r-sky); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-content:hover .card-img-wrap img { transform: scale(1.04); }
.card-badge { position: absolute; left: .9rem; top: .9rem; background: var(--r-gold); color: var(--r-night); font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: .3rem .65rem; border-radius: 999px; }
.card-meta { font-size: .82rem; color: var(--r-muted); margin-bottom: .45rem; }
.card-content .card-title a { color: var(--r-night); }
.card-content .card-title a:hover { color: var(--r-blue); }
.card-text { color: var(--r-muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chip { display: inline-flex; align-items: center; background: var(--r-sky); color: var(--r-blue); font-size: .75rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; }
a.chip:hover { background: var(--r-blue); color: #fff; }
.badge-fallback { display: inline-block; font-size: .72rem; color: var(--r-muted); background: var(--r-gray); border-radius: 6px; padding: .15rem .45rem; }
.alert-fallback { background: #FFF6E5; border: 1px solid #F9D58A; color: #6B4A00; border-radius: 10px; font-size: .9rem; }

.album-card-link { display: block; position: relative; border-radius: var(--r-radius); overflow: hidden; aspect-ratio: 4/3; background: var(--r-blue); }
.album-card-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.album-card-link:hover img { transform: scale(1.06); }
.album-card-overlay { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(12,35,64,.92)); color: #fff; display: flex; flex-direction: column; }
.album-card-title { font-family: "Montserrat", sans-serif; font-weight: 700; line-height: 1.25; }
.album-card-meta { font-size: .8rem; color: var(--r-gold); }

.tile-link { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem; border-radius: var(--r-radius); background: #fff; box-shadow: var(--r-shadow); color: var(--r-text); border-top: 4px solid var(--r-blue); transition: transform .2s, box-shadow .2s; }
.tile-link:hover { transform: translateY(-3px); box-shadow: var(--r-shadow-hover); color: var(--r-text); }
.tile-accent { border-top-color: var(--r-gold); }
.tile-title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--r-night); }
.tile-text { color: var(--r-muted); font-size: .92rem; }
.tile-more { margin-top: auto; font-weight: 600; color: var(--r-azure); font-size: .9rem; }

.axis-card { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; background: var(--r-sky); border-radius: 12px; font-weight: 600; color: var(--r-night); }
.axis-card i { font-size: 1.6rem; color: var(--r-blue); }
.country-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; background: #fff; border: 1px solid var(--r-line); color: var(--r-night); font-weight: 600; font-size: .9rem; }
.country-pill:hover { border-color: var(--r-blue); color: var(--r-blue); }
.flag { display: inline-grid; place-items: center; min-width: 2rem; height: 1.6rem; padding: 0 .3rem; border-radius: 999px; background: var(--r-blue); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .05em; }
.club-card { background: #fff; border: 1px solid var(--r-line); border-radius: 12px; padding: 1rem 1.1rem; }

.governor-card { display: flex; flex-direction: column; border-radius: var(--r-radius); overflow: hidden; background: #fff; box-shadow: var(--r-shadow); color: var(--r-text); transition: transform .2s, box-shadow .2s; }
.governor-card:hover { transform: translateY(-4px); box-shadow: var(--r-shadow-hover); color: var(--r-text); }
.governor-photo { aspect-ratio: 1; background: var(--r-sky); overflow: hidden; }
.governor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.15); }
.governor-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.governor-year { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--r-gold-dark); font-size: .85rem; }
.governor-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--r-night); }
.governor-club, .governor-theme { font-size: .85rem; color: var(--r-muted); }
.governor-theme { font-style: italic; }
.governor-more { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: .85rem; color: var(--r-azure); }

.team-card { text-align: center; padding: 1.2rem .8rem; border-radius: var(--r-radius); background: #fff; border: 1px solid var(--r-line); height: 100%; }
.team-card img, .team-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; display: grid; place-items: center; }
.team-avatar { background: var(--r-sky); color: var(--r-blue); font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.6rem; }
.team-name { font-weight: 700; color: var(--r-night); }
.team-role { font-size: .85rem; color: var(--r-blue); font-weight: 600; }
.team-club { font-size: .8rem; color: var(--r-muted); }

/* ---------- Agenda, chronologies ---------- */
.agenda-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--r-line); }
.agenda-date { flex: 0 0 64px; height: 68px; border-radius: 12px; background: var(--r-blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.agenda-date .day { font-family: "Montserrat", sans-serif; font-size: 1.5rem; font-weight: 700; }
.agenda-date .month { font-size: .75rem; text-transform: uppercase; color: var(--r-gold); font-weight: 700; }
.agenda-title { font-weight: 700; color: var(--r-night); font-size: 1.05rem; }
.agenda-title:hover { color: var(--r-blue); }
.agenda-meta { font-size: .85rem; color: var(--r-muted); }
.letter-card { background: #fff; border-radius: var(--r-radius); padding: 2rem; box-shadow: var(--r-shadow); border-left: 6px solid var(--r-gold); }

.timeline { position: relative; padding-left: 1.6rem; border-left: 3px solid var(--r-sky); }
.timeline-item { position: relative; padding: 0 0 1.6rem 1rem; }
.timeline-item::before { content: ""; position: absolute; left: -2.15rem; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--r-blue); }
.timeline-date { font-size: .82rem; font-weight: 700; color: var(--r-gold-dark); }
.timeline-title { display: block; font-weight: 700; color: var(--r-night); margin: .25rem 0; }

.archive-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 2rem; }
.archive-chip { white-space: nowrap; padding: .4rem .9rem; border-radius: 999px; background: var(--r-sky); color: var(--r-blue); font-weight: 700; font-size: .85rem; }
.archive-chip.current, .archive-chip:hover { background: var(--r-blue); color: #fff; }
.archive-timeline { position: relative; margin-left: .6rem; border-left: 3px solid var(--r-sky); padding-left: 1.8rem; }
.archive-entry { position: relative; margin-bottom: 1.2rem; }
.archive-marker { position: absolute; left: -2.55rem; top: 1.6rem; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--r-blue); }
.archive-entry.current .archive-marker { border-color: var(--r-gold); background: var(--r-gold); }
.archive-card { display: flex; align-items: center; gap: 1.2rem; background: #fff; border-radius: var(--r-radius); padding: 1rem 1.2rem; box-shadow: var(--r-shadow); color: var(--r-text); transition: transform .2s; }
.archive-card:hover { transform: translateX(4px); color: var(--r-text); }
.archive-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--r-sky); }
.archive-year { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--r-gold-dark); }
.archive-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--r-night); }
.archive-theme { font-style: italic; color: var(--r-muted); font-size: .9rem; }
.mandate-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; border-top: 1px solid var(--r-line); padding-top: 2rem; margin-top: 2rem; }
.mandate-nav-link { display: flex; align-items: center; gap: .8rem; color: var(--r-night); font-weight: 700; }
.mandate-nav-link.text-end { justify-content: flex-end; }
.mandate-nav-link small { display: block; font-weight: 400; color: var(--r-muted); }

/* ---------- Contenus ---------- */
.rich-text { font-size: 1.05rem; }
.rich-text img { border-radius: 12px; height: auto; }
.rich-text blockquote { border-left: 4px solid var(--r-gold); padding: .4rem 1.2rem; color: var(--r-muted); font-style: italic; }
.rich-text h2, .rich-text h3 { margin-top: 2rem; }
.article-cover img { width: 100%; border-radius: var(--r-radius); margin-bottom: 1.5rem; }
.side-card { background: var(--r-gray); border-radius: var(--r-radius); padding: 1.4rem; }
.side-menu a { display: block; padding: .45rem .7rem; border-radius: 8px; color: var(--r-night); font-weight: 600; font-size: .92rem; }
.side-menu a:hover, .side-menu a.active { background: #fff; color: var(--r-blue); }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--r-muted); font-weight: 600; }
.facts dd { margin-bottom: .8rem; font-weight: 600; }
.related-item { display: flex; gap: .8rem; align-items: center; padding: .6rem 0; color: var(--r-text); border-bottom: 1px solid var(--r-line); }
.related-item img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; }
.related-item small { display: block; color: var(--r-muted); }
.doc-list a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--r-line); border-radius: 10px; margin-bottom: .5rem; color: var(--r-night); font-weight: 600; }
.doc-list a:hover { border-color: var(--r-blue); }
.doc-list i { font-size: 1.5rem; color: #C62828; }
.doc-list small { margin-left: auto; color: var(--r-muted); font-weight: 400; }
.share-bar { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.share-label { font-weight: 600; margin-right: .4rem; color: var(--r-muted); font-size: .9rem; }
.share-bar a, .share-bar .btn-copy { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--r-sky); color: var(--r-blue); border: 0; font-size: 1.05rem; }
.share-bar a:hover, .share-bar .btn-copy:hover { background: var(--r-blue); color: #fff; }

.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.masonry { columns: 3 280px; column-gap: 1rem; }
.masonry-item { break-inside: avoid; margin: 0 0 1rem; }
.masonry-item img { width: 100%; height: auto; border-radius: 12px; display: block; transition: opacity .2s; }
.masonry-item a:hover img { opacity: .9; }
.masonry-item figcaption { font-size: .82rem; color: var(--r-muted); padding: .35rem .1rem 0; }

.filter-bar { background: var(--r-gray); border-radius: var(--r-radius); padding: 1rem; }
.filter-bar .form-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--r-muted); margin-bottom: .2rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--r-muted); }
.empty-state i { font-size: 2.5rem; color: var(--r-line); }
.pagination { --bs-pagination-color: var(--r-blue); --bs-pagination-active-bg: var(--r-blue); --bs-pagination-active-border-color: var(--r-blue); --bs-pagination-border-radius: 10px; }
.search-results li { padding: 1rem 0; border-bottom: 1px solid var(--r-line); }
.search-title { font-weight: 700; font-size: 1.1rem; margin-left: .5rem; }
.form-card { background: #fff; border-radius: var(--r-radius); box-shadow: var(--r-shadow); padding: 2rem; }
.contact-list li { display: flex; gap: .8rem; margin-bottom: .8rem; align-items: baseline; }
.contact-list i { color: var(--r-blue); }

.quick-links a { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: 1.4rem .6rem; border-radius: var(--r-radius); background: #fff; color: var(--r-night); font-weight: 600; font-size: .9rem; box-shadow: var(--r-shadow); height: 100%; transition: transform .2s, background .2s; }
.quick-links a:hover { transform: translateY(-3px); background: var(--r-blue); color: #fff; }
.quick-links i { font-size: 1.8rem; color: var(--r-gold-dark); }
.quick-links a:hover i { color: var(--r-gold); }

.error-page { padding: 4rem 0; }
.error-code { font-family: "Montserrat", sans-serif; font-size: 6rem; font-weight: 700; color: var(--r-sky); -webkit-text-stroke: 2px var(--r-blue); line-height: 1; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--r-night); color: rgba(255,255,255,.85); padding: 4rem 0 0; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--r-gold); }
.footer-logo img { background: #fff; padding: .5rem .8rem; border-radius: 10px; height: 60px; width: auto; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--r-gold); margin-bottom: 1rem; }
.footer-links li { margin-bottom: .45rem; font-size: .92rem; }
.footer-contact li { margin-bottom: .4rem; }
.newsletter-form .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.3rem 0; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- Animations discrètes ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1199.98px) {
    .navbar-nav { padding: 1rem 0; }
    .subnav { top: 70px; }
}
@media (max-width: 767.98px) {
    .section { padding: 3rem 0; }
    .home-hero { padding: 2.5rem 0 3rem; }
    .hero-portrait { max-width: 260px; }
    .hero-portrait figcaption { left: .5rem; bottom: .5rem; font-size: .9rem; }
    .mandate-nav { grid-template-columns: 1fr; }
    .mandate-nav-link.text-end { justify-content: flex-start; text-align: left !important; }
    .form-card { padding: 1.3rem; }
}

/* ---------- Documents PDF ---------- */
.doc-item { border: 1px solid var(--r-line); border-radius: 10px; margin-bottom: .6rem; overflow: hidden; }
.doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .8rem 1rem; }
.doc-row > i { font-size: 1.5rem; color: #C62828; }
.doc-title { font-weight: 600; color: var(--r-night); }
.doc-row small { color: var(--r-muted); }
.doc-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .4rem; }
.letter-pdf { border: 1px solid var(--r-line); border-radius: 10px; overflow: hidden; }
.doc-preview { border-top: 1px solid var(--r-line); background: var(--r-gray); }
.doc-preview iframe { display: block; width: 100%; height: 75vh; min-height: 480px; border: 0; }
@media (max-width: 767.98px) { .doc-preview iframe { height: 60vh; min-height: 360px; } }

/* Lecteur PDF intégré (pdf-viewer.mjs) */
.doc-preview.pdf-ready { display: flex; flex-direction: column; }
.pdf-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; background: #fff; border-bottom: 1px solid var(--r-line); }
.pdf-group { display: flex; align-items: center; gap: .3rem; }
.pdf-page-input { width: 4.2rem; text-align: center; }
.pdf-page-total, .pdf-zoom-label { font-size: .85rem; color: var(--r-muted); white-space: nowrap; }
.pdf-zoom-label { min-width: 3.2rem; text-align: center; }
.pdf-pages { height: 75vh; min-height: 420px; overflow: auto; padding: .75rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; -webkit-overflow-scrolling: touch; }
.pdf-pages.is-zoomed { align-items: flex-start; }
.pdf-pages:focus-visible { outline: 2px solid var(--bs-primary, #17458F); outline-offset: -2px; }
.pdf-page { flex: none; max-width: none; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
.pdf-status, .pdf-error { margin: auto; text-align: center; color: var(--r-muted); padding: 2rem 1rem; }
.pdf-pages.pdf-error { height: auto; min-height: 0; }
.doc-preview:fullscreen { background: var(--r-gray); }
.doc-preview:fullscreen .pdf-pages { height: auto; flex: 1; }
.doc-preview:-webkit-full-screen .pdf-pages { height: auto; flex: 1; }
@media (max-width: 767.98px) {
    .pdf-pages { height: 70vh; min-height: 340px; padding: .5rem; }
    .pdf-toolbar { justify-content: center; }
}

/* ---------- Vidéothèque : vidéos YouTube, Facebook, TikTok ---------- */
.ratio-9x16 { --bs-aspect-ratio: 177.78%; }
.video-vertical { max-width: 360px; margin-left: auto; margin-right: auto; }
.video-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.video-card { background: #fff; border: 1px solid var(--r-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: var(--r-night); color: #fff; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-thumb:hover img, .video-thumb:focus-visible img { transform: scale(1.04); }
.video-thumb:focus-visible { outline: 3px solid var(--r-gold, #F7A81B); outline-offset: -3px; }
.video-facebook { background: linear-gradient(135deg, #1877F2, #0B4FB3); }
.video-tiktok { background: linear-gradient(135deg, #111 55%, #25F4EE 140%), #111; }
.video-youtube { background: #c4302b; }
.video-vimeo { background: linear-gradient(135deg, #1AB7EA, #0D7FA6); }
.video-brand { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; opacity: .35; }
.video-play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; transition: background .2s ease; }
.video-thumb:hover .video-play, .video-thumb:focus-visible .video-play { background: var(--r-gold, #F7A81B); }
.video-badge { position: absolute; left: .6rem; bottom: .6rem; padding: .2rem .55rem; border-radius: 999px; background: rgba(0, 0, 0, .65); font-size: .78rem; font-weight: 600; }
.video-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.video-title { font-size: 1rem; font-weight: 700; margin: 0; color: var(--r-night); }
.video-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; color: var(--r-muted); margin-top: auto; }
.video-meta a { text-decoration: none; }
.video-modal .modal-content { background: #000; border: 0; }
.video-modal .modal-header { border: 0; padding: .5rem 1rem; color: #fff; }
.video-modal.is-vertical .modal-dialog { max-width: min(420px, 92vw); }
.video-modal.is-vertical .video-frame { --bs-aspect-ratio: 177.78%; max-height: 82vh; }

/* Accueil : lettre du Gouverneur à côté des actualités */
@media (min-width: 992px) { .home-letter { position: sticky; top: 6rem; } }
