@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('assets/fonts/baloo2-latin.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('assets/fonts/mulish-latin.woff2') format('woff2');
  }

  :root {
    /* — dégradé pill, échantillonné sur les plaquettes (page 4 / page 11) — */
    --pill-start: #5E63EC;
    --pill-end: #BA3DBF;
    --pill-gradient: linear-gradient(90deg, var(--pill-start) 0%, var(--pill-end) 100%);

    /* — bleu ardoise, couleur secondaire récurrente de la charte — */
    --slate: #60778D;
    --slate-dark: #4A5F73;
    --slate-tint: #EDF1F4;
    --slate-tint-strong: #D6DCE2;

    /* — accents de domaine (usage restreint : icônes uniquement) — */
    --cyber-green: #1EB57A;
    --devops-cyan: #0EA5B7;
    --data-blue: #3E7FC1;
    --sovereign-orange: #D9660A;
    --sovereign-purple: #8B3B9E;
    --longues-gold: #886308;

    --white: #FFFFFF;
    --off-white: #FBFCFD;
    --border: #DFE4EC;
    --text-dark: #20242C;
    --text-body: #34394A;
    --text-muted: #6C7383;
    --qualiopi-green: #1EDD88;

    --font-display: 'Baloo 2', sans-serif;
    --font-body: 'Mulish', sans-serif;

    --facade-longues: url('assets/facade-longues.jpg');
    --facade-courtes: url('assets/facade-courtes.jpg');
    --facade-entrepreneuriat: url('assets/facade-entrepreneuriat.jpg');
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  }

  ::selection { background: var(--pill-end); color: #fff; }
  :focus-visible { outline: 2px solid var(--pill-start); outline-offset: 3px; }

  body {
    font-family: var(--font-body);
    background: var(--off-white);
    color: var(--text-body);
    line-height: 1.6;
  }

  /* ── PILL DE CATÉGORIE (élément signature, extrait des plaquettes) ── */
  .charte-pill {
    display: inline-block;
    background: var(--pill-gradient);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    padding: 12px 32px;
    border-radius: 100px;
    box-shadow: 0 8px 22px rgba(108,112,238,0.35);
    white-space: nowrap;
  }

  /* ── HEADER ── */
  .site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 0 var(--border);
  }
  .site-header::after {
    content: '';
    display: block;
    height: 3px;
    background: var(--pill-gradient);
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .logo-zone { display: flex; align-items: center; gap: 16px; }
  .logo-ensiie { display: flex; align-items: center; }
  .logo-ensiie img { display: block; }
  .header-subtitle {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    color: var(--slate);
    line-height: 1.3;
    border-left: 2px solid var(--border);
    padding-left: 14px;
  }
  .qualiopi-badge {
    display: flex; align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 12px;
  }
  .nav-links { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
  .nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 13px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
  }
  .nav-links a:hover { background: var(--slate-tint); color: var(--slate-dark); }

  /* ── HERO ── */
  .hero {
    position: relative;
    padding: 96px 32px 76px;
    background-image: var(--facade-longues);
    background-size: cover;
    background-position: center 35%;
    background-attachment: fixed;
    overflow: hidden;
  }
  .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(150deg, rgba(12,16,38,0.78) 10%, rgba(75,40,120,0.56) 60%, rgba(180,70,150,0.38) 100%);
  }
  .hero-inner { max-width: 780px; margin: 0 auto; position: relative; text-align: center; }
  .hero-pill { margin-bottom: 26px; }
  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 20px;
  }
  .hero h1 em { font-style: normal; }
  .hero-desc {
    font-size: 18px;
    color: var(--text-body, #34394A);
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    padding: 24px 30px;
    max-width: 660px;
    margin: 0 auto 34px;
    line-height: 1.6;
    box-shadow: 0 18px 44px rgba(12,16,38,0.28);
  }
  /* ── MAIN LAYOUT ── */
  .page-content { max-width: 1200px; margin: 0 auto; padding: 0 32px 80px; }

  /* ── BANNIÈRE DE GROUPE (photo façade + pill, motif extrait des plaquettes) ── */
  .group-banner {
    height: 210px;
    margin: 0 -32px;
    background-size: cover;
    background-position: center 32%;
    background-attachment: fixed;
    position: relative;
  }
  .group-banner.longues { background-image: var(--facade-longues); }
  .group-banner.courtes { background-image: var(--facade-courtes); }
  .group-banner.entre { background-image: var(--facade-entrepreneuriat); }
  .group-banner-inner {
    position: absolute;
    left: 32px; bottom: -22px;
  }

  /* Le parallax (background-attachment: fixed) est désactivé sur mobile,
     où le rendu est peu fiable, et pour les personnes qui préfèrent
     moins de mouvement à l'écran. */
  @media (max-width: 900px), (prefers-reduced-motion: reduce) {
    .hero, .group-banner { background-attachment: scroll; }
  }

  .group-intro { padding: 52px 0 8px; max-width: 720px; }
  .group-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
  }
  .group-pitch { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

  .group-quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 44px; }
  .quicklink-chip {
    background: var(--white);
    border: 1.5px solid var(--slate);
    color: var(--slate-dark);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 16px;
    border-radius: 100px;
    transition: background 0.2s, color 0.2s;
  }
  .quicklink-chip:hover { background: var(--slate); color: #fff; }

  .domain-section.longues { margin-bottom: 8px; }
  .courtes-group, .domain-section.entre { margin-bottom: 8px; }

  /* ── SOUS-DOMAINE (Cybersécurité / DevOps / Data & IA / SI Souverain) ── */
  .subdomain { margin: 0 0 52px; scroll-margin-top: 90px; }
  .subdomain:not(:first-of-type) { border-top: 2px solid var(--border); padding-top: 44px; }
  .subdomain-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
  }
  .subdomain-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
    background: var(--slate-tint);
    border: 2px solid var(--slate-dark);
    filter: grayscale(100%);
  }
  .subdomain-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 4px;
  }
  .subdomain-pitch { font-size: 13.5px; color: var(--text-muted); max-width: 640px; }

  /* ── GRILLE DE CARTES ── */
  .modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 22px; }
  .modules-grid.longues-grid { grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); }

  /* ── CARTE / ACCORDÉON (extrait : bordure ardoise, coins arrondis) ── */
  details.module-card {
    background: var(--white);
    border: 2px solid var(--slate-tint-strong);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(98,122,144,0.10);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  details.module-card:hover { border-color: var(--slate); transform: translateY(-2px); }
  details.module-card[open] { border-color: var(--slate); box-shadow: 0 10px 28px rgba(98,122,144,0.16); }

  summary.card-summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 56px 20px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  summary.card-summary::-webkit-details-marker { display: none; }
  summary.card-summary:hover { background: var(--off-white); }

  .card-chevron {
    position: absolute;
    top: 22px; right: 22px;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--slate);
    flex-shrink: 0;
  }
  .card-chevron::before, .card-chevron::after {
    content: '';
    position: absolute;
    background: var(--slate);
    transition: transform 0.2s;
  }
  .card-chevron::before { left: 6px; right: 6px; top: 12px; height: 2px; }
  .card-chevron::after { top: 6px; bottom: 6px; left: 12px; width: 2px; }
  details[open] .card-chevron::after { transform: scaleY(0); }

  .card-module-badge { display: inline-flex; align-items: center; gap: 8px; }
  .module-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .module-hours {
    background: var(--slate);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 100px;
  }
  .accred-logo { display: block; align-self: flex-start; }
  .card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    color: var(--text-dark);
    line-height: 1.25;
  }
  .card-subtitle { font-size: 12.5px; color: var(--text-muted); padding-right: 20px; }

  .card-body {
    padding: 4px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    animation: card-reveal 0.22s ease;
  }
  @keyframes card-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

  .card-description {
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.65;
    background: var(--off-white);
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 3px solid var(--pill-start);
  }

  .objectives-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--slate-dark);
    margin-bottom: 9px;
  }
  .objectives-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
  .objectives-list li {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--pill-end);
    border-radius: 8px;
    padding: 10px 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .objectives-list li:hover { border-color: var(--slate); box-shadow: 0 3px 10px rgba(98,122,144,0.12); }

  .card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .meta-block, .meta-block-full { background: var(--off-white); border-radius: 8px; padding: 11px 13px; }
  .meta-block-full { grid-column: 1 / -1; }
  .meta-block-label {
    font-family: var(--font-display); font-weight: 700; font-size: 10px;
    letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
  }
  .meta-block-value { font-size: 13px; font-weight: 700; color: var(--text-dark); }
  .meta-block-value-light { font-size: 12px; font-weight: 400; color: var(--text-body); }
  .meta-block-value.price { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--slate-dark); }
  .meta-block-sub { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
  .tarif-lines { display: flex; flex-direction: column; gap: 3px; }
  .tarif-line { font-size: 12px; color: var(--text-body); }
  .tarif-line strong { color: var(--text-dark); font-family: var(--font-display); font-weight: 700; }

  .audience-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
  .audience-tag {
    background: var(--white); color: var(--slate-dark);
    font-size: 11px; font-weight: 700; font-family: var(--font-display);
    padding: 4px 11px; border-radius: 100px; border: 1px solid var(--slate-tint-strong);
  }
  .prereq-text { font-size: 12.5px; color: var(--text-body); margin-top: 3px; }

  .pmr-badge {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px dashed var(--slate);
    border-radius: 6px;
    padding: 6px 12px 6px 6px;
    margin-top: 10px;
  }
  .pmr-dot { width: 20px; height: 20px; border-radius: 4px; background: var(--slate-tint-strong); flex-shrink: 0; }
  .pmr-badge::after { content: 'Accessibilité PMR'; font-family: var(--font-display); font-weight: 700; font-size: 11.5px; color: var(--slate-dark); }

  /* ── GLOSSAIRE ── */
  .glossary-section { background: var(--white); border-radius: 16px; padding: 40px; border: 1.5px solid var(--border); margin-top: 8px; }
  .section-eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pill-start); margin-bottom: 8px; }
  .section-title { font-family: var(--font-display); font-weight: 700; font-size: 27px; color: var(--text-dark); margin-bottom: 8px; }
  .section-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; max-width: 640px; }
  .glossary-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
  .filter-btn {
    background: var(--off-white); border: 1.5px solid var(--border); color: var(--text-body);
    font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
    padding: 7px 17px; border-radius: 100px; cursor: pointer; transition: all 0.18s;
  }
  .filter-btn:hover, .filter-btn.active { background: var(--pill-gradient); border-color: transparent; color: #fff; }
  .glossary-grid { columns: 2; column-gap: 30px; }
  @media (max-width: 800px) { .glossary-grid { columns: 1; } }
  .glossary-entry { break-inside: avoid; margin-bottom: 18px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--off-white); }
  .glossary-term { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--slate-dark); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
  .term-domain-tag { font-family: var(--font-display); font-weight: 700; font-size: 9px; letter-spacing: 0.5px; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; }
  .tag-cyber { background: rgba(30,181,122,0.14); color: #147A50; }
  .tag-devops { background: rgba(14,165,183,0.14); color: #0A7684; }
  .tag-data { background: rgba(62,127,193,0.15); color: #2A5C8C; }
  .tag-sovereign { background: rgba(217,102,10,0.12); color: #A24C08; }
  .tag-entre { background: rgba(139,59,158,0.12); color: var(--sovereign-purple); }
  .tag-longues { background: rgba(184,134,11,0.14); color: var(--longues-gold); }
  .tag-transverse { background: var(--slate-tint); color: var(--slate-dark); }
  .glossary-def { font-size: 13px; color: var(--text-body); line-height: 1.55; }

  /* ── FINANCEMENT / SUR-MESURE ── */
  .finance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin: 8px 0 32px; }
  .finance-card { background: var(--white); border: 2px solid var(--slate-tint-strong); border-radius: 14px; overflow: hidden; }
  .finance-card-header { background: var(--slate-dark); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 14px 20px; }
  .finance-card-body { padding: 16px 20px 20px; }
  .finance-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  .finance-list li { font-size: 13px; color: var(--text-body); line-height: 1.4; padding-left: 16px; position: relative; }
  .finance-list li::before { content: '•'; position: absolute; left: 2px; color: var(--slate); font-weight: 700; }
  .finance-list a { color: #AF45CC; font-weight: 700; text-decoration: none; }
  .finance-list a:hover { text-decoration: underline; }
  .section-link { color: var(--slate-dark); font-weight: 700; text-decoration: none; }
  .section-link:hover { text-decoration: underline; }
  .finance-partners { margin: 8px 0 32px; }
  .finance-cta {
    display: inline-block;
    background: var(--slate-dark);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: 100px;
    transition: background 0.2s;
  }
  .finance-cta:hover { background: var(--slate); }
  .finance-cta:focus-visible { outline-color: #fff; }

  /* ── CONTACT STRIP ── */
  .contact-strip {
    background: var(--pill-gradient);
    border-radius: 16px;
    padding: 36px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin-top: 52px;
  }
  .contact-strip-text h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 4px; }
  .contact-strip-text p { font-size: 14px; color: rgba(255,255,255,0.85); }
  .contact-info { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
  .contact-chip {
    background: rgba(0,0,0,0.14); border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff; padding: 10px 20px; border-radius: 100px;
    font-family: var(--font-display); font-weight: 600; font-size: 14px; text-decoration: none;
    transition: background 0.2s;
  }
  .contact-chip:hover { background: rgba(0,0,0,0.24); }
  .contact-chip:focus-visible, .charte-pill:focus-visible { outline-color: #fff; }

  /* ── FOOTER ── */
  footer { text-align: center; padding: 32px 26px; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); background: var(--white); }
  .footer-logos { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 16px; }
  .footer-logos img { display: block; }
  .footer-logos-start { justify-content: flex-start; margin: 8px 0 0; }
  .footer-contact-line { margin-top: 6px; font-size: 11px; }

  /* ── GRILLE À UNE COLONNE (SI Souverain) ── */
  .modules-grid.single-narrow { grid-template-columns: minmax(460px, 680px); }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    .modules-grid, .modules-grid.longues-grid { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; }
    .nav-links { display: none; }
    .card-meta { grid-template-columns: 1fr; }
    .contact-strip { flex-direction: column; }
    .glossary-section { padding: 24px 20px; }
    .page-content { padding: 0 16px 60px; }
    .group-banner { margin: 0 -16px; height: 170px; }
  }