/*
 * Jetons de design — fichier UNIQUE des couleurs, typographie, ombres et mouvements.
 * Palette du thème Eclopediscount (thème PrestaShop 9.2 v42 : accent.css, theme.css, variables --ed-*).
 * Mode sombre dérivé des mêmes teintes, comme les bandeaux sombres du thème.
 */
@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Texte et traits */
  --texte: #414348;
  --texte-2: #575968;
  --texte-3: #7b7d8a;
  --trait: #dcdcdc;
  --trait-fort: #c7c5c3;

  /* Fonds */
  --fond: #f8f6f1;          /* crème : fond de page */
  --surface: #ffffff;       /* cartes, barres */
  --surface-2: #f4f4f4;     /* gris clair */
  --lavande: #f0edff;
  --survol: #f4f2ec;

  /* Accents */
  --iris: #5430cf;
  --bleu: #2051ee;
  --orchidee: #a518da;
  --violet: #7034da;
  --bleu-moyen: #285cdb;
  --magenta: #bb297e;
  --violet-fonce: #523985;

  /* Sémantique */
  --accent: var(--iris);
  --accent-texte: #ffffff;
  --danger: #c3264b;
  --danger-fond: #fdecef;
  --attention: #a35a00;
  --attention-fond: #fff3e0;
  --succes: #24653a;        /* --ed-paper-stock du thème */
  --succes-fond: #e6f6ee;

  /* Dégradés */
  --degrade: linear-gradient(110deg, #2054f4 0%, #6330f4 53%, #a518da 100%);
  --degrade-clair: linear-gradient(110deg, #72adff 0%, #a393ff 52%, #f397ff 100%);
  --degrade-titre: linear-gradient(106deg, #1f3dbe 0%, #3446e8 28%, #6725db 66%, #9820b6 100%);
  --titre-encre: #382295;   /* repli sans dégradé, comme le thème */
  --menu-actif-ombre: inset 0 -3px rgb(28 13 88 / 38%);

  /* Typographie */
  --police: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --t-xs: 12px;
  --t-s: 13px;
  --t-m: 15px;
  --t-l: 17px;
  --t-xl: 22px;
  --t-xxl: 30px;

  /* Formes */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-xl: 24px;
  --ombre-1: 0 1px 2px rgb(37 30 70 / 6%), 0 1px 1px rgb(37 30 70 / 4%);
  --ombre-2: 0 6px 20px -6px rgb(37 30 70 / 16%), 0 2px 6px rgb(37 30 70 / 6%);
  --ombre-3: 0 24px 60px -18px rgb(37 30 70 / 30%), 0 6px 18px rgb(37 30 70 / 8%);
  --anneau: 0 0 0 3px rgb(84 48 207 / 28%);

  /* Mouvement */
  --courbe: cubic-bezier(.2, .72, .26, 1);
  --courbe-ressort: cubic-bezier(.34, 1.56, .64, 1);
  --d-rapide: 150ms;
  --d-moyen: 220ms;
  --d-lent: 320ms;

  /* Catégories de tâches */
  --cat-newsletter: var(--iris);
  --cat-sms: var(--magenta);
  --cat-popup: var(--orchidee);
  --cat-banniere: var(--bleu);
  --cat-catalogue: var(--violet);
  --cat-contenu: var(--bleu-moyen);
  --cat-reunion: var(--violet-fonce);
  --cat-planification: #1f7a8c;
  --cat-bilan: #8a5a12;
  --cat-autre: var(--texte-3);
}

:root[data-theme="sombre"] {
  color-scheme: dark;
  --texte: #ebe9f3;
  --texte-2: #b3b0c6;
  --texte-3: #8b88a0;
  --trait: #2f2b42;
  --trait-fort: #3d3855;
  --fond: #13111b;
  --surface: #1b1826;
  --surface-2: #232031;
  --lavande: #29224a;
  --survol: #221f31;
  --iris: #9b82ff;
  --bleu: #7c9bff;
  --orchidee: #d77cf4;
  --violet: #ad8bff;
  --bleu-moyen: #82a2ff;
  --magenta: #f07ab9;
  --violet-fonce: #b9a3f0;
  --accent: #9b82ff;
  --danger: #ff7a93;
  --danger-fond: #3a1622;
  --attention: #ffb45c;
  --attention-fond: #36240e;
  --succes: #5fd6a0;
  --succes-fond: #11301f;
  --degrade-clair: linear-gradient(110deg, #233a6e, #3a2f78, #5a2568);
  --degrade-titre: linear-gradient(110deg, #72adff 0%, #a393ff 52%, #f397ff 100%); /* titres sur fond sombre dans le thème */
  --titre-encre: #c5aeff;
  --ombre-1: 0 1px 2px rgb(0 0 0 / 40%);
  --ombre-2: 0 8px 24px -8px rgb(0 0 0 / 60%), 0 2px 6px rgb(0 0 0 / 30%);
  --ombre-3: 0 24px 60px -18px rgb(0 0 0 / 75%), 0 6px 18px rgb(0 0 0 / 40%);
  --anneau: 0 0 0 3px rgb(155 130 255 / 40%);
  --cat-planification: #5cc3d6;
  --cat-bilan: #e0b25c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    color-scheme: dark;
    --texte: #ebe9f3;
    --texte-2: #b3b0c6;
    --texte-3: #8b88a0;
    --trait: #2f2b42;
    --trait-fort: #3d3855;
    --fond: #13111b;
    --surface: #1b1826;
    --surface-2: #232031;
    --lavande: #29224a;
    --survol: #221f31;
    --iris: #9b82ff;
    --bleu: #7c9bff;
    --orchidee: #d77cf4;
    --violet: #ad8bff;
    --bleu-moyen: #82a2ff;
    --magenta: #f07ab9;
    --violet-fonce: #b9a3f0;
    --accent: #9b82ff;
    --danger: #ff7a93;
    --danger-fond: #3a1622;
    --attention: #ffb45c;
    --attention-fond: #36240e;
    --succes: #5fd6a0;
    --succes-fond: #11301f;
    --degrade-clair: linear-gradient(110deg, #233a6e, #3a2f78, #5a2568);
    --degrade-titre: linear-gradient(110deg, #72adff 0%, #a393ff 52%, #f397ff 100%); /* titres sur fond sombre dans le thème */
  --titre-encre: #c5aeff;
    --ombre-1: 0 1px 2px rgb(0 0 0 / 40%);
    --ombre-2: 0 8px 24px -8px rgb(0 0 0 / 60%), 0 2px 6px rgb(0 0 0 / 30%);
    --ombre-3: 0 24px 60px -18px rgb(0 0 0 / 75%), 0 6px 18px rgb(0 0 0 / 40%);
    --anneau: 0 0 0 3px rgb(155 130 255 / 40%);
    --cat-planification: #5cc3d6;
    --cat-bilan: #e0b25c;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --d-rapide: 1ms;
    --d-moyen: 1ms;
    --d-lent: 1ms;
  }
}
