@charset "UTF-8";

:root {
  --blue-france-113: #00365b;
  --blue-france-sun-113: #2674c2;

  /*  Couleurs de base du thème */
  --background-default-grey: #ffffff;
  --text-default-grey: #3a3a3a;
  --bleucharte: #00365b;
  --textes: "Arial Narrow", Arial, sans-serif;
  --titres: 'Yanone Kaffeesatz', sans-serif;


  /*  Boutons */
  --background-action-high-blue-france: var(--blue-france-113);
  --background-action-high-blue-france-hover: var(--blue-france-sun-113);
  --background-action-high-blue-france-active: var(--blue-france-sun-113);
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  height: 100%;
  background-color: #002f4f;
}

body {
font-family: var(--textes) !important;
  margin: 0;
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 400;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #002f4f;
  background-image: linear-gradient(rgb(0, 47, 79) 15%, rgba(8, 8, 8, 0.5) 95%), url("/images/connexion-bg.jpg"), url("../images/connexion-bg.jpg");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: background-image 0.9s ease-in-out, background-color 0.9s ease-in-out;
}



.fr-footer {
  background-color: #f0f6fb;
  position: relative;
  border-top: none; /* ← on supprime l'ancien border */
}

.fr-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px; /* même épaisseur que votre border-top */
  background: linear-gradient(to right, #00365b, #27b1c9, #a8d8a8, #EAB80F, #e87b2a);
}

.fr-footer .fr-link {
  color: var(--bleucharte);
}

.fr-footer .fr-link:hover {
  color: #063360;
}
/* --- Structure principale --- */
.footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 2rem;
  flex-wrap: nowrap;
}

/* --- Liste des liens footer--- */
.footer-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  display: inline;
  list-style: none;
}

.footer-links li:not(:last-child) {
  border-right: 1px solid #6c6c6ca1;
  padding-right: 0.75rem;
  margin-right: 0.75rem;
}

.fr-footer a {
  color: #0055a4;
  text-decoration: none;
  font-weight: 500;
}



.fr-footer a:hover {
  color: #2674c2;
  text-decoration: underline;
}

.btn:hover {
  background-color: #cfefffa1 !important;
  border-color: rgb(62, 62, 62) !important;
  box-shadow: inset 0 -1px 0 rgb(62, 62, 62), rgba(0, 0, 0, 0.35) 0px 1px 4px !important;
}

.don-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-default-grey);
}

.don-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  table-layout: fixed;
}

.don-table caption {
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 1rem 0.75rem;
  color: var(--text-title-grey);
  caption-side: top;
}

.don-table thead th {
  background: #f6f6f6;
  border-bottom: 2px solid var(--border-default-grey);
  padding: 0.75rem 0.875rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-mention-grey);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.don-table tbody tr {
  border-bottom: 1px solid var(--border-default-grey);
  transition: background 0.15s;
}

.don-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.don-table tbody tr:hover {
  background: #eef3fd;
}

.don-table td {
  padding: 0.6875rem 0.875rem;
  vertical-align: middle;
  color: var(--text-default-grey);
}

