:root {
  --bleu: #005baa;
  --bleu-clair: #009fe3;
  --rose: #e6007e;
  --vert: #95c11f;
  --fond: #f5f8fb;
  --texte: #202020;
  --gris: #e6ebf1;
  --blanc: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Myriad Pro", Arial, sans-serif;
  background: var(--fond);
  color: var(--texte);
}
.footer .hidden-easteregg,
.footer .hidden-easteregg:link,
.footer .hidden-easteregg:visited,
.footer .hidden-easteregg:hover,
.footer .hidden-easteregg:active,
.footer .hidden-easteregg:focus {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: default;
}
/* HEADER */

.header {
  height: 92px;
  background: white;
  border-bottom: 5px solid var(--bleu);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.logo-zone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 62px;
  max-width: 230px;
  object-fit: contain;
}

.title-zone {
  border-left: 4px solid var(--rose);
  padding-left: 22px;
}

.title-zone h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--bleu);
}

.title-zone p {
  margin: 5px 0 0;
  color: #555;
  font-size: 15px;
}

/* PAGE */

.page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 38px 25px;
}

.hero {
  background: white;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  border-left: 8px solid var(--vert);
  margin-bottom: 24px;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--bleu);
}

.hero p {
  margin: 0;
  color: #555;
}

/* BARRE */

.toolbar {
  display: flex;
  gap: 15px;
  margin-bottom: 26px;
}

#searchInput {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid #ccd3dc;
  border-radius: 10px;
  font-size: 16px;
}

#searchInput:focus {
  outline: none;
  border-color: var(--bleu-clair);
  box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15);
}

#toggleAllBtn {
  padding: 14px 22px;
  border: none;
  border-radius: 10px;
  background: var(--bleu);
  color: white;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

#toggleAllBtn:hover {
  background: #003f73;
}

/* CARTES */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
}

.feature-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  min-height: 145px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e7ee;
  cursor: pointer;
  transition: 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--bleu-clair);
}

.feature-card.recommended {
  border: 3px solid var(--vert);
}

.feature-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bleu-clair);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-card.recommended .icon {
  background: var(--vert);
}

.feature-title {
  margin: 0;
  font-size: 17px;
  color: #222;
}

.feature-category {
  margin-top: 14px;
  font-size: 13px;
  color: #666;
}

.badge {
  margin-top: 12px;
  display: inline-block;
  background: rgba(149, 193, 31, 0.15);
  color: #4d7300;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.empty-message {
  background: white;
  border-radius: 12px;
  padding: 25px;
  color: #666;
  border: 1px solid #e1e6ed;
}

/* MODAL */

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 45, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  z-index: 999;
}

.modal-content {
  width: 720px;
  max-width: 100%;
  background: white;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 5px solid var(--bleu);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.modal-header h2 {
  margin: 0;
  color: var(--bleu);
  font-size: 26px;
}

.modal-header p {
  margin: 6px 0 0;
  color: #666;
  font-size: 14px;
}

.close-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--rose);
  color: white;
  font-size: 26px;
  cursor: pointer;
}

.modal-body {
  padding: 28px;
}

.upload-box {
  border: 2px dashed #cbd4df;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  background: #fbfcfd;
}

.upload-btn {
  padding: 13px 22px;
  border: none;
  border-radius: 10px;
  background: var(--bleu);
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.upload-btn:hover {
  background: #003f73;
}

#selectedFileText {
  margin: 15px 0 0;
  color: #555;
}

.extra-options {
  margin-top: 22px;
}

.extra-options label {
  display: block;
  font-weight: bold;
  margin: 12px 0 6px;
}

.extra-options input,
.extra-options select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccd3dc;
  border-radius: 8px;
  font-size: 15px;
}

.status-message {
  margin-top: 18px;
  color: #555;
  font-size: 14px;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid #e1e6ed;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cancel-btn,
.run-btn {
  padding: 12px 22px;
  border: none;
  border-radius: 9px;
  color: white;
  font-size: 15px;
  cursor: pointer;
}

.cancel-btn {
  background: #777;
}

.run-btn {
  background: var(--vert);
}

.run-btn:hover,
.cancel-btn:hover {
  filter: brightness(0.92);
}

/* FOOTER */

.footer {
  margin-top: 35px;
  background: white;
  border-top: 5px solid var(--rose);
  min-height: 66px;
  padding: 18px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  font-size: 13px;
}

/* RESPONSIVE */

@media screen and (max-width: 850px) {
  .header {
    height: auto;
    padding: 18px;
    flex-direction: column;
    text-align: center;
  }

  .title-zone {
    border-left: none;
    border-top: 4px solid var(--rose);
    padding-left: 0;
    padding-top: 12px;
  }

  .toolbar {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
.hidden-easteregg {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  cursor: default;
}

.hidden-easteregg:visited,
.hidden-easteregg:hover,
.hidden-easteregg:active {
  color: inherit;
  text-decoration: none;
}
