/*
Theme Name: FURII DEMATER
Theme URI: https://widid.fr
Author: WiDiD
Description: Portail étudiant FURII DEMATER — « Santé et numérique, l'avenir en formation ». Portail par filières, pages formation (outils, équipe pédagogique), carrousel des partenaires, thème clair / sombre.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: Propriétaire
Text Domain: furii-demater
*/

/* ---------- Jetons de couleur (design system FURII DEMATER) ---------- */
:root {
  --bg: #ffffff; --surface: #f5f6fb; --card: #ffffff;
  --ink: #0a0a2e; --muted: #4a4d6b; --line: #dcdeee;
  --brand: #0000fe; --brand-hover: #0000b8; --brand-soft: #ebebff; --on-brand: #ffffff;
  --mint: #13d5a1; --mint-soft: #e3faf3;
  --slab: #0000fe; --eye: #ffffff; --focus: #0000fe; --glow: rgba(0, 0, 254, .10);
  --radius-sm: 8px; --radius-md: 16px; --radius-full: 999px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[data-theme="dark"] {
  --bg: #0a0a24; --surface: #13133a; --card: #0a0a24;
  --ink: #f2f3ff; --muted: #b4b6d6; --line: #2a2a5a;
  --brand: #8c8cff; --brand-hover: #a8a8ff; --brand-soft: #1a1a5c; --on-brand: #0a0a24;
  --mint-soft: #0f3a30; --eye: #f2f3ff; --focus: #8c8cff; --glow: rgba(140, 140, 255, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; transition: background-color .25s ease, color .25s ease; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.fd-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 20px; border-radius: var(--radius-full); background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none; }
.fd-skip:focus { top: 16px; color: var(--on-brand); }
.fd-container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.fd-icon { display: block; flex: none; }

/* ---------- En-tête ---------- */
.fd-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.fd-logo { display: inline-flex; padding: 4px 8px; border-radius: var(--radius-md); background: #ffffff; }
.fd-logo img { display: block; height: 72px; width: auto; }
.fd-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fd-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fd-btn-ghost, .fd-nav ul a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--brand); font: 600 13px/1 var(--font); letter-spacing: .4px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.fd-btn-ghost:hover, .fd-nav ul a:hover { background: var(--brand-soft); color: var(--brand); }
.fd-theme-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; border: 1px solid var(--line); }
.fd-theme-toggle .fd-ico-moon { display: none; }
html[data-theme="light"] .fd-theme-toggle .fd-ico-sun { display: none; }
html[data-theme="light"] .fd-theme-toggle .fd-ico-moon { display: block; }

/* ---------- Hero ---------- */
.fd-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 40px; padding-bottom: 56px; }
.fd-hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.fd-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-full); background: var(--mint-soft); color: var(--ink); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.fd-pill::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--mint); }
.fd-h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -1px; color: var(--ink); }
.fd-h1 em { font-style: normal; color: var(--brand); }
.fd-lead { margin: 0; max-width: 540px; font-size: 18px; line-height: 28px; color: var(--muted); }
.fd-hero-art { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.fd-slab { width: 100%; max-width: 320px; aspect-ratio: 1 / 1; padding: 32px; border-radius: var(--radius-md); background: var(--slab); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); place-items: center; overflow: hidden; }
.fd-eye { position: relative; width: 56px; height: 56px; }
.fd-eye::before { content: ""; position: absolute; left: -8px; top: -8px; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--mint); }
.fd-eye::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-full); background: var(--eye); }
.fd-eye i { position: absolute; z-index: 1; width: 18px; height: 18px; border-radius: var(--radius-full); background: var(--slab); }
.fd-badge { width: 240px; height: 240px; border-radius: var(--radius-full); background: var(--slab); color: #ffffff; display: grid; place-items: center; box-shadow: -20px -20px 0 0 var(--mint); font-size: 112px; font-weight: 700; line-height: 1; }

/* ---------- Sections ---------- */
.fd-band { background: var(--surface); }
.fd-section { display: flex; flex-direction: column; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.fd-section--tight { gap: 24px; padding-bottom: 0; }
.fd-section-head { display: flex; flex-direction: column; gap: 8px; }
.fd-h2 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 700; color: var(--ink); }
.fd-h3 { margin: 16px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }
.fd-muted { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.fd-center { align-items: center; text-align: center; }
.fd-overline { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--brand); }

/* ---------- Cartes ---------- */
.fd-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .25s ease; }
a.fd-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 12px 32px var(--glow); color: var(--ink); }
.fd-go { color: var(--brand); transition: transform .18s ease; }
a.fd-card:hover .fd-go { transform: translateX(4px); }
.fd-disc { flex: none; display: grid; place-items: center; border-radius: var(--radius-full); background: var(--slab); color: #ffffff; font-weight: 700; }
.fd-disc--md { width: 56px; height: 56px; box-shadow: -6px -6px 0 0 var(--mint); }
.fd-disc--lg { width: 64px; height: 64px; box-shadow: -6px -6px 0 0 var(--mint); font-size: 28px; }
.fd-disc--xl { width: 72px; height: 72px; box-shadow: -8px -8px 0 0 var(--mint); font-size: 32px; }

/* Portail : filières */
.fd-zones { display: flex; flex-direction: column; gap: 48px; }
.fd-zone { display: flex; flex-direction: column; gap: 16px; }
.fd-zone-head { display: flex; align-items: center; gap: 12px; }
.fd-zone-head::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--mint); }
.fd-zone-head::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.fd-zone-title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }
.fd-zone-count { flex: none; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.fd-zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.fd-formation-card { display: flex; align-items: center; gap: 20px; min-height: 120px; padding: 24px; }
.fd-formation-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fd-formation-name { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: .5px; }
.fd-formation-desc { font-size: 14px; line-height: 20px; color: var(--muted); }
.fd-empty { margin: 0; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--muted); }

