/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --simplifions-h2-highlight: rgb(167, 212, 205);
  --simplifions-homebanner-gradient: linear-gradient(0.25turn, #f6f6f6, #e3e3fd, #bfdcb7);
}

.fr-artwork-minor,
.fr-artwork-major {
  fill: var(--text-default-grey);
}

.fr-artwork-decorative {
  fill: var(--text-active-blue-france);
}

.banner {
  min-height: calc(100dvh - 220px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--simplifions-homebanner-gradient);
}

.banner .title {
  font-size: clamp(1.375rem, 4vw, 2rem);
  line-height: 1.25;
  text-align: center;
}

.banner .card {
  background-color: var(--background-default-grey);
  box-shadow: var(--raised-shadow);
  border-radius: 4px;
}

.double-section__col-left {
  display: flex;
  justify-content: flex-end;
}

.double-section__col-right {
  display: flex;
  justify-content: flex-start;
}

.double-section__col-left > div,
.double-section__col-right > div {
  max-width: 39rem;
  width: 100%;
}

.double-section__col-right--intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

h1 {
  text-wrap: balance;
}

.font-light {
  font-weight: 400 !important;
}

.home-cta {
  text-align: center;
  background: var(--simplifions-homebanner-gradient);
}

.footer-brand {
  flex-wrap: wrap;
  gap: 1rem 3rem;
}

.footer-brand a {
  background-image: none;
}

.footer-brand__datagouv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 8.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
}

form :target {
  scroll-margin-top: 8rem;
}

@media (min-width: 48em) {
  .admin-panneau {
    order: 1;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

.case-avec-aide {
  flex-wrap: nowrap;
}

.case-avec-aide > a {
  flex-shrink: 0;
}

.lignes-modifiables :is(th, td) {
  white-space: normal;
  padding-inline: 0.5rem;
}

.lignes-modifiables td:first-child {
  width: 100%;
}

.lignes-modifiables .fr-select {
  width: 100%;
  min-width: 0;
}

.lignes-modifiables .fr-input {
  width: 3.5rem;
}

.lignes-integrations td:nth-child(2) .fr-select {
  min-width: 12rem;
}

.ligne-rangee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.poignee {
  cursor: grab;
}

#lignes-fournies tr:first-child [value="monter"],
#lignes-fournies tr:nth-last-child(2) [value="descendre"] {
  display: none;
}

#modele-message {
  font-family: inherit;
  resize: vertical;
}

.contact-titre {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.contact-titre .fr-artwork {
  flex-shrink: 0;
}

.contact-groupe {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.fond-beige-gris-galet {
  background-color: var(--background-alt-beige-gris-galet);
}

.contact-separateur {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.contact-separateur::before,
.contact-separateur::after {
  content: "";
  width: 3rem;
  border-top: 1px solid var(--border-default-grey);
}

.admin-encadre {
  border: 1px solid var(--border-default-grey);
}

.contact-bloc-a-copier {
  display: flow-root;
}

.contact-bloc-a-copier .fr-btn {
  float: right;
  margin-left: 1rem;
}

.contact-a-copier {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

body:has(#recommandation_niveau option[value="niveau_1"]:checked) button[form="formulaire-fiche"][name="recommandation[visible]"] {
  display: none;
}

.barre-d-etat {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.barre-d-etat .fr-btns-group {
  margin: 0;
}

.bloc-modifiable {
  border: 1px solid var(--border-default-grey);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.bloc-modifiable__entete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bloc-modifiable__entete > :is(h2, h3) {
  margin: 0;
}

.liste-defilante {
  max-height: calc(100vh - 16rem);
  overflow-y: auto;
  border: 1px solid var(--border-default-grey);
}

.liste-defilante ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.liste-defilante li {
  padding: 0;
  border-bottom: 1px solid var(--border-default-grey);
}

.liste-defilante a {
  display: block;
  padding: 0.75rem 1rem;
  background-image: none;
}

.liste-defilante a[aria-current] {
  background: var(--background-action-low-blue-france);
  box-shadow: inset 4px 0 0 var(--border-active-blue-france);
}

.liste-et-fiche__invite {
  border: 1px dashed var(--border-default-grey);
}

.cartes-recommandees {
  list-style: none;
  padding: 0;
}

.carte-recommandee {
  height: 100%;
  border: 1px solid var(--border-default-grey);
  padding: 1rem;
}

.cartes-recommandees .poignee {
  display: none;
}

#solutions-recommandees:has(#changer-l-ordre[aria-expanded="true"]) .poignee {
  display: inline-block;
}

.carte-ajout {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  justify-content: center;
  border: 1px dashed var(--border-action-high-blue-france);
}

.donnees-disponibles {
  list-style: none;
  padding: 0;
  columns: 2 20rem;
  column-gap: 2rem;
}

.donnees-disponibles li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  break-inside: avoid;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-default-grey);
}
