/* ==========================================================================
   Thème « Maquis » : terroir, chaleureux, végétal
   Pour : restaurant de terroir, épicerie fine, producteur, gîte de montagne, ferme-auberge.
   Polices (OFL 1.1, licences dans fonts/licences/) : Fraunces (titres, taille optique 72, 400 à 650 + italique) et Figtree (texte, 400 à 700).
   Poids des polices : 83 Ko (31 + 35 + 17).
   Utilisation : <html lang="fr" data-theme="maquis"> + <link rel="stylesheet" href="css/themes/maquis.css">
   Contrastes WCAG 2.2 : tableau en fin de fichier (outils/contrastes.py).
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../../fonts/fraunces-italique.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../../fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root[data-theme="maquis"], [data-theme="maquis"] {
  --c-fond: #F4EFE4;     /* fond de page */
  --c-fond-alt: #E8E0CE;     /* sections en retrait */
  --c-surface: #FBF8F1;     /* cartes, champs */
  --c-texte: #1E2A20;     /* texte principal */
  --c-texte-doux: #535A4C;     /* texte secondaire */
  --c-ligne: rgb(30 42 32 / .14); /* filets décoratifs */
  --c-ligne-forte: #857F70;     /* bordures utiles (champs) : 3:1 min. */
  --c-accent: #2D5A3B;     /* boutons, liens, pictos */
  --c-accent-survol: #22472E;     /* survol des boutons */
  --c-sur-accent: #FFFFFF;     /* texte sur l'accent */
  --c-accent-doux: #DDE6D8;     /* fonds teintés, badges */
  --c-relief: #A9532B;     /* mot en relief des titres, étoiles, décor */
  --c-sombre: #1C2A20;     /* pied de page, zones sombres */
  --c-sombre-texte: #F4EFE4;     /* texte sur le sombre */
  --c-sombre-doux: #B9C2B0;     /* texte secondaire sur le sombre */
  --c-sombre-accent: #E9B486;     /* liens et focus sur le sombre */
  --c-focus: #2D5A3B;     /* anneau de focus */
  --c-danger: #A3341F;     /* erreurs */
  --c-succes: #2D6A3E;     /* « Ouvert » */

  --police-titres: "Fraunces", "Iowan Old Style", Georgia, serif;
  --police-texte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --graisse-titres: 500;
  --graisse-h3: 600;
  --graisse-fort: 650;
  --approche-titres: -.02em;
  --interligne-titres: 1.04;
  --titres-em-style: italic;

  --r-petit: 8px;
  --r-carte: 18px;
  --r-media: 18px;
  --r-visuel: 46% 54% 52% 48% / 55% 45% 55% 45%;   /* forme organique */
  --r-bouton: 999px;
  --r-champ: 10px;
  --r-ico: 50%;

  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M10 34c7-11 20-13 27-9-4 9-16 15-27 9z'/%3E%3Cpath d='M10 34l27-9'/%3E%3Cpath d='M18 31l3-6M26 28l2-5'/%3E%3Cpath d='M52 76c5-10 16-14 23-11-3 8-13 14-23 11z'/%3E%3Cpath d='M52 76l23-11'/%3E%3Cpath d='M61 72l2-5'/%3E%3Ccircle cx='66' cy='22' r='2.2' fill='%23000' stroke='none'/%3E%3Ccircle cx='72' cy='28' r='1.6' fill='%23000' stroke='none'/%3E%3Ccircle cx='22' cy='66' r='1.8' fill='%23000' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  --motif-taille: 88px;
  --motif-opacite: .15;
  --motif-opacite-accent: .16;
  --motif-opacite-sombre: .14;
  --surtitre-deco-l: 1.75rem;
  --surtitre-deco-h: 1px;
}

