/* NFR — habillage de la fenêtre de consentement Klaro (consent.js), par-dessus
   /vendor/klaro/klaro-0.7.21.min.css. Fond clair, pétrole NFR, police de la page.
   « Refuser » et « Accepter » : deux boutons de même taille, côte à côte (règle CNIL). */
.klaro.nfr-consent {
  --font-family: inherit;
  --font-size: 15px;
  --dark1: #ffffff;   /* fond des fenêtres */
  --dark2: #c9d6da;   /* bordures */
  --dark3: #e8eff1;
  --light1: #18282e;  /* texte */
  --light2: #d8e2e5;
  --light3: #5a6b71;  /* texte secondaire */
  --white1: #ffffff;
  --white2: #f4f8f9;
  --white3: #ffffff;
  --green1: #004a5c;  /* pétrole NFR */
  --green2: #003947;
  --green3: #e3eef1;
  --blue1: #004a5c;
  --blue2: #003947;
  --button-text-color: #ffffff;
  --border-radius: 12px;
  --box-shadow-color: rgba(0, 0, 0, .25);
  line-height: 1.5;
}

/* ── Fenêtre d'accueil (notice en modal) ───────────────────────────── */
.klaro.nfr-consent .cookie-modal { z-index: 2147483000; }
.klaro.nfr-consent .cookie-modal .cm-bg { background: rgba(8, 24, 30, .55); }
.klaro.nfr-consent .cookie-modal-notice {
  z-index: 2147483001;
  max-width: 470px;
  padding: 24px 24px 20px;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
  color: #18282e;
  background: #fff;
}
.klaro.nfr-consent .cookie-modal-notice:focus { outline: none; }
.klaro.nfr-consent .cookie-modal-notice h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: #004a5c;
}
.klaro.nfr-consent .cookie-modal-notice #id-cookie-notice {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #33454b;
}
.klaro.nfr-consent .cookie-notice a { color: #004a5c; text-decoration: underline; }
.klaro.nfr-consent .cookie-modal-notice .cn-changes { margin: 10px 0 0; font-size: 13px; color: #5a6b71; }

.klaro.nfr-consent .cookie-modal-notice .cn-ok {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 12px;
  margin-top: 20px;
}
.klaro.nfr-consent .cookie-modal-notice .cn-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.klaro.nfr-consent .cookie-notice .cm-btn,
.klaro.nfr-consent .cookie-modal .cm-btn {
  margin: 0;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
/* Accepter / Tout accepter */
.klaro.nfr-consent .cm-btn.cm-btn-success {
  background: #004a5c;
  color: #fff;
  border: 2px solid #004a5c;
}
.klaro.nfr-consent .cm-btn.cm-btn-success:hover { background: #003947; border-color: #003947; }
/* Refuser : même taille, contour pétrole */
.klaro.nfr-consent .cm-btn.cm-btn-danger {
  background: #fff;
  color: #004a5c;
  border: 2px solid #004a5c;
}
.klaro.nfr-consent .cm-btn.cm-btn-danger:hover { background: #e3eef1; }
/* Personnaliser */
.klaro.nfr-consent .cookie-modal .cookie-modal-notice .cm-btn.cm-btn-lern-more,
.klaro.nfr-consent .cookie-modal-notice .cn-learn-more {
  align-self: center;
  min-height: 0;
  padding: 4px 8px;
  background: none;
  border: 0;
  color: #004a5c;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.klaro.nfr-consent .cm-btn:focus-visible { outline: 3px solid #e30613; outline-offset: 2px; }

/* Mobile : panneau en bas de l'écran, pouce à portée des deux boutons */
@media (max-width: 639px) {
  .klaro.nfr-consent .cookie-modal-notice {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: 92vh;
    margin: 0;
    border-radius: 18px 18px 0 0;
    padding: 22px 18px calc(16px + env(safe-area-inset-bottom));
  }
  .klaro.nfr-consent .cookie-modal-notice h2 { font-size: 18px; }
  .klaro.nfr-consent .cookie-modal-notice #id-cookie-notice { font-size: 14px; }
}

/* ── Détail des choix (« Personnaliser », « Gérer les cookies ») ───── */
.klaro.nfr-consent .cookie-modal .cm-modal.cm-klaro {
  background: #fff;
  color: #18282e;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
}
.klaro.nfr-consent .cookie-modal .cm-modal .cm-header,
.klaro.nfr-consent .cookie-modal .cm-modal .cm-body,
.klaro.nfr-consent .cookie-modal .cm-modal .cm-footer { border-color: #d8e2e5; }
.klaro.nfr-consent .cookie-modal .cm-modal .cm-header h1 { color: #004a5c; font-size: 20px; }
.klaro.nfr-consent .cookie-modal .cm-modal .cm-header p { color: #33454b; }
.klaro.nfr-consent .cookie-modal .cm-modal .hide svg { stroke: #18282e; }
.klaro.nfr-consent .cookie-modal .cm-modal .cm-body ul li span.cm-list-title { color: #18282e; }
.klaro.nfr-consent .cookie-modal .cm-modal .cm-body p,
.klaro.nfr-consent .cookie-modal .cm-modal .cm-body .cm-list-description { color: #33454b; }
.klaro.nfr-consent .cookie-modal .cm-modal .cm-footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.klaro.nfr-consent .cookie-modal .cm-modal .cm-footer-buttons .cm-btn-accept-all { grid-column: 1 / -1; order: -1; }
.klaro.nfr-consent .cookie-modal .cm-btn.cm-btn-info,
.klaro.nfr-consent .cookie-modal .cm-btn.cm-btn-accept {
  background: #fff;
  color: #004a5c;
  border: 2px solid #004a5c;
}
.klaro.nfr-consent .cookie-modal .cm-btn.cm-btn-info:hover,
.klaro.nfr-consent .cookie-modal .cm-btn.cm-btn-accept:hover { background: #e3eef1; }
.klaro.nfr-consent .cm-list-input:checked + .cm-list-label .slider { background-color: #004a5c; }
.klaro.nfr-consent .cm-list-input.half-checked:checked + .cm-list-label .slider { background-color: #4f8796; }
.klaro.nfr-consent .cm-list-input.required:checked + .cm-list-label .slider { background-color: #7fa6b0; }
.klaro.nfr-consent .cm-list-label .slider { background-color: #b9c7cb; }
@media (max-width: 659px) {
  .klaro.nfr-consent .cookie-modal .cm-modal.cm-klaro { border-radius: 0; }
}
.klaro.nfr-consent .cookie-modal .cookie-modal-notice .cm-btn.cm-btn-lern-more:hover { background: none; text-decoration-thickness: 2px; }

/* ── 02/10/2026 : refus = lien « Continuer sans accepter » en haut à droite de la fenêtre.
      Un clic, texte lisible (14 px, contraste suffisant) : forme admise par la CNIL. Ne pas le
      réduire, le pâlir ou le déplacer dans « Personnaliser ». « Accepter et continuer » seul bouton. ── */
.klaro.nfr-consent .cookie-modal-notice { padding-top: 50px; }
.klaro.nfr-consent .cookie-modal-notice .cn-buttons { grid-template-columns: 1fr; }
.klaro.nfr-consent .cookie-modal .cookie-modal-notice .cm-btn.cm-btn-danger.cn-decline {
  position: absolute;
  top: 12px;
  right: 14px;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #33454b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.klaro.nfr-consent .cookie-modal .cookie-modal-notice .cm-btn.cm-btn-danger.cn-decline::after { content: " \2192"; }
.klaro.nfr-consent .cookie-modal .cookie-modal-notice .cm-btn.cm-btn-danger.cn-decline:hover { background: #f1f5f6; color: #004a5c; }
@media (max-width: 639px) {
  .klaro.nfr-consent .cookie-modal-notice { padding-top: 48px; }
}
