@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,700;1,400;1,700&family=Archivo+Black&family=EB+Garamond:wght@400;700&family=Noto+Sans:wght@400;700&family=Special+Elite&display=swap');

/* 1) Variables */
:root {
  --max: 900px;
  --font-body: 'EB Garamond', serif;
  --size-body: 1.0rem;
  --size-title: 1.15rem;
}

/* 2) Reset / base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

/* 3) Typo globale */
html, body, body * {
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: 0;
  color: #222;
  font-size: var(--size-body);
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* 4) Layout */
main {
  max-width: var(--max);
  padding: 24px;
  margin: 0 auto;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.small { font-size: .95rem; }

/* 5) En-tête & pied de page */
header {
  padding: 24px 16px;
  border-bottom: none;
}

footer {
  padding: 24px 16px;
  border-top: none;
  color: #666;
  font-size: .95rem;
  position: relative;
  z-index: 1;
}

/* 6) Marque */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  padding: 20px 0;
}

.brand img {
  height: 72px;
  width: auto;
  vertical-align: middle;
}

header .title {
  font-weight: 700;
  font-size: var(--size-title);
}

@media (max-width: 520px) {
  .brand .title { display: none; }
}

/* 7) Sélecteur de langue */
.lang-switch { float: right; }

/* 8) Navigation */
nav { font-size: inherit; }

nav a {
  margin-right: 10px;
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .brand .title { display: none; }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: .95rem;
  }

  nav a {
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
  }
}

/* 9) Contenu */
main p,
main li,
main blockquote {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* 10) Fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/assets/background.jpg') center center / cover no-repeat;
  z-index: -1;
}

body {
  margin: 0;
  background: transparent;
}

header,
main,
footer {
  background: transparent;
}

/* 11) Espacement des sections */
.section-start {
  margin-top: 2.8rem;
  margin-bottom: 0.8rem;
}

/* 12) Polices spéciales */
.gbd-title,
.gbd-title * {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
}

.gbd-title {
  text-align: left !important;
  text-justify: auto;
}

.gbd-text,
.gbd-text * {
  font-family: 'Archivo', sans-serif;
}

.leas-title,
.leas-title * {
  font-family: 'Special Elite', cursive;
  letter-spacing: 0.02em;
}

.leas-text,
.leas-text * {
  font-family: 'Special Elite', cursive;
  text-align: left !important;
  text-justify: auto;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.baw-title,
.baw-title * {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
}

.baw-text,
.baw-text * {
  font-family: 'Noto Sans', sans-serif;
}

.leas-title.section-start {
  margin-top: 4rem;
}

.boma-logo-wrap {
  display: block;
  text-align: center;
  margin: 0 auto 0.8rem auto;
  line-height: 0;
  position: relative;
  z-index: 2;
}

.boma-logo {
  display: block !important;
  width: 240px;
  max-width: min(240px, 80vw);
  height: auto;
  margin: 0 auto;
  opacity: 0.3;
  visibility: visible !important;
  position: relative;
  z-index: 2;
}

.section-logo {
  height: 2em;
  width: auto;
  max-width: none;
  margin-left: 0.35em;
  vertical-align: middle;
  display: inline-block;
}

.brand .title {
  display: none;
}

@media (orientation: landscape) and (max-height: 500px) {
  header,
  main,
  footer {
    width: 72vw !important;
    max-width: 72vw !important;
    margin: 0 auto !important;
  }

  header {
    padding: 12px 18px !important;
  }

  main {
    padding: 16px 18px !important;
  }

  footer {
    padding: 12px 18px !important;
  }
}

/* 13) Références GBD */
.gbd-ref-list {
  margin: 1.2rem 0;
  padding: 0;
}

.gbd-ref {
  margin: 0;
  padding-left: 2.2em;
  text-indent: -2.2em;
  line-height: 1.55;
  text-align: left !important;
  text-justify: auto;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.gbd-ref,
.gbd-ref * {
  font-family: 'Archivo', sans-serif;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.gbd-ref-number {
  font-family: 'Archivo Black', sans-serif !important;
  font-weight: 400;
}

.gbd-ref em,
.gbd-ref i {
  font-family: 'Archivo', sans-serif;
  font-style: italic;
}

/* 14) Abstract sous référence */
.gbd-ref-abstract {
  position: relative;
  margin: 0.5rem 0 1.4rem 2.85em;
  padding: 0.1rem 0 0.1rem 1.5rem;
  font-family: 'Archivo', sans-serif !important;
  font-size: 0.78rem !important;
  line-height: 1.45;
  text-align: justify !important;
  text-justify: inter-word;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.gbd-ref-abstract * {
  font-family: 'Archivo', sans-serif !important;
  font-size: inherit !important;
  line-height: inherit;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.gbd-ref-abstract::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  bottom: 0.08em;
  width: 26px;
  background:
    linear-gradient(to right,
      #ff453a 0 3px,
      transparent 3px 6px,
      #ffd60a 6px 9px,
      transparent 9px 12px,
      #30d158 12px 15px,
      transparent 15px 18px,
      #0a84ff 18px 21px,
      transparent 21px 26px);
  border-radius: 2px;
}

/* 15) Comité éditorial avec retrait négatif */
.editorial-list {
  margin: 1.2rem 0;
  padding: 0;
}

.editorial-item {
  margin: 0 0 0.45rem 0;
  padding-left: 2.2em;
  text-indent: -2.2em;
  line-height: 1.55;
  text-align: left !important;
  text-justify: auto;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

/* Responsive */
@media (max-width: 600px) {
  .gbd-ref {
    padding-left: 1.95em;
    text-indent: -1.95em;
    line-height: 1.5;
  }

  .gbd-ref-abstract {
    margin-left: 2.35em;
    padding-left: 1.25rem;
    font-size: 0.72rem !important;
    line-height: 1.4;
  }

  .gbd-ref-abstract::before {
    width: 22px;
    background:
      linear-gradient(to right,
        #ff453a 0 2px,
        transparent 2px 5px,
        #ffd60a 5px 7px,
        transparent 7px 10px,
        #30d158 10px 12px,
        transparent 12px 15px,
        #0a84ff 15px 17px,
        transparent 17px 22px);
  }

  .editorial-item {
    padding-left: 1.95em;
    text-indent: -1.95em;
    line-height: 1.5;
  }
}

/* 16) Année stylisée avant la référence */
.issue-year {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  margin: 0 0 0.5rem 0;
  line-height: 1;
}

.issue-year span {
  font-size: 1.35rem;
  color: #222;
}

.issue-year .y1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
}

.issue-year .y2 {
  font-family: 'Special Elite', cursive;
}

.issue-year .y3 {
  font-family: 'EB Garamond', serif;
  font-weight: 700;
}

.issue-year .y4 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
}

@media (max-width: 600px) {
  .issue-year span {
    font-size: 1.18rem;
  }
}

/* 17) Liens du header en polices alternées */
.nav-mixed {
  display: inline-block;
  text-decoration: none;
}

.nav-mixed .f1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
}

.nav-mixed .f2 {
  font-family: 'Special Elite', cursive;
}

.nav-mixed .f3 {
  font-family: 'EB Garamond', serif;
  font-weight: 700;
}

.nav-mixed .f4 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
}

/* 18) Texte mixte */
.mix-4,
.mix-2 {
  display: inline-block;
  text-decoration: none;
}

.mix-4 .f1,
.mix-2 .f1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
}

