/* DSSRésonance — feuille de style unique, sans dépendance externe (site léger).
   Sommaire : 1. Jetons  2. Base  3. En-tête  4. Boutons  5. Accueil  6. Cartes
              7. Pages intérieures  8. Article  9. Formulaires  10. Pied de page
              11. Tableau de bord  12. Mouvement et impression */

/* ---------- 1. Jetons de design ---------- */
:root {
  --violet: #5b1a82;
  --violet-fonce: #3a0f59;
  --violet-nuit: #2a0a42;
  --violet-pale: #f4edf8;
  --violet-voile: #ebdff2;
  --sarcelle: #0b6f77;
  --sarcelle-vif: #0e8a93;
  --sarcelle-pale: #e6f4f5;
  --orange: #f5821f;
  --orange-texte: #9a4b06;
  --orange-pale: #fef1e4;
  --encre: #221a29;
  --gris: #5a5261;
  --trait: #e6dfeb;
  --fond: #fbf9fc;
  --blanc: #ffffff;

  --rayon-s: 10px;
  --rayon: 16px;
  --rayon-l: 24px;
  --ombre-1: 0 1px 2px rgba(58, 15, 89, .06), 0 2px 8px rgba(58, 15, 89, .05);
  --ombre-2: 0 4px 10px rgba(58, 15, 89, .08), 0 14px 32px rgba(58, 15, 89, .10);
  --largeur: 1140px;
  --lecture: 70ch;
  --espace-section: clamp(40px, 7vw, 84px);
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --courbe: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sarcelle); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet-voile); }

h1, h2, h3 { line-height: 1.18; color: var(--violet-fonce); margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 5.4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.95rem); font-weight: 750; }
h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { background: var(--violet-pale); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 780px; }
.section { padding: var(--espace-section) 0; }
.section-serree { padding-top: 0; }
.section-claire { background: var(--blanc); border-block: 1px solid var(--trait); }

