/* Plateforme d'actualité multi-sites — design tokens
 * Polices : <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400..900;1,400..900&display=swap">
 * Les variables --accent* sont réécrites par site (voir [data-site] ci-dessous ou injection PHP dans le <head>). */

:root {
  /* Neutres */
  --paper: #FFFFFF;
  --ink: #111111;
  --ink-2: #5C5F66;
  --ink-3: #8C8F95;
  --line: #E6E6E6;
  --fill: #F3F3F2;
  --input-border: #CFCFCF;
  --danger: #B42318;
  --danger-bg: #FEF3F2;
  --success: #1F7A45;
  --success-bg: #EAF5EE;

  /* Accent (site bleu par défaut) */
  --accent: #1747E0;
  --accent-hover: #1239B8;
  --accent-tint: rgba(23, 71, 224, 0.07);
  /* Entourage au marqueur (<u>) : 3 SVG générés avec la couleur du site (voir README, marker_vars()) */
  --mk-l: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20140%20175'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%231747E0'%20stroke-width%3D'13'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M44%2036.8C70%2021%20104%2015%20140%2014'%2F%3E%3Cpath%20d%3D'M140%20166.3C62%20168%207%20147%207%2092.8C7%2045.5%2034%2013%2070%2010.6C96%209%20118%2014.5%20132%2023.5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --mk-r: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20140%20175'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%231747E0'%20stroke-width%3D'13'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M0%209.6C85%208%20133%2031.5%20133%2085.8C133%20138%2088%20162.8%200%20161.9'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --mk-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20175'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%231747E0'%20stroke-width%3D'13'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M0%2014C30%2012.6%2065%2011.6%20100%209.6'%2F%3E%3Cpath%20d%3D'M0%20166.3C35%20167.3%2070%20164.5%20100%20161.9'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");

  /* Typographie — sans serif uniquement */
  /* Noto Naskh Arabic : formules en arabe des versets et hadiths (ﷺ…), téléchargée seulement si la page en contient */
  --font-d: 'Schibsted Grotesk', 'Noto Naskh Arabic', 'Noto Sans', system-ui, sans-serif;
  --font-t: 'Schibsted Grotesk', 'Noto Naskh Arabic', 'Noto Sans', system-ui, sans-serif;
  --fw-d: 700;

  --t-page: clamp(42px, 4vw + 12px, 80px);        /* lh 0.98, ls -0.02em */
  --t-article: clamp(38px, 3.4vw + 12px, 70px);   /* lh 1, ls -0.02em */
  --t-feature: clamp(34px, 2.6vw + 14px, 54px);   /* lh 1.02, ls -0.015em */
  --t-section: clamp(32px, 1.8vw + 18px, 44px);   /* lh 1.02, ls -0.01em */
  --t-cat-head: clamp(28px, 1.2vw + 18px, 38px);  /* lh 1.04 */
  --t-h2-article: 32px;                           /* lh 1.08 */
  --t-quote: clamp(27px, 1.4vw + 16px, 36px);     /* lh 1.18, italique */
  --t-card: 25px;                                 /* lh 1.12 */
  --t-card-row: clamp(20px, 1vw + 13px, 27px);    /* lh 1.12 */
  --t-lede: clamp(18px, 0.5vw + 15px, 22px);      /* lh 1.5 */
  --t-body: 19px;                                 /* lh 1.7 */
  --t-excerpt: 16px;                              /* lh 1.5 */
  --t-nav: 16.5px;                                /* 500 */
  --t-meta: 14px;                                 /* italique */
  --t-label: 12px;                                /* 600, capitales, 0.11em */

  /* Formes et effets */
  --radius-pill: 9999px;
  --shadow-menu: 0 18px 40px rgba(17, 17, 17, 0.08);
  --header-bg: rgba(255, 255, 255, 0.97);
  --ease: 150ms ease;

  /* Mise en page */
  --container: 1280px;
  --gutter-x: clamp(16px, 3vw, 32px);
  --layout-gap: 48px;
  --sidebar: 300px;
  --grid-min: 250px;
  --grid-gap-y: 48px;
  --grid-gap-x: 32px;
  --bp-compact: 1060px;   /* menu mobile en dessous */
  --bp-ad-mobile: 700px; /* 970×250 → 320×100 en dessous */
}

[data-site="vert"] {
  --accent: #0B7A4E;
  --accent-hover: #08603D;
  --accent-tint: rgba(11, 122, 78, 0.08);
  --mk-l: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20140%20175'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%230B7A4E'%20stroke-width%3D'13'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M44%2036.8C70%2021%20104%2015%20140%2014'%2F%3E%3Cpath%20d%3D'M140%20166.3C62%20168%207%20147%207%2092.8C7%2045.5%2034%2013%2070%2010.6C96%209%20118%2014.5%20132%2023.5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --mk-r: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20140%20175'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%230B7A4E'%20stroke-width%3D'13'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M0%209.6C85%208%20133%2031.5%20133%2085.8C133%20138%2088%20162.8%200%20161.9'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --mk-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20175'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%230B7A4E'%20stroke-width%3D'13'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M0%2014C30%2012.6%2065%2011.6%20100%209.6'%2F%3E%3Cpath%20d%3D'M0%20166.3C35%20167.3%2070%20164.5%20100%20161.9'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

[data-site="rouge"] {
  --accent: #D6202C;
  --accent-hover: #B01823;
  --accent-tint: rgba(214, 32, 44, 0.07);
  --mk-l: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20140%20175'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23D6202C'%20stroke-width%3D'13'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M44%2036.8C70%2021%20104%2015%20140%2014'%2F%3E%3Cpath%20d%3D'M140%20166.3C62%20168%207%20147%207%2092.8C7%2045.5%2034%2013%2070%2010.6C96%209%20118%2014.5%20132%2023.5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --mk-r: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20140%20175'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23D6202C'%20stroke-width%3D'13'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M0%209.6C85%208%20133%2031.5%20133%2085.8C133%20138%2088%20162.8%200%20161.9'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --mk-m: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20175'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23D6202C'%20stroke-width%3D'13'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M0%2014C30%2012.6%2065%2011.6%20100%209.6'%2F%3E%3Cpath%20d%3D'M0%20166.3C35%20167.3%2070%20164.5%20100%20161.9'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

html { background: var(--paper); color: var(--ink); font-family: var(--font-t); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
