/* =========================================================
   YellowBibli — charte graphique du site
   Dérivée du logo (jaune), du catalogue 2026-2027 (encre bleu nuit,
   jaune, lavande, fond crème) et des illustrations en papier découpé
   (corail, bleu, teal, rose, grain de papier).
   ========================================================= */

:root {
  --papier: #FBF8F1;        /* fond général, blanc cassé papier */
  --creme: #F6F2E6;         /* fond des planches d'illustration */
  --blanc: #FFFFFF;
  --encre: #1B2745;         /* bleu nuit du catalogue */
  --encre-2: #3A4566;
  --gris: #6E7589;
  --ligne: #E6DFCF;

  --jaune: #FBC12D;         /* jaune catalogue (thématique Accueil) */
  --jaune-logo: #FDC463;    /* jaune du logo */
  --jaune-fonce: #E0A72A;
  --jaune-pale: #FBE7B0;
  --corail: #E8836B;        /* thématique Bibliothèque et territoire */
  --corail-pale: #F8D5CB;
  --lavande: #8B8FC4;       /* thématique Collections et médiation */
  --lavande-pale: #DEDFF0;
  --vert: #6F9C86;          /* thématique Organisation et coopération */
  --vert-pale: #D6E6DD;
  --bleu: #2F5FA8;
  --bleu-pale: #D3DFF1;
  --teal: #3F9C95;
  --teal-pale: #CFE6E2;
  --gris-lavande: #C8C5DA;
  --gris-lavande-pale: #E9E7F1;
  --rose: #F2B4AE;

  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(27, 39, 69, .08);
  --shadow-lg: 0 24px 60px rgba(27, 39, 69, .16);
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--encre); background: var(--papier); -webkit-font-smoothing: antialiased; position: relative;
}
/* grain de papier très léger sur toute la page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--encre); }
h1 { font-size: clamp(2.2rem, 4.3vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.lead { font-size: 1.18rem; color: var(--encre-2); }
.muted { color: var(--gris); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
em.jaune { font-style: normal; color: var(--jaune-fonce); }
mark { background: linear-gradient(transparent 55%, var(--jaune-pale) 55%); color: inherit; padding: 0 2px; }

/* ---------- Surtitre & boutons ---------- */
.surtitre {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 10px;
}
.surtitre::before { content: ""; width: 14px; height: 14px; border-radius: 4px; transform: rotate(-6deg); background: var(--jaune); }
.surtitre.corail::before { background: var(--corail); }
.surtitre.bleu::before { background: var(--bleu); }
.surtitre.teal::before { background: var(--teal); }
.surtitre.lavande::before { background: var(--lavande); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--jaune); color: var(--encre); }
.btn-primary:hover { background: var(--jaune-fonce); }
.btn-encre { background: var(--encre); color: var(--blanc); }
.btn-encre:hover { background: #2a3a66; }
.btn-outline { background: transparent; border-color: var(--encre); color: var(--encre); }
.btn-outline:hover { background: var(--encre); color: var(--blanc); }
.btn-light { background: var(--blanc); color: var(--encre); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { width: auto; height: 60px; object-fit: contain; }   /* le logo inclut déjà le mot « yellowbibli » en jaune */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: 10px 11px; white-space: nowrap; border-radius: 999px; color: var(--encre-2); transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--jaune-pale); color: var(--encre); }
.nav .btn { padding: 10px 18px; margin-left: 8px; font-size: .9rem; }
.nav .btn:hover { background: var(--jaune-fonce); }
.nav-toggle { display: none; background: none; border: 2px solid var(--encre); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; color: var(--encre); }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--papier); border-bottom: 1px solid var(--ligne); display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Papiers décoratifs (formes découpées en arrière-plan) ---------- */
.papiers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.papiers span { position: absolute; display: block; border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; opacity: .55; }
section { position: relative; }
section > .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.hero-illu { margin-top: 2.1rem; }   /* ferré sur le haut du titre, sous le surtitre */
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 560px; margin: 6px 0 30px; font-size: 1.18rem; }
.hero .btn-group { flex-wrap: nowrap; }
.hero .btn { white-space: nowrap; }
@media (max-width: 560px) { .hero .btn-group { flex-wrap: wrap; } }
.hero-illu { position: relative; max-width: 540px; justify-self: end; width: 100%; }
.hero-illu .illu { transform: rotate(-1.5deg); }
.hero-illu::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--jaune); border-radius: var(--radius); z-index: -1; transform: rotate(1.5deg); opacity: .9; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--blanc); border: 1px solid var(--ligne); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.badge i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(-8deg); background: var(--jaune); display: inline-block; }
.badge.corail i { background: var(--corail); } .badge.bleu i { background: var(--bleu); } .badge.teal i { background: var(--teal); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 36px 0 56px; } .hero-illu { max-width: 460px; margin-inline: auto; } }