/* Colonne projet tronquée */
.don-table .col-projet {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Montant aligné à droite */
.don-table .col-montant {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Badges statut */
.statut-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.statut-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.statut-paye   { background: #b8fec9; color: #0a7130; }
.statut-refuse { background: #ffe9e9; color: #b60000; }
.statut-annule { background: #e8e8e8; color: #555; }
.statut-autre  { background: #fef3d0; color: #7a5200; }

/* Colonne transaction / autorisation : mono */
.don-table .col-code {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-mention-grey);
}

/* Colonne type */
.type-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #dce9ff;
  color: #1b4fa8;
}
.type-badge.ponctuel {
  background: #ece8ff;
  color: #4f28c8;
}

/* Bouton annuler compact */
.btn-annuler {
  font-size: 0.8125rem !important;
  padding: 0.3rem 0.75rem !important;
}
.btn-danger:hover, .btn-success:hover{
color: #002f4f!important;
}
.section-title { margin: 4mm 0 2mm; }
.sig-cell { height: 20mm; }
/* Largeurs colonnes — total 100% */
.don-table col.c-nom      { width: 9%; }
.don-table col.c-prenom   { width: 8%; }
.don-table col.c-montant  { width: 7%; }
.don-table col.c-projet   { width: 14%; }
.don-table col.c-type     { width: 7%; }
.don-table col.c-date     { width: 8%; }
.don-table col.c-org      { width: 9%; }
.don-table col.c-statut   { width: 8%; }
.don-table col.c-trans    { width: 9%; }
.don-table col.c-auth     { width: 7%; }
.don-table col.c-recu     { width: 8%; }
.don-table col.c-action   { width: 6%; }

div.logo {
  width: 230px;
  height: 115px;
}

footer {
  margin-top: 4mm;
  background-color: #f2f2f2;
  padding: 2rem;
  text-align: center;
}
.footer-mention { margin-top: 2mm; padding: 1mm 6mm 2mm; }
h1,
h2,
h3 {
  font-family: var(--titres);

}

.card-info h4 {
  font-size: smaller;
}

.card-info p {
  font-size: small;
}

h1.titre, h2.titre.clair {
  color: white;

}

.blocs {
  text-align: center;
  padding: 5px;
  border-radius: 3px;
  border: solid 1px #00375b00;
  font-size: 1.3rem;
  letter-spacing: 1px;

}
.fr-radio-group input[type="radio"] + label{

  background-size: 1.8rem 1.8rem;
}
.rounded {
  border-radius: 3px !important;
}

legend {
  color: #00365b
}

.form-control:focus {
  box-shadow: 0 0 0 .25rem #cfefffa1 !important;
}

.form-control {
  border: solid 1px #8c8d8d;
}

.active,
.form-check-input:checked {
  background-color: var(--bleucharte);
  border-color: #cfefffa1 !important;
  color: black !important;
  border: solid 3px rgb(62, 62, 62) !important;
}

.alert-info {
  background-color: rgba(94, 177, 193, 0.464) !important;
  box-shadow: rgba(0, 0, 0, .20) 0px 3px 9px !important;
}
code{
  color: B30000!important;
}
#deduction-info {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#deduction-info.visible {
  opacity: 1;
}
.form-check{
  display: block!important;
}

.form-check-input {

  border: solid 1px rgb(62, 62, 62) !important;
}

main {
  flex: 1;
 min-height: 100%;
}
.fr-link.admin{
  color: rgb(140, 6, 6);
}
.container {
  background-color: #ffffff;
  color: black;
}
.fr-radio-group input[type="radio"]:checked + label {
  background-image: radial-gradient(transparent 10px,var(--bleucharte) 11px,transparent 12px),radial-gradient(var(--bleucharte) 5px,transparent 6px);
}
.fr-toggle input[type="checkbox"]:checked {
  --idle: transparent;
  --hover: var(--bleucharte);
  --active: var(--bleucharte);
  background-color: var(--bleucharte);
}
.fr-toggle input[type="checkbox"] {
  box-shadow: inset 0 0 0 1px var(--bleucharte);
}
.hero {
  /* background-color: #00375bac; */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /* margin-bottom: 10px; */
  height: 35vh;
}

.header--logos {
  display: flex;

  justify-content: flex-start;
  background-color: --var(--bleucharte);
  padding: 10px 40px;
  z-index: 3;
  box-sizing: border-box;
  position: relative;
  margin-bottom: 20px;
}

.logo {
  width: inherit;
  height: auto !important;
}

/* Image du milieu parfaitement centrée */
.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 3rem;
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  .header--logos {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px 0 20px;
  }

  .header-center {
    position: static;
    transform: none;
    margin-top: 10px;
  }

  .logo {
    margin-bottom: 10px;
  }
}



.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.light {
  font-weight: bold;
  color: #717070;
}































.bg-light {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px !important;
}

.centre {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 1.5rem;

}

.centre section {
  flex: 1 1 300px;
}

.gauche {
  flex: 1 !important;
  min-width: 250px;
  border-radius: 10px;
  height: fit-content;
}

.droite {
  flex: 2 !important;
  min-width: 300px;
  border-radius: 10px;

}

button:hover,
button:focus,
button:active {
  box-shadow: rgba(0, 0, 0, 0.39) 0px 1px 4px !important;
}

.don-btn {
  border: 1pc solid #f2f2f2;
  border-radius: 1px;
  color: #fff;
}

.btn-outline-primary {
  border: 1;
  border-radius: 1px;
  color: rgb(204, 204, 204);
  border-color: var(--bleucharte);
}




button.btn-outline-secondary,
label.btn-outline-secondary {
  color: #363636 !important;
  border: solid 1px rgb(62, 62, 62) !important;
  background-color: #cfefffa1 !important;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

button.btn-outline-secondary:hover {
  background-color: #cfefffa1 !important;
  border-color: rgb(62, 62, 62) !important;
  box-shadow:
    inset 0 -1px 0 rgb(62, 62, 62),
    rgba(0, 0, 0, 0.35) 0px 1px 4px !important;
}


button.btn-outline-secondary:active {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}

/* --- état actif / sélectionné --- */
button.btn-outline-secondary.active,
button.btn-outline-secondary[aria-pressed="true"],
.btn-check:checked+.btn {
  border-color: var(--bleucharte) !important;
  color: var(--bleucharte);
  font-weight: bold;
  background-color: #fff !important;
  box-shadow:
    inset 0 -1px 0 var(--bleucharte),
    rgba(0, 0, 0, 0.39) 0px 1px 4px !important;
}


.nav-link {
  color: #0248B1 !important;
}

.alert-primary {
  background-color: #cfefffa1 !important;
}

.text-bg-info,
#submitBtn {
  border: 0;
  background-color: #00365b !important;
  color: white !important;
  font-size: large;
}

.btn.btn-primary {
  border: 0;
  background-color: #00365b !important;
  color: white !important;
  font-size: large;
}

.bg-primary {
  background-color: #00365b !important;
  color: #fff;
}

#aide-autre-montant {

  font-size: small;
}


.recap-wrapper {
  padding: 2rem;
}


.recap-grid {
  display: grid;
  gap: 1rem;
  
  border-radius: 8px;
}


.recap-block {
  position: relative;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recap-block:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  
}
.recap-block::before {
 content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px; 
    background: linear-gradient(130deg, #00365b 36%, #27b1c9 100%);
     border-radius: 6px 0 0 6px;
}


.recap-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00365b;
  border-bottom: 2px solid #00365b;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.recap-list {
  display: grid;
  grid-template-columns: 30% 70%;
  row-gap: 0.5rem;
  column-gap: 1rem;
  margin: 0;
}

.recap-list dt {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recap-list dd {
  margin: 0;
  word-break: break-word;
}

.recap-list a {
  color: #00365b;
  text-decoration: none;
}

.recap-list a:hover {
  text-decoration: underline;
}

/* === Gestion des projets (interface admin) === */



.admin-main {
background: #ffffff;
  color: #000;
  border-radius: 8px;
  
  font-family: var(--textes);
  margin: 0 4rem 2rem 4rem;
  padding: 2rem;
}

.admin-main h1 {
  color: var(--bleucharte);
  font-family: var(--titres);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
} 

/* Formulaire d'ajout de projets*/
.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.admin-form input[type="url"] {
  flex: 2;
  padding: 0.6rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: var(--textes);
}

.admin-form button {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--bleucharte);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.admin-form button:hover,
.admin-form button:focus {
  background: #004b7d;
  outline: 2px solid #cfefffa1;
  outline-offset: 2px;
}

/* Liste des projets */
.admin-project-list {
  border-top: 2px solid var(--bleucharte);
  padding-top: 1rem;
}

/* Élément projet */
.admin-project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: grab;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.admin-project-item:hover,
.admin-project-item:focus-within {
  background: #f0f7ff;
  box-shadow: 0 0 4px rgba(0, 54, 91, 0.25);
}

/* Informations */
.admin-project-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-project-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.admin-project-title {
  font-weight: 600;
  color: var(--bleucharte);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.admin-project-url {
  font-size: 0.85rem;
  color: #555;
  word-break: break-all;
}


.admin-project-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-project-actions button {
  background: #eee;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 1rem;
}

.admin-project-actions button:hover,
.admin-project-actions button:focus {
  background: #ddd;
  outline: 2px solid #cfefffa1;
}


.admin-project-item.selected {
  background: #e9f4ff;
  border-left: 4px solid var(--bleucharte);
}


.admin-empty {
  text-align: center;
  color: #666;
  padding: 1rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  /* .admin-container {
    padding: 1rem;
  } */

  .admin-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form button {
    width: 100%;
  }

  .admin-project-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-project-actions {
    align-self: flex-end;
  }
}


/* badge */
.admin-project-item {
  position: relative; /* nécessaire pour le badge absolu */
}

.admin-project-badge {
  position: absolute;
  top: 50%;
  right: 60px; /* laisse la place pour la corbeille */
  transform: translateY(-50%);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Variantes par thème */
.admin-project-badge[data-theme="recherche"]      { background:#fef3c7; color:#92400e; border-color:#fde68a; }
.admin-project-badge[data-theme="culture"]        { background:#ede9fe; color:#5b21b6; border-color:#ddd6fe; }
.admin-project-badge[data-theme="social"]         { background:#fce7f3; color:#9d174d; border-color:#fbcfe8; }
.admin-project-badge[data-theme="étudiants"]      { background:#dbeafe; color:#1e40af; border-color:#bfdbfe; }
.admin-project-badge[data-theme="international"]  { background:#cffafe; color:#155e75; border-color:#a5f3fc; }
.admin-project-badge[data-theme="sport"]          { background:#fee2e2; color:#991b1b; border-color:#fecaca; }
.admin-project-badge[data-theme="environnement"]  { background:#dcfce7; color:#166534; border-color:#bbf7d0; }

/*badge page d'accueil */
/* Le <li> doit pouvoir aligner les éléments en ligne avec le badge */
.dropdown-item-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* permet au lien de passer à la ligne si besoin */
}

.dropdown-item-flex .project-title {
  flex: 1;
  min-width: 0; /* permet au texte de se tronquer si trop long */
}

/* Badge thème */
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}

.project-badge[data-theme="recherche"]::before     { background: #f59e0b; }
.project-badge[data-theme="culture"]::before       { background: #8b5cf6; }
.project-badge[data-theme="social"]::before        { background: #ec4899; }
.project-badge[data-theme="etudiants"]::before     { background: #3b82f6; }
.project-badge[data-theme="international"]::before { background: #06b6d4; }
.project-badge[data-theme="sport"]::before         { background: #ef4444; }
.project-badge[data-theme="environnement"]::before { background: #10b981; }
/* dropdown projets */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: var(--bleucharte);
  color: #fff;
  cursor: default;
  border-radius: 3px;
  border: solid 1px transparent;
  width: 100%;
  padding: 0.6em 1em;

  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  line-height: 1.3;
}


.menu {
  position: absolute;
  background: #fff;
  color: #000;
  /* border: 1px solid #0f1e4e; */

  margin: 0.2em;
  border-radius: 0.2em;
  width: 742px;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 2rem !important;

  /* état initial */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.6s ease, visibility 0s linear 0.4s;

  /* Fermé, le menu restait en display:block : invisible, mais occupant sa pleine
     hauteur. Positionné en absolu, il débordait sous le pied de page et allongeait
     le document d'autant — 642 px pour 21 projets, et ce vide grandissait à chaque
     projet ajouté. On lui retire sa hauteur tant qu'il est fermé. */
  max-height: 0;
  overflow: hidden;
}

.dropdown.open .menu {
  opacity: 1;
  visibility: visible;

  /* Plafonné à 70 % de la hauteur d'écran, puis défilable : au-delà d'une dizaine
     de projets, la liste dépassait sinon le bas de l'écran. */
  max-height: 70vh;
  overflow: auto;

  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.6s ease;

  @starting-style {
    opacity: 0;
    transform: translateY(-20px);

  }
}

.dropdown-item-flex {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8em 0;
  border-bottom: 1px solid #ddd;
}

.dropdown-item-flex img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  border-radius: 4px;
}

.dropdown-item-flex .project-title {
  flex: 1;
  white-space: normal;
  word-wrap: break-word;
  font-weight: 600;
  line-height: 1.4;
  color: #00375b;
  margin-right: 1rem;
}

.dropdown-item-flex .project-link {
  flex-shrink: 0;
  white-space: normal;
  max-width: 130px;
  text-align: right;
  font-size: 0.9em;
  color: #004aad;
  text-decoration: underline;
  line-height: 1.3;
}

.menu li {
  list-style: none;
  display: flex;
  flex-direction: row;

  align-items: flex-start;
  padding: 0.8em;
  border-bottom: 1px solid #eee;
  border-left: 5px solid #e06f2400;
  transition: background 0.2s ease;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .menu li {
    transition: none !important;
  }
}

.menu li:last-child {
  border-bottom: none;
}

.menu li:hover {
  background: #cfefffa1;
  border-bottom: 2px solid var(--bleucharte);

}

.menu li img {
  width: 96px;
  height: 96px;
  margin-bottom: 0.6em;
  border-radius: 8px;
  object-fit: cover;
}

.menu li span {
  font-weight: 600;
  margin-bottom: 0.3em;
  color: var(--bleucharte);
}

.menu li a {
  color: #0053b3;
  text-decoration: underline;
  font-size: 0.9em;
}

.menu li.selected {
  background: #e7f0ff;
}