/* Page formation : outils */
.fd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.fd-grid--fill { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fd-tool { display: flex; flex-direction: column; gap: 16px; min-height: 240px; padding: 24px; }
.fd-tool-body { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.fd-tool-name { font-size: 20px; line-height: 28px; font-weight: 700; }
.fd-tool-desc { font-size: 14px; line-height: 20px; color: var(--muted); }
.fd-link-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--brand); }

/* Page formation : équipe pédagogique */
.fd-lead-card { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--brand-soft); }
.fd-lead-id { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fd-lead-name { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.fd-sub { font-size: 14px; line-height: 20px; color: var(--muted); }
.fd-contacts { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fd-contacts a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.fd-person { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.fd-person-top { display: flex; align-items: center; gap: 12px; }
.fd-avatar { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand); }
.fd-tag { padding: 4px 12px; border-radius: var(--radius-full); background: var(--mint-soft); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.fd-person-name { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.fd-person .fd-lead-id { flex: none; }
.fd-person .fd-contacts { flex: none; gap: 0; margin-top: auto; }
.fd-person .fd-contacts a { gap: 8px; font-size: 14px; }

/* Contenu libre (éditeur WordPress) */
.fd-prose { max-width: 760px; font-size: 17px; line-height: 28px; }
.fd-prose > :first-child { margin-top: 0; }
.fd-prose h2, .fd-prose h3 { line-height: 1.25; }

/* Bandeau d'aide (menthe sur fond fixe : textes toujours sombres) */
.fd-help-wrap { padding-top: 64px; padding-bottom: 64px; }
.fd-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: var(--radius-md); background: #13d5a1; color: #0a0a2e; }
.fd-help-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fd-help h2 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 700; color: #0a0a2e; }
.fd-help p { margin: 0; font-size: 16px; line-height: 24px; color: #0a0a2e; }
.fd-btn-dark { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: var(--radius-full); background: #0a0a2e; color: #ffffff; font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .18s ease; }
.fd-btn-dark:hover { background: #1d1d55; color: #ffffff; }
.fd-help .fd-btn-dark:focus-visible { outline-color: #0a0a2e; }

/* Partenaires (carrousel) */
.fd-partners { display: flex; flex-direction: column; gap: 32px; padding-bottom: 64px; }
.fd-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fd-track { display: flex; gap: 24px; width: max-content; margin: 0; padding: 0 24px 0 0; list-style: none; animation: fd-partners 32s linear infinite; }
.fd-marquee:hover .fd-track, .fd-marquee:focus-within .fd-track { animation-play-state: paused; }
@keyframes fd-partners { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fd-partners--formation { padding-top: 64px; }
.fd-marquee--static { -webkit-mask-image: none; mask-image: none; }
.fd-marquee--static .fd-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding-right: 0; }
.fd-partner { flex: none; width: 220px; height: 120px; }
.fd-partner > a, .fd-partner > span { display: grid; place-items: center; width: 100%; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #ffffff; }
.fd-partner img { display: block; max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }

/* Pied de page */
.fd-footer { border-top: 1px solid var(--line); }
.fd-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.fd-footer-brand { display: flex; align-items: center; gap: 16px; }
.fd-footer-mark { display: inline-flex; padding: 4px; border-radius: var(--radius-sm); background: #ffffff; }
.fd-footer-mark img { display: block; width: 40px; height: 40px; }
.fd-footer-name { display: block; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .4px; color: var(--brand); }
.fd-footer-tag { display: block; font-size: 14px; line-height: 20px; color: var(--muted); }
.fd-footer-links ul { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.fd-footer-links a { display: inline-block; padding: 12px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .fd-logo img { height: 48px; }
  .fd-nav, .fd-nav ul { gap: 4px; }
  .fd-btn-ghost, .fd-nav ul a { padding: 0 10px; }
  .fd-theme-toggle { padding: 0; }
  .fd-hero { gap: 24px; padding-top: 16px; padding-bottom: 40px; }
  .fd-hero-art { order: -1; flex: 0 0 auto; justify-content: flex-start; }
  .fd-slab { width: 320px; zoom: .45; }
  .fd-badge { width: 88px; height: 88px; font-size: 40px; box-shadow: -8px -8px 0 0 var(--mint); }
  .fd-zone-grid { grid-template-columns: minmax(0, 1fr); }
  .fd-tool { min-height: 0; }
  .fd-lead-card { padding: 24px; }
  .fd-help { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .fd-track { animation: none; flex-wrap: wrap; width: auto; padding-right: 0; justify-content: center; }
  .fd-track .fd-dup { display: none; }
  .fd-marquee { -webkit-mask-image: none; mask-image: none; }
}