/* ---------- Illustrations ---------- */
.illu { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--creme); box-shadow: var(--shadow); }
.illu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.illu.tilt-l { transform: rotate(-1.5deg); } .illu.tilt-r { transform: rotate(1.5deg); }
.picto { display: block; width: 92px; height: 92px; flex: none; }
.picto svg { width: 100%; height: 100%; display: block; }
.picto.sm { width: 64px; height: 64px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--blanc); }
.section.creme { background: var(--creme); }
.section.encre { background: var(--encre); color: rgba(255,255,255,.88); }
.section.encre h2, .section.encre h3 { color: var(--blanc); }
.section.encre .surtitre { color: var(--jaune); }
.section.jaune { background: var(--jaune); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .surtitre { justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .section { padding: 60px 0; } .grid-2 { gap: 32px; } }

/* ---------- Thématiques : aplats de couleur, survol qui révèle les formations ---------- */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.theme {
  position: relative; min-height: 400px; border-radius: var(--radius); overflow: hidden; color: var(--encre);
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; isolation: isolate;
}
.theme.jaune { background: var(--jaune); } .theme.corail { background: var(--corail); }
.theme.bleu { background: var(--bleu); color: var(--blanc); } .theme.teal { background: var(--teal); color: var(--blanc); }
.theme.bleu h3, .theme.teal h3 { color: var(--blanc); }
/* morceau de papier en relief dans l'aplat */
.theme::before { content: ""; position: absolute; width: 150%; height: 60%; left: -25%; bottom: -30%; background: rgba(255,255,255,.14); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: rotate(-6deg); transition: transform .5s ease; }
.theme:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.theme:hover::before { transform: rotate(-2deg) translateY(-10px); }
.theme-head { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 26px; height: 100%; text-align: left; width: 100%; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.theme-head .num { font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .1em; opacity: .75; }
.theme-head .picto { width: 110px; height: 110px; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.theme:hover .theme-head .picto, .theme.open .theme-head .picto, .theme:focus-within .theme-head .picto { transform: translateY(-6px) rotate(-5deg) scale(1.06); }
.theme-head h3 { font-size: 1.32rem; margin: 6px 0 0; line-height: 1.2; }
.theme-head p { margin: 0; font-size: .95rem; opacity: .9; flex: 1; }
.theme-head .count { font-family: var(--font-display); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; }
.theme-head .count svg { width: 18px; height: 18px; transition: transform .3s; }
.theme:hover .count svg { transform: translateX(4px); }
/* panneau révélé : feuille de papier qui remonte */
.theme-panel {
  position: absolute; inset: auto 0 0 0; z-index: 2; background: var(--papier); color: var(--encre);
  padding: 22px 22px 20px; border-radius: 18px 18px 0 0; max-height: 92%; overflow: auto;
  transform: translateY(102%); transition: transform .45s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 30px rgba(27,39,69,.18);
}
.theme-panel::before { content: ""; position: absolute; top: -8px; left: 8%; right: 8%; height: 10px; background: var(--jaune-pale); border-radius: 6px 6px 0 0; transform: rotate(-.6deg); }
.theme.corail .theme-panel::before { background: var(--corail-pale); } .theme.bleu .theme-panel::before { background: var(--bleu-pale); } .theme.teal .theme-panel::before { background: var(--teal-pale); }
.theme:hover .theme-panel, .theme.open .theme-panel, .theme:focus-within .theme-panel { transform: translateY(0); }
.theme-panel h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin: 0 0 10px; font-weight: 600; }
.theme-panel ol { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: f; }
.theme-panel li { counter-increment: f; display: flex; gap: 10px; align-items: baseline; font-size: .92rem; line-height: 1.35; padding: 6px 0; border-bottom: 1px dashed var(--ligne); }
.theme-panel li::before { content: counter(f, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--jaune-fonce); flex: none; }
.theme.corail .theme-panel li::before { color: var(--corail); } .theme.bleu .theme-panel li::before { color: var(--bleu); } .theme.teal .theme-panel li::before { color: var(--teal); }
.theme-panel li a { text-decoration: none; font-weight: 500; }
.theme-panel li a:hover { text-decoration: underline; }
.theme-panel li small { margin-left: auto; color: var(--gris); white-space: nowrap; font-size: .8rem; }
.theme-panel .btn { padding: 10px 16px; font-size: .88rem; }
@media (max-width: 1000px) { .themes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .themes { grid-template-columns: 1fr; } .theme { min-height: 0; } .theme-panel { position: static; transform: none; max-height: none; display: none; border-radius: 0; box-shadow: none; } .theme.open .theme-panel { display: block; } .theme:hover .theme-panel { transform: none; } }
@media (prefers-reduced-motion: reduce) { .theme, .theme-panel, .theme-head .picto, .theme::before { transition: none; } }

/* ---------- Manière de former ---------- */
.methode { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.methode > div { background: var(--blanc); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.methode .picto { width: 84px; height: 84px; }
.methode h3 { font-size: 1.05rem; margin: 6px 0 0; }
.methode p { font-size: .93rem; color: var(--encre-2); margin: 0; }
.methode .step { font-family: var(--font-display); font-weight: 700; color: var(--jaune-fonce); font-size: .85rem; letter-spacing: .1em; }
@media (max-width: 1000px) { .methode { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .methode { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 36px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 7px; transform: rotate(-6deg);
  background: var(--jaune) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2745' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5 9-10'/></svg>") center/14px no-repeat;
}

/* ---------- Cartes génériques ---------- */
.card { background: var(--blanc); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .picto { margin-bottom: 10px; }
.card h3 { margin-top: 6px; font-size: 1.15rem; }
.card p { font-size: .96rem; color: var(--encre-2); margin: 0; }
.card.papier { background: var(--creme); box-shadow: none; }

/* ---------- Valeurs ---------- */
.valeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.valeur { padding: 26px; border-radius: var(--radius); background: var(--blanc); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.valeur::before { content: ""; position: absolute; top: -30px; right: -30px; width: 110px; height: 110px; border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; background: var(--jaune-pale); }
.valeur.corail::before { background: var(--corail-pale); } .valeur.teal::before { background: var(--teal-pale); }
.valeur h3 { font-size: 1.15rem; position: relative; } .valeur p { position: relative; margin: 0; color: var(--encre-2); font-size: .97rem; }
@media (max-width: 720px) { .valeurs { grid-template-columns: 1fr; } }

/* ---------- Organiser votre formation ---------- */
.organiser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.organiser .card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); box-shadow: none; color: rgba(255,255,255,.85); }
.organiser .card h3 { color: var(--blanc); }
.organiser .card p { color: rgba(255,255,255,.82); }
.organiser .card .picto { width: 72px; height: 72px; }
.tarif-bloc { margin-top: 24px; background: var(--jaune); color: var(--encre); border-radius: var(--radius); padding: 28px 32px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.tarif-bloc .prix { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.tarif-bloc .prix small { display: block; font-size: .95rem; font-weight: 600; margin-top: 4px; }
.tarif-bloc p { margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .organiser { grid-template-columns: 1fr; } .tarif-bloc { grid-template-columns: 1fr; } }

/* ---------- Catalogue : filtres & cartes ---------- */
.filtres { display: grid; gap: 12px; margin-bottom: 28px; }
.filtres-axes { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filtres-axes::-webkit-scrollbar { display: none; }
.filtres-options { display: flex; flex-wrap: wrap; gap: 10px; }
.filtres .chip { border: 2px solid var(--ligne); background: var(--blanc); border-radius: 999px; padding: 8px 14px; font-family: var(--font-display); font-weight: 600; font-size: .84rem; white-space: nowrap; flex: none; cursor: pointer; color: var(--encre-2); display: inline-flex; align-items: center; gap: 8px; transition: all .15s; }
.filtres .chip i { width: 11px; height: 11px; border-radius: 3px; transform: rotate(-8deg); display: inline-block; background: var(--encre); }
.filtres .chip[data-axe="accueil"] i { background: var(--jaune); } .filtres .chip[data-axe="collections"] i { background: var(--corail); }
.filtres .chip[data-axe="organisation"] i { background: var(--bleu); } .filtres .chip[data-axe="territoire"] i { background: var(--teal); }
.filtres .chip:hover, .filtres .chip[aria-pressed="true"] { border-color: var(--encre); background: var(--encre); color: var(--blanc); }
.filtres select {
  appearance: none; -webkit-appearance: none; border: 2px solid var(--ligne); border-radius: 999px; padding: 8px 38px 8px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: .84rem; color: var(--encre-2); cursor: pointer;
  background: var(--blanc) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2745' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 14px center / 14px;
}
.filtres select:hover { border-color: var(--encre); }
.filtres .sep { width: 1px; height: 28px; background: var(--ligne); margin: 0 4px; }
.resultats { font-weight: 600; color: var(--gris); margin-bottom: 18px; font-size: .92rem; }

.axe-section { margin-bottom: 56px; }
.axe-section[hidden] { display: none; }
.axe-section > header { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.axe-section > header .picto { width: 72px; height: 72px; }
.axe-section > header h2 { margin: 0; font-size: 1.55rem; }
.axe-section > header p { margin: 2px 0 0; color: var(--gris); font-size: .95rem; }
.formations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .formations { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .formations { grid-template-columns: 1fr; } }
.formation { display: flex; flex-direction: column; gap: 12px; background: var(--blanc); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .15s; }
.formation::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--jaune); }
.formation.corail::before { background: var(--corail); } .formation.bleu::before { background: var(--bleu); } .formation.teal::before { background: var(--teal); }
.formation:hover { transform: translateY(-3px); }
.formation[hidden] { display: none; }
.formation .num { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--gris); letter-spacing: .08em; }
.formation .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; font-weight: 600; }
.formation .meta span { background: var(--creme); border-radius: 999px; padding: 4px 10px; color: var(--encre-2); }
.formation h3 { font-size: 1.15rem; margin: 0; }
.formation p { margin: 0; color: var(--encre-2); font-size: .95rem; flex: 1; }
.formation .btn { align-self: flex-start; padding: 10px 18px; font-size: .9rem; }

/* ---------- Fiche formation (dialog) ---------- */
dialog.fiche { border: 0; border-radius: var(--radius); padding: 0; width: min(94vw, 900px); max-height: 92vh; box-shadow: var(--shadow-lg); background: var(--blanc); color: var(--encre); }
dialog.fiche::backdrop { background: rgba(27, 39, 69, .55); backdrop-filter: blur(3px); }
.fiche-head { padding: 32px 36px 24px; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.fiche-head.jaune { background: var(--jaune-pale); } .fiche-head.corail { background: var(--corail-pale); } .fiche-head.bleu { background: var(--bleu-pale); } .fiche-head.teal { background: var(--teal-pale); }
.fiche-head h2 { font-size: 1.65rem; margin: 6px 0 12px; padding-right: 50px; }
.fiche-head .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; font-weight: 600; }
.fiche-head .meta span { background: var(--blanc); border-radius: 999px; padding: 5px 12px; }
.fiche-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blanc); cursor: pointer; display: grid; place-items: center; color: var(--encre); font-size: 1.4rem; line-height: 1; }
.fiche-body { padding: 28px 36px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }
.fiche-body h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-display); font-weight: 600; color: var(--gris); margin-bottom: 8px; }
.fiche-body p { margin: 0; font-size: .97rem; }
.fiche-body .full { grid-column: 1 / -1; }
.fiche-body .formats { display: grid; gap: 12px; }
.fiche-body .format { background: var(--creme); border-radius: var(--radius-sm); padding: 14px 18px; }
.fiche-body .format strong { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.fiche-body .check-list li { font-size: .97rem; }
.fiche-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 18px; border-top: 1px solid var(--ligne); }
.fiche-foot .tarif { font-weight: 600; margin-right: auto; font-size: .95rem; }
@media (max-width: 700px) { .fiche-body { grid-template-columns: 1fr; padding: 24px; } .fiche-head { padding: 24px; grid-template-columns: 1fr; } .fiche-head .picto { display: none; } }

/* ---------- Équipe ---------- */
.equipe { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.membre { background: var(--blanc); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 220px 1fr; align-items: start; }
.membre .photo { background: var(--jaune-pale); overflow: hidden; aspect-ratio: 4 / 5; border-radius: 0 0 var(--radius) 0; }
.membre .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.membre.teal .photo { background: var(--teal-pale); }
.membre .corps { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.membre h3 { margin: 0; font-size: 1.4rem; }
.membre .role { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--jaune-fonce); }
.membre.teal .role { color: var(--teal); }
.membre p { font-size: .95rem; color: var(--encre-2); margin: 0; }
.membre .btn { align-self: flex-start; padding: 10px 18px; font-size: .9rem; margin-top: auto; }
@media (max-width: 1000px) { .equipe { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .membre { grid-template-columns: 1fr; } .membre .photo { aspect-ratio: 4 / 3; } }

/* ---------- Accompagnement ---------- */
.accomp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .accomp { grid-template-columns: 1fr; } }
.cibles { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.cibles li { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 999px; padding: 8px 14px; font-size: .9rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.coord { display: grid; gap: 14px; margin-top: 20px; }
.coord a { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.coord a .ico { width: 46px; height: 46px; border-radius: 12px; transform: rotate(-4deg); background: var(--jaune); display: grid; place-items: center; flex: none; }
.coord a .ico svg { width: 22px; height: 22px; }
form.contact { background: var(--blanc); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select { width: 100%; border: 2px solid var(--ligne); border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; color: var(--encre); background: var(--papier); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--jaune-fonce); background: var(--blanc); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
form.contact .btn { justify-self: start; }
.form-note { font-size: .86rem; color: var(--gris); margin: 0; }

/* ---------- Bandeau CTA ---------- */
.cta-catalogue { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-catalogue h2 { margin: 0 0 6px; } .cta-catalogue p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--encre); color: rgba(255,255,255,.82); padding: 56px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: var(--blanc); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.site-footer a { color: inherit; text-decoration: none; } .site-footer a:hover { color: var(--jaune); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand img { background: var(--blanc); border-radius: 14px; padding: 8px; height: 76px; }
.site-footer .bas { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Apparitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Formulaire de demande (contact) ---------- */
form.demande { scroll-margin-top: 100px; padding: 0; background: transparent; box-shadow: none; gap: 22px; }
.etape { background: var(--blanc); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.etape[hidden] { display: none; }
.etape h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 12px; margin: 0; }
.etape h2 span { width: 34px; height: 34px; border-radius: 10px; transform: rotate(-6deg); background: var(--jaune); color: var(--encre); display: grid; place-items: center; font-size: .95rem; font-weight: 700; flex: none; }
.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.type-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 12px 16px; border: 2px solid var(--ligne); border-radius: var(--radius-sm); cursor: pointer; background: var(--papier); font-family: var(--font-display); font-weight: 600; font-size: .9rem; line-height: 1.25; transition: all .15s; }
.type-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-card:hover { border-color: var(--jaune); transform: translateY(-2px); }
.type-card:has(input:checked) { border-color: var(--encre); background: var(--jaune-pale); box-shadow: var(--shadow); }
.type-card:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
@media (max-width: 960px) { .types { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .types { grid-template-columns: 1fr 1fr; } }
.choix-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .choix-liste { grid-template-columns: 1fr; } }
.choix-groupe { border: 0; padding: 14px 16px 10px; margin: 0; border-radius: var(--radius-sm); background: var(--papier); border-left: 6px solid var(--jaune); }
.choix-groupe.corail { border-left-color: var(--corail); } .choix-groupe.bleu { border-left-color: var(--bleu); } .choix-groupe.teal { border-left-color: var(--teal); }
.choix-groupe legend { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); padding: 0 6px; float: left; width: 100%; margin-bottom: 8px; }
.choix { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; font-size: .92rem; cursor: pointer; border-radius: 8px; }
.choix:hover { background: var(--jaune-pale); }
.choix input { margin-top: 4px; accent-color: var(--encre); width: 17px; height: 17px; flex: none; }
.choix b { color: var(--gris); font-weight: 600; margin-right: 4px; }
.choix small { color: var(--gris); white-space: nowrap; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .field-row.three { grid-template-columns: 1fr; } }
.envoi { display: grid; gap: 12px; justify-items: start; }

/* ---------- Sélection (panier fictif) ---------- */
.panier-lien { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 9px 11px; border-radius: 999px; color: var(--encre-2); position: relative; }
.panier-lien svg { width: 24px; height: 24px; }
.panier-lien:hover { background: var(--jaune-pale); color: var(--encre); }
.panier-lien .panier-n { background: var(--corail); color: var(--blanc); font-size: .75rem; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; font-weight: 700; }
.panier-lien .panier-n[hidden] { display: none; }
.panier-btn .si-non, .panier-btn .si-oui { display: inline-flex; align-items: center; gap: 8px; }
.panier-btn .si-oui { display: none; }
.panier-btn[aria-pressed="true"] { background: var(--teal); color: var(--blanc); border-color: var(--teal); }
.panier-btn[aria-pressed="true"] .si-non { display: none; } .panier-btn[aria-pressed="true"] .si-oui { display: inline-flex; }
.panier-resume { background: var(--teal-pale); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .93rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panier-resume .lien-vider { background: none; border: 0; color: var(--encre-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; margin-left: auto; }
.formation .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.formation .actions .btn { padding: 10px 16px; font-size: .88rem; }
.formation h3 a { text-decoration: none; } .formation h3 a:hover { text-decoration: underline; }
@media (max-width: 1080px) { .panier-lien { justify-content: center; } }

/* ---------- Page formation dédiée ---------- */
.fiche-hero { padding: 36px 0 48px; }
.fiche-hero.jaune { background: var(--jaune-pale); } .fiche-hero.corail { background: var(--corail-pale); } .fiche-hero.bleu { background: var(--bleu-pale); } .fiche-hero.teal { background: var(--teal-pale); }
.fil { font-size: .88rem; color: var(--encre-2); margin-bottom: 22px; }
.fil a { text-decoration: none; } .fil a:hover { text-decoration: underline; }
.fiche-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.fiche-hero-grid .picto { width: 130px; height: 130px; }
.fiche-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.fiche-hero .meta { display: flex; flex-wrap: wrap; gap: 10px; }
.fiche-hero .meta span { display: inline-flex; align-items: center; gap: 8px; background: var(--blanc); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .92rem; }
.fiche-hero .meta svg { width: 18px; height: 18px; }
@media (max-width: 700px) { .fiche-hero-grid { grid-template-columns: 1fr; } .fiche-hero-grid .picto { width: 96px; height: 96px; } }
.fiche-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .fiche-grid { grid-template-columns: 1fr; } }
.fiche-contenu .bloc { margin-bottom: 34px; }
.fiche-contenu h2 { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid var(--jaune); display: inline-block; margin-bottom: 12px; }
.fiche-contenu .formats { display: grid; gap: 12px; }
.fiche-contenu .format { background: var(--blanc); border-radius: var(--radius-sm); padding: 16px 20px; box-shadow: var(--shadow); }
.fiche-contenu .format strong { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.fiche-aside { display: grid; gap: 18px; position: sticky; top: 96px; }
.pratique-card dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .93rem; }
.pratique-card dt { font-weight: 600; color: var(--gris); } .pratique-card dd { margin: 0; }
.pratique-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.formatrice-card { display: flex; gap: 16px; align-items: center; padding: 18px; }
.formatrice-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
.formatrice-card h3 { margin: 0 0 4px; font-size: 1.1rem; } .formatrice-card .surtitre { margin-bottom: 2px; } .formatrice-card a { font-weight: 600; text-decoration: none; font-size: .92rem; }
.telecharger { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 600; padding: 18px 20px; background: var(--jaune); }
.telecharger svg { width: 24px; height: 24px; flex: none; }


/* ---------- Variantes de couleur des deux thématiques restantes (lavande, vert) ---------- */
.surtitre.lavande::before { background: var(--lavande); } .surtitre.vert::before { background: var(--vert); }
.badge.lavande i { background: var(--lavande); } .badge.vert i { background: var(--vert); }
.theme.lavande { background: var(--lavande); color: var(--blanc); } .theme.lavande h3 { color: var(--blanc); }
.theme.vert { background: var(--vert); color: var(--blanc); } .theme.vert h3 { color: var(--blanc); }
.theme.lavande .theme-panel::before { background: var(--lavande-pale); } .theme.vert .theme-panel::before { background: var(--vert-pale); }
.theme.lavande .theme-panel li::before { color: var(--lavande); } .theme.vert .theme-panel li::before { color: var(--vert); }
.filtres .chip[data-axe="collections"] i { background: var(--lavande); } .filtres .chip[data-axe="organisation"] i { background: var(--vert); } .filtres .chip[data-axe="territoire"] i { background: var(--corail); }
.formation.lavande::before { background: var(--lavande); } .formation.vert::before { background: var(--vert); }
.fiche-head.lavande { background: var(--lavande-pale); } .fiche-head.vert { background: var(--vert-pale); }
.fiche-hero.lavande { background: var(--lavande-pale); } .fiche-hero.vert { background: var(--vert-pale); }
.choix-groupe.lavande { border-left-color: var(--lavande); } .choix-groupe.vert { border-left-color: var(--vert); }
.valeur.lavande::before { background: var(--lavande-pale); } .valeur.vert::before { background: var(--vert-pale); }


/* ---------- Tarifs ---------- */
.tarifs-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.tarif-carte { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; color: rgba(255,255,255,.88); display: flex; flex-direction: column; gap: 12px; }
.tarif-carte.principale { background: var(--jaune); color: var(--encre); border: 0; }
.tarif-carte.principale .surtitre { color: var(--encre); }
.tarif-carte .surtitre { color: var(--jaune); }
.tarif-carte .prix { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: inherit; }
.tarif-carte .prix small { display: block; font-size: .9rem; font-weight: 600; margin-top: 4px; opacity: .85; }
.tarif-carte p { margin: 0; font-size: .95rem; }
.tarif-carte .btn { align-self: flex-start; margin-top: auto; }
.check-list.clair li::before { background-color: var(--encre); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBC12D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5 9-10'/></svg>"); }
.check-list.clair li { font-size: .95rem; }
@media (max-width: 960px) { .tarifs-grille { grid-template-columns: 1fr; } }
.exemples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exemples .card h3 { font-size: 1.05rem; color: var(--gris); margin: 0 0 8px; }
.exemples .card .prix { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--encre); margin-bottom: 8px; }
@media (max-width: 860px) { .exemples { grid-template-columns: 1fr; } }

.alerte { background: var(--corail-pale); border-left: 6px solid var(--corail); border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 600; margin: 0; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