.mix-4 .f2,
.mix-2 .f2 {
  font-family: 'Special Elite', cursive;
}

.mix-4 .f3 {
  font-family: 'EB Garamond', serif;
  font-weight: 700;
}

.mix-4 .f4 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
}

/* 19) Références LEAS */
.leas-ref-list {
  margin: 1.2rem 0;
  padding: 0;
}

.leas-ref {
  margin: 0;
  padding-left: 2.2em;
  text-indent: -2.2em;
  line-height: 1.55;
  text-align: left !important;
  text-justify: auto;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  font-family: 'Special Elite', cursive !important;
}

.leas-ref,
.leas-ref * {
  font-family: 'Special Elite', cursive !important;
}

.leas-ref-number {
  color: #ff453a;
  font-family: 'Special Elite', cursive !important;
}

.leas-ref-abstract {
  position: relative;
  margin: 0.5rem 0 1.4rem 2.85em;
  padding: 0.1rem 0 0.1rem 1.2rem;
  font-family: 'Special Elite', cursive !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
  text-align: left !important;
  text-justify: auto;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.leas-ref-abstract,
.leas-ref-abstract *,
p.leas-ref-abstract,
p.leas-ref-abstract * {
  font-family: 'Special Elite', cursive !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

.leas-ref-abstract::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  bottom: 0.08em;
  border-left: 3px dotted #ff453a;
}

.leas-ref a,
.leas-ref a:visited,
.leas-ref-abstract a,
.leas-ref-abstract a:visited {
  color: inherit;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .leas-ref {
    padding-left: 1.95em;
    text-indent: -1.95em;
    line-height: 1.5;
  }

  .leas-ref-abstract {
    margin-left: 2.35em;
    padding-left: 1rem;
  }

  .leas-ref-abstract,
  .leas-ref-abstract *,
  p.leas-ref-abstract,
  p.leas-ref-abstract * {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
  }

  .leas-ref-abstract::before {
    border-left-width: 2px;
  }
}

main p .mix-4 .f4 {
  font-size: 0.88rem !important;
}
/* Texte de la description des sections, pages d'accueil */
.home-body-text {
  font-size: 0.87rem !important;
  line-height: 1.5;
}
/* Bloc complémentaire sous abstract (GBD / LEAS) */
.ref-extra {
  margin: -0.9rem 0 1.4rem 4.1em;
  text-align: left !important;
  text-justify: auto;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

/* Variante GBD */
.gbd-ref-extra,
.gbd-ref-extra *,
p.gbd-ref-extra,
p.gbd-ref-extra * {
  font-family: 'Archivo', sans-serif !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

/* Variante LEAS */
.leas-ref-extra,
.leas-ref-extra *,
p.leas-ref-extra,
p.leas-ref-extra * {
  font-family: 'Special Elite', cursive !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

@media (max-width: 600px) {
  .ref-extra {
    margin-left: 3.2em;
  }

  .gbd-ref-extra,
  .gbd-ref-extra *,
  p.gbd-ref-extra,
  p.gbd-ref-extra * {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
  }

  .leas-ref-extra,
  .leas-ref-extra *,
  p.leas-ref-extra,
  p.leas-ref-extra * {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
  }
}
/* 20) Neutralisation des styles navigateur sur les titres sémantiques */
h1, h2, h3 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
  padding: 0;
  line-height: inherit;
}
