/**
 * consent.css - Surcharges CookieConsent v3 à la charte Lingua Nostra
 * Charte : --navy #0A1322, --navy-light #1B2A4A, or #C8962F
 * Polices : EB Garamond (titres), Inter (corps)
 */

#cc-main {
  --cc-font-family: 'Inter', sans-serif;
  --cc-modal-border-radius: 10px;
  --cc-btn-border-radius: 6px;

  /* Fond du bandeau et des modales */
  --cc-bg: #1B2A4A;
  --cc-primary-color: #FAF6EF;
  --cc-secondary-color: rgba(250, 246, 239, 0.65);

  /* Bouton principal (accepter) */
  --cc-btn-primary-bg: #C8962F;
  --cc-btn-primary-color: #0A1322;
  --cc-btn-primary-border-color: #C8962F;
  --cc-btn-primary-hover-bg: #b5841e;
  --cc-btn-primary-hover-color: #0A1322;
  --cc-btn-primary-hover-border-color: #b5841e;

  /* Bouton secondaire (refuser / gérer) */
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: rgba(250, 246, 239, 0.8);
  --cc-btn-secondary-border-color: rgba(200, 150, 47, 0.45);
  --cc-btn-secondary-hover-bg: rgba(200, 150, 47, 0.12);
  --cc-btn-secondary-hover-color: #C8962F;
  --cc-btn-secondary-hover-border-color: #C8962F;

  /* Toggles */
  --cc-toggle-on-bg: #C8962F;
  --cc-toggle-off-bg: rgba(250, 246, 239, 0.2);
  --cc-toggle-readonly-bg: rgba(200, 150, 47, 0.3);

  /* Overlay */
  --cc-overlay-bg: rgba(10, 19, 34, 0.72);

  /* Liens */
  --cc-link-color: #C8962F;

  /* Blocs-catégorie dans la modale de préférences (fond navy, texte crème lisible) */
  --cc-cookie-category-block-bg: #0A1322;
  --cc-cookie-category-block-border: rgba(200, 150, 47, 0.18);
  --cc-cookie-category-block-hover-bg: #142037;
  --cc-cookie-category-block-hover-border: rgba(200, 150, 47, 0.35);
}

/* Titre du bandeau en EB Garamond */
#cc-main .cm__title,
#cc-main .pm__title {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FAF6EF;
}

/* Texte du bandeau */
#cc-main .cm__desc,
#cc-main .pm__section-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(250, 246, 239, 0.82);
}

/* Titres de sections dans la modale de préférences */
#cc-main .pm__section-title {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: #FAF6EF;
}

/* Boutons du bandeau - alignement et arrondi */
#cc-main .cm__btns {
  gap: 10px;
}

#cc-main .cm__btn {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  letter-spacing: 0.02em;
}

/* Filet de séparation des sections */
#cc-main .pm__section:not(:last-child) {
  border-bottom: 1px solid rgba(200, 150, 47, 0.18);
}

/* Bouton "Tout refuser" dans la modale de préférences - style secondaire (contour or) */
#cc-main .pm__btn[data-role="necessary"] {
  background: transparent;
  color: rgba(250, 246, 239, 0.8);
  border: 1px solid rgba(200, 150, 47, 0.45);
}

#cc-main .pm__btn[data-role="necessary"]:hover {
  background: rgba(200, 150, 47, 0.12);
  color: #C8962F;
  border-color: #C8962F;
}

/* Lien dans la description */
#cc-main a {
  color: #C8962F;
  text-decoration-color: rgba(200, 150, 47, 0.45);
  text-underline-offset: 2px;
}

#cc-main a:hover {
  text-decoration-color: #C8962F;
}
