:root {
  --ink: #142230;
  --muted: #61707d;
  --paper: #fffdf9;
  --soft: #f5f2eb;
  --line: #dedbd4;
  --orange: #f25534;
  --orange-dark: #cf3d20;
  --blue: #19647e;
  --navy: #102b3a;
  --green: #157a6e;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(20, 34, 48, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .7em; font-family: ui-rounded, "Arial Rounded MT Bold", Inter, sans-serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.45rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
p { margin: 0 0 1.1rem; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.narrow { max-width: 850px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 1000; left: 12px; top: 12px; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(20,34,48,.1); background: rgba(255,253,249,.94); backdrop-filter: blur(16px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 1.08rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50% 50% 50% 10%; background: var(--orange); color: var(--orange); transform: rotate(-12deg); box-shadow: inset 0 0 0 7px #ffb49f; }
.main-nav { display: flex; align-items: center; gap: 26px; font-weight: 700; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--orange-dark); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 12px; }
.hero { overflow: hidden; padding: clamp(70px, 10vw, 140px) 0; background: radial-gradient(circle at 90% 15%, rgba(242,85,52,.28), transparent 30%), linear-gradient(135deg, #fff4e9 0%, #f7f1e8 46%, #dceef1 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.hero h1 { max-width: 850px; }
.hero-copy { max-width: 760px; color: #364754; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.eyebrow { margin-bottom: 14px; color: var(--orange-dark); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.search-form { display: flex; gap: 10px; max-width: 760px; margin-top: 30px; padding: 8px; border: 1px solid rgba(20,34,48,.13); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.search-form input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 13px 16px; background: transparent; color: var(--ink); }
.search-form button, .button, .contact-form button, .login-box button { border: 0; border-radius: 11px; background: var(--orange); color: #fff; padding: 13px 20px; font-weight: 800; text-decoration: none; }
.search-form button:hover, .button:hover, .contact-form button:hover, .login-box button:hover { background: var(--orange-dark); }
.hero-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid rgba(20,34,48,.12); border-radius: 24px; background: rgba(20,34,48,.12); box-shadow: var(--shadow); transform: none; }
.hero-panel div { min-height: 135px; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: rgba(255,255,255,.9); }
.hero-panel strong { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; }
.hero-panel span { margin-top: 9px; color: var(--muted); font-size: .9rem; }
.section { padding: clamp(62px, 8vw, 105px) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; box-shadow: 0 6px 20px rgba(20,34,48,.035); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: " ↗"; color: var(--orange); }
.card p:last-child { margin-bottom: 0; }
.location { color: var(--muted); font-size: .92rem; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.badge { border-radius: 999px; background: #e6f4ef; color: #0c695e; padding: 4px 9px; font-size: .75rem; font-weight: 750; }
.badge-blue { background: #e4f0f6; color: #145875; }
.badge-muted { background: #eeece7; color: #59646d; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 9px 13px; font-weight: 700; text-decoration: none; }
.chip:hover { border-color: var(--orange); color: var(--orange-dark); }
.chip span { color: var(--muted); font-size: .82em; }
.link-columns { columns: 3; column-gap: 26px; }
.link-columns a, .link-list a { display: flex; break-inside: avoid; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 12px 2px; text-decoration: none; }
.link-columns a:hover, .link-list a:hover { color: var(--orange-dark); }
.link-columns strong, .link-list strong { color: var(--muted); font-size: .9rem; }
.prose { max-width: 830px; }
.prose p, .prose li { color: #3f505d; font-size: 1.05rem; }
.prose h2:not(:first-child) { margin-top: 2.2em; }
.prose-light p { color: #dce7eb; }
.page-hero { padding: clamp(58px, 8vw, 105px) 0; background: linear-gradient(135deg, #fff0e5, #edf5f5); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); }
.page-hero .narrow > p:last-child { max-width: 720px; color: #41515e; font-size: 1.18rem; }
.breadcrumb-wrap { padding-top: 18px; padding-bottom: 18px; }
.breadcrumbs { color: var(--muted); font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: #9aa8af; font-weight: 800; }
.breadcrumbs a { color: var(--blue); font-weight: 750; text-decoration: none; }
.breadcrumbs a:hover, .breadcrumbs a:focus { color: var(--coral); text-decoration: underline; }
.breadcrumbs span { display: inline-block; overflow: hidden; max-width: min(48vw, 520px); text-overflow: ellipsis; white-space: nowrap; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 65px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.metric-row div { display: flex; flex-direction: column; min-height: 120px; justify-content: center; padding: 22px; background: #fff; }
.metric-row strong { font-size: 1.85rem; }
.metric-row span { color: var(--muted); font-size: .9rem; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 100px); }
.link-list { max-height: 650px; overflow: auto; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: clamp(40px, 7vw, 80px); align-items: start; }
.detail-grid h2:not(:first-child) { margin-top: 2.2em; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.details div { padding: 17px 20px; background: #fff; }
.details dt { color: var(--muted); font-size: .82rem; font-weight: 750; }
.details dd { margin: 5px 0 0; font-weight: 700; }
.info-panel { position: sticky; top: 100px; border-radius: var(--radius); background: var(--navy); color: #fff; padding: 30px; }
.info-panel h2 { max-width: 100%; font-size: clamp(1.55rem, 2.4vw, 2.15rem); line-height: 1.05; overflow-wrap: anywhere; }
.info-panel p { color: #d7e4e9; }
.button-secondary { display: inline-block; border: 1px solid currentColor; border-radius: 10px; background: transparent; color: inherit; padding: 10px 14px; font-weight: 750; text-decoration: none; }
.text-link { display: block; margin-top: 16px; color: #ffb59f; }
.source-note { margin-top: 28px; color: var(--muted) !important; font-size: .8rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.pagination a { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 9px 13px; font-weight: 750; text-decoration: none; }
.empty-state { padding: 50px; border: 1px dashed #c7c2b9; border-radius: var(--radius); text-align: center; }
.form-container, .login-box { max-width: 680px; }
.contact-form, .login-box form { display: grid; gap: 18px; }
.contact-form label, .login-box label { display: grid; gap: 7px; font-weight: 750; }
.contact-form input, .contact-form textarea, .login-box input { width: 100%; border: 1px solid #bfc4c5; border-radius: 10px; background: #fff; padding: 12px 14px; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus, .login-box input:focus { outline: 3px solid rgba(242,85,52,.2); border-color: var(--orange); }
.honeypot { position: absolute; left: -9999px; }
.alert { margin-bottom: 24px; border-radius: 12px; padding: 15px 18px; }
.alert.success { background: #e2f4ed; color: #075e50; }
.alert.error { background: #fde7e1; color: #8c2b16; }
.alert ul { margin: 0; padding-left: 20px; }
.login-box { margin-top: 6vh; margin-bottom: 6vh; border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: clamp(28px, 5vw, 50px); box-shadow: var(--shadow); }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 15px; text-align: left; white-space: nowrap; }
th { background: var(--soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.status { border-radius: 999px; padding: 3px 8px; background: #eee; font-size: .76rem; font-weight: 800; }
.status-success { background: #e2f4ed; color: #075e50; }
.status-running { background: #e4f0f6; color: #145875; }
.status-failed { background: #fde7e1; color: #8c2b16; }
.site-footer { border-top: 1px solid rgba(255,255,255,.12); background: #0b202c; color: #dce7eb; padding: 55px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer-grid div { display: flex; flex-direction: column; align-items: start; }
.footer-grid a { margin-bottom: 7px; }
.footer-grid p { max-width: 520px; }
.footer-brand, .footer-title { color: #fff; font-weight: 850; }

@media (max-width: 900px) {
  .hero-grid, .detail-grid, .two-columns { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; transform: none; }
  .city-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-columns { columns: 2; }
  .info-panel { position: static; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 64px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: var(--paper); padding: 12px 18px 18px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 0; }
  .search-form { flex-direction: column; }
  .hero-panel, .card-grid, .city-grid, .details, .metric-row { grid-template-columns: 1fr; }
  .hero-panel div { min-height: 100px; }
  .link-columns { columns: 1; }
  .section-heading, .admin-heading, .pagination { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .empty-state { padding: 30px 20px; }
}

/* V0.2 — accueil éditorial et interface d'administration */
:root {
  --coral: #f25534;
  --coral-soft: #fff0e9;
  --teal: #0f766e;
  --teal-soft: #dff3ef;
  --admin-bg: #f3f5f7;
  --admin-ink: #11202c;
}

.hero { padding: clamp(54px, 7vw, 96px) 0 42px; background: radial-gradient(circle at 83% 11%, rgba(242,85,52,.18), transparent 26%), radial-gradient(circle at 8% 84%, rgba(21,122,110,.13), transparent 28%), linear-gradient(135deg, #fffaf5, #f3f1ea 48%, #e7f2f2); }
.hero-grid { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(38px, 5vw, 74px); align-items: center; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { max-width: 720px; font-size: clamp(3rem, 5.2vw, 5.3rem); text-wrap: balance; }
.hero-copy { max-width: 670px; }
.hero-hint { margin: 10px 0 0; color: var(--muted); font-size: .84rem; }
.hero-media { position: relative; min-height: 510px; overflow: hidden; border: 8px solid rgba(255,255,255,.72); border-radius: 42px 18px 42px 18px; background: #dfeceb; box-shadow: 0 30px 80px rgba(16,43,58,.2); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgba(12,31,41,.28)); pointer-events: none; }
.hero-media img { width: 100%; height: 100%; min-height: 510px; object-fit: cover; object-position: 57% center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero-media:hover img { transform: scale(1.035); }
.photo-pill { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.78); border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); padding: 9px 14px; box-shadow: 0 10px 30px rgba(16,43,58,.16); font-size: .82rem; font-weight: 800; backdrop-filter: blur(12px); }
.photo-pill-top { top: 22px; right: 22px; }
.photo-pill-bottom { right: 22px; bottom: 22px; }
.photo-pill strong { color: var(--coral); }
.hero-panel { position: relative; z-index: 4; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -26px; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 18px 60px rgba(16,43,58,.13); transform: none; }
.hero-panel div { min-height: 126px; border-right: 1px solid var(--line); background: #fff; padding: 25px 28px; }
.hero-panel div:last-child { border-right: 0; }
.hero-panel strong { font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.hero-panel span { max-width: 130px; line-height: 1.35; }
.search-form { max-width: 700px; border-radius: 18px; }
.search-form button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.text-arrow { color: var(--coral); font-weight: 800; text-decoration: none; }
.section-heading > .text-arrow { margin-bottom: 5px; }
.chip { transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease; }
.chip:hover { transform: translateY(-2px); background: var(--coral-soft); }
.section-community { padding-top: 20px; }
.community-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); overflow: hidden; border-radius: 34px; background: var(--navy); color: #fff; box-shadow: 0 25px 70px rgba(16,43,58,.18); }
.community-media { min-height: 520px; overflow: hidden; }
.community-media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.community-card:hover .community-media img { transform: scale(1.025); }
.community-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(34px, 5vw, 68px); }
.community-copy h2 { font-size: clamp(2rem, 3vw, 3.2rem); }
.community-copy p:not(.eyebrow) { color: #dbe8eb; }
.community-copy .button { margin-top: 10px; }
.city-grid .card { min-height: 190px; display: flex; flex-direction: column; justify-content: center; }
.dark-callout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 9vw, 130px); align-items: start; }
.dark-callout h2 { max-width: 570px; }
.dark-callout .prose { padding-top: 12px; }

.blog-hero { background: radial-gradient(circle at 85% 25%, rgba(15,118,110,.2), transparent 32%), linear-gradient(135deg, #fff1e9, #edf6f4); }
.category-filter { margin-bottom: 48px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 8px 25px rgba(20,34,48,.055); transition: transform .22s ease, box-shadow .22s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-card-media { display: block; height: 220px; overflow: hidden; background: #e6efed; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #ffcfbf, #d4eeea); color: var(--coral); font-size: 3rem; text-decoration: none; }
.blog-card-body { padding: 25px; }
.blog-card-body h3 { font-size: 1.38rem; }
.blog-card-body h3 a { text-decoration: none; }
.blog-card-body p:not(.eyebrow) { display: -webkit-box; overflow: hidden; color: var(--muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.blog-date { color: var(--muted); font-size: .78rem; font-weight: 700; }
.article-header { padding: clamp(60px, 8vw, 110px) 0 45px; background: linear-gradient(140deg, #fff8f1, #eef6f5); text-align: center; }
.article-header h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); text-wrap: balance; }
.article-lead { color: #3f505d; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.article-meta { color: var(--muted); font-size: .84rem; }
.article-cover { margin-top: 45px; }
.article-cover img { width: 100%; max-height: 650px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(230px, 300px); justify-content: center; gap: clamp(40px, 7vw, 90px); padding-top: 65px; padding-bottom: 100px; }
.article-content { color: #2f424f; font-size: 1.08rem; }
.article-content h2 { margin-top: 2em; color: var(--ink); }
.article-content h3 { margin-top: 1.7em; color: var(--ink); }
.article-content a { color: var(--blue); }
.article-content img { width: 100%; margin: 25px 0; border-radius: 18px; }
.article-content blockquote { margin: 30px 0; border-left: 4px solid var(--coral); background: var(--coral-soft); padding: 20px 24px; font-size: 1.16rem; }
.article-aside { position: sticky; top: 100px; align-self: start; border-radius: 20px; background: var(--soft); padding: 24px; }
.article-aside a { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 15px 0; font-weight: 800; text-decoration: none; }
.article-aside a span { margin-top: 5px; color: var(--muted); font-size: .75rem; font-weight: 600; }

.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.partner-card { border: 1px solid var(--line); border-radius: 24px; background: #fff; padding: 30px; box-shadow: 0 8px 25px rgba(20,34,48,.05); }
.partner-card h2 { font-size: 1.5rem; }
.partner-logo, .partner-monogram { width: 100%; height: 180px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 18px; background: var(--soft); }
.partner-logo img { width: 100%; height: 100%; max-width: 260px; max-height: 148px; object-fit: contain; }
.partner-monogram { background: linear-gradient(135deg, var(--coral-soft), var(--teal-soft)); color: var(--coral); font-size: 2rem; font-weight: 900; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(270px, 380px); justify-content: center; gap: clamp(45px, 8vw, 100px); align-items: start; }
.contact-aside { border-radius: 24px; background: var(--navy); color: #fff; padding: 34px; }
.contact-aside p:not(.eyebrow) { color: #dce7eb; }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s ease; }

/* Administration */
.admin-body { background: var(--admin-bg); color: var(--admin-ink); }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #102b3a; color: #dce7eb; padding: 28px 20px; }
.admin-brand { color: #fff; padding: 0 8px; }
.admin-sidebar-label { margin: 35px 10px 10px; color: #87a5b3; font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { border-radius: 10px; padding: 11px 12px; font-weight: 750; text-decoration: none; }
.admin-nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.admin-sidebar-bottom { display: grid; gap: 12px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 8px 0; }
.admin-sidebar-bottom a { text-decoration: none; }
.admin-sidebar-bottom button { border: 0; background: transparent; color: #ffb49f; padding: 0; font-weight: 750; }
.admin-workspace { min-width: 0; }
.admin-topbar { height: 64px; display: flex; align-items: center; justify-content: flex-end; border-bottom: 1px solid #dbe1e5; background: rgba(255,255,255,.86); padding: 0 34px; font-size: .86rem; font-weight: 800; backdrop-filter: blur(10px); }
.admin-menu-toggle { display: none; }
.admin-main { width: min(1420px, calc(100% - 56px)); margin-inline: auto; padding: 45px 0 80px; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.admin-page-header h1 { margin: 0; font-size: clamp(2rem, 3vw, 3.3rem); }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.admin-metrics article { display: flex; flex-direction: column; border: 1px solid #dfe3e6; border-radius: 18px; background: #fff; padding: 22px; box-shadow: 0 5px 18px rgba(20,34,48,.04); }
.admin-metrics span, .admin-metrics small { color: var(--muted); }
.admin-metrics strong { margin: 5px 0; font-size: 2rem; font-variant-numeric: tabular-nums; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.admin-quick-grid a { display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 10px; border: 1px solid #dfe3e6; border-radius: 16px; background: #fff; padding: 17px; text-decoration: none; }
.admin-quick-grid a > span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--coral-soft); color: var(--coral); font-size: 1.2rem; font-weight: 900; }
.admin-quick-grid small { color: var(--muted); }
.admin-panel { border: 1px solid #dfe3e6; border-radius: 18px; background: #fff; padding: 24px; box-shadow: 0 5px 18px rgba(20,34,48,.035); }
.admin-panel + .admin-panel { margin-top: 22px; }
.admin-panel h2 { font-size: 1.25rem; }
.admin-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.admin-panel-heading h2 { margin: 0; }
.admin-panel-heading > span, .muted { color: var(--muted); font-size: .84rem; }
.admin-grid-two { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; }
.backup-mini-list { display: grid; }
.backup-mini-list > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; border-top: 1px solid var(--line); padding: 13px 0; }
.backup-mini-list small { grid-column: 2; color: var(--muted); }
.table-subline { display: block; max-width: 360px; overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; }
.table-actions { display: flex; gap: 14px; }
.status-published, .status-read, .status-success { background: #e2f4ed; color: #075e50; }
.status-draft, .status-queued { background: #eee; color: #59646d; }
.status-new { background: #fff0d8; color: #8a4a05; }
.status-archived { background: #e7e8eb; color: #59616a; }
.admin-inline-form { display: grid; grid-template-columns: 2fr 110px auto auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.admin-inline-form label, .form-stack label { display: grid; gap: 7px; font-weight: 750; }
.admin-panel input, .admin-panel textarea, .admin-panel select, .rich-editor, .html-editor { width: 100%; border: 1px solid #bdc7cd; border-radius: 9px; background: #fff; padding: 10px 12px; color: var(--ink); font: inherit; }
.admin-panel input:focus, .admin-panel textarea:focus, .admin-panel select:focus, .rich-editor:focus { outline: 3px solid rgba(242,85,52,.16); border-color: var(--coral); }
.check-label { display: flex !important; flex-direction: row !important; align-items: center; gap: 7px !important; font-size: .86rem; }
.check-label input { width: auto; }
.category-admin-list { display: grid; gap: 8px; }
.category-admin-list > form:not(.inline-delete) { display: grid; grid-template-columns: 1.3fr 1fr 90px auto 100px auto; gap: 8px; align-items: center; }
.category-admin-list .inline-delete { text-align: right; margin-top: -42px; pointer-events: none; }
.category-admin-list .inline-delete button { margin-right: 94px; border: 0; background: transparent; color: #9d301c; pointer-events: auto; }
.admin-editor-form { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.admin-editor-main { display: grid; gap: 22px; }
.admin-editor-side { display: grid; gap: 22px; position: sticky; top: 86px; }
.form-stack { display: grid; gap: 18px; }
.form-stack h2 { margin: 0; }
.form-stack small, .field-help { color: var(--muted); font-size: .78rem; }
.field-label { display: block; margin-bottom: 7px; font-weight: 750; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; border: 1px solid #bdc7cd; border-bottom: 0; border-radius: 9px 9px 0 0; background: #f5f6f7; padding: 7px; }
.editor-toolbar button, .editor-upload-button { min-height: 34px; display: inline-grid; place-items: center; border: 1px solid #d4dade; border-radius: 6px; background: #fff; padding: 5px 9px; color: var(--ink); font-size: .82rem; font-weight: 750; }
.editor-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rich-editor { min-height: 440px; overflow: auto; border-radius: 0 0 9px 9px; padding: 20px; line-height: 1.7; }
.rich-editor img { max-width: 100%; border-radius: 10px; }
.html-editor { display: none; min-height: 440px; border-radius: 0 0 9px 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.editor-field.is-html .rich-editor { display: none; }
.editor-field.is-html .html-editor { display: block; }
.admin-image-preview { width: 100%; max-height: 190px; object-fit: cover; border-radius: 10px; }
.admin-logo-preview { max-width: 180px; max-height: 90px; object-fit: contain; }
.danger-zone { border-color: #f2c3b8; }
.danger-button { border: 1px solid #d14b31; border-radius: 9px; background: #fff; color: #a8321c; padding: 10px 14px; font-weight: 800; }
.admin-filter { display: flex; gap: 8px; margin-bottom: 18px; }
.admin-filter a { border: 1px solid #d6dde1; border-radius: 999px; background: #fff; padding: 7px 12px; font-size: .84rem; font-weight: 750; text-decoration: none; }
.message-content { color: #2f424f; font-size: 1.06rem; white-space: normal; }
.settings-form { max-width: 850px; }
.settings-form fieldset { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.settings-form legend { padding: 0 8px; font-weight: 850; }
.contact-settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; margin-bottom: 30px; scroll-margin-top: 30px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-label-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-settings-grid hr { width: 100%; height: 1px; margin: 7px 0; border: 0; background: #dfe3e6; }
.switch-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; white-space: nowrap; }
.switch-label input { width: 18px; height: 18px; }
.email-test-panel { position: sticky; top: 92px; background: linear-gradient(150deg, #102b3a, #174557); color: #fff; }
.email-test-panel p:not(.eyebrow) { color: #d5e3e8; }
.email-test-panel .button-secondary { color: #fff; }

/* V0.8 — pages éditoriales Méthodologie et À propos */
.editorial-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 84% 20%, rgba(242,85,52,.18), transparent 24%), linear-gradient(135deg, #fff3e9 0%, #edf7f5 58%, #e8f0f4 100%); }
.editorial-hero::after { position: absolute; right: -90px; bottom: -150px; width: 390px; height: 390px; border: 70px solid rgba(255,255,255,.42); border-radius: 50%; content: ""; pointer-events: none; }
.editorial-hero-methodology { background: radial-gradient(circle at 82% 18%, rgba(28,116,137,.16), transparent 25%), linear-gradient(135deg, #eef7f6, #fff4ea 64%, #edf3f6); }
.editorial-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: clamp(45px, 8vw, 110px); align-items: center; }
.editorial-hero-grid > div > p:last-child { max-width: 790px; color: #41515e; font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
.editorial-hero-note { border: 1px solid rgba(255,255,255,.75); border-radius: 24px; background: rgba(255,255,255,.76); padding: 28px; box-shadow: 0 22px 55px rgba(20,34,48,.1); backdrop-filter: blur(12px); }
.editorial-hero-note > span { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 16px; background: var(--navy); color: #fff; font-size: 1.45rem; font-weight: 900; }
.editorial-hero-note strong { display: block; margin-bottom: 8px; font-size: 1.2rem; }
.editorial-hero-note p { margin: 0; color: var(--muted); }
.editorial-intro .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(45px, 8vw, 110px); align-items: center; }
.editorial-lead { max-width: 780px; }
.editorial-lead > p:not(.eyebrow) { color: #3f505d; font-size: 1.08rem; }
.editorial-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--line); box-shadow: var(--shadow); }
.editorial-metrics div { display: flex; min-height: 145px; flex-direction: column; justify-content: center; background: #fff; padding: 22px 18px; text-align: center; }
.editorial-metrics strong { color: var(--navy); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1; }
.editorial-metrics span { margin-top: 8px; color: var(--muted); font-size: .78rem; }
.purpose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.purpose-grid article { display: flex; min-height: 330px; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 30px; box-shadow: 0 12px 34px rgba(20,34,48,.05); transition: transform .2s ease, box-shadow .2s ease; }
.purpose-grid article:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(20,34,48,.09); }
.purpose-grid article p { flex: 1; color: #3f505d; }
.purpose-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 15px; background: var(--coral-soft); color: var(--orange-dark); font-size: .8rem; font-weight: 900; }
.editorial-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: clamp(45px, 8vw, 100px); align-items: start; }
.editorial-split > div > p:not(.eyebrow) { color: #3f505d; font-size: 1.06rem; }
.truth-card, .formula-card { border-radius: 24px; background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 42px); box-shadow: 0 20px 55px rgba(11,32,44,.16); }
.truth-card h3, .formula-card h3 { color: #fff; }
.truth-card ul { display: grid; gap: 13px; padding-left: 20px; color: #dce7eb; }
.truth-card p, .formula-card p { color: #cbdbe1; }
.method-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.method-flow li { position: relative; border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 27px; }
.method-flow li:not(:last-child)::after { position: absolute; z-index: 2; top: 42px; right: -12px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--coral); color: #fff; content: "›"; font-weight: 900; }
.method-flow li > span { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 22px; border-radius: 13px; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 900; }
.method-flow h3 { font-size: 1.25rem; }
.method-flow p { margin-bottom: 0; color: #52616c; font-size: .94rem; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.source-grid article { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 24px; background: #fff; padding: clamp(28px, 4vw, 40px); box-shadow: 0 12px 40px rgba(20,34,48,.06); }
.source-grid article > p { color: #3f505d; }
.source-card-top { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.source-card-top > strong { color: var(--navy); font-size: 1.3rem; }
.source-badge { border-radius: 999px; background: #e3f2ee; color: #0c695e; padding: 6px 10px; font-size: .72rem; font-weight: 850; }
.source-badge-blue { background: #e4f0f6; color: #145875; }
.source-grid dl { width: 100%; margin: 10px 0 26px; }
.source-grid dl div { display: grid; grid-template-columns: 90px 1fr; gap: 15px; border-top: 1px solid var(--line); padding: 13px 0; }
.source-grid dt { color: var(--muted); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.source-grid dd { margin: 0; color: #354854; }
.source-grid .text-arrow { margin-top: auto; }
.source-license-note { margin: 24px 0 0; color: var(--muted); font-size: .88rem; }
.source-license-note a { color: var(--blue); font-weight: 750; }
.definition-list { display: grid; gap: 12px; margin-top: 30px; }
.definition-list article { border-left: 4px solid var(--coral); border-radius: 0 14px 14px 0; background: #fff; padding: 17px 20px; }
.definition-list strong { color: var(--navy); }
.definition-list p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.formula-card { background: linear-gradient(145deg, #102b3a, #174a5b); }
.formula-card .eyebrow { color: #ffb59f; }
.formula { display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; align-items: center; margin: 28px 0; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 18px; }
.formula span { color: #fff; font-weight: 750; }
.formula i { color: #ffb59f; font-style: normal; font-weight: 900; }
.formula strong { color: #fff; font-size: 1.25rem; }
.calculation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--line); }
.calculation-grid article { min-height: 195px; background: #fff; padding: 30px; }
.calculation-grid article p { margin-bottom: 0; color: #52616c; }
.limitation-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(350px, 1.1fr); gap: clamp(45px, 8vw, 100px); align-items: center; }
.limitation-layout h2 { color: #fff; }
.limitation-layout ul { display: grid; gap: 11px; margin: 0; padding: 28px 30px 28px 50px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.06); color: #dce7eb; }
.editorial-faq { display: grid; grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr); gap: clamp(45px, 8vw, 100px); align-items: start; }
.editorial-faq > div:first-child > p:not(.eyebrow) { color: var(--muted); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-list details[open] { border-color: #efab98; box-shadow: 0 12px 30px rgba(20,34,48,.06); }
.faq-list summary { position: relative; cursor: pointer; padding: 20px 54px 20px 22px; color: var(--navy); font-weight: 850; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 16px; right: 18px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: var(--coral-soft); color: var(--orange-dark); content: "+"; font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; border-top: 1px solid var(--line); padding: 18px 22px 22px; color: #52616c; }
.faq-list details a { color: var(--blue); font-weight: 750; }
.editorial-cta { display: flex; justify-content: space-between; align-items: center; gap: 45px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(135deg, #fff, #eff7f5); padding: clamp(30px, 5vw, 55px); box-shadow: var(--shadow); }
.editorial-cta > div { max-width: 760px; }
.editorial-cta h2 { margin-bottom: 10px; }
.editorial-cta p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }

@media (max-width: 1000px) {
  .editorial-hero-grid, .editorial-intro .container, .editorial-split, .limitation-layout, .editorial-faq { grid-template-columns: 1fr; }
  .editorial-hero-note { max-width: 580px; }
  .method-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-flow li:nth-child(2)::after { display: none; }
}

@media (max-width: 680px) {
  .editorial-hero-note { padding: 22px; }
  .editorial-metrics { grid-template-columns: 1fr; }
  .editorial-metrics div { min-height: 105px; }
  .purpose-grid, .source-grid, .method-flow, .calculation-grid { grid-template-columns: 1fr; }
  .purpose-grid article { min-height: 0; }
  .method-flow li::after { display: none !important; }
  .source-card-top { align-items: flex-start; flex-direction: column; }
  .source-grid dl div { grid-template-columns: 1fr; gap: 5px; }
  .limitation-layout ul { padding-left: 42px; }
  .editorial-cta { align-items: flex-start; flex-direction: column; }
}
.backup-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 22px; background: linear-gradient(135deg, #fff, #edf6f4); }
.backup-hero > div { max-width: 760px; }
.backup-hero button:disabled { cursor: wait; opacity: .55; }

/* V0.3 — carte territoriale, contenus globaux et mentions légales */
.section-heading > div > p:not(.eyebrow) { max-width: 720px; margin: 10px 0 0; color: var(--muted); }
.section-intro { margin-top: -8px; color: var(--muted); }
.footer-latest { border-top: 1px solid var(--line); padding-top: clamp(55px, 7vw, 82px); padding-bottom: clamp(55px, 7vw, 82px); }
.footer-latest .blog-card-media { height: 170px; }
.department-explorer { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.department-map-panel, .department-map-info { border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.department-map-panel { overflow: hidden; padding: 18px; }
.department-map-canvas { min-height: 570px; display: grid; place-items: center; border-radius: 18px; background: radial-gradient(circle at 20% 15%, rgba(242,85,52,.1), transparent 32%), linear-gradient(145deg, #f8f7f2, #eaf4f3); padding: 10px; }
.department-map-canvas svg { display: block; width: 100%; height: auto; max-height: 690px; }
.department-shape { fill: #b9ddd8; stroke: #fff; stroke-width: 1.15; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .14s ease, filter .14s ease; }
.department-shape:hover, a:focus .department-shape, .department-shape.is-active { fill: var(--coral); filter: drop-shadow(0 2px 3px rgba(20,34,48,.25)); outline: none; }
.department-inset-label { fill: var(--ink); font-size: 12px; font-weight: 800; pointer-events: none; }
.map-loading { color: var(--muted); }
.map-credit { margin: 12px 4px 0; color: var(--muted); font-size: .72rem; }
.department-map-info { position: sticky; top: 96px; display: grid; gap: 15px; padding: 28px; }
.department-map-info > strong { font-size: 1.45rem; line-height: 1.2; }
.department-map-info > span { color: var(--muted); }
.department-map-info label { display: grid; gap: 8px; margin-top: 10px; font-size: .82rem; font-weight: 800; }
.department-map-info select { width: 100%; border: 1px solid #bdc7cd; border-radius: 9px; background: #fff; padding: 10px 11px; color: var(--ink); }
.button-secondary.is-disabled { pointer-events: none; opacity: .42; }
.map-extra-territories { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px 8px 3px; }
.map-extra-territories strong { width: 100%; color: var(--muted); font-size: .78rem; }
.map-extra-territories a { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 5px 9px; font-size: .75rem; font-weight: 750; text-decoration: none; }
.map-extra-territories a:hover, .map-extra-territories a:focus { border-color: var(--coral); color: var(--coral); }
.department-map-fallback, .department-fallback-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.department-map-fallback a, .department-fallback-list a { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 8px 10px; font-size: .8rem; text-decoration: none; }
.legal-editor-form { max-width: 980px; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 440px; }
  .hero-media img { min-height: 440px; }
  .community-card { grid-template-columns: 1fr; }
  .community-media, .community-media img { min-height: 420px; }
  .admin-metrics, .admin-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid-two { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .hero-panel div:nth-child(2) { border-right: 0; }
  .blog-grid, .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dark-callout, .article-layout, .contact-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; z-index: 100; left: 0; width: min(310px, 88vw); transform: translateX(-105%); transition: transform .25s ease; }
  .admin-sidebar.is-open { transform: none; }
  .admin-topbar { justify-content: space-between; }
  .admin-menu-toggle { display: block; border: 1px solid #ccd4d9; border-radius: 8px; background: #fff; padding: 7px 11px; }
  .admin-editor-form { grid-template-columns: 1fr; }
  .admin-editor-side { position: static; }
  .category-admin-list > form:not(.inline-delete) { grid-template-columns: 1fr 1fr; }
  .category-admin-list .inline-delete { margin: 0 0 16px; text-align: left; pointer-events: auto; }
  .category-admin-list .inline-delete button { margin: 0; }
  .department-explorer { grid-template-columns: 1fr; }
  .department-map-info { position: static; }
}

@media (max-width: 680px) {
  .breadcrumb-wrap { padding-top: 13px; padding-bottom: 13px; }
  .breadcrumbs span { max-width: 52vw; }
  .hero { padding-top: 45px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-media { min-height: 340px; border-width: 5px; border-radius: 28px 14px; }
  .hero-media img { min-height: 340px; object-position: 64% center; }
  .photo-pill-top { display: none; }
  .hero-panel { grid-template-columns: 1fr 1fr; }
  .hero-panel div { min-height: 110px; padding: 18px; }
  .hero-panel strong { font-size: 1.65rem; }
  .community-media, .community-media img { min-height: 310px; }
  .community-copy { padding: 30px 24px; }
  .blog-grid, .partner-grid { grid-template-columns: 1fr; }
  .blog-card-media { height: 210px; }
  .article-layout { padding-top: 45px; padding-bottom: 65px; }
  .admin-main { width: min(100% - 28px, 1420px); padding-top: 28px; }
  .admin-topbar { padding: 0 16px; }
  .admin-page-header, .backup-hero { align-items: stretch; flex-direction: column; }
  .admin-metrics, .admin-quick-grid { grid-template-columns: 1fr; }
  .admin-inline-form { grid-template-columns: 1fr; }
  .admin-panel { padding: 18px; }
  .category-admin-list > form:not(.inline-delete) { grid-template-columns: 1fr; }
  .department-map-panel { padding: 9px; }
  .department-map-canvas { min-height: 410px; padding: 2px; }
  .department-map-fallback, .department-fallback-list { grid-template-columns: 1fr 1fr; }
}

/* V0.4 — annuaire des activités, carte complète et contenu éditorial */
.home-seo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-seo-grid article { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 28px; box-shadow: 0 8px 26px rgba(20,34,48,.04); }
.home-seo-grid article p { flex: 1; color: #3f505d; }
.home-seo-grid article .text-arrow { margin-top: 6px; }
.home-seo-number { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px; border-radius: 13px; background: var(--coral-soft); color: var(--orange-dark); font-size: .78rem; font-weight: 900; }
.home-faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 50px; padding-top: 42px; border-top: 1px solid var(--line); }
.home-faq article { padding-right: 18px; }
.home-faq h3 { font-size: 1.22rem; }
.home-faq p { margin-bottom: 0; color: #3f505d; }
.home-faq a { color: var(--blue); font-weight: 750; }
.activities-summary .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.activities-summary .prose { max-width: 900px; }
.activity-index-nav { position: sticky; z-index: 12; top: 88px; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 48px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,249,.96); padding: 12px; box-shadow: 0 8px 28px rgba(20,34,48,.07); backdrop-filter: blur(12px); }
.activity-index-nav a { min-width: 34px; border-radius: 9px; padding: 6px 9px; color: var(--ink); font-size: .82rem; font-weight: 850; text-align: center; text-decoration: none; }
.activity-index-nav a:hover, .activity-index-nav a:focus { background: var(--coral); color: #fff; }
.activity-directory { display: grid; gap: 55px; }
.activity-letter-section { scroll-margin-top: 155px; }
.activity-letter-section > h2 { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 20px; border-radius: 18px; background: var(--navy); color: #fff; font-size: 1.7rem; }
.activity-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.activity-directory-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 86px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px 18px; text-decoration: none; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.activity-directory-item:hover, .activity-directory-item:focus { border-color: var(--coral); transform: translateY(-2px); box-shadow: 0 9px 24px rgba(20,34,48,.07); }
.activity-directory-item strong { display: block; line-height: 1.3; }
.activity-directory-item small { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; }
.activity-directory-item > span:last-child { color: var(--coral); font-size: 1.15rem; font-weight: 900; }

@media (max-width: 900px) {
  .home-seo-grid, .home-faq { grid-template-columns: 1fr; }
  .home-faq { gap: 32px; }
  .activity-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .activities-summary .metric-row, .activity-directory-grid { grid-template-columns: 1fr; }
  .activity-index-nav { top: 72px; }
  .activity-directory-item { min-height: 76px; }
}

/* V0.5 — populations Insee, densité sportive et cartographie intégrée */
.territory-metrics > div { min-width: 0; }
.territory-metrics > div:nth-child(3) strong { font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.08; }
.metric-row .density-card { position: relative; display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; gap: 14px; overflow: hidden; background: linear-gradient(145deg, #102b3a, #164455); color: #fff; padding: 17px; }
.density-card::after { content: ""; position: absolute; width: 105px; height: 105px; right: -48px; bottom: -55px; border-radius: 50%; background: rgba(242,85,52,.3); }
.metric-row .density-ring { --density-progress: 0deg; position: relative; display: grid; place-items: center; width: 62px; height: 62px; flex: none; border-radius: 50%; background: conic-gradient(var(--coral) var(--density-progress), rgba(255,255,255,.15) 0); transition: background .2s ease; }
.density-ring::after { content: ""; width: 45px; height: 45px; border-radius: 50%; background: #123645; }
.density-ring i { position: absolute; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.metric-row .density-copy { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; color: #dce9ed; line-height: 1.2; }
.metric-row .density-copy strong { color: #fff; font-size: 1.72rem; font-variant-numeric: tabular-nums; }
.metric-row .density-copy > span { color: #c9dde4; font-size: .76rem; }
.metric-row .density-copy small { margin-top: 6px; color: #ffbca9; font-size: .68rem; line-height: 1.25; }
.metric-row .density-copy .density-population { color: #b9ced5; }
.metric-row .density-card-empty { display: flex; background: linear-gradient(145deg, #e8eeef, #f5f2ed); color: var(--ink); }
.metric-row .density-card-empty span, .metric-row .density-card-empty small { color: var(--muted); }
.equipment-seo-copy { margin: 42px 0 36px; border-left: 4px solid var(--coral); border-radius: 0 18px 18px 0; background: linear-gradient(135deg, var(--coral-soft), #fff); padding: 25px 28px; }
.equipment-seo-copy h2 { margin: 0 0 14px !important; font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
.equipment-seo-copy p { color: #3f505d; }
.equipment-seo-copy p:last-child { margin-bottom: 0; }
.equipment-map { overflow: hidden; margin-top: 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 15px; background: #eef4f3; }
.equipment-map iframe { display: block; width: 100%; height: 245px; border: 0; }
.equipment-map small { display: block; background: #fff; color: #455660; padding: 8px 11px; font-size: .68rem; }

@media (max-width: 900px) {
  .metric-row .density-card { min-height: 140px; }
  .contact-settings-grid { grid-template-columns: 1fr; }
  .email-test-panel { position: static; }
  .admin-label-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .metric-row .density-card { grid-template-columns: 72px minmax(0, 1fr); }
  .equipment-seo-copy { padding: 22px; }
  .admin-form-grid, .admin-label-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
