/* Identité du portail donnees.tiers-lieux.fr, commune à ses pages : accueil, aide,
   intégration, espace du lieu. Le champ intégrable (embed.html) n'en charge rien : il
   doit rester neutre chez les sites qui l'accueillent.

   Polices hébergées ici, sans appel à un service tiers : Inter (Rasmus Andersson) et
   Bricolage Grotesque (Mathieu Triay), licence SIL Open Font License 1.1, fichiers
   variables issus de Google Fonts, jeux latin et latin étendu. Les mêmes polices et
   couleurs habillent comite-data.tiers-lieux.fr. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/static/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/static/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Les trois couleurs de la marque : vives, toujours sous du texte sombre */
  --sarcelle: #14b8a6;
  --corail: #f4704b;
  --safran: #f6b93b;
  --ruban: linear-gradient(90deg, var(--sarcelle) 0 33.34%, var(--corail) 33.34% 66.67%, var(--safran) 66.67%);

  /* Action (liens, boutons pleins) : sarcelle foncé, sous du texte blanc */
  --primaire: #0b6b61;
  --primaire-fonce: #084f48;

  --texte: #1c2433;
  --texte-2: #3d4656;
  --texte-doux: #5b6474;
  --bordure: #dadfe6;
  --bordure-douce: #e6e9ee;
  --fond-doux: #f7f8fa;
  --fond-puce: #f2f4f7;

  /* Fonds doux et textes foncés associés à chaque couleur (étiquettes, encarts) */
  --sarcelle-fond: #d5f3ef;
  --sarcelle-texte: #0b5a52;
  --corail-fond: #fde1d7;
  --corail-texte: #8a2e12;
  --corail-voile: #fff1eb;
  --safran-fond: #fdf0d5;
  --safran-texte: #5c3f0a;

  --police: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --police-titre: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --police-code: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--police);
  line-height: 1.5;
  color: var(--texte);
  background: #fff;
}

a {
  color: var(--primaire);
}

a:hover {
  color: var(--primaire-fonce);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primaire);
  outline-offset: 2px;
}

h1,
h2 {
  font-family: var(--police-titre);
  font-weight: 700;
  letter-spacing: -0.01em;
}

code,
pre {
  font-family: var(--police-code);
}

/* Marque : trois ronds qui se chevauchent */
.marque-ronds circle {
  mix-blend-mode: multiply;
}

/* Ronds de décor, très pâles, posés dans les coins de la page */
.decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.decor span {
  position: absolute;
  border-radius: 50%;
}

/* En-tête des pages intérieures : la marque ramène à l'accueil */
.entete {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 32px;
  border-bottom: 1px solid #eef1f4;
}

.marque-lien {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--texte);
  text-decoration: none;
}

.marque-lien:hover {
  color: var(--texte);
}

.marque-lien svg {
  width: 35px;
  height: 30px;
}

.marque-nom {
  font-family: var(--police-titre);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.entete-lien {
  padding: 10px 4px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* Pied : ruban des trois couleurs, puis les liens utiles */
.pied {
  position: relative;
}

.ruban {
  height: 6px;
  background: var(--ruban);
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  padding: 18px 24px;
  font-size: 14px;
  background: var(--fond-doux);
}

.pied a {
  padding: 8px 0;
  color: var(--texte-2);
  text-decoration: none;
}

.pied a:hover {
  color: var(--texte);
  text-decoration: underline;
}

/* Signature commune à tous les services du comité data */
.pied .signature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Boutons en pilule */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.bouton-plein {
  color: #fff;
  background: var(--primaire);
}

.bouton-plein:hover {
  color: #fff;
  background: var(--primaire-fonce);
}

.bouton-contour {
  color: var(--primaire);
  background: #fff;
  border-color: var(--bordure);
}

.bouton-contour:hover {
  border-color: var(--primaire);
}

.bouton-petit {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

/* Étiquettes */
.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 999px;
}

.puce-neutre { color: var(--texte-2); background: var(--fond-puce); font-weight: 500; }
.puce-ok { color: var(--sarcelle-texte); background: var(--sarcelle-fond); }
.puce-attente { color: var(--safran-texte); background: var(--safran-fond); }
.puce-urgence { color: var(--corail-texte); background: var(--corail-fond); }

/* Sur-titre en capitales (« Votre espace », « À la une »…) */
.surtitre {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--police);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.surtitre-corail {
  color: var(--corail-texte);
}

.surtitre-corail::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--corail);
}

@media (max-width: 600px) {
  .entete {
    padding: 10px 16px;
  }

  .marque-nom {
    display: none;
  }

  .entete-lien {
    padding: 12px 4px;
    font-size: 14px;
  }

  .pied nav {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 16px 14px;
    font-size: 13px;
    text-align: center;
  }

  .pied a {
    padding: 10px 0;
  }
}
