/*
Theme Name: Etincea (enfant Astra)
Template: astra
Version: 1.0.0
Text Domain: etincea-child
*/

/* ==========================================================================
   TABLE OF CONTENTS
   1. Design tokens
   2. Base and resets
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Semantic aliases over Astra's global palette.
   *
   * The values themselves stay in Astra's Customizer, so the client keeps
   * control of the colours and every Spectra block follows automatically.
   * Only the NAMES live here, because `--color-action` says what it does
   * and `--ast-global-color-0` does not.
   *
   * This is also what makes templates/blog/ installable as-is: it was
   * written against these names on another site, and would otherwise land
   * with four undefined variables and no colour at all.
   *
   * Never hardcode a colour below this block. */
  --color-action:       var(--ast-global-color-0);
  --color-action-hover: var(--ast-global-color-1);
  --color-text-primary: var(--ast-global-color-2);
  --color-surface:      var(--ast-global-color-4);
  --color-border:       var(--ast-global-color-7);
}

/* --------------------------------------------------------------------------
   2. Base and resets
   -------------------------------------------------------------------------- */

/* CTA buttons are never underlined. */
.wp-block-button__link,
.woocommerce a.button {
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   3. Language switcher (inc/etincea-i18n.php)
   -------------------------------------------------------------------------- */

.etincea-langues-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.etincea-langues ul {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.etincea-langues a {
  color: var(--color-text-primary);
  font-size: 0.875rem;
  text-decoration: none;
}
.etincea-langues a[aria-current="true"] {
  font-weight: 700;
  text-decoration: underline;
}
