@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,700&display=swap');

/* --- VARIABLES PRINCIPALES --- */
:root {
  --sidebar-width: 260px;
  --sidebar-bg: #fff;
  --accent-main: #111;
  --text-main: #111;
  --content-bg: #fff;
  --panel-bg: #f8f8f8;
  --border-color: #e2e2e2;
  --main-radius: 22px;
  --shadow: 0 2px 18px rgba(0,0,0,0.09);
}

/* --- FOND, TYPO, GÉNÉRAL --- */
body {
  font-family: 'IBM Plex Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--panel-bg);
  color: var(--accent-main);
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

/* --- CONTENU CENTRAL "QUARTO" --- */
.main-content, .page-content, .container {
  background: var(--content-bg);
  max-width: 760px;
  margin: 40px auto 24px;
  box-shadow: var(--shadow);
  border-radius: var(--main-radius);
  padding: 2.6em 1.8em 2.5em 1.8em;
}

/* --- TITRES --- */
h1, h2, h3, h4 {
  font-family: 'IBM Plex Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  color: var(--accent-main);
  margin-top: 1.1em;
  margin-bottom: 0.3em;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.3em; text-align: center; margin-top: 0.3em;}
h2 { font-size: 1.55em; text-align: center; }
h3 { font-size: 1.12em; }
h4 { font-size: 1em; }

/* --- TEXTE --- */
p, ul, ol, li {
  color: #222;
  font-size: 1.085em;
  margin-top: 0.3em;
}

/* --- LIENS --- */
a, a:visited {
  color: var(--accent-main) !important;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover {
  color: #444 !important;
}

/* --- SIDEBAR (minimaliste/noir & blanc) --- */
.menu-toggle {
  position: fixed; top: 15px; left: 15px; z-index: 1001;
  background: none; border: none; font-size: 1.5em; cursor: pointer; color: #222;
}
.sidebar {
  position: fixed; top: 0; left: 0; height: 100vh; width: var(--sidebar-width);
  background-color: var(--sidebar-bg); border-right: 1px solid var(--border-color);
  z-index: 1000; transform: translateX(-100%); transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }
.sidebar-header { padding: 20px; text-align: center; border-bottom: 1px solid var(--border-color); }
.sidebar-header h3 { margin: 0; color: #222; }
.nav-list { list-style: none; padding: 0; margin: 20px 0; }
.nav-list > li > a,
.nav-list > li > .accordion-sidebar {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 20px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  text-align: left;
  border: none;
  background-color: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.nav-list > li > a:hover {
  background-color: #111;
  color: #fff;
}
.accordion-sidebar:hover, .accordion-sidebar.active { background-color: #f5f5f5; }
.accordion-sidebar:after {
  content: '\002B'; color: #555; font-weight: bold; float: right;
}
.accordion-sidebar.active:after { content: "\2212"; }
.panel-sidebar {
  padding: 0; 
  background-color: #f8f8f8; 
  max-height: 0;
  overflow: hidden; 
  transition: max-height 0.2s ease-out;
  border: none;
}
.panel-sidebar a {
  display: block;
  padding: 15px 20px 15px 40px;
  font-size: 0.95em;
  color: #222;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.panel-sidebar a:hover {
  background-color: #efefef;
}

/* ACCORDÉON & PANEL (présentations) */
.page-content .accordion {
  background-color: transparent;
  color: #222;
  cursor: pointer;
  padding: 16px 12px;
  width: 100%;
  text-align: left;
  border: none;
  border-top: 1px solid var(--border-color);
  outline: none;
  transition: background-color 0.18s;
  font-size: 1.15em;
  font-weight: 600;
}
.page-content .accordion:last-of-type,
.page-content .accordion:last-of-type.active + .panel {
  border-bottom: 1px solid var(--border-color);
}
.page-content .accordion:hover, 
.page-content .accordion.active {
  background-color: #f5f5f5;
}
.page-content .accordion:after {
  content: '\25B8';
  font-size: 0.7em;
  color: #222;
  float: right;
  margin-left: 13px;
  transition: transform 0.18s;
}
.page-content .accordion.active:after { transform: rotate(90deg); }
.page-content .panel {
  padding: 22px 14px;
  background-color: #f8f8f8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  border-radius: 0 0 14px 14px;
  border: none;
  box-shadow: none;
}
.panel a { color: #111 !important; }

/* --- ENTRÉES DE PRÉSENTATION --- */
.presentation-list {
    max-width: 700px;
    margin: 0 auto;          /* Centre la liste */
}

.presentation-entry {
    background: #f3f7fa;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.3em 1.3em 1em 1.3em;
    margin: 1.2em 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.presentation-entry h3, .presentation-entry h3 a {
  color: var(--accent-main);
  font-weight: 700;
  font-size: 1.09em;
  text-decoration: underline;
}
.presentation-entry p {
  color: #222;
  font-size: 1em;
  margin: 0.2em 0 0 0;
}
@media (max-width: 750px) {
  .presentation-list, .presentation-entry {
    max-width: 97vw;
    padding-left: 1vw;
    padding-right: 1vw;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .main-content, .page-content, .container { max-width: 97vw; padding: 7vw 3vw 5vw 3vw; }
  .sidebar { width: 80vw; min-width: 180px; }
}


/* --- MODIFICATIONS POUR LA PAGE D'ACCUEIL --- */

/* Conteneur de page centré avec fond uni blanc */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
}

/* Section citation avec image Bossuet à droite */
.quote-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    text-align: center;
}

/* Image de Bossuet réduite et positionnée à droite */
.bossuet-image {
    width: 120px;
    height: auto;
    border-radius: 5px;
    order: 2;
    flex-shrink: 0;
}

/* Citation de Bossuet alignée à gauche de l'image */
.bossuet-quote {
    text-align: left;
    font-style: italic;
    max-width: 500px;
    order: 1;
    margin: 0;
}

.bossuet-quote p {
    margin: 0;
    font-size: 1em;
}

.bossuet-quote footer {
    text-align: right;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
}

/* S'assurer que le contenu principal reste centré */
.page-container h2,
.page-container p {
    text-align: center;
}

/* --- STYLES SPÉCIFIQUES PAGE RÉARMEMENT POLONAIS --- */

/* --- BOUTON RETOUR SOBRE ET ENCADRÉ --- */

.back-btn,
.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 10px 20px;
    color: #000;
    background-color: #fff;
    border: 2px solid #000;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.back-btn:hover,
.back-button:hover {
    background-color: #000;
    color: #fff;
}


h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

blockquote {
    font-style: italic;
    color: #555;
    border-left: 3px solid #ccc;
    padding-left: 1em;
    margin: 1em auto;
    max-width: 700px;
    text-align: left;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 3rem 0;
}

.increment-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.increment-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.increment-card .date {
    color: #777;
    margin-bottom: 1.5rem;
}

.increment-card p {
    margin-top: 0;
}

.increment-links {
    margin-top: 1rem;
}

.increment-links a {
    display: inline-block;
    margin: 0.5rem;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.increment-links a:hover {
    background-color: #000;
    color: #fff;
}

/* --- STYLES PAGE PRÉSENTATIONS SOBRE --- */

/* Enlever le fond coloré des cartes de présentation */
.presentation-entry {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5em;
    margin: 1.2em auto;
    max-width: 650px;
}

/* Titres des présentations plus sobres */
.presentation-entry h3,
.presentation-entry h3 a {
    color: #000;
    font-weight: 600;
    font-size: 1.2em;
    text-decoration: none;
    border-bottom: 2px solid #000;
    padding-bottom: 0.3em;
    display: inline-block;
}

.presentation-entry h3 a:hover {
    color: #333;
    border-bottom-color: #333;
}

/* Texte descriptif sobre */
.presentation-entry p {
    color: #444;
    font-size: 1em;
    margin: 0.8em 0 0 0;
    line-height: 1.6;
}

/* Assurer fond blanc pour le conteneur */
.page-container {
    background-color: #fff;
}

/* Force le style du bouton retour même dans les pages Quarto */
body a.back-button,
body a.back-button:visited,
body a.back-button:link {
    display: inline-block !important;
    margin-bottom: 2rem;
    padding: 10px 20px;
    color: #000 !important;
    background-color: #fff !important;
    border: 2px solid #000 !important;
    text-decoration: none !important;
    font-size: 1em;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

body a.back-button:hover {
    background-color: #000 !important;
    color: #fff !important;
}