.sur-titre {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sarcelle); margin-bottom: 12px;
}
.sur-titre::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--orange); }
.chapo { font-size: clamp(1.05rem, 2.3vw, 1.2rem); color: var(--gris); max-width: 60ch; line-height: 1.6; }
.entete-section { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.entete-section h2 { margin: 0; }
.entete-section p { margin: 8px 0 0; color: var(--gris); max-width: 56ch; }
.lien-fleche { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lien-fleche::after { content: "→"; transition: transform .2s var(--courbe); }
.lien-fleche:hover::after { transform: translateX(4px); }

.lien-evitement { position: absolute; left: -999px; top: 0; background: var(--violet); color: #fff; padding: 12px 18px; z-index: 60; border-radius: 0 0 10px 0; }
.lien-evitement:focus { left: 0; color: #fff; }

/* ---------- 3. En-tête ---------- */
.entete { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--trait); }
.entete-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 68px; }
.marque { display: block; border-radius: 8px; }
.marque img { height: 52px; width: auto; }
.bouton-menu {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: inherit; font-weight: 700; color: var(--violet); background: var(--violet-pale);
  border: 1px solid var(--violet-voile); border-radius: 999px; padding: 8px 18px; cursor: pointer;
}
.bouton-menu::before { content: ""; width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; border-radius: 2px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--encre); font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--violet-pale); color: var(--violet); }
.nav a[aria-current="page"] { background: var(--violet); color: #fff; }
.nav-secondaire { display: none; flex-basis: 100%; padding: 4px 0 14px; }
.nav-secondaire.ouverte { display: block; }
.nav-secondaire a { border-radius: var(--rayon-s); }

/* Bande des rubriques : toujours visible, défile au doigt sur téléphone */
.nav-rubriques { border-top: 1px solid var(--trait); }
.nav-rubriques ul {
  display: flex; gap: 4px; padding: 8px 0; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.nav-rubriques ul::-webkit-scrollbar { display: none; }
.nav-rubriques li { scroll-snap-align: start; }
.nav-rubriques li:last-child { padding-right: 32px; }
.nav-rubriques a { font-size: .9rem; }

@media (min-width: 920px) {
  .entete { position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(1.4) blur(8px); }
  .entete-barre { min-height: 78px; }
  .marque img { height: 60px; }
  .bouton-menu { display: none; }
  .nav-secondaire { display: block; flex-basis: auto; padding: 0; }
  .nav-secondaire ul { display: flex; gap: 2px; }
  .nav-secondaire a { border-radius: 999px; }
  .nav-rubriques ul { mask-image: none; -webkit-mask-image: none; flex-wrap: wrap; overflow: visible; }
  .nav-rubriques li:last-child { padding-right: 0; }
}

/* ---------- 4. Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 10px 26px; border-radius: 999px; border: 2px solid var(--violet);
  background: var(--violet); color: #fff; box-shadow: 0 6px 16px rgba(91, 26, 130, .22);
  transition: background .15s, transform .15s var(--courbe), box-shadow .15s;
}
.bouton:hover { background: var(--violet-fonce); border-color: var(--violet-fonce); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(91, 26, 130, .26); }
.bouton:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(91, 26, 130, .2); }
.bouton:disabled { opacity: .6; cursor: progress; transform: none; }
.bouton-clair { background: var(--blanc); color: var(--violet); box-shadow: none; }
.bouton-clair:hover { background: var(--violet-pale); color: var(--violet); border-color: var(--violet); box-shadow: none; }
.bouton-petit { min-height: 38px; padding: 4px 16px; font-size: .88rem; border-width: 1.5px; }
.bouton-danger { border-color: #a12626; background: #fff; color: #a12626; box-shadow: none; }
.bouton-danger:hover { background: #fbeaea; color: #a12626; border-color: #a12626; box-shadow: none; }

/* ---------- 5. Accueil ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(36px, 7vw, 76px) 0 clamp(44px, 8vw, 88px);
  background:
    radial-gradient(52rem 28rem at 108% -8%, rgba(14, 138, 147, .17), transparent 62%),
    radial-gradient(38rem 24rem at -12% 112%, rgba(245, 130, 31, .13), transparent 62%),
    linear-gradient(180deg, #f6eefa 0%, var(--fond) 100%);
}
.hero-grille { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 6.6vw, 3.5rem); letter-spacing: -.028em; margin-bottom: .55em; }
.hero h1 span { position: relative; display: inline-block; color: var(--sarcelle); }
/* Arc orange repris du logo */
.hero h1 span::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.44em; height: .42em;
  border-top: 4px solid var(--orange); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .devise { font-size: clamp(1.08rem, 2.6vw, 1.25rem); font-style: italic; color: var(--violet); font-weight: 650; margin-bottom: .7em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.reperes { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 26px 0 0; font-size: .9rem; font-weight: 600; color: var(--gris); }
.reperes li { display: inline-flex; align-items: center; gap: 7px; }
.reperes li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--sarcelle-vif) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.hero-logo { position: relative; background: var(--blanc); border-radius: var(--rayon-l); padding: clamp(14px, 3vw, 26px); border: 1px solid var(--trait); box-shadow: 12px 12px 0 var(--violet-voile), var(--ombre-2); margin-right: 12px; }
.hero-logo img { border-radius: var(--rayon-s); }
@media (min-width: 880px) { .hero-grille { grid-template-columns: 1.08fr .92fr; gap: 56px; } }

.valeurs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: clamp(-52px, -5vw, -28px) 0 0; position: relative; }
.valeurs li {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 18px 16px; box-shadow: var(--ombre-1); color: var(--c, var(--violet));
}
.valeurs svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--f, var(--violet-pale)); margin-bottom: 12px; }
.valeurs strong { display: block; color: var(--violet-fonce); font-size: 1.02rem; line-height: 1.25; margin-bottom: 4px; }
.valeurs span { font-size: .9rem; color: var(--gris); line-height: 1.45; display: block; }
@media (min-width: 780px) { .valeurs { grid-template-columns: repeat(4, 1fr); gap: 18px; } .valeurs li { padding: 22px; } }

