@font-face {
  font-family: "Emirates Bold";
  src: local("Emirates Bold"), local("Emirates-Bold"), url("./assets/fonts/EMIRATES-BOLD.TTF") format("truetype");
  font-display: swap;
  font-weight: 700;
  font-style: normal;
}

:root {
  --ink: #17283b;
  --navy: #19324c;
  --navy-deep: #102337;
  --burgundy: #8b2e3f;
  --paper: #f4f0e7;
  --cream: #fbf9f4;
  --line: #d7d0c3;
  --muted: #68727d;
  --green: #52623b;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 249, 244, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.masthead-line { height: 4px; background: linear-gradient(90deg, var(--burgundy) 0 18%, var(--navy) 18%); }
.nav { height: 82px; display: flex; align-items: center; gap: 38px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.brand-mark {
  width: 42px; height: 42px; border: 1px solid var(--navy); display: grid; place-items: center;
  color: var(--navy); font-family: Georgia, serif; font-weight: 700; letter-spacing: -.04em;
}
.brand span:last-child { display: flex; flex-direction: column; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 650; }
.nav nav a:hover { color: var(--burgundy); }
.nav nav a.active { color: var(--burgundy); border-bottom: 2px solid var(--burgundy); padding-bottom: 7px; }
.author-credit {
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 12px Georgia, serif;
  white-space: nowrap;
  text-decoration: none;
}
.author-credit strong { color: var(--burgundy); font-weight: 700; }
.author-credit:hover strong { text-decoration: underline; }

.source-banner {
  background: #efe7d8;
  border-bottom: 1px solid #d6c8af;
  color: var(--ink);
}
.source-banner-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-block: 17px;
}
.source-banner-inner > div:first-child { display: grid; gap: 5px; max-width: 790px; }
.source-banner strong {
  color: var(--burgundy);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.source-banner span { font: 14px/1.55 Georgia, "Times New Roman", serif; }
.source-links { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.source-links a {
  border: 1px solid #c7b797;
  color: var(--navy);
  padding: 9px 11px;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}
.source-links a:last-child { background: var(--navy); border-color: var(--navy); color: white; }
.source-links a:hover { border-color: var(--burgundy); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(25,50,76,.96), rgba(25,50,76,.96)),
    repeating-linear-gradient(0deg, transparent, transparent 36px, rgba(255,255,255,.1) 37px);
  color: white;
}
.hero::before {
  content: ""; position: absolute; width: 540px; height: 540px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; right: -160px; top: -240px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02);
}
.hero-grid { min-height: 515px; display: grid; grid-template-columns: 1.45fr .55fr; align-items: center; gap: 100px; position: relative; }
.eyebrow { margin: 0 0 24px; color: #dbc6a5; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 {
  max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 78px);
  line-height: .98; font-weight: 500; letter-spacing: -.045em;
}
.hero-subtitle { max-width: 720px; margin: 28px 0 34px; font-family: Georgia, serif; font-size: 21px; line-height: 1.65; color: #dbe3ea; }
.primary-button {
  display: inline-flex; gap: 20px; align-items: center; background: var(--burgundy); color: white; text-decoration: none;
  padding: 15px 20px; font-size: 13px; font-weight: 700; letter-spacing: .04em; transition: transform .2s, background .2s;
}
.primary-button:hover { transform: translateY(-2px); background: #a0394c; }
.hero-register { border-left: 1px solid rgba(255,255,255,.28); padding-left: 34px; position: relative; }
.hero-register > p { margin: 0; color: #dbc6a5; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.register-number { font-family: Georgia, serif; font-size: 72px; line-height: 1; margin-top: 18px; }
.register-rule { width: 50px; height: 3px; background: var(--burgundy); margin: 22px 0; }
.hero-register > span { display: block; color: #dbe3ea; font-family: Georgia, serif; line-height: 1.6; }
.coordinates { margin-top: 54px; color: rgba(255,255,255,.45); font: 11px monospace; letter-spacing: .1em; }

.portal-section {
  position: relative;
  margin-block: 64px 22px;
  padding: 58px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(239,231,216,.92)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(25,50,76,.035) 80px);
  border: 1px solid #d5c9b5;
  box-shadow: 0 24px 60px rgba(25,50,76,.08);
}
.portal-section::after {
  content: "AG";
  position: absolute;
  right: -30px;
  top: -65px;
  color: rgba(25,50,76,.035);
  font: 230px Georgia, serif;
  pointer-events: none;
}
.portal-heading { position: relative; max-width: 980px; margin-bottom: 42px; z-index: 1; }
.portal-heading .section-index { display: block; margin-bottom: 16px; letter-spacing: .12em; }
.portal-heading h2 {
  max-width: 940px;
  margin: 0;
  color: var(--navy-deep);
  font: 500 clamp(36px, 4.7vw, 58px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}
.portal-heading h2 i { color: var(--burgundy); font-weight: 500; }
.portal-heading > p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #58636c;
  font: 17px/1.7 Georgia, serif;
}
.portal-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; z-index: 1; }
.portal-grid a {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid #2d455d;
  background: var(--navy-deep);
  color: white;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.portal-grid a:nth-child(2) { background: #3f4934; border-color: #5d6c4e; }
.portal-grid a:nth-child(3) { background: #254a4a; border-color: #3d6a68; }
.portal-grid a:nth-child(4) { background: #4b3547; border-color: #6a4c65; }
.portal-grid a::before {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.portal-grid a::after {
  content: "↗";
  position: absolute;
  right: 25px;
  top: 24px;
  color: #dbc6a5;
  font-size: 21px;
}
.portal-grid a:hover { transform: translateY(-6px); border-color: #dbc6a5; box-shadow: 0 20px 42px rgba(25,50,76,.23); }
.portal-grid span { color: #dbc6a5; font: 10px monospace; letter-spacing: .1em; }
.portal-grid strong { max-width: 260px; margin-top: 33px; color: white; font: 500 28px/1.12 Georgia, serif; }
.portal-grid em { margin-top: 10px; color: #dbc6a5; font-size: 10px; font-style: normal; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.portal-grid p { max-width: 280px; margin: auto 0 0; color: #c8d2dc; font: 14px/1.6 Georgia, serif; }
.selection-credit { position: relative; margin: 25px 0 0; color: var(--muted); font: 13px Georgia, serif; text-align: right; z-index: 1; }
.selection-credit a { color: var(--burgundy); }

.overview-section { padding: 94px 0 108px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; margin-bottom: 48px; }
.section-heading > div { display: flex; align-items: baseline; gap: 18px; }
.section-index { color: var(--burgundy); font: 700 12px monospace; }
.section-heading h2 { margin: 0; font: 500 clamp(32px, 4vw, 48px) Georgia, serif; letter-spacing: -.025em; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.75; font-family: Georgia, serif; font-size: 17px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 34px; }
.metric { padding: 28px; background: var(--paper); border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric strong { display: block; color: var(--navy); font: 500 38px Georgia, serif; }
.metric span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.analysis-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 28px; }
.chart-card, .method-card { border: 1px solid var(--line); background: white; padding: 32px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 25px; }
.card-title-row h3, .method-card h3 { margin: 0; font: 500 24px Georgia, serif; }
.card-title-row span { color: var(--muted); font: 11px monospace; }
.bars { display: grid; gap: 14px; }
.bar-label { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 6px; font-size: 12px; }
.bar-label span { color: #3f4b55; }
.bar-label strong { color: var(--navy); }
.bar-track { height: 7px; background: #ebe7de; overflow: hidden; }
.bar-fill { height: 100%; transform-origin: left; animation: grow .8s ease both; }
@keyframes grow { from { transform: scaleX(0); } }
.method-card { background: var(--navy); color: white; position: relative; overflow: hidden; }
.method-card::after { content: "φ"; position: absolute; right: -12px; bottom: -55px; font: 190px Georgia, serif; color: rgba(255,255,255,.035); }
.method-label { color: #dbc6a5; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.method-card h3 { margin: 14px 0 18px; max-width: 300px; }
.method-card > p { color: #d0dae3; line-height: 1.75; font: 15px Georgia, serif; }
.method-card small { display: block; color: #aab8c6; line-height: 1.5; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.relevance-figure { display: flex; align-items: center; gap: 22px; margin: 28px 0; }
.donut { width: 76px; height: 76px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#dbc6a5 0 49.25%, var(--burgundy) 49.25% 100%); position: relative; }
.donut::after { content: ""; position: absolute; inset: 16px; background: var(--navy); border-radius: 50%; }
.relevance-figure p { margin: 7px 0; font-size: 11px; color: #dbe3ea; }
.dot { width: 8px; height: 8px; display: inline-block; margin-right: 8px; background: #dbc6a5; }
.dot.inter { background: var(--burgundy); }

.directory-section { padding: 96px 0; background: var(--navy-deep); color: white; }
.light-heading .section-index { color: #dbc6a5; }
.light-heading > p { color: #abb8c4; }
.filters { display: grid; grid-template-columns: minmax(300px, 1fr) repeat(3, minmax(180px, .55fr)); gap: 12px; margin-bottom: 24px; }
.search-box { height: 55px; display: flex; align-items: center; gap: 13px; background: white; color: var(--ink); padding: 0 18px; }
.search-box span { color: var(--burgundy); font-size: 24px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink) !important; caret-color: var(--burgundy); -webkit-text-fill-color: var(--ink); opacity: 1; }
.search-box input::placeholder { color: #7b6f68; opacity: 1; }
.filters select { border: 1px solid #536374; background: #1b3249; color: white; padding: 0 16px; outline: none; }
.filters select:focus { border-color: #dbc6a5; }
.results-line { min-height: 42px; display: flex; gap: 8px; align-items: center; color: #aab8c6; font-size: 13px; border-bottom: 1px solid #405166; margin-bottom: 30px; }
.results-line strong { color: white; }
.results-line button { margin-inline-start: auto; border: 0; background: none; color: #dbc6a5; cursor: pointer; text-decoration: underline; }
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #425468; border: 1px solid #425468; }
.concept-card {
  min-height: 310px; padding: 25px; position: relative; background: #f8f5ee; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; transition: transform .2s, background .2s; overflow: hidden;
}
.concept-card:hover, .concept-card:focus { z-index: 2; outline: 0; background: white; transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.concept-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; min-height: 37px; }
.concept-meta > span { color: var(--burgundy); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; max-width: 62%; }
.concept-meta em { font-style: normal; font-size: 9px; color: #80693d; background: #eee5cc; padding: 4px 6px; }
.concept-meta em.central { color: #42542d; background: #dfe7d2; }
.concept-card h3 { margin: 19px 0 13px; font: 500 25px/1.15 Georgia, serif; padding-right: 25px; }
.concept-card > p { margin: 0; color: #59636c; font: 14px/1.65 Georgia, serif; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.concept-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 22px; color: #7c858d; font-size: 10px; border-top: 1px solid var(--line); }
.concept-card footer button { border: 0; background: none; padding: 0; color: var(--navy); cursor: pointer; font-weight: 700; }
.card-actions { display: flex; align-items: center; gap: 13px; }
.card-actions button:first-child {
  padding: 6px 8px;
  border: 1px solid #b9ad99;
  color: var(--burgundy);
}
.card-actions button:first-child:hover { border-color: var(--burgundy); }
.card-number { position: absolute; right: 18px; top: 63px; color: #c9c1b4; font: 9px monospace; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 34px; }
.pagination button, .empty-state button { border: 1px solid #536374; background: #fff; color: var(--navy); padding: 11px 15px; cursor: pointer; font-weight: 700; }
.pagination button:hover:not(:disabled) { background: var(--navy); color: #fff; }
.pagination button:disabled { opacity: .52; color: #6f7780; background: #eee9df; cursor: not-allowed; }
.pagination span { color: var(--muted); font-size: 12px; }
.page-jump { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 700; }
.page-jump input { width: 64px; border: 1px solid #b9ad99; background: #fff; color: var(--navy); padding: 9px 7px; text-align: center; font-weight: 700; }
.page-jump input:focus { outline: 2px solid rgba(139,46,63,.25); border-color: var(--burgundy); }
.special-notice mark { background: #f3ddb0; color: inherit; padding: 0 .08em; }
.empty-state { padding: 70px; text-align: center; border: 1px solid #425468; }
.empty-state h3 { font: 24px Georgia, serif; }

.authors-section {
  padding: 96px 0 104px;
  background: #ebe5d9;
  border-top: 1px solid var(--line);
}
.profile-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 28px;
}
.profile-card {
  position: relative;
  min-height: 390px;
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--cream);
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--burgundy);
}
.profile-card.atlas-author::before { background: var(--navy); }
.profile-role {
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.atlas-author .profile-role { color: var(--navy); }
.profile-card h3 {
  margin: 15px 0 22px;
  color: var(--navy);
  font: 500 34px Georgia, "Times New Roman", serif;
}
.profile-card p {
  color: #4f5b65;
  font: 15px/1.8 Georgia, "Times New Roman", serif;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.profile-links a {
  padding: 9px 11px;
  border: 1px solid #c7b797;
  color: var(--navy);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}
.profile-links a:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* Pages documentaires spécialisées */
.catalogue-page { min-height: 70vh; }
.catalogue-hero {
  background: var(--navy);
  color: white;
  border-bottom: 5px solid var(--burgundy);
}
.indicator-hero { background: #254a4a; }
.convention-hero { background: #4b3547; }
.dictionary-hero { background: #284532; }
.catalogue-hero-grid {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 80px;
}
.catalogue-hero h1, .about-hero h1 {
  margin: 0;
  font: 500 clamp(44px, 6vw, 68px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
}
.catalogue-hero p:not(.eyebrow), .about-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: #d8e0e6;
  font: 18px/1.65 Georgia, serif;
}
.catalogue-number {
  padding-left: 35px;
  border-left: 1px solid rgba(255,255,255,.3);
}
.catalogue-number strong { display: block; font: 500 70px Georgia, serif; }
.catalogue-number span { color: #dbc6a5; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.catalogue-tools { padding-block: 48px 92px; }
.fundamental-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 17px 20px;
  background: white;
  border: 1px solid #c9b88f;
}
.fundamental-shortcuts > span {
  margin-right: 7px;
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.fundamental-shortcuts a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--navy);
  font: 12px Georgia, serif;
  text-decoration: none;
}
.fundamental-shortcuts a:hover { border-color: var(--burgundy); color: var(--burgundy); }
.classification-note {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 35px;
  padding: 24px 28px;
  margin-bottom: 24px;
  background: #efe7d8;
  border: 1px solid #d6c8af;
}
.classification-note strong { color: var(--burgundy); font: 700 11px/1.5 "Inter", sans-serif; text-transform: uppercase; letter-spacing: .11em; }
.classification-note p { margin: 0; color: #4e5962; font: 14px/1.65 Georgia, serif; }
.advanced-filters {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) repeat(2, minmax(180px, .55fr));
  gap: 10px;
  padding: 18px;
  background: var(--navy-deep);
}
.advanced-filters .search-box { grid-row: span 2; height: auto; min-height: 54px; }
.advanced-filters select {
  min-height: 50px;
  border: 1px solid #536374;
  background: #1b3249;
  color: white;
  padding: 0 14px;
}
.tool-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tool-row p { margin-right: auto; color: var(--muted); }
.tool-row p strong { color: var(--navy); }
.tool-row button, .modal-tool-row button, .modal-tool-row a {
  border: 1px solid #b9ad99;
  background: transparent;
  color: var(--navy);
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.tool-row button:hover, .modal-tool-row button:hover, .modal-tool-row a:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}
.special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.special-notice {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--burgundy);
}
.special-notice.fundamental-notice {
  background: #fffdf8;
  border-color: #c9b88f;
  border-top-width: 6px;
  box-shadow: 0 13px 30px rgba(25,50,76,.08);
}
.special-notice.fundamental-notice .notice-topline > span { color: var(--burgundy); }
.indicator-hero ~ .catalogue-tools .special-notice { border-top-color: #2f6f6d; }
.convention-hero ~ .catalogue-tools .special-notice { border-top-color: #76506f; }
.notice-topline { display: flex; justify-content: space-between; gap: 16px; color: var(--burgundy); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.notice-topline em { color: var(--muted); font-style: normal; white-space: nowrap; }
.special-notice h2 { margin: 20px 0 14px; color: var(--navy); font: 500 27px/1.14 Georgia, serif; }
.notice-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 17px; }
.notice-tags span { padding: 5px 7px; background: #eee8dc; color: #675f54; font-size: 9px; }
.special-notice > p {
  margin: 0;
  color: #59636c;
  font: 14px/1.7 Georgia, serif;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 23px; }
.notice-actions button, .notice-actions a { border: 1px solid var(--line); background: transparent; color: var(--navy); padding: 8px; font-size: 10px; font-weight: 700; cursor: pointer; text-decoration: none; }
.notice-actions button:first-child { background: var(--navy); border-color: var(--navy); color: white; }
.notice-actions .official-source-link {
  width: 100%;
  margin-top: 3px;
  border-color: #b7c6ae;
  background: #edf3e9;
  color: #315a34;
}
.notice-actions .official-source-link:hover { border-color: var(--green); }
.specialized-modal { width: min(980px, 100%); }
.detail-list { margin: 32px 0 0; border-top: 1px solid var(--line); }
.detail-list > div { display: grid; grid-template-columns: 240px 1fr; gap: 25px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.detail-list dd { margin: 0; color: var(--ink); font: 14px/1.55 Georgia, serif; }
.modal-tool-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.load-error { grid-column: 1 / -1; padding: 50px; color: var(--burgundy); border: 1px solid var(--line); text-align: center; }

/* Index intégral du dictionnaire */
.dictionary-tools { padding-block: 48px 92px; }
.dictionary-search-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 240px;
  gap: 10px;
  padding: 18px;
  background: var(--navy-deep);
}
.dictionary-search-panel .search-box { min-height: 54px; }
.dictionary-search-panel select {
  min-height: 54px;
  border: 1px solid #536374;
  background: #1b3249;
  color: white;
  padding: 0 14px;
}
.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.alphabet-filter button {
  min-width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}
.alphabet-filter button:first-child { padding-inline: 13px; }
.alphabet-filter button:hover,
.alphabet-filter button.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.dictionary-tool-row { margin-bottom: 0; }
.dictionary-list {
  border: 1px solid var(--line);
  border-top: 0;
  background: white;
}
.dictionary-entry {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: center;
  min-height: 116px;
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
}
.dictionary-entry:last-child { border-bottom: 0; }
.dictionary-entry:hover { background: #f7f4ec; }
.dictionary-entry-number {
  color: #8d938d;
  font: 10px monospace;
}
.dictionary-entry h2 {
  margin: 0;
  color: #1a6523;
  font: 700 21px/1.25 Georgia, "Times New Roman", serif;
}
.dictionary-entry p {
  margin: 7px 0 0;
  color: var(--muted);
  font: 13px/1.5 Georgia, serif;
}
.dictionary-entry-page {
  display: grid;
  justify-items: start;
  gap: 7px;
  padding-left: 19px;
  border-left: 1px solid var(--line);
}
.dictionary-entry-page span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dictionary-entry-page a,
.dictionary-entry-page button {
  border: 0;
  background: none;
  color: var(--navy);
  padding: 0;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.dictionary-entry-page a { color: var(--burgundy); }
.dictionary-entry-page a:hover,
.dictionary-entry-page button:hover { text-decoration: underline; }
.dictionary-related {
  width: 100%;
  display: grid;
  gap: 6px;
  margin-top: 7px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.dictionary-entry-page .dictionary-related a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #b7c6ae;
  background: #edf3e9;
  color: #315a34;
  text-decoration: none;
}
.dictionary-entry-page .dictionary-related a:hover {
  border-color: var(--green);
  text-decoration: none;
}
.dictionary-entry-page .dictionary-suggest {
  width: 100%;
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid #c9aab0;
  color: var(--burgundy);
  text-decoration: none;
}
.dictionary-entry-page .dictionary-suggest:hover {
  border-color: var(--burgundy);
  background: #f8eff1;
  text-decoration: none;
}
.dictionary-pagination button {
  border-color: #b9ad99;
  color: var(--navy);
}
.dictionary-pagination span { color: var(--muted); }
.dictionary-empty {
  display: grid;
  gap: 8px;
  padding: 70px 30px;
  text-align: center;
}
.dictionary-empty strong { color: var(--navy); font: 26px Georgia, serif; }
.dictionary-empty span { color: var(--muted); font-size: 13px; }

/* À propos */
.about-hero { padding: 105px 0; background: var(--navy); color: white; }
.about-content { padding-block: 74px 100px; }
.about-lead {
  display: grid;
  grid-template-columns: 90px minmax(0, 780px);
  gap: 30px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.about-lead > span { color: var(--burgundy); font: 700 12px monospace; }
.about-lead h2, .rights-panel h2 { margin: 0 0 16px; color: var(--navy); font: 500 34px Georgia, serif; }
.about-lead p, .about-lead li, .rights-panel p { color: #53606a; font: 16px/1.8 Georgia, serif; }
.about-lead blockquote {
  margin: 22px 0;
  padding: 22px 28px;
  border-left: 4px solid var(--burgundy);
  background: var(--paper);
  color: #46535e;
  font: 15px/1.75 Georgia, serif;
}
.reference-resources > div { min-width: 0; }
.reference-resources > div > p { margin-top: 0; }
.reference-group { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.reference-group h3 { margin: 0 0 14px; color: var(--navy); font: 700 13px/1.25 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.reference-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.reference-list li { margin: 0; padding: 14px 16px; border-left: 3px solid var(--moss); background: #f5f2eb; }
.reference-list a { color: var(--navy); text-decoration: none; }
.reference-list a:hover { color: var(--burgundy); text-decoration: underline; }
.reference-list span { display: block; margin-top: 5px; color: #5f6a72; font: 14px/1.55 Georgia, serif; }
.reference-list-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.signature-statement { display: inline-block; margin-top: 16px; color: var(--burgundy); font: 700 14px/1.5 Georgia, serif; }
.about-profiles { margin-top: 64px; }
.rights-panel { margin-top: 28px; padding: 38px; background: var(--navy-deep); color: white; }
.rights-panel h2 { color: white; }
.rights-panel p { color: #c5d0da; }
.rights-panel a { color: #dbc6a5; }

/* Contact */
.contact-hero { padding-block: 82px; }
.contact-content {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  padding-block: 72px 100px;
}
.contact-card, .contact-form {
  border: 1px solid var(--line);
  background: white;
  padding: 42px;
}
.contact-card { border-top: 5px solid var(--burgundy); }
.contact-card h2, .contact-form h2 {
  margin: 12px 0;
  color: var(--navy);
  font: 500 34px/1.15 Georgia, serif;
}
.contact-card p { margin: 24px 0; color: #53606a; font: 15px/1.75 Georgia, serif; }
.contact-email { color: var(--burgundy); font: 700 18px Georgia, serif; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.contact-actions a, .contact-actions button {
  border: 1px solid #c7b797;
  background: transparent;
  color: var(--navy);
  padding: 11px 13px;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.contact-actions a { background: var(--navy); border-color: var(--navy); color: white; }
.newsletter-panel { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.newsletter-panel h3 { margin: 10px 0; color: var(--navy); font: 500 27px/1.15 Georgia, serif; }
.newsletter-panel p { margin: 0 0 16px; }
.newsletter-form { display: grid; gap: 13px; }
.newsletter-form label { display: grid; gap: 7px; color: var(--navy); font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.newsletter-form input { width: 100%; border: 1px solid var(--line); background: var(--cream); color: var(--ink); padding: 11px 12px; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.newsletter-form button { justify-self: start; border: 1px solid var(--burgundy); background: var(--burgundy); color: white; padding: 11px 13px; font-size: 11px; font-weight: 750; cursor: pointer; }
.newsletter-form button:disabled { cursor: wait; opacity: .65; }
.contact-form { display: grid; gap: 19px; }
.contact-form-heading { margin-bottom: 5px; }
.contact-form-heading > span {
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.contact-form textarea { resize: vertical; min-height: 170px; line-height: 1.55; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid rgba(139, 46, 63, .2);
  border-color: var(--burgundy);
}
.contact-submit { border: 0; cursor: pointer; justify-self: start; }
.contact-submit:disabled { cursor: wait; opacity: .65; }
.form-honeypot { position: absolute !important; left: -10000px !important; }
.form-status { min-height: 20px; margin: -2px 0 0; font-size: 13px; line-height: 1.5; }
.form-status.success { color: #35613f; }
.form-status.error { color: var(--burgundy); }
.form-note { margin: -6px 0 0; color: var(--muted); font-size: 11px; }
.suggestion-form-fields {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #c8bba7;
  background: #f7f3eb;
}
.suggestion-form-fields[hidden] { display: none; }
.suggestion-form-intro {
  padding-bottom: 14px;
  border-bottom: 1px solid #d9cfbf;
}
.suggestion-form-intro strong {
  display: block;
  color: var(--navy);
  font: 700 19px Georgia, serif;
}
.suggestion-form-intro p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.optional-label {
  color: var(--muted);
  font-weight: 400;
}


/* Typographie arabe harmonisée sur l’ensemble du site */
:lang(ar),
[lang="ar"],
[dir="rtl"],
input[lang="ar"],
textarea[lang="ar"] {
  font-family: "Emirates Bold", Tahoma, Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.9;
}

@media print {
  .masthead, .source-banner, .advanced-filters, .tool-row, .pagination,
  .notice-actions, .site-footer, .modal-backdrop { display: none !important; }
  body { background: white; }
  .catalogue-hero { color: black; background: white; border-bottom: 2px solid black; }
  .catalogue-hero p:not(.eyebrow), .catalogue-number span { color: #333; }
  .catalogue-tools { padding-top: 20px; }
  .special-grid { grid-template-columns: 1fr 1fr; }
  .special-notice { break-inside: avoid; min-height: auto; }
}

.site-footer { background: #091827; color: #a9b4be; padding: 46px 0; border-top: 1px solid #304254; }
.site-footer .shell { display: grid; grid-template-columns: 1fr 1.6fr; gap: 70px; }
.site-footer strong { color: white; font: 20px Georgia, serif; }
.site-footer p { line-height: 1.65; font-size: 12px; margin: 8px 0 0; }
.site-footer a { color: #dbc6a5; }
.site-footer .footer-credit { margin-top: 15px; color: #dbc6a5; text-transform: uppercase; letter-spacing: .08em; }
.site-footer .footer-credit strong { color: white; font: 700 12px "Inter", "Segoe UI", sans-serif; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(7,20,33,.78); display: grid; place-items: center; padding: 24px; backdrop-filter: blur(8px); }
.concept-modal { position: relative; width: min(820px, 100%); max-height: 88vh; overflow: auto; background: var(--cream); color: var(--ink); padding: 52px 60px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.modal-close { position: absolute; right: 22px; top: 18px; width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 24px; cursor: pointer; }
.modal-rule { width: 55px; height: 4px; background: var(--burgundy); }
.modal-domain { margin: 24px 0 13px; color: var(--burgundy); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.concept-modal h2 { margin: 0; font: 500 clamp(36px, 5vw, 52px)/1.08 Georgia, serif; letter-spacing: -.03em; }
.modal-badges { display: flex; gap: 8px; margin: 20px 0 35px; }
.modal-badges span { border: 1px solid var(--line); padding: 6px 9px; color: var(--muted); font-size: 10px; }
.concept-modal h3 { margin: 28px 0 9px; color: var(--navy); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.modal-definition { margin: 0; font: 17px/1.85 Georgia, serif; color: #36434e; }
.notice-translation { margin: 8px 0 0; color: #5d6870; font: 13px/1.5 Georgia, serif; }
.notice-translation-ar { color: #21455d; font-family: "Emirates Bold", Tahoma, Arial, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.9; text-align: right; }
.notice-actions a { border: 1px solid #c7b797; background: transparent; color: var(--navy); padding: 11px 13px; font-size: 11px; font-weight: 750; text-decoration: none; }
.notice-actions a:hover { border-color: var(--burgundy); color: var(--burgundy); }
.modal-translations { margin-top: 28px; padding: 19px 20px; border-left: 4px solid var(--moss); background: #f1f4ed; }
.modal-translations h3 { margin-top: 0; }
.modal-translations dl { display: grid; gap: 12px; margin: 0; }
.modal-translations dl > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 14px; }
.modal-translations dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.modal-translations dd { margin: 0; color: var(--navy); font: 16px/1.6 Georgia, serif; }
.modal-translations dd[lang="ar"], [lang="ar"].arabic-text { font-family: "Emirates Bold", Tahoma, Arial, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.9; }
.definition-continuation { color: var(--burgundy); font-weight: 700; text-decoration: none; }
.definition-continuation:hover { text-decoration: underline; }
.modal-reference { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 3px; }
.modal-reference p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }
@media (max-width: 920px) {
  .nav nav { display: none; }
  .author-credit { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 80px 0; }
  .hero-register { max-width: 380px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .analysis-grid, .section-heading, .profile-grid { grid-template-columns: 1fr; }
  .catalogue-hero-grid { grid-template-columns: 1fr; gap: 25px; padding-block: 65px; }
  .catalogue-number { padding: 0; border: 0; }
  .catalogue-number strong { font-size: 48px; }
  .advanced-filters { grid-template-columns: 1fr 1fr; }
  .advanced-filters .search-box { grid-column: 1 / -1; grid-row: auto; min-height: 54px; }
  .special-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: 1fr; }
  .source-banner-inner { align-items: flex-start; flex-direction: column; gap: 13px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-content { grid-template-columns: 1fr; }
  .dictionary-entry { grid-template-columns: 45px minmax(0, 1fr); }
  .dictionary-entry-page { grid-column: 2; border-left: 0; padding-left: 0; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav { height: 70px; }
  .brand small { display: none; }
  .brand strong { font-size: 14px; }
  .brand-mark { width: 36px; height: 36px; }
  .author-credit { display: none; }
  .contact-card, .contact-form { padding: 28px 22px; }
  .hero-grid { min-height: auto; padding: 68px 0; }
  .hero h1 { font-size: 46px; }
  .hero-subtitle { font-size: 18px; }
  .hero-register { display: none; }
  .overview-section, .directory-section, .authors-section { padding: 68px 0; }
  .portal-section { margin-block: 28px; padding: 40px 24px; }
  .portal-heading h2 { font-size: 34px; }
  .section-heading { gap: 20px; margin-bottom: 34px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 20px; }
  .metric strong { font-size: 29px; }
  .chart-card, .method-card { padding: 22px; }
  .source-links { align-items: stretch; flex-direction: column; width: 100%; }
  .source-links a { text-align: center; }
  .filters { grid-template-columns: 1fr; }
  .search-box { grid-column: auto; }
  .filters select { height: 52px; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-card { min-height: 285px; }
  .site-footer .shell { grid-template-columns: 1fr; gap: 24px; }
  .concept-modal { padding: 44px 24px 30px; }
  .modal-backdrop { padding: 10px; }
  .classification-note, .about-lead { grid-template-columns: 1fr; gap: 12px; }
  .advanced-filters, .special-grid { grid-template-columns: 1fr; }
  .advanced-filters .search-box { grid-column: auto; }
  .tool-row { align-items: stretch; flex-direction: column; padding-block: 18px; }
  .tool-row p { margin: 0; }
  .detail-list > div { grid-template-columns: 1fr; gap: 6px; }
  .dictionary-search-panel { grid-template-columns: 1fr; }
  .dictionary-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }
  .dictionary-entry-number { display: none; }
  .dictionary-entry-page {
    grid-column: auto;
    margin-top: 6px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Visite guidée interactive */
.tour-launcher {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: 700 11px/1 var(--sans);
  gap: 7px;
  letter-spacing: .02em;
  margin-left: 14px;
  min-height: 38px;
  padding: 0 12px;
}
.tour-launcher:hover,
.tour-launcher:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  outline: none;
}
.tour-launcher > span:first-child {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  font-size: 10px;
  height: 18px;
  justify-content: center;
  width: 18px;
}
.tour-open { overscroll-behavior: none; }
.tour-overlay {
  background: transparent;
  inset: 0;
  position: fixed;
  z-index: 9998;
}
.tour-spotlight {
  border: 2px solid #f0c96b;
  border-radius: 4px;
  box-shadow:
    0 0 0 9999px rgba(8, 25, 42, .78),
    0 0 0 5px rgba(240, 201, 107, .22);
  pointer-events: none;
  position: fixed;
  transition: inset .28s ease, width .28s ease, height .28s ease;
  z-index: 9999;
}
.tour-tooltip {
  background: #fbf8f2;
  border-left: 5px solid var(--burgundy);
  box-shadow: 0 18px 65px rgba(3, 18, 31, .35);
  color: var(--navy);
  display: none;
  max-width: min(430px, calc(100vw - 28px));
  padding: 24px 25px 22px;
  position: fixed;
  width: 430px;
  z-index: 10000;
}
.tour-tooltip-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.tour-kicker {
  color: var(--burgundy);
  font: 800 10px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tour-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font: 400 25px/1 var(--sans);
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}
.tour-progress {
  color: var(--muted);
  font: 700 11px/1.3 var(--sans);
  margin: 11px 0 8px;
}
.tour-tooltip h2 {
  font-size: 27px;
  line-height: 1.12;
  margin: 0 0 11px;
}
.tour-description {
  color: #435367;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.tour-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 17px;
}
.tour-actions > div { display: flex; gap: 8px; }
.tour-actions button {
  background: #fff;
  border: 1px solid #bba98c;
  color: var(--navy);
  cursor: pointer;
  font: 700 11px/1 var(--sans);
  min-height: 38px;
  padding: 0 13px;
}
.tour-actions .tour-next {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
}
.tour-actions .tour-skip {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tour-actions button:hover,
.tour-actions button:focus-visible {
  box-shadow: 0 0 0 3px rgba(139, 46, 63, .16);
  outline: none;
}
.tour-actions button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

@media (max-width: 1120px) {
  .tour-launcher > span:last-child { display: none; }
  .tour-launcher { margin-left: auto; padding-inline: 9px; }
}

@media (max-width: 620px) {
  .tour-launcher { min-height: 36px; }
  .tour-tooltip {
    border-left-width: 4px;
    bottom: 10px !important;
    left: 10px !important;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    padding: 20px 18px 17px;
    top: auto !important;
    width: calc(100vw - 20px);
  }
  .tour-tooltip h2 { font-size: 23px; }
  .tour-description { font-size: 14px; line-height: 1.55; }
  .tour-actions { align-items: stretch; flex-direction: column-reverse; }
  .tour-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .tour-actions button { width: 100%; }
}

/* Navigation responsive */
.mobile-menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  padding: 8px;
  width: 40px;
}
.mobile-menu-toggle span {
  background: var(--navy);
  display: block;
  height: 2px;
  margin: 2px 0;
  transition: transform .2s ease, opacity .2s ease;
  width: 20px;
}
.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1250px) and (min-width: 921px) {
  .nav { gap: 20px; }
  .nav nav { gap: 17px; }
  .nav nav a { font-size: 12px; }
  .author-credit { display: none; }
}

@media (max-width: 920px) {
  .mobile-menu-toggle {
    display: block;
    margin-left: 4px;
    order: 4;
  }
  .tour-launcher { order: 3; }
  .masthead .nav nav {
    align-items: stretch;
    background: var(--cream);
    border-bottom: 4px solid var(--burgundy);
    box-shadow: 0 18px 35px rgba(16, 35, 55, .18);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 10px 24px 18px;
    position: absolute;
    right: 0;
    top: 100%;
  }
  .masthead.mobile-menu-open .nav nav { display: flex; }
  .masthead .nav nav a {
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    padding: 14px 4px;
  }
  .masthead .nav nav a.active {
    border-bottom: 1px solid var(--line);
    border-left: 3px solid var(--burgundy);
    padding-bottom: 14px;
    padding-left: 13px;
  }
}

/* Page des nouveautés */
.news-content { padding-block: 62px 92px; }
.news-toolbar {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
}
.news-toolbar label {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 750;
  gap: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.news-toolbar select {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 48px;
  min-width: 300px;
  padding: 0 14px;
}
.news-toolbar p { color: var(--muted); margin: 0; }
.news-toolbar strong { color: var(--navy); }
.news-list { display: grid; gap: 14px; }
.news-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--burgundy);
  display: grid;
  gap: 26px;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  padding: 27px 30px;
}
.news-date {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 7px;
  min-height: 100%;
  padding-right: 20px;
}
.news-date span,
.news-main > p:first-child {
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0;
  text-transform: uppercase;
}
.news-date strong { font: 700 15px/1.4 Georgia, "Times New Roman", serif; }
.news-main h2 { font-size: 28px; margin: 4px 0 7px; }
.news-main > span { color: var(--green); font-size: 12px; font-weight: 700; }
.news-definition {
  color: var(--muted);
  display: -webkit-box;
  font: 14px/1.6 Georgia, "Times New Roman", serif;
  margin: 14px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.news-card > a {
  border: 1px solid #bba98c;
  color: var(--navy);
  font-size: 11px;
  font-weight: 750;
  padding: 12px 14px;
  text-decoration: none;
  white-space: nowrap;
}
.news-card > a:hover { background: var(--navy); color: #fff; }
.news-empty {
  background: #fff;
  border: 1px solid var(--line);
  padding: 55px 30px;
  text-align: center;
}
.news-empty strong { font: 700 25px Georgia, serif; }
.news-empty p { color: var(--muted); }

.modal-related-concepts {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
}
.modal-related-concepts h3 { margin: 0 0 13px; }
.modal-related-concepts > div { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-related-concepts a,
.modal-related-concepts span {
  background: #efe7d8;
  border: 1px solid #d6c8af;
  color: var(--navy);
  font-size: 12px;
  padding: 9px 11px;
  text-decoration: none;
}
.modal-related-concepts a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@media (max-width: 760px) {
  .news-toolbar { align-items: stretch; flex-direction: column; gap: 17px; }
  .news-toolbar select { min-width: 0; width: 100%; }
  .news-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 22px; }
  .news-date { border-bottom: 1px solid var(--line); border-right: 0; padding: 0 0 15px; }
  .news-card > a { justify-self: start; }
}

.concept-alphabet { margin: 22px 0 20px; }

/* Page Concepts : recherche harmonisée avec la page Dictionnaire */
.concepts-search-panel {
  margin-top: 1.5rem;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 280px) 240px;
}
@media (max-width: 980px) {
  .concepts-search-panel { grid-template-columns: 1fr 1fr; }
  .concepts-search-panel .search-box { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .concepts-search-panel { grid-template-columns: 1fr; }
  .concepts-search-panel .search-box { grid-column: auto; }
}


/* Page Explorer les relations */
.relations-page { background: var(--paper, #fbf8f1); }
.relations-intro { padding-top: 1.5rem; }
.relations-frame-section { padding-top: 1rem; padding-bottom: 3rem; }
.relations-frame { width: 100%; min-height: 980px; border: 1px solid #d8cdbb; background: #fbf8f1; display: block; }
.relations-link { white-space: nowrap; }
@media (max-width: 900px) { .relations-frame { min-height: 1120px; } }
@media (max-width: 600px) { .relations-frame { min-height: 1280px; } }

/* Relations v14 */
.relations-external-action{display:flex;justify-content:flex-end;margin:0 0 .65rem}.relations-external-action .button{display:inline-flex;align-items:center;min-height:42px;padding:.65rem 1rem;background:#142b40;color:#fff;text-decoration:none;border:1px solid #142b40}.relations-external-action .button:hover{background:#8d2638;border-color:#8d2638}


/* Version 18 — formules scientifiques */
.modal-scientific-formulas {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 4px;
}
.modal-scientific-formulas[hidden] { display: none; }
.modal-scientific-formulas .formula-intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.formula-list { display: grid; gap: 14px; }
.formula-block {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-left: 4px solid var(--burgundy);
  padding: 16px 18px;
}
.formula-block h4,
.formula-variables-title {
  color: var(--navy);
  font: 700 14px/1.4 Georgia, "Times New Roman", serif;
  margin: 0 0 10px;
}
.formula-expression {
  color: var(--ink);
  font-size: 18px;
  min-height: 48px;
  overflow-x: auto;
  padding: 8px 4px;
  text-align: center;
}
.formula-note {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
}
.formula-variables-title { margin-top: 20px; }
.formula-variables {
  border-top: 1px solid var(--line);
  margin: 0;
}
.formula-variables > div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 70px 1fr;
  padding: 10px 0;
}
.formula-variables dt {
  color: var(--burgundy);
  font: 700 16px Georgia, "Times New Roman", serif;
}
.formula-variables dd {
  color: var(--ink);
  font: 14px/1.55 Georgia, "Times New Roman", serif;
  margin: 0;
}
.formula-render-fallback .formula-expression {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  white-space: pre-wrap;
}
@media (max-width: 620px) {
  .formula-block { padding: 14px 12px; }
  .formula-expression { font-size: 16px; text-align: left; }
  .formula-variables > div { grid-template-columns: 52px 1fr; }
}


/* Harmonisation 2026 : domaine + sous-domaine */
.concepts-search-panel {
  grid-template-columns: minmax(280px, 1.65fr) minmax(190px, .9fr) minmax(190px, .9fr) minmax(170px, .75fr);
}
.notice-classification {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0;
}
.notice-classification span {
  display: inline-flex; align-items: center; min-height: 26px; padding: 4px 8px;
  border: 1px solid var(--line, #d9d1c3); background: #f8f4ec;
  color: var(--navy, #18324a); font-size: 11px; line-height: 1.25;
}
.notice-classification .subdomain { background: #fff; color: #5d6873; }
@media (max-width: 1050px) {
  .concepts-search-panel { grid-template-columns: 1fr 1fr; }
  .concepts-search-panel .search-box { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .concepts-search-panel { grid-template-columns: 1fr; }
  .concepts-search-panel .search-box { grid-column: auto; }
}

/* ==========================================================================
   GEOMAPIA CONCEPTS — IDENTITÉ VISUELLE VALIDÉE
   Ajoutée le 05/08/2026
   Les fonctions, les données et la structure d’origine sont conservées.
   ========================================================================== */

:root{
  --gc-navy:#071c27;
  --gc-navy-2:#0b2c36;
  --gc-teal:#1ad2c4;
  --gc-mint:#53e1b2;
  --gc-lime:#c9f36b;
  --gc-paper:#f4f8f7;
  --gc-white:#ffffff;
  --gc-ink:#17313a;
  --gc-muted:#657981;
  --gc-line:#d8e5e2;
  --gc-shadow:0 18px 48px rgba(7,28,39,.10);
  --gc-radius:20px;

  --ink:var(--gc-ink);
  --navy:var(--gc-navy-2);
  --navy-deep:var(--gc-navy);
  --burgundy:var(--gc-teal);
  --paper:var(--gc-paper);
  --cream:#fbfdfd;
  --line:var(--gc-line);
  --muted:var(--gc-muted);
  --green:#0b756d;
}

html{
  background:var(--gc-paper);
}

body{
  color:var(--gc-ink);
  background:
    radial-gradient(circle at 90% 0,rgba(26,210,196,.10),transparent 26rem),
    var(--gc-paper) !important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}

/* EN-TÊTE */
.masthead{
  color:#fff !important;
  background:rgba(7,28,39,.97) !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 8px 26px rgba(7,28,39,.10);
  backdrop-filter:blur(12px);
}

.masthead-line{
  background:linear-gradient(90deg,var(--gc-teal),var(--gc-mint)) !important;
}

.brand-mark{
  color:var(--gc-navy) !important;
  background:linear-gradient(145deg,var(--gc-teal),var(--gc-mint)) !important;
  border-color:transparent !important;
  border-radius:13px !important;
  box-shadow:0 8px 22px rgba(26,210,196,.22);
}

.brand strong,
.masthead .brand strong{
  color:#fff !important;
}

.brand small,
.masthead .brand small{
  color:#a9c6c7 !important;
}

.masthead nav a,
.masthead .nav a{
  color:#dbe9e9 !important;
  border-radius:999px !important;
  border-color:transparent !important;
  transition:background .18s ease,color .18s ease;
}

.masthead nav a:hover,
.masthead nav a:focus-visible,
.masthead nav a.active,
.masthead .nav a:hover,
.masthead .nav a:focus-visible,
.masthead .nav a.active,
.masthead .nav a[aria-current="page"]{
  color:var(--gc-navy) !important;
  background:var(--gc-lime) !important;
  border-color:var(--gc-lime) !important;
  text-decoration:none !important;
}

/* BANNIÈRES */
.catalogue-hero,
.about-hero,
.contact-hero,
.convention-hero,
.dictionary-hero,
.indicator-hero,
.news-hero,
.relations-hero,
.hero{
  color:#fff !important;
  background:
    linear-gradient(120deg,rgba(7,28,39,.995),rgba(11,44,54,.96)) !important;
  border-bottom:4px solid var(--gc-teal) !important;
}

.catalogue-hero h1,
.about-hero h1,
.contact-hero h1,
.convention-hero h1,
.dictionary-hero h1,
.indicator-hero h1,
.news-hero h1,
.relations-hero h1,
.hero h1{
  color:#fff !important;
  font-weight:800;
  letter-spacing:-.045em;
}

.catalogue-hero p:not(.eyebrow),
.about-hero p:not(.eyebrow),
.contact-hero p:not(.eyebrow),
.convention-hero p:not(.eyebrow),
.dictionary-hero p:not(.eyebrow),
.indicator-hero p:not(.eyebrow),
.news-hero p:not(.eyebrow),
.relations-hero p:not(.eyebrow),
.hero-subtitle{
  color:#cfdfdf !important;
}

.eyebrow{
  display:inline-flex;
  width:fit-content;
  align-items:center;
  padding:6px 10px;
  border:1px solid rgba(83,225,178,.35) !important;
  border-radius:999px;
  color:var(--gc-mint) !important;
  background:rgba(83,225,178,.08) !important;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.catalogue-number{
  border-left-color:rgba(255,255,255,.23) !important;
}
.catalogue-number strong{color:#fff !important}
.catalogue-number span{color:var(--gc-lime) !important}

/* CARTES ET PANNEAUX */
.card,
.contact-card,
.method-card,
.profile-card,
.chart-card,
.search-panel,
.concepts-search-panel,
.dictionary-search-panel,
.newsletter-panel,
.rights-panel,
.relations-frame,
.relations-validated-card,
.reference-group,
.source-banner,
.advanced-filters{
  border-color:var(--gc-line) !important;
  border-radius:var(--gc-radius) !important;
  background:#fff !important;
  box-shadow:0 14px 38px rgba(7,28,39,.07) !important;
}

.card:hover,
.contact-card:hover,
.method-card:hover,
.profile-card:hover,
.relations-validated-card:hover{
  border-color:rgba(26,210,196,.55) !important;
}

/* BOUTONS */
.btn,
.button,
.primary-button,
.contact-submit{
  border-radius:13px !important;
}

.btn-primary,
.primary-button,
.contact-submit{
  color:var(--gc-navy) !important;
  background:var(--gc-lime) !important;
  border-color:var(--gc-lime) !important;
  box-shadow:none !important;
}

.btn-primary:hover,
.primary-button:hover,
.contact-submit:hover{
  color:var(--gc-navy) !important;
  background:#b8ea5e !important;
  border-color:#b8ea5e !important;
}

.btn-ghost,
.button:not(.primary-button){
  color:var(--gc-navy) !important;
  background:#fff !important;
  border-color:#c9d8d5 !important;
}

.btn-ghost:hover{
  border-color:var(--gc-teal) !important;
  background:#edf6f4 !important;
}

/* CHAMPS */
input,
select,
textarea,
.form-control,
.form-select{
  color:var(--gc-ink) !important;
  background:#fbfdfd !important;
  border-color:#c7d7d3 !important;
  border-radius:13px !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus{
  border-color:var(--gc-teal) !important;
  box-shadow:0 0 0 3px rgba(26,210,196,.15) !important;
  outline:none !important;
}

.form-check-input:checked{
  background-color:var(--gc-teal) !important;
  border-color:var(--gc-teal) !important;
}

/* BADGES ET REPÈRES */
.badge,
.relations-validated-badge,
.method-label,
.profile-role{
  border-radius:999px !important;
}

.relations-validated-badge{
  color:var(--gc-navy) !important;
  background:var(--gc-lime) !important;
  border-color:var(--gc-lime) !important;
}

/* ALPHABET, PAGINATION ET ÉTATS ACTIFS */
.alphabet-filter button.active,
.concept-alphabet button.active,
.pagination button.active,
.dictionary-pagination button.active,
.is-selected{
  color:var(--gc-navy) !important;
  background:var(--gc-lime) !important;
  border-color:var(--gc-lime) !important;
}

/* TABLEAUX */
table{
  background:#fff;
  border-color:var(--gc-line) !important;
}

thead,
th{
  color:#fff !important;
  background:var(--gc-navy-2) !important;
}

td{
  border-color:var(--gc-line) !important;
}

tbody tr:hover{
  background:#edf6f4 !important;
}

/* LIENS */
main a:not(.btn):not(.button):not(.primary-button){
  color:#087d75;
}

main a:not(.btn):not(.button):not(.primary-button):hover{
  color:var(--gc-navy);
}

/* RELATIONS VALIDÉES : séparées et sobres */
.relations-validated-head{
  color:#fff !important;
  background:var(--gc-navy) !important;
}

.relations-public-line-validated,
.relations-public-line-exploratory{
  border-color:var(--gc-ink) !important;
}

/* PIED DE PAGE */
.site-footer{
  color:#b9caca !important;
  background:var(--gc-navy) !important;
  border-top-color:rgba(26,210,196,.22) !important;
}

.site-footer strong{
  color:#fff !important;
}

.site-footer a{
  color:var(--gc-lime) !important;
}

/* RESPONSIVE */
@media(max-width:760px){
  .brand small,
  .masthead .brand small{
    max-width:225px;
    white-space:normal;
    line-height:1.25;
  }

  .catalogue-hero,
  .about-hero,
  .contact-hero,
  .convention-hero,
  .dictionary-hero,
  .indicator-hero,
  .news-hero,
  .relations-hero,
  .hero{
    border-bottom-width:3px !important;
  }
}


/* ==========================================================================
   GEOMAPIA CONCEPTS — ALIGNEMENT VISUEL EXACT SUR GEOMAPIA
   Sources : geomapia-navbar.css, geomapia-common.css et about.html fournis.
   ========================================================================== */

:root{
  --gmn-primary:#0f4c75;
  --gmn-primary-dark:#16384f;
  --gmn-secondary:#3282b8;
  --gmn-accent:#bbe1fa;
  --gmn-success:#16a34a;
  --gmn-white:#ffffff;
  --gmn-text-light:#eaf6ff;
  --gmn-border-light:rgba(255,255,255,.20);
  --gmn-shadow:0 4px 18px rgba(0,0,0,.14);
  --gc-bg:#f4f7f6;
  --gc-text:#333333;
  --gc-muted:#64748b;
}

/* NAVIGATION */
.masthead{
  position:sticky !important;
  top:0;
  z-index:4000;
  width:100%;
  color:var(--gmn-white) !important;
  background:
    linear-gradient(
      110deg,
      rgba(15,76,117,.985),
      rgba(22,56,79,.985)
    ) !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
  box-shadow:var(--gmn-shadow) !important;
  backdrop-filter:blur(12px);
}

.masthead-inner{
  min-height:76px !important;
}

.brand-mark{
  color:var(--gmn-primary) !important;
  background:#ffffff !important;
  border-radius:50% !important;
  box-shadow:0 4px 14px rgba(0,0,0,.20) !important;
}

.brand strong,
.masthead .brand strong{
  color:#ffffff !important;
}

.brand small,
.masthead .brand small{
  color:#cfe9f8 !important;
}

/* Liens du menu */
.masthead nav a,
.masthead .nav a{
  position:relative;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding:.60rem .72rem !important;
  border:0 !important;
  border-radius:8px !important;
  color:var(--gmn-text-light) !important;
  background:transparent !important;
  font-size:.88rem !important;
  font-weight:750 !important;
  white-space:nowrap;
  text-decoration:none !important;
  box-shadow:none !important;
  transition:
    color .18s ease,
    background-color .18s ease,
    transform .18s ease !important;
}

.masthead nav a:hover,
.masthead nav a:focus-visible,
.masthead .nav a:hover,
.masthead .nav a:focus-visible{
  color:#ffffff !important;
  background:rgba(255,255,255,.12) !important;
  transform:none !important;
}

.masthead nav a.active,
.masthead nav a[aria-current="page"],
.masthead .nav a.active,
.masthead .nav a[aria-current="page"]{
  color:#ffffff !important;
  background:rgba(255,255,255,.16) !important;
}

.masthead nav a.active::after,
.masthead nav a[aria-current="page"]::after,
.masthead .nav a.active::after,
.masthead .nav a[aria-current="page"]::after{
  content:"";
  position:absolute;
  right:.75rem;
  bottom:.25rem;
  left:.75rem;
  height:2px;
  border-radius:999px;
  background:var(--gmn-accent);
}

/* BANNIÈRES DES PAGES */
.catalogue-hero,
.about-hero,
.contact-hero,
.convention-hero,
.dictionary-hero,
.indicator-hero,
.news-hero,
.relations-hero,
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  color:#ffffff !important;
  background:
    radial-gradient(circle at top left,rgba(187,225,250,.20),transparent 30%),
    linear-gradient(135deg,#0f4c75,#1b262c) !important;
  border-bottom:0 !important;
  text-align:center;
}

.catalogue-hero::after,
.about-hero::after,
.contact-hero::after,
.convention-hero::after,
.dictionary-hero::after,
.indicator-hero::after,
.news-hero::after,
.relations-hero::after,
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.09;
  background-image:
    linear-gradient(rgba(255,255,255,.13) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.13) 1px,transparent 1px);
  background-size:54px 54px;
}

.catalogue-hero h1,
.about-hero h1,
.contact-hero h1,
.convention-hero h1,
.dictionary-hero h1,
.indicator-hero h1,
.news-hero h1,
.relations-hero h1,
.hero h1{
  color:#ffffff !important;
  font-weight:900 !important;
  letter-spacing:.3px !important;
}

.catalogue-hero p,
.about-hero p,
.contact-hero p,
.convention-hero p,
.dictionary-hero p,
.indicator-hero p,
.news-hero p,
.relations-hero p,
.hero p{
  color:#dbeafe !important;
  line-height:1.8 !important;
}

/* Le badge supérieur devient plus sobre */
.eyebrow{
  color:#dbeafe !important;
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(255,255,255,.20) !important;
  border-radius:999px !important;
}

/* BOUTONS PRINCIPAUX — style Adhérer */
.btn-primary,
.primary-button,
.contact-submit,
button[type="submit"]:not(.btn-ghost):not(.secondary-button),
a.primary-button,
a.btn-primary{
  min-height:43px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.45rem !important;
  padding:.62rem .92rem !important;
  border:1px solid transparent !important;
  border-radius:9px !important;
  color:#ffffff !important;
  background:linear-gradient(135deg,#16a34a,#2563eb) !important;
  box-shadow:0 7px 18px rgba(37,99,235,.24) !important;
  font-size:.86rem !important;
  font-weight:850 !important;
  text-decoration:none !important;
  transition:.18s ease !important;
}

.btn-primary:hover,
.primary-button:hover,
.contact-submit:hover,
button[type="submit"]:not(.btn-ghost):not(.secondary-button):hover,
a.primary-button:hover,
a.btn-primary:hover{
  color:#ffffff !important;
  filter:brightness(1.06);
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(37,99,235,.30) !important;
}

/* BOUTONS SECONDAIRES — style Connexion */
.btn-ghost,
.secondary-button{
  min-height:43px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.45rem !important;
  padding:.62rem .92rem !important;
  border:1px solid var(--gmn-border-light) !important;
  border-radius:9px !important;
  color:#ffffff !important;
  background:rgba(255,255,255,.09) !important;
  font-size:.86rem !important;
  font-weight:850 !important;
  text-decoration:none !important;
  transition:.18s ease !important;
}

.btn-ghost:hover,
.secondary-button:hover{
  color:#ffffff !important;
  background:rgba(255,255,255,.17) !important;
}

/* Boutons secondaires dans le contenu clair */
main .btn-ghost,
main .secondary-button,
main .btn:not(.btn-primary),
main button:not([type="submit"]):not(.btn-primary){
  color:#0f4c75 !important;
  background:#ffffff !important;
  border:1px solid #bfd0df !important;
  box-shadow:none !important;
}

main .btn-ghost:hover,
main .secondary-button:hover,
main .btn:not(.btn-primary):hover,
main button:not([type="submit"]):not(.btn-primary):hover{
  color:#0f4c75 !important;
  background:#eef6fb !important;
  border-color:#9fb9ca !important;
}

/* CARTES ET CONTENU */
body{
  background:var(--gc-bg) !important;
  color:var(--gc-text) !important;
}

.card,
.contact-card,
.method-card,
.profile-card,
.chart-card,
.search-panel,
.concepts-search-panel,
.dictionary-search-panel,
.newsletter-panel,
.rights-panel,
.relations-frame,
.relations-validated-card,
.reference-group,
.source-banner,
.advanced-filters{
  border:1px solid rgba(15,76,117,.08) !important;
  border-radius:20px !important;
  background:#ffffff !important;
  box-shadow:0 10px 28px rgba(0,0,0,.07) !important;
}

.card:hover,
.contact-card:hover,
.method-card:hover,
.profile-card:hover,
.relations-validated-card:hover{
  transform:translateY(-5px);
  box-shadow:0 16px 34px rgba(0,0,0,.11) !important;
}

/* Titres de sections */
main h2{
  color:#0f4c75 !important;
}

main h2::after{
  background:#bbe1fa !important;
}

/* Champs */
input,
select,
textarea,
.form-control,
.form-select{
  border-color:#bfd0df !important;
  border-radius:12px !important;
  background:#ffffff !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus{
  border-color:#3282b8 !important;
  box-shadow:0 0 0 3px rgba(50,130,184,.16) !important;
}

/* Liens */
main a:not(.btn):not(.button):not(.primary-button){
  color:#0f4c75 !important;
}

main a:not(.btn):not(.button):not(.primary-button):hover{
  color:#3282b8 !important;
}

/* États actifs */
.alphabet-filter button.active,
.concept-alphabet button.active,
.pagination button.active,
.dictionary-pagination button.active,
.is-selected{
  color:#ffffff !important;
  background:#0f4c75 !important;
  border-color:#0f4c75 !important;
}

/* Footer : conserver une version sobre alignée au système Geomapia */
.site-footer{
  background:#0f4c75 !important;
  color:#ffffff !important;
}

.site-footer a{
  color:#bbe1fa !important;
}

:focus-visible{
  outline:3px solid #bbe1fa !important;
  outline-offset:4px !important;
}

@media(max-width:900px){
  .masthead-inner{
    min-height:68px !important;
  }
}


/* === Ajustements demandés : logo Geomapia, titre raccourci, débordement supprimé === */
.brand{
  gap:12px !important;
  margin-inline-end:18px !important;
  flex:0 1 auto !important;
  min-width:0;
}
.brand-logo{
  width:46px;
  height:46px;
  display:block;
  flex:0 0 46px;
  border-radius:50%;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}
.brand-mark{ display:none !important; }
.brand-text{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.brand strong,
.masthead .brand strong{
  font-size:1rem !important;
  line-height:1.15 !important;
  letter-spacing:.01em;
}
.brand small,
.masthead .brand small{
  margin-top:2px;
  font-size:.67rem !important;
  letter-spacing:.06em;
}
.masthead .shell.nav,
.nav{
  min-height:76px !important;
  height:auto !important;
  gap:18px !important;
  justify-content:space-between;
}
.masthead .nav nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px !important;
  flex:1 1 auto;
  min-width:0;
}
.masthead nav a,
.masthead .nav a{
  padding:.58rem .62rem !important;
  font-size:.82rem !important;
}
.author-credit{
  margin-left:8px !important;
  padding-left:14px !important;
  font-size:.72rem !important;
  flex:0 0 auto;
}
.source-banner-inner{
  flex-wrap:wrap;
}
.source-banner-inner > div:first-child{
  min-width:min(100%, 620px);
}
.source-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  row-gap:8px;
}
.source-links a{
  white-space:nowrap;
}
@media (max-width: 1480px){
  .author-credit{ display:none !important; }
}
@media (max-width: 1280px){
  .brand strong,
  .masthead .brand strong{ font-size:.92rem !important; }
  .brand small,
  .masthead .brand small{ display:none !important; }
  .masthead nav a,
  .masthead .nav a{ font-size:.78rem !important; padding:.54rem .52rem !important; }
}
@media (max-width: 1100px){
  .brand-logo{ width:40px; height:40px; flex-basis:40px; }
  .brand strong,
  .masthead .brand strong{ font-size:.86rem !important; }
  .masthead .nav nav{ gap:6px !important; }
}


/* =========================================================
   CORRECTION FINALE DE L’EN-TÊTE — 05/08/2026
   ========================================================= */

.masthead .shell.nav,
.masthead .nav {
  width: min(1240px, calc(100% - 2rem)) !important;
  min-height: 76px !important;
  height: auto !important;
  margin-inline: auto !important;
  padding-block: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  overflow: visible !important;
}

.brand {
  width: 300px !important;
  max-width: 300px !important;
  min-width: 260px !important;
  flex: 0 0 300px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  margin: 0 !important;
  overflow: hidden;
}

.brand-logo {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,.20);
}

.brand-text {
  min-width: 0;
  display: grid !important;
  gap: 2px;
  line-height: 1.15;
}

.brand strong,
.masthead .brand strong {
  overflow: hidden;
  color: #ffffff !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: .01em !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small,
.masthead .brand small {
  overflow: hidden;
  margin: 0 !important;
  color: #cfe9f8 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: .68rem !important;
  font-weight: 650 !important;
  letter-spacing: .015em !important;
  text-transform: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.masthead .nav nav,
.masthead nav {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  overflow: visible !important;
}

.masthead nav a,
.masthead .nav nav a {
  min-height: 40px !important;
  padding: .56rem .58rem !important;
  font-size: .78rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.author-credit {
  display: none !important;
}

/* Le menu doit rester entièrement dans la largeur de la page. */
@media (max-width: 1180px) {
  .brand {
    width: 245px !important;
    max-width: 245px !important;
    min-width: 220px !important;
    flex-basis: 245px !important;
  }

  .brand-logo {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }

  .brand strong,
  .masthead .brand strong {
    font-size: .9rem !important;
  }

  .brand small,
  .masthead .brand small {
    font-size: .62rem !important;
  }

  .masthead nav a,
  .masthead .nav nav a {
    padding-inline: .45rem !important;
    font-size: .73rem !important;
  }
}

@media (max-width: 980px) {
  .brand {
    width: auto !important;
    max-width: calc(100% - 60px) !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
}


/* =========================================================
   ACCUEIL COMPACT — 05/08/2026
   ========================================================= */
.hero-grid{
  grid-template-columns:minmax(0,760px) !important;
  justify-content:center !important;
  text-align:center;
}
.hero-copy{max-width:760px;margin-inline:auto;}
.hero-copy .primary-button{margin-inline:auto;}
.resource-stats{padding:44px 0 58px;background:#fff;}
.resource-stats-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:22px;}
.resource-stats-heading h2{margin:0;color:#0f4c75;font:800 clamp(28px,3vw,40px)/1.1 "Segoe UI",Arial,sans-serif;}
.resource-stats-heading p{max-width:480px;margin:0;color:#64748b;line-height:1.6;}
.resource-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;border:1px solid #d9e5e2;border-radius:18px;background:#fff;box-shadow:0 16px 38px rgba(15,76,117,.09);}
.resource-stat{position:relative;min-height:220px;padding:26px 24px;display:flex;flex-direction:column;border-right:1px solid #d9e5e2;background:linear-gradient(180deg,rgba(187,225,250,.12),transparent 45%),#fff;}
.resource-stat:last-child{border-right:0;}
.resource-stat::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(135deg,#16a34a,#2563eb);transform:scaleX(0);transform-origin:left;transition:.65s ease;}
.resource-stat.is-visible::before{transform:scaleX(1);}
.resource-stat-number{color:#0f4c75;font:900 clamp(42px,4vw,62px)/1 "Segoe UI",Arial,sans-serif;letter-spacing:-.04em;}
.resource-stat>span{margin-top:9px;color:#3282b8;font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;}
.resource-stat p{margin:13px 0 18px;color:#64748b;font-size:13px;line-height:1.55;}
.resource-stat a{margin-top:auto;align-self:flex-start;padding:9px 12px;border-radius:8px;color:#fff!important;background:linear-gradient(135deg,#16a34a,#2563eb);font-size:12px;font-weight:800;text-decoration:none;}
.portal-section{padding-top:60px!important;padding-bottom:64px!important;}
.portal-heading{margin-bottom:26px!important;}
.portal-heading h2{font-size:clamp(29px,3.6vw,48px)!important;}
.portal-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;}
.portal-grid a{min-height:245px!important;padding:22px!important;}
.portal-grid strong{margin-top:28px!important;font-size:clamp(20px,1.65vw,25px)!important;}
.portal-grid p{font-size:12px!important;line-height:1.5!important;}
.portal-grid a:nth-child(5){background:#233c52;border-color:#3b5870;}
.domain-overview{padding:62px 0 72px;}
.compact-section-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:26px;}
.compact-section-heading>div{display:flex;align-items:baseline;gap:16px;}
.compact-section-heading h2{margin:0;color:#0f4c75;font:700 clamp(27px,3.3vw,42px)/1.1 Georgia,serif;}
.compact-section-heading>p{max-width:480px;margin:0;color:#64748b;line-height:1.6;}
.domain-chart-card{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(360px,1.1fr);align-items:center;gap:38px;padding:32px;border:1px solid #d9e5e2;border-radius:20px;background:#fff;box-shadow:0 14px 34px rgba(15,76,117,.08);}
.domain-radial-chart svg{width:100%;max-width:520px;display:block;margin:auto;overflow:visible;}
.radial-guide{fill:#f7fafb;stroke:#d9e5e2;stroke-width:1;}
.radial-center{fill:#fff;stroke:#d9e5e2;stroke-width:1.5;}
.radial-domain-bar{opacity:.92;transition:opacity .2s,transform .2s;transform-origin:center;}
.radial-domain-bar:hover,.radial-domain-bar:focus{opacity:1;filter:brightness(1.08);outline:none;}
.radial-total{fill:#0f4c75;font:900 31px "Segoe UI",Arial,sans-serif;text-anchor:middle;}
.radial-caption{fill:#64748b;font:700 12px "Segoe UI",Arial,sans-serif;text-anchor:middle;text-transform:uppercase;letter-spacing:.08em;}
.domain-legend{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;}
.domain-legend-item{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #edf1f2;font-size:12px;}
.domain-legend-item i{width:9px;height:9px;border-radius:50%;}
.domain-legend-item span{color:#43545c;}
.domain-legend-item strong{color:#0f4c75;}
.authors-compact{padding:58px 0 66px;background:#efe9dd;}
.compact-about-link{color:#0f4c75;font-weight:800;text-decoration:none;border-bottom:1px solid #0f4c75;padding-bottom:3px;}
.authors-compact-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.authors-compact-grid article{padding:24px;border-radius:16px;background:#fff;border:1px solid rgba(15,76,117,.08);box-shadow:0 10px 24px rgba(0,0,0,.05);}
.authors-compact-grid span{display:block;color:#3282b8;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;}
.authors-compact-grid strong{display:block;margin-top:8px;color:#0f4c75;font:700 24px Georgia,serif;}
.authors-compact-grid p{margin:10px 0 0;color:#64748b;line-height:1.6;font-size:14px;}
@media(max-width:1100px){.portal-grid{grid-template-columns:repeat(3,1fr)!important;}.domain-chart-card{grid-template-columns:1fr;}.domain-legend{grid-template-columns:1fr 1fr;}}
@media(max-width:760px){.resource-stats-heading,.compact-section-heading{display:block;}.resource-stats-heading p,.compact-section-heading>p,.compact-about-link{margin-top:10px;}.resource-stats-grid{grid-template-columns:1fr 1fr;}.resource-stat:nth-child(2){border-right:0;}.resource-stat:nth-child(-n+2){border-bottom:1px solid #d9e5e2;}.portal-grid{grid-template-columns:1fr!important;}.authors-compact-grid{grid-template-columns:1fr;}.domain-legend{grid-template-columns:1fr;}}


/* ==========================================================
   COHÉRENCE FINALE — GRAPHIQUE CIRCULAIRE ET AUTEURS COMPACTS
   ========================================================== */

.domain-chart-heading {
  margin-bottom: 20px;
}

.domain-chart-card--single {
  display: block !important;
  max-width: 760px;
  margin-inline: auto;
  padding: 28px !important;
}

.domain-chart-stage {
  position: relative;
  width: min(100%, 620px);
  margin-inline: auto;
}

.domain-radial-chart svg {
  width: 100%;
  max-width: 580px;
  display: block;
  margin-inline: auto;
  overflow: visible;
}

.radial-domain-bar {
  opacity: .9;
  cursor: help;
  stroke: rgba(255,255,255,.65);
  stroke-width: 1;
  transition:
    opacity .18s ease,
    filter .18s ease,
    transform .18s ease;
  transform-origin: center;
}

.radial-domain-bar:hover,
.radial-domain-bar:focus {
  opacity: 1;
  filter: brightness(1.1) saturate(1.08);
  outline: none;
}

.domain-chart-tooltip {
  position: absolute;
  z-index: 10;
  min-width: 175px;
  max-width: 270px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(15,56,79,.96);
  box-shadow: 0 12px 28px rgba(15,23,42,.22);
  pointer-events: none;
  transform: translate(-50%, -100%);
  backdrop-filter: blur(8px);
}

.domain-chart-tooltip strong,
.domain-chart-tooltip span {
  display: block;
}

.domain-chart-tooltip strong {
  font-size: .82rem;
  line-height: 1.35;
}

.domain-chart-tooltip span {
  margin-top: 4px;
  color: #cfe9f8;
  font-size: .76rem;
  font-weight: 700;
}

.domain-legend {
  display: none !important;
}

.authors-compact {
  padding: 24px 0 !important;
}

.authors-compact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.authors-compact-line p {
  margin: 0;
  color: #475569;
  font-size: .9rem;
}

.authors-compact-line strong {
  color: #0f4c75;
}

@media (max-width: 760px) {
  .authors-compact-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .domain-chart-card--single {
    padding: 16px !important;
  }
}


.suggestion-domain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.suggestion-domain-grid label {
  min-width: 0;
}

@media (max-width: 760px) {
  .suggestion-domain-grid {
    grid-template-columns: 1fr;
  }
}
