
:root { --maxw: 1040px; --sidebar-w: 300px; --accent: #111; --bg: #fdfcf9; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: #111; }
html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, Noto Sans, sans-serif;
       line-height: 1.7; font-size: 18px; }
.layout { display: block; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); padding: 18px 18px 24px; border-right: 1px solid #000; background: #fff; overflow: auto; }
.site-logo { height: 42px; width: auto; display: block; margin: 6px auto 18px; }
.side-nav { display: block; }
.side-group { margin-bottom: 10px; transition: background 160ms ease; }
.parent-link { display: block; width: 100%; text-align: left; background: transparent; border: none; padding: 10px 10px; font-size: 1.02rem; cursor: pointer; border-left: 3px solid transparent; transition: background 160ms ease, border-left-color 160ms ease; }
.parent-link:hover { border-left-color: #000; background: #f7f7f7; }
.side-group.expanded > .parent-link, .parent-link.active { font-weight: 700; border-left-color: #000; background: #efefef; }
.side-children { display: none; padding-left: 10px; border-left: 1px dashed #000; margin-left: 6px; }
.side-group.expanded > .side-children { display: block; animation: fadeIn 220ms ease; }
.child-link { display: block; padding: 6px 8px; text-decoration: none; border-left: 3px solid transparent; margin: 2px 0; color: inherit; transition: background 160ms ease, border-left-color 160ms ease; }
.child-link:hover { border-left-color: #000; background: #f7f7f7; }
.child-link.active { font-weight: 700; border-left-color: #000; background: #efefef; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.content-wrap { margin-left: var(--sidebar-w); }
main, footer { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px; }
footer { border-top: 1px solid #000; font-size: 0.95rem; }
h1, h2, h3, h4, h5, h6 { line-height: 1.22; margin: 2.2em 0 0.7em; color: #111; }
h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 2.2rem; letter-spacing: 0.2px; text-align: center; }
h2 { font-weight: 700; font-size: 1.35rem; text-transform: none;margin: 90px 0 40px; }
p { margin: 1em 0; }
.citation { text-align: center; max-width: 70%; margin: 0 auto 100px;}
.citation em { display: block;}
blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 3px solid #000; font-style: italic; opacity: 0.9; }
hr { border: none; border-top: 1px solid #000; margin: 2em 0; }
ul, ol { padding-left: 1.3em; margin: 0.6em 0; }
figure {  max-width: 80%; margin: 1.6em auto; }
figure.logo-partie { max-width: 300px; height: auto; margin: 150px auto 0 auto;}
figure.logo-sous-partie { max-width: 150px; height: auto; margin: 0 20px 30px 0; float: left; }
figure img { max-width: 100%; height: auto; display: block; margin: 0; }
figcaption { font-size: 0.9rem; text-align: center; margin-top: 0.5em; opacity: 0.85; }
a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.section-anchor { scroll-margin-top: 28px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { border: 1px solid #000; padding: 8px; vertical-align: top; }
.img-center { text-align: center; }
.img-right { text-align: right; }
@media (max-width: 1000px) { :root { --sidebar-w: 260px; --maxw: 900px; } }
@media (max-width: 860px) { .sidebar { position: static; width: auto; border-right: none; border-bottom: 1px solid #000; } .content-wrap { margin-left: 0; } }
@media print { a { text-decoration: none; } .sidebar { display: none; } .content-wrap { margin-left: 0; } hr { border-top-color: #000; } }

#bandeau {
  background: url(assets/bandeau-desktop.jpg) no-repeat center center fixed;
  background-size: cover;
  height: 70vh;             /* plein écran */
  margin: 0;
  padding: 0;
  display: flex;             /* pour centrer le contenu */
  align-items: center;       /* verticalement */
  justify-content: center;   /* horizontalement */
}

@media (max-width: 860px) {
  #bandeau {
    background-image: url(assets/bandeau-mobile.jpg);
    background-attachment: scroll; /* pour éviter le bug iOS du fixed */
  }
}



h1#manifeste { color: #111;
  letter-spacing: 0.05em;
  background-color: rgba(252, 252, 249, 0.95);
  padding: 30px; }

#synopsis { border : solid 1px #000; padding: 20px 30px; margin: 50px auto; max-width: 80%; background: rgba(253, 252, 249, 0.9); }

.cadre { text-align: center; border : solid 1px #000; padding: 20px 30px; margin: 50px auto; max-width: 80%;}
.cadre figure { width: 20%;}
p.indefinition {padding: 20px; border: solid 1px; font-size: 0.8em;}

p.legende { text-align: center; font-style: italic; font-size: 0.8em; margin-bottom: 50px;}
/* Accordéon (section 3 — h3 comme déclencheurs) */
.accordion-trigger {
  cursor: pointer;
  margin: 1.4em 0 0.6em;
  position: relative;
  padding-right: 1.6em;
}
.accordion-trigger::after {
  content: "▸";
  position: absolute;
  right: 0;
  top: 0;
  line-height: 1;
  transform: translateY(0.2em) rotate(0deg);
  transition: transform 150ms ease;
}
.accordion-trigger[aria-expanded="true"]::after {
  transform: translateY(0.2em) rotate(90deg);
}

.accordion-panel { display: none; }
.accordion-trigger[aria-expanded="true"] + .accordion-panel { display: block; }

/* Optionnel : un petit liseré pour les blocs déployés */
.accordion-panel {
  border-left: 1px solid #000;
  padding-left: 14px;
  font-weight: 300;
}
#variables-accordeon {font-weight: 300;}
/* === Mobile topbar & drawer (injected) === */
.topbar { display: none; }
.topbar-button {
  appearance: none;
  border: 1px solid #000;
  background: #fff;
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
}
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
}
@media (max-width: 860px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #000;
  }
  
  /* Cache la sidebar dans le flux */
  .sidebar { display: none; }
  .content-wrap { margin-left: 0; }

  /* Version tiroir (drawer) de la sidebar */
  .sidebar.drawer {
    display: block;              /* réaffiche en mode tiroir */
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: min(86vw, 320px);
    max-width: 90vw;
    background: #fff;
    border-right: 1px solid #000;
    overflow: auto;
    transform: translateX(-100%);
    transition: transform 180ms ease-out;
    z-index: 1002;
    padding-top: 56px;
  }

  body.menu-open .sidebar.drawer { transform: translateX(0); }

  /* Backdrop uniquement quand ouvert */
  .backdrop { display: none; }
  body.menu-open .backdrop { display: block; }

  /* Bloque le scroll du fond quand le menu est ouvert */
  body.menu-open { overflow: hidden; }
}

/* Bouton pour fermer le menu */
.close-drawer {
  display:none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 860px) {
  .sidebar.drawer .close-drawer {
    display: block;
  }
}

a.note { font-size: 0.8em; text-indent: 20px;}
p.note { font-size: 0.8em; font-style: italic;}

/* === Mentions légales (modal bloc unique) === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 1999;
}

.modal[hidden],
.modal-backdrop[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2000;
}

.modal-dialog {
  position: relative;
  width: min(92vw, 760px);
  max-height: 82vh;
  overflow: auto;

  background: #fff;
  border: 1px solid #000;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  padding: 18px 18px 22px;
}

.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  appearance: none;
  background: none;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.modal-title {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.modal-content hr {
  border: none;
  border-top: 1px solid #000;
  margin: 14px 0;
}

/* Option mobile : marges intérieures un poil plus grandes si tu veux */
@media (max-width: 640px) {
  .modal-dialog {
    width: min(94vw, 560px);
    padding: 16px;
    border-radius: 14px;
  }
}

body.modal-open { overflow: hidden; }

/* Bouton d’ouverture (footer) */
.legal-link {
  appearance: none;
  border: 1px solid #000;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