.bandeau-vf {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--rayon-l);
  padding: clamp(26px, 5vw, 48px);
  background: radial-gradient(30rem 18rem at 100% 0%, rgba(14, 138, 147, .55), transparent 65%), linear-gradient(135deg, var(--violet) 0%, var(--violet-nuit) 100%);
  display: grid; gap: 24px;
}
.bandeau-vf h2 { color: #fff; }
.bandeau-vf .sur-titre { color: #ffd9b5; }
.bandeau-vf p { color: #e8dcf0; margin: 0; max-width: 46ch; }
.bandeau-vf ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: center; }
.bandeau-vf li a {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--rayon-s);
  color: #fff; text-decoration: none; font-weight: 650; line-height: 1.35;
  transition: background .15s, transform .15s var(--courbe);
}
.bandeau-vf li a:hover { background: rgba(255, 255, 255, .2); transform: translateX(4px); }
.pastille { flex: none; background: var(--orange); color: var(--encre); font-size: .7rem; font-weight: 800; letter-spacing: .04em; border-radius: 6px; padding: 3px 8px; text-transform: uppercase; }
@media (min-width: 880px) { .bandeau-vf { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; } }

.engagements { display: grid; gap: 18px; counter-reset: engagement; }
.engagements > div { position: relative; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px 22px 20px; }
.engagements > div::before {
  counter-increment: engagement; content: "0" counter(engagement);
  display: block; font-size: .82rem; font-weight: 800; letter-spacing: .08em; color: var(--sarcelle); margin-bottom: 10px;
}
.engagements p { color: var(--gris); margin: 0; }
@media (min-width: 780px) { .engagements { grid-template-columns: repeat(3, 1fr); } }

.appel {
  position: relative; overflow: hidden; background: var(--orange-pale); border: 1px solid #f6d2ad; border-radius: var(--rayon-l);
  padding: clamp(26px, 5vw, 48px); display: grid; gap: 18px; align-items: center;
}
.appel::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(245, 130, 31, .18); pointer-events: none; }
.appel h2 { margin-bottom: .3em; }
.appel p { margin: 0; color: #5c4630; max-width: 52ch; }
.appel .bouton { position: relative; z-index: 1; justify-self: start; }
@media (min-width: 780px) { .appel { grid-template-columns: 1fr auto; } }

/* ---------- 6. Cartes ---------- */
.grille { display: grid; gap: 18px; }
@media (min-width: 640px) { .grille { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 980px) { .grille-3 { grid-template-columns: repeat(3, 1fr); } .grille-4 { grid-template-columns: repeat(4, 1fr); } }

.carte {
  position: relative; display: flex; flex-direction: column;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 22px; box-shadow: var(--ombre-1);
  transition: transform .2s var(--courbe), box-shadow .2s, border-color .2s;
}
.carte::before { content: ""; position: absolute; left: 22px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--c, var(--violet)); transition: width .25s var(--courbe); }
.carte:hover, .carte:focus-within { transform: translateY(-3px); box-shadow: var(--ombre-2); border-color: var(--violet-voile); }
.carte:hover::before, .carte:focus-within::before { width: 84px; }
.carte h3 { margin: 0 0 .45em; line-height: 1.28; }
.carte h3 a { text-decoration: none; color: var(--violet-fonce); }
.carte h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.carte:hover h3 a { color: var(--violet); }
.carte p { color: var(--gris); font-size: .96rem; margin-bottom: 1em; }
.carte .meta { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--trait); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.meta { font-size: .82rem; color: var(--gris); }
.meta span + span::before { content: "·"; margin-right: 8px; color: #b3a9bb; }
.etiquette {
  position: relative; z-index: 1; display: inline-flex; align-items: center; align-self: flex-start; min-height: 28px;
  font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  padding: 2px 11px; border-radius: 999px; margin: 6px 0 12px;
  background: var(--cf, var(--violet-pale)); color: var(--ct, var(--violet));
}
.etiquette:hover { color: var(--ct, var(--violet)); text-decoration: underline; }

.une { display: grid; gap: 22px; }
.une > .carte { padding: clamp(24px, 4vw, 38px); }
.une > .carte h3 { font-size: clamp(1.4rem, 3.6vw, 1.95rem); letter-spacing: -.02em; }
.une > .carte p:not(.meta) { font-size: 1.05rem; }
@media (min-width: 980px) { .une { grid-template-columns: 1.35fr 1fr; } }
.pile { display: grid; gap: 22px; }

.carte-rubrique { padding-top: 26px; }
.carte-rubrique .numero { font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--cf, var(--violet-voile)); -webkit-text-stroke: 1px var(--c, var(--violet)); margin-bottom: 14px; }
.carte-rubrique .meta { border: 0; padding: 0; font-weight: 650; color: var(--ct, var(--violet)); }
@supports not (-webkit-text-stroke: 1px #000) { .carte-rubrique .numero { color: var(--c, var(--violet)); } }

/* ---------- 7. Pages intérieures ---------- */
.titre-page {
  position: relative; overflow: hidden; padding: clamp(28px, 5vw, 56px) 0; border-bottom: 1px solid var(--trait);
  background: radial-gradient(34rem 18rem at 105% 0%, rgba(14, 138, 147, .14), transparent 62%), linear-gradient(180deg, #f6eefa, var(--violet-pale));
}
.titre-page h1 { margin-bottom: .35em; }
.titre-page .chapo { margin: 0; }
.fil { font-size: .86rem; color: var(--gris); margin-bottom: 14px; }
.fil a { color: var(--gris); display: inline-block; padding: 6px 0; }
.fil a:hover { color: var(--violet); }
.filtres { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; padding: 14px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-1); }
.filtres input, .filtres select { flex: 1 1 220px; }
.compteur { font-size: .9rem; color: var(--gris); margin: -12px 0 18px; }
.vide { text-align: center; padding: 48px 20px; background: var(--blanc); border: 1px dashed #cfc4d6; border-radius: var(--rayon); color: var(--gris); }

/* ---------- 8. Article ---------- */
.progression { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 50; background: linear-gradient(90deg, var(--violet), var(--sarcelle-vif)); transform-origin: 0 50%; transform: scaleX(0); }
.article-entete { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--trait); }
.article-entete h1 { font-size: clamp(1.85rem, 5.2vw, 2.7rem); letter-spacing: -.025em; margin-bottom: .45em; }
.article-entete .chapo { color: var(--encre); max-width: none; font-size: clamp(1.1rem, 2.6vw, 1.28rem); }
.article-entete .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; }

.sommaire { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); margin-bottom: 28px; box-shadow: var(--ombre-1); }
.sommaire summary { cursor: pointer; font-weight: 700; color: var(--violet-fonce); padding: 14px 18px; min-height: 48px; list-style-position: inside; }
.sommaire ol { margin: 0; padding: 0 18px 16px 40px; }
.sommaire li { margin-bottom: 4px; }
.sommaire a { display: inline-block; padding: 4px 0; text-decoration: none; }
.sommaire a:hover { text-decoration: underline; }

