/*
 * Charte graphique Atelier Décor — reprise de www.atelier-decor.fr
 * Référence : docs/charte-graphique.md
 */

/* ---------- Polices (hébergées localement, licence OFL) ---------- */

/* Titres : substitut libre d'ABC Diatype ExtraBold */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-latin-800-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-800-normal.woff2") format("woff2");
  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;
}

/* Boutons, navigation, mentions */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-latin-ext-700-normal.woff2") format("woff2");
  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;
}

/* ---------- Jetons ---------- */

:root {
  /* Couleurs (valeurs HSL exactes du site) */
  --ad-noir: hsl(0 0% 0%);                    /* #000000 */
  --ad-blanc: hsl(0 0% 100%);                 /* #FFFFFF */
  --ad-beige: hsl(50 18.75% 93.73%);          /* #F2F1EC — accent */
  --ad-lavande: hsl(270 8% 90.2%);            /* #E6E4E8 — accent clair */
  --ad-taupe: hsl(27.69 15.29% 33.33%);       /* #625448 — accent foncé */
  --ad-gris-bleu: hsl(206.67 10.59% 83.33%);  /* #D0D5D9 — fond secondaire */

  /* Typographie */
  --ad-police-titre: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ad-police-texte: "Courier New", Courier, "Liberation Mono", monospace;
  --ad-police-ui: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --ad-titre-graisse: 800;
  --ad-titre-interlettrage: -0.02em;
  --ad-titre-interligne: 1.2;
  --ad-texte-interligne: 1.5;

  /* Rôles (thème « blanc » du site) */
  --ad-fond: var(--ad-blanc);
  --ad-encre: var(--ad-noir);
  --ad-bouton-fond: var(--ad-noir);
  --ad-bouton-texte: var(--ad-blanc);
}

/* Thèmes de section du site */
.ad-theme-clair  { --ad-fond: var(--ad-lavande); --ad-encre: var(--ad-noir); }
.ad-theme-beige  { --ad-fond: var(--ad-beige);   --ad-encre: var(--ad-noir); }
.ad-theme-fonce  { --ad-fond: var(--ad-taupe);   --ad-encre: var(--ad-blanc);
                   --ad-bouton-fond: var(--ad-beige); --ad-bouton-texte: var(--ad-noir); }

/* ---------- Base ---------- */

body {
  background: var(--ad-fond);
  color: var(--ad-encre);
  font-family: var(--ad-police-texte);
  line-height: var(--ad-texte-interligne);
}

h1, h2, h3, h4 {
  font-family: var(--ad-police-titre);
  font-weight: var(--ad-titre-graisse);
  letter-spacing: var(--ad-titre-interlettrage);
  line-height: var(--ad-titre-interligne);
}

.ad-bouton {
  display: inline-block;
  padding: 0.9em 1.6em;
  font-family: var(--ad-police-ui);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  background: var(--ad-bouton-fond);
  color: var(--ad-bouton-texte);
  border: 0;
  cursor: pointer;
}
