/*
 * Thème Altis-Sign, injecté par le proxy (theme/nginx.conf) dans chaque page DocuSeal.
 *
 * Charte : celle de altis-resto.be (../altis-food/frontend/src/views/public/LandingView.vue,
 * maquette « Accueil » du 2026-09-21) : crème #faf6f0, encre #1f1a17, brique #c2410c,
 * Bricolage Grotesque pour les titres, DM Sans pour le texte.
 *
 * Licence DocuSeal : la mention « Powered by DocuSeal » (liens vers docuseal.com/start) et le
 * nom DocuSeal dans l'en-tête restent visibles. Ne jamais les masquer ici : c'est une condition
 * de la licence Community (LICENSE_ADDITIONAL_TERMS). Seules les offres commerciales Pro et les
 * appels à s'inscrire chez DocuSeal sont masqués (docs/roadmap.md).
 */

/* ── Polices (auto-hébergées, aucune requête vers Google) ── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Couleurs : variables daisyUI 3 de DocuSeal (composantes HSL « h s% l% ») ── */
:root[data-theme],
:root {
  --altis-bg: #faf6f0;
  --altis-ink: #1f1a17;
  --altis-muted: #5c534b;
  --altis-accent: #c2410c;
  --altis-accent-dark: #9a3412;
  --altis-tint: #fde7d6;
  --altis-line: #e5dacd;
  --altis-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --altis-text: 'DM Sans', system-ui, sans-serif;

  /* Fonds : crème, puis deux nuances de sable pour les cartes et les bordures. */
  --b1: 36 50% 96%;
  --b2: 35 41% 92%;
  --b3: 32 32% 85%;
  --bc: 22 15% 11%;

  /* Neutral = boutons d'action principaux de DocuSeal : brique, texte blanc. */
  --n: 17 88% 40%;
  --nf: 15 79% 34%;
  --nc: 0 0% 100%;

  /* Primary = boutons secondaires clairs : sable, texte encre. */
  --p: 34 37% 89%;
  --pf: 32 32% 85%;
  --pc: 22 15% 11%;

  --s: 26 91% 92%;
  --sf: 32 32% 85%;
  --sc: 15 79% 34%;

  --a: 17 88% 40%;
  --af: 15 79% 34%;
  --ac: 0 0% 100%;

  /* Boutons à rayon de 12 px comme sur altis-resto.be, sans capitales forcées. */
  --rounded-btn: 0.75rem;
  --rounded-box: 0.875rem;
  --btn-text-case: none;
}

/* ── Typographie ── */
html,
body {
  font-family: var(--altis-text);
}

h1,
h2,
h3,
.text-2xl.font-bold,
.text-3xl.font-bold,
.text-4xl.font-bold,
.text-5xl.font-bold,
.altis-name {
  font-family: var(--altis-display);
  letter-spacing: -0.01em;
}

a.link,
.link-primary {
  color: var(--altis-accent);
}

/* Pastille d'initiales de l'utilisateur (violet chez DocuSeal). */
label.bg-base-content.text-purple-300 {
  color: var(--altis-tint);
}

/* ── Marque : bloc Altis-Sign inséré par theme.js avant le nom DocuSeal ── */
.altis-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--altis-ink);
}

.altis-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--altis-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.altis-name {
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
}

/* Attribution DocuSeal conservée, en retrait mais lisible. */
.altis-powered {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 12px;
  font-family: var(--altis-text);
  font-size: 12px;
  font-weight: 500;
  color: var(--altis-muted);
  white-space: nowrap;
}

.altis-powered svg {
  width: 16px !important;
  height: 16px !important;
}

/* ── Offres Pro et appels à s'inscrire chez DocuSeal : masqués (docs/roadmap.md) ── */

/* Bouton « Upgrade » de la barre du haut et son séparateur. */
a[href*="docuseal.com/sign_up"] + span.border-r,
/* Lien « Console » (menu utilisateur, menu des réglages) et entrée « Plans · Pro ». */
li:has(> a[href*="console.docuseal.com"]),
li:has(> a[href*="docuseal.com/sign_up"]),
/* Encarts « Unlock with DocuSeal Pro » (SMS, SSO, relances, logo, envoi en masse, code). */
.alert:has(a[href*="docuseal.com/sign_up"]),
/* Bouton SMS verrouillé sur une soumission, ligne « signature approuvée » des réglages. */
.tooltip:has(> a[href*="docuseal.com/sign_up"]),
tr:has(a[href*="docuseal.com/sign_up"]),
/* Sélecteur de rôles : lien « plus de rôles avec Pro ». */
a[href*="docuseal.com/sign_up"],
/* Éditeur de modèle : « Disponible en Pro » (conditions, formules). */
div:has(> a[href="https://www.docuseal.com/pricing"]),
/* Promotion GitHub (étoiles), distincte de l'attribution. */
a[href="https://github.com/docusealco/docuseal"],
/* Réglages dont la page n'est qu'un encart Pro en version Community. */
li:has(> a[href$="/settings/sms"]),
li:has(> a[href$="/settings/sso"]) {
  display: none !important;
}