.article-corps { font-size: 1.09rem; line-height: 1.75; max-width: var(--lecture); }
.article-corps > p:first-child { font-size: 1.16rem; }
.article-corps h2 { font-size: clamp(1.3rem, 3.2vw, 1.55rem); margin: 1.9em 0 .6em; padding-left: 14px; border-left: 4px solid var(--orange); }
.article-corps h3 { margin: 1.6em 0 .5em; }
.article-corps ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.article-corps li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.article-corps li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--sarcelle-vif); }
.article-corps strong { color: var(--violet-fonce); }
.article-corps blockquote {
  margin: 1.8em 0 0; padding: 20px 22px; font-size: 1.05rem; font-weight: 550; color: var(--violet-fonce);
  background: var(--sarcelle-pale); border-left: 5px solid var(--sarcelle-vif); border-radius: 0 var(--rayon) var(--rayon) 0;
}
/* Médias facultatifs : photo, vidéo, audio, document */
.media { margin: 0 0 28px; }
.media img, .media video { width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--rayon); background: var(--violet-pale); border: 1px solid var(--trait); }
.media video { aspect-ratio: 16 / 9; background: #1a1220; }
.media audio { width: 100%; min-height: 48px; }
.media-audio { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 16px; box-shadow: var(--ombre-1); }
.media figcaption { font-size: .88rem; color: var(--gris); margin-top: 8px; line-height: 1.5; }
.media-audio figcaption { margin: 0 0 10px; font-weight: 650; color: var(--violet-fonce); font-size: .95rem; }
.media-audio { display: flex; flex-direction: column-reverse; }
.medias { max-width: var(--lecture); margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--trait); }
.medias h2 { font-size: 1.25rem; margin-bottom: 18px; }
.media-fichier {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; margin-bottom: 14px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-1);
  text-decoration: none; color: var(--encre); transition: border-color .15s, transform .15s var(--courbe);
}
.media-fichier:hover { border-color: var(--violet); color: var(--encre); transform: translateX(3px); }
.media-fichier strong { display: block; color: var(--violet-fonce); line-height: 1.3; }
.media-fichier small { color: var(--gris); font-size: .84rem; }
.media-ext { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--violet-pale); color: var(--violet); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

/* Éditeur de médias du tableau de bord */
.media-ligne { display: grid; gap: 10px 14px; padding: 16px; margin-bottom: 12px; background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); }
.media-ligne label { font-size: .84rem; margin-bottom: 4px; }
.media-ligne .aide { margin: 0; }
.media-ligne .actions { align-items: center; }
@media (min-width: 720px) { .media-ligne { grid-template-columns: 170px 1fr; } .media-ligne .large { grid-column: 1 / -1; } }
.etat-ok { color: var(--sarcelle); font-weight: 650; }
.etat-alerte { color: var(--orange-texte); font-weight: 650; }

