/* =============================================================================
   brand.css — identité de TN-Optic Academy
   D'après le Brand Book MiYOSMART Tunisie (annexe A v2.1, 09/09/2026) :
   typographie Galano Grotesque (Figtree en substitut libre), fonds blanc et
   gris clair #F5F5F5, sable pour le registre chaleureux, icônes au trait de
   l'annexe B. Couleur d'action : violet #7D2AE8 et ses dégradés turquoise →
   violet, dans l'esprit de Canva (choix du 25/10, à la place du vert #7D2AE8) ;
   le suivi MiYOSMART reste en bleu HVC.
   ============================================================================= */
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/static/fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("/static/fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/static/fonts/figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("/static/fonts/figtree-700.woff2") format("woff2"); }

:root {
  --font: "Galano Grotesque", "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ar: Arial, "Helvetica Neue", sans-serif;

  /* Violet « formation » (25/10, choix de l'utilisateur : esprit Canva, remplace le vert #7D2AE8) */
  --violet: #A47BF0;          /* aplats et décors uniquement (jamais de texte) */
  --violet-action: #7D2AE8;   /* boutons, liens, état sélectionné — blanc dessus 6,2:1 */
  --violet-fonce: #6420C7;    /* survol */
  --violet-pale: rgb(125 42 232 / .10);   /* violet transparent : fonds d'onglet, pastilles */
  --violet-voile: rgb(125 42 232 / .28);  /* contour de focus */
  --feuille: rgb(255 255 255 / .45);      /* feuilles de l'accueil admin : verre dépoli (blanc transparent + flou) sur le fond dégradé (28/10) */
  --feuille-bord: rgb(255 255 255 / .7);
  /* Dégradés à la manière de Canva : turquoise → bleu → violet */
  --degrade: linear-gradient(90deg, #00C4CC 0%, #3E5FD4 55%, #7D2AE8 100%);
  --degrade-doux: linear-gradient(120deg, #D4F5F4 0%, #E4E9FF 50%, #EFE2FF 100%);

  /* Quiz en salle : charte MiYOSMART (Brand Book, annexe B). Une couleur, une forme et une lettre par réponse ;
     texte ≥ 4,5:1 sur chaque aplat (blanc sur A et C, encre sur B et D). Un seul orange : celui du logo 2026. */
  --quiz-a: #0057BC;        /* ▲ bleu HVC */
  --quiz-b: #FDBA4D;        /* ◆ orange du logo MiYOSMART — texte encre */
  --quiz-c: #334152;        /* ● ardoise */
  --quiz-d: #859FBA;        /* ■ bleu-gris — texte encre */
  --salle: #0F3E73;         /* fond de l'écran projeté : bleu foncé MiYOSMART */

  /* Registre chaleureux */
  --sable: #EDCB90;
  --sable-clair: #F8E9D0;

  /* Neutres du brand book */
  --encre: #231F20;
  --gris: #6B6764;
  --filet: #DFDEDA;
  --page: #F5F5F5;
  --surface: #FFFFFF;

  /* Bleu TN-OPTIC : réservé au logo, jamais recoloré */
  --bleu-tnoptic: #215AA7;
  --bleu-pale: #E1ECFA;     /* fond des pastilles « Commun » (texte bleu HVC dessus) */
  --public-opticien: #C62828;      /* public « Commerciaux » (ils visitent les opticiens) — blanc dessus 5,6:1 */
  --public-opticien-pale: #FBE9E9; /* fond des pastilles de ce public (texte rouge dessus) */
  --public-technico: #0057BC;     /* public « Technico-commerciaux » : bleu HVC */
  --public-optique: #F7931D;      /* public « Opticiens » : orange carnet MiYOSMART */
  /* Couvertures des fiches de formation, par public (accueil de l'administration, esprit Canva) */
  --fiche-commercial: linear-gradient(135deg, #7A1A1A, #C62828);
  --fiche-technico: linear-gradient(135deg, #0F3E73, #0057BC);
  --fiche-opticien: linear-gradient(135deg, #E8590C, #F7931D 60%, #FDBA4D);
  --fiche-tunnel: linear-gradient(135deg, #00C4CC, #3E5FD4);
  --whatsapp: #1A7F4B;      /* bouton « Relancer » vers WhatsApp — blanc dessus 5,2:1 */

  /* Échelle de statut — jamais interactive, toujours avec icône et libellé */
  --ok: #2E7D5B;      --ok-bg: #E1F5EE;
  --attention: #8A6410; --attention-bg: #FBF1DC;
  --alerte: #8A4B0B;  --alerte-bg: #FAE7D6;
}

/* Icônes de l'annexe B : grille 24, trait 1,6, extrémités arrondies, aucun aplat,
   couleur héritée du texte. */
.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -4px;
}
.ico.lg { width: 28px; height: 28px; }

/* Pastille de l'application : toque sur le livre, verte sur blanc (comme l'icône installée) */
.app-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: #fff; color: var(--violet-action);
  box-shadow: 0 0 0 1px var(--filet), 0 1px 3px rgb(35 31 32 / .12);
}
.app-badge .ico { width: 28px; height: 28px; stroke-width: 1.6; }

/* En-tête HOYA | TN-OPTIC  TN-Optic Academy — même composition que TN-Optic Events.
   L'icône de l'académie n'apparaît pas ici : elle sert d'icône de lancement. */
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo-hoya { height: 34px; width: auto; display: block; }
.brand .logo { height: 36px; width: auto; display: block; }
.brand-sep { width: 1px; align-self: stretch; min-height: 32px; background: var(--filet); }
.brand-sep.lg { min-height: 44px; }
.brand-txt { line-height: 1.25; margin-left: 4px; }
.brand-txt b { display: block; color: var(--violet-action); font-size: 17px; font-weight: 700; }
.brand-txt small { display: block; color: var(--gris); font-size: 12.5px; }
.logo-hoya-lg { height: 44px; width: auto; display: block; }