/* Jetons composés (recalculés dans les zones sombres et accent) */
[data-theme="maquis"], [data-theme="maquis"] .ton-sombre, [data-theme="maquis"] .ton-accent {
  --titres-em-couleur: var(--c-relief);
  --ill-a: var(--c-accent);
  --ill-b: color-mix(in srgb, var(--c-accent) 45%, var(--c-fond-alt));
  --ill-c: var(--c-relief);
  --ill-e: color-mix(in srgb, var(--c-accent) 70%, #1C2A20);
}

/* CONTRASTES:DEBUT
   Calculés par outils/contrastes.py : 37/37 paires conformes AA.
   AA     13,01:1 (≥ 4,50)  texte / fond                   Texte sur le fond
   AA     11,36:1 (≥ 4,50)  texte / fond-alt               Texte sur fond en retrait
   AA     14,07:1 (≥ 4,50)  texte / surface                Texte sur carte
   AA      6,24:1 (≥ 4,50)  texte-doux / fond              Texte secondaire sur le fond
   AA      5,45:1 (≥ 4,50)  texte-doux / fond-alt          Texte secondaire sur fond en retrait
   AA      6,75:1 (≥ 4,50)  texte-doux / surface           Texte secondaire sur carte
   AA      6,94:1 (≥ 4,50)  accent / fond                  Lien sur le fond
   AA      6,06:1 (≥ 4,50)  accent / fond-alt              Lien sur fond en retrait
   AA      7,51:1 (≥ 4,50)  accent / surface               Lien sur carte
   AA      7,96:1 (≥ 4,50)  sur-accent / accent            Texte des boutons
   AA     10,45:1 (≥ 4,50)  sur-accent / accent-survol     Texte des boutons au survol
   AA     11,64:1 (≥ 4,50)  texte / accent-doux            Texte sur fond teinté (badges, bandeau saison)
   AA      6,21:1 (≥ 4,50)  accent / accent-doux           Accent sur fond teinté (bouton contour survolé)
   AA      6,94:1 (≥ 4,50)  accent / fond                  Surtitre sur le fond
   AA      6,06:1 (≥ 4,50)  accent / fond-alt              Surtitre sur fond en retrait
   AA      4,63:1 (≥ 3,00)  relief / fond                  Mot en relief des titres (grand texte)
   AA      4,04:1 (≥ 3,00)  relief / fond-alt              Mot en relief des titres, fond en retrait
   AA      5,00:1 (≥ 3,00)  relief / surface               Étoiles et décor sur carte
   AA      3,48:1 (≥ 3,00)  ligne-forte / fond             Bordure des champs sur le fond
   AA      3,76:1 (≥ 3,00)  ligne-forte / surface          Bordure des champs sur carte
   AA      6,94:1 (≥ 3,00)  focus / fond                   Anneau de focus sur le fond
   AA      6,06:1 (≥ 3,00)  focus / fond-alt               Anneau de focus sur fond en retrait
   AA      7,51:1 (≥ 3,00)  focus / surface                Anneau de focus sur carte
   AA      5,97:1 (≥ 4,50)  danger / fond                  Message d'erreur sur le fond
   AA      6,45:1 (≥ 4,50)  danger / surface               Message d'erreur sur carte
   AA      6,11:1 (≥ 3,00)  succes / surface               Pastille « Ouvert »
   AA     13,07:1 (≥ 4,50)  sombre-texte / sombre          Texte sur zone sombre
   AA      8,14:1 (≥ 4,50)  sombre-doux / sombre           Texte secondaire sur zone sombre
   AA      8,09:1 (≥ 4,50)  sombre-accent / sombre         Liens, boutons et focus sur zone sombre
   AA     10,41:1 (≥ 4,50)  texte / motif accent           Texte sur le motif, fond clair (opacité 0,15)
   AA      4,99:1 (≥ 4,50)  texte-doux / motif accent      Texte sur le motif, fond clair (opacité 0,15)
   AA      5,55:1 (≥ 4,50)  accent / motif accent          Texte sur le motif, fond clair (opacité 0,15)
   AA      5,55:1 (≥ 4,50)  accent / motif accent          Texte sur le motif, fond clair (opacité 0,15)
   AA      5,28:1 (≥ 4,50)  sur-accent / motif sur-accent  Texte sur le motif, zone accent (opacité 0,16)
   AA      9,74:1 (≥ 4,50)  sombre-texte / motif sombre-accent Texte sur le motif, zone sombre (opacité 0,14)
   AA      6,06:1 (≥ 4,50)  sombre-doux / motif sombre-accent Texte sur le motif, zone sombre (opacité 0,14)
   AA      6,03:1 (≥ 4,50)  sombre-accent / motif sombre-accent Texte sur le motif, zone sombre (opacité 0,14)
   CONTRASTES:FIN */