.encadre { border-radius: var(--rayon); padding: 20px 22px; margin: 28px 0; font-size: .96rem; line-height: 1.6; max-width: var(--lecture); }
.encadre h2 { font-size: 1.02rem; margin: 0 0 .6em; padding: 0; border: 0; letter-spacing: 0; }
.encadre ul { margin: 0; padding-left: 1.2em; list-style: disc; }
.encadre li { padding: 0; margin-bottom: .35em; }
.encadre li::before { display: none; }
.encadre p:last-child { margin-bottom: 0; }
.encadre-verifier { background: var(--orange-pale); border: 1px solid #f6d2ad; }
.encadre-verifier h2 { color: var(--orange-texte); }
.encadre-info { background: var(--violet-pale); border: 1px solid var(--violet-voile); }
.conteneur > .encadre, .etroit > .encadre { max-width: none; }

/* ---------- 9. Formulaires ---------- */
label { display: block; font-weight: 650; font-size: .94rem; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; font: inherit; color: var(--encre); background: #fff;
  border: 1.5px solid #c9bfd0; border-radius: var(--rayon-s); padding: 10px 14px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #a898b3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(91, 26, 130, .16); }
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.champ { margin-bottom: 18px; }
.aide { font-size: .85rem; color: var(--gris); margin: 6px 0 0; }
.case { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; padding: 12px 14px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-s); cursor: pointer; }
.case input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--violet); }
.message-ok { background: var(--sarcelle-pale); border: 1px solid #b9dfe2; border-radius: var(--rayon-s); padding: 14px 18px; margin-bottom: 18px; }
.message-erreur { background: #fbeaea; border: 1px solid #e6b8b8; color: #7d1c1c; border-radius: var(--rayon-s); padding: 14px 18px; margin-bottom: 18px; }
.duo { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .duo { grid-template-columns: 1fr 1fr; } }
.formulaire-carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-l); padding: clamp(20px, 4vw, 34px); box-shadow: var(--ombre-1); }

/* ---------- 10. Pied de page ---------- */
.pied { position: relative; background: var(--violet-nuit); color: #e3d6ec; margin-top: var(--espace-section); padding: 52px 0 22px; font-size: .94rem; }
.pied::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--sarcelle-vif) 55%, var(--violet)); }
.pied a { color: #fff; text-decoration: none; display: inline-block; padding: 5px 0; }
.pied a:hover { color: #ffd9b5; text-decoration: underline; }
.pied h2 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.pied .pied-marque { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; text-transform: none; color: #fff; margin-bottom: 8px; }
.pied .pied-marque span { color: #6fd0d7; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied-grille { display: grid; gap: 32px; }
@media (min-width: 780px) { .pied-grille { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; } }
.pied-note { font-size: .86rem; color: #c9b9d6; max-width: 44ch; }
.pied-bas { border-top: 1px solid rgba(255, 255, 255, .16); margin: 36px 0 0; padding-top: 18px; font-size: .84rem; color: #c9b9d6; }

/* ---------- 11. Tableau de bord ---------- */
.acces { max-width: 480px; margin: 40px auto; box-shadow: var(--ombre-2); }
.acces-oubli { margin: 16px 0 0; }
.admin-onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
.admin-onglets button {
  font: inherit; font-weight: 650; min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--trait); background: #fff; color: var(--encre); transition: background .15s, color .15s;
}
.admin-onglets button:hover { background: var(--violet-pale); }
.admin-onglets button[aria-selected="true"] { background: var(--violet); color: #fff; border-color: var(--violet); }
.admin-onglets .deconnexion { margin-left: auto; border-color: var(--violet); color: var(--violet); }
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 28px; }
@media (min-width: 780px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffre { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre-1); }
.chiffre b { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; color: var(--violet); line-height: 1.1; font-variant-numeric: tabular-nums; }
.chiffre span { font-size: .88rem; color: var(--gris); }
.tableau-defilant { overflow-x: auto; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-1); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { background: var(--violet-pale); color: var(--violet-fonce); white-space: nowrap; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:hover { background: #fdfbfe; }
tr:last-child td { border-bottom: 0; }
.statut { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.statut-publie { background: var(--sarcelle-pale); color: var(--sarcelle); }
.statut-brouillon { background: var(--orange-pale); color: var(--orange-texte); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.barre { height: 10px; background: var(--violet-pale); border-radius: 999px; overflow: hidden; min-width: 80px; margin-top: 6px; }
.barre i { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--violet)); }
.panneau { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(18px, 3vw, 26px); margin-bottom: 22px; box-shadow: var(--ombre-1); }
.panneau h2 { font-size: 1.25rem; }
[hidden] { display: none !important; }

/* ---------- 12. Mouvement et impression ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-grille > * { animation: apparition .6s var(--courbe) both; }
  .hero-grille > *:nth-child(2) { animation-delay: .12s; }
  @keyframes apparition { from { opacity: 0; transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .entete, .pied, .hero-actions, .bouton, .progression, .sommaire, #a-lire { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .article-corps { max-width: none; }
}
