/* ============================================================
   Polices autohébergées (RGPD : plus d'appel à Google Fonts)
   ------------------------------------------------------------
   1. Récupère les fichiers .woff2 avec le CSS déjà prêt sur
      https://gwfh.mranftl.com/fonts pour chacune de ces polices
      (coche exactement ces graisses) :
        - Spectral        : 400, 500, 600, 700, + 500 italique
        - Lato            : 300, 400, 700
        - Source Code Pro : 400, 500, 600
        - Space Grotesk   : 500, 600, 700
   2. Dépose les fichiers .woff2 dans un dossier /fonts/ à la
      racine du site.
   3. Remplace tout le bloc ci-dessous par celui que l'outil
      génère pour toi (il te donne un @font-face distinct par
      graisse, avec les noms de fichiers exacts) — ce qui suit
      n'est qu'un squelette à adapter, pas des fichiers réels.
      Une police statique ne peut PAS utiliser une plage de
      graisses (ex. "400 700") sur un seul fichier : il faut un
      bloc par graisse, chacun avec sa valeur exacte.
   ============================================================ */
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/spectral-400.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/spectral-500.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/spectral-600.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/spectral-700.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/spectral-500italic.woff2') format('woff2'); }

@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/lato-300.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/lato-700.woff2') format('woff2'); }

@font-face { font-family: 'Source Code Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/source-code-pro-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/source-code-pro-500.woff2') format('woff2'); }
@font-face { font-family: 'Source Code Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/source-code-pro-600.woff2') format('woff2'); }

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-700.woff2') format('woff2'); }


   style-renoir.css — Lycée A. Renoir NSI
   Palettes : Ardoise & corail (défaut) · Ardoise & glycine
              · Sauge · Émeraude & menthe
   ============================================================ */

/* Palette Ardoise & corail (par défaut) */
:root {
  --font-display: 'Space Grotesk', sans-serif;
  --bg:           #f3f4f6;
  --header:       #f3f4f6;
  --ink:          #262b33;
  --body:         #454c56;
  --muted:        #828a94;
  --line:         #dde0e4;
  --hero:         #3b4350;
  --hero-fg:      #eef0f3;
  --hero-sub:     #c7ccd4;
  --hero-accent:  #f3ab97;
  --accent:       #d2553c;
  --accent-strong:#b8442d;
  --dark:         #3b4350;
  --dark-fg:      #dbdee3;
  --dark-muted:   #a6adb8;
  --dark-accent:  #f3ab97;
  --chip:         #e6e8ec;
  --chip-fg:      #3b4350;
  --chip-hover:   #f7f8f9;
  --card:         #ffffff;
  --card-shadow:  none;
  --tag-cours:    #d2553c;
  --tag-td:       #c08a2e;
  --tag-tp:       #4f8a6b;
  --tag-projet:   #6b5a8a;
  --tag-misc:     #828a94;
}

/* Palette Ardoise & glycine — ajouter class="palette-glycine" sur <html> */
html.palette-glycine {
  --font-display: 'Spectral', serif;
  --bg:           #f3f3f6;
  --header:       #f3f3f6;
  --ink:          #26262e;
  --body:         #474853;
  --muted:        #868894;
  --line:         #e0e0e6;
  --hero:         #393c47;
  --hero-fg:      #eff0f3;
  --hero-sub:     #c8cad2;
  --hero-accent:  #b7a6e8;
  --accent:       #7a5cc4;
  --accent-strong:#6447a8;
  --dark:         #393c47;
  --dark-fg:      #dadce2;
  --dark-muted:   #a6a9b4;
  --dark-accent:  #b7a6e8;
  --chip:         #e7e7ee;
  --chip-fg:      #393c47;
  --chip-hover:   #f6f6f9;
  --card:         #ffffff;
  --card-shadow:  none;
  --tag-cours:    #7a5cc4;
  --tag-td:       #c08a2e;
  --tag-tp:       #4f8a6b;
  --tag-projet:   #c2467a;
  --tag-misc:     #868894;
}

/* Palette Sauge — calme, posée — ajouter class="palette-sauge" sur <html> */
html.palette-sauge {
  --font-display: 'Spectral', serif;
  --bg:           #f2efe4;
  --header:       #efece0;
  --ink:          #262a22;
  --body:         #4b5142;
  --muted:        #8b8f7c;
  --line:         #ded8c4;
  --accent:       #6b7d5b;
  --accent-strong:#52623f;
  --dark:         #262a22;
  --dark-fg:      #eae6d6;
  --dark-muted:   #a8ab97;
  --dark-accent:  #c98a4b;
  --chip:         #e3ded0;
  --chip-fg:      #3a3e30;
  --chip-hover:   #ece7d9;
  --card:         #faf8f0;
  --card-shadow:  none;
  --tag-cours:    #52623f;
  --tag-td:       #a8762f;
  --tag-tp:       #3f6e6a;
  --tag-projet:   #8a4a34;
  --tag-misc:     #8b8f7c;
}

/* Palette Émeraude & menthe — ajouter class="palette-emeraude-menthe" sur <html> */
html.palette-emeraude-menthe {
  --font-display: 'Space Grotesk', sans-serif;
  --bg:           #f2f6f3;
  --header:       #ffffff;
  --ink:          #12241e;
  --body:         #445048;
  --muted:        #8a9891;
  --line:         #e2e8e4;
  --accent:       #10b981;
  --accent-strong:#047857;
  --dark:         #0b1f19;
  --dark-fg:      #dcf3ea;
  --dark-muted:   #93b3a6;
  --dark-accent:  #34d399;
  --chip:         #e3f5ec;
  --chip-fg:      #0b3b2c;
  --chip-hover:   #d3efe2;
  --card:         #ffffff;
  --card-shadow:  0 2px 10px rgba(16,36,30,.06);
  --tag-cours:    #047857;
  --tag-td:       #ca8a04;
  --tag-tp:       #0d9488;
  --tag-projet:   #57534e;
  --tag-misc:     #8a9891;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { 
  margin: 0; 
  font-family: 'Lato', sans-serif; 
  background: var(--bg); 
  color: var(--ink); 
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .25s ease, color .25s ease;
}
a    { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ── Progress bar & back-to-top ── */
#nr-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 60;
  transition: width .12s linear;
}
#nr-totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  cursor: pointer; background: var(--accent); color: #fff;
  font: 400 22px/1 'Lato', sans-serif;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 40px;
  background: var(--header); border-bottom: 1px solid var(--line);
}
.brand         { font: 600 18px 'Lato', sans-serif; font-family: var(--font-display); color: var(--ink); }
.brand-dot     { color: var(--accent); }
.brand-sub     { font-weight: 400; color: var(--muted); }
.site-nav      { display: flex; flex-wrap: wrap; gap: 18px; font: 600 12.5px 'Lato', sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.nav-link      { color: var(--muted); border-bottom: 2px solid transparent; padding-bottom: 4px; transition: color .15s; }
.nav-link:hover,
.nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }

/* Pastille de statut — clin d'œil "dev", pouls doux et lent */
.status-pill   { display: flex; align-items: center; gap: 7px; font: 500 11.5px 'Source Code Pro', monospace; color: var(--muted); white-space: nowrap; }
.status-dot    { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; animation: status-pulse 2.4s ease-in-out infinite; }
@keyframes status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Hero : bandeau photo + fondu + carte flottante qui chevauche ── */
.hero            { position: relative; }
.hero-photo-wrap { position: relative; height: 300px; overflow: hidden; }
.hero-photo      { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-fade       { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, var(--bg) 97%); }
.hero-card-row   { position: relative; z-index: 2; max-width: 1400px; margin: -74px auto 0; padding: 0 40px; }
.hero-card       { background: var(--card); border-radius: 20px; padding: 34px 40px 38px; box-shadow: 0 20px 44px rgba(0,0,0,.16); }
.hero-kicker     { display: flex; align-items: center; gap: 9px; font: 600 12px 'Source Code Pro', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 16px; }
.hero-kicker .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-title      { font: 600 42px/1.15 'Spectral', serif; font-family: var(--font-display); margin: 0 0 14px; color: var(--ink); }
.hero-sub        { font: 400 16.5px/1.6 'Lato', sans-serif; color: var(--body); max-width: 640px; margin: 0; }

/* ── Page body ── */
.page-body  { 
  max-width: 1400px; 
  width: 100%;
  margin: 0 auto; 
  padding: 42px 40px 60px; 
  display: grid; 
  grid-template-columns: 1fr 300px; 
  gap: 46px; 
  flex: 1;
}
.main       { min-width: 0; }
.aside      { display: flex; flex-direction: column; gap: 20px; }

/* ── Section label ── */
.section-label { font: 600 14.5px 'Source Code Pro', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 18px; }

/* ── Automatismes callout ── */
.auto-card  { background: var(--dark); color: var(--dark-fg); border-radius: 14px; padding: 22px 24px; margin-bottom: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.auto-kicker{ font: 600 11px 'Source Code Pro', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--dark-accent); margin-bottom: 6px; }
.auto-text  { font: 400 15px/1.5 'Lato', sans-serif; max-width: 460px; }
.auto-btn   { flex: none; background: var(--dark-accent); color: var(--dark); border-radius: 9px; padding: 12px 18px; font: 700 14px 'Lato', sans-serif; white-space: nowrap; }
.auto-btn:hover { filter: brightness(1.08); }

/* ── Chapter cards ── */
.chapter-card { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; display: flex; gap: 18px; box-shadow: var(--card-shadow, none); }
.chap-tile    { position: relative; flex: none; width: 100px; height: 100px; border-radius: 10px; overflow: hidden; background-color: var(--dark); background-size: cover; background-position: center; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 5px, transparent 5px, transparent 11px); }
.chap-tile-dots       { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.chap-tile-dots span  { width: 6px; height: 6px; border-radius: 50%; display: block; }
.chap-tile-dots span:nth-child(1) { background: rgba(233,120,107,.75); }
.chap-tile-dots span:nth-child(2) { background: rgba(232,196,104,.75); }
.chap-tile-dots span:nth-child(3) { background: rgba(127,191,143,.75); }
.chap-body    { flex: 1; min-width: 0; }
.chap-label   { font: 700 13px 'Source Code Pro', monospace; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 6px; }
.chap-title   { font: 700 20px/1.25 'Lato', sans-serif; color: var(--ink); margin: 0 0 12px; }
.item-list    { display: flex; flex-direction: column; gap: 1px; }
.item-link    { display: flex; align-items: baseline; gap: 12px; padding: 7px 8px; border-radius: 7px; color: var(--body); }
.item-link:hover { background: var(--bg); }
.item-tag     { flex: none; min-width: 64px; padding-top: 2px; font: 600 11.5px 'Source Code Pro', monospace; letter-spacing: .06em; text-transform: uppercase; }
.item-label   { font: 500 15.5px/1.45 'Lato', sans-serif; }
.tag-cours  { color: var(--tag-cours); }
.tag-td     { color: var(--tag-td); }
.tag-tp     { color: var(--tag-tp); }
.tag-projet { color: var(--tag-projet); }
.tag-misc   { color: var(--tag-misc); }

/* ── Aside ── */
.aside-card  { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--card-shadow, none); }
.aside-title { font: 600 12px 'Source Code Pro', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.site-link   { display: block; font: 500 14.5px/1.3 'Lato', sans-serif; color: var(--body); padding: 9px 0; border-bottom: 1px solid var(--line); }
.site-link:hover { color: var(--accent-strong); }
.site-link:last-child { border-bottom: none; }
.dark-card   { background: var(--dark); border-radius: 14px; padding: 22px; }
.dark-title  { font: 600 12px 'Source Code Pro', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-accent); margin: 0 0 14px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-link  { font: 600 13px 'Lato', sans-serif; color: var(--chip-fg); background: var(--chip); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.quick-link:hover { background: var(--chip-hover); }

/* ── Home specific ── */
.home-body   { text-align: justify; color: var(--body); }
.home-body p { font: 400 16.5px/1.7 'Lato', sans-serif; margin: 0 0 18px; }
.home-body strong { font-weight: 700; color: var(--ink); }
.pullquote   { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin: 28px 0; }
.pullquote p { font: 500 21px/1.5 'Spectral', serif; color: var(--ink); margin: 0; font-style: italic; }
.ext-link    { color: var(--accent-strong); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(184,68,45,.3); }

/* ── Bac specific ── */
.bac-card         { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 16px; box-shadow: var(--card-shadow, none); }
.bac-header       { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.bac-title        { font: 700 19px 'Lato', sans-serif; color: var(--ink); }
.bac-note         { font: 600 11px 'Source Code Pro', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bac-body p       { font: 400 16.5px/1.7 'Lato', sans-serif; margin: 0 0 18px; color: var(--body); }

/* ── Footer ── */
.site-footer  { 
  background: var(--dark); 
  color: var(--dark-muted); 
  padding: 24px 40px; 
  font: 400 13px 'Lato', sans-serif; 
  margin-top: auto;
}
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-code  { font-family: 'Source Code Pro', monospace; letter-spacing: .1em; color: var(--dark-accent); }

/* ── Responsive ── */

@media (max-width: 1100px) {
  .site-header    { padding: 14px 28px; }
  .hero-card-row  { padding: 0 28px; }
  .page-body      { padding: 36px 28px 52px; }
}

@media (max-width: 900px) {
  .page-body   { grid-template-columns: 1fr; gap: 32px; }
  .aside       { flex-direction: row; flex-wrap: wrap; }
  .aside-card,
  .dark-card   { flex: 1 1 260px; }
}

@media (max-width: 640px) {
  .site-header { padding: 11px 16px; gap: 8px; flex-wrap: wrap; }
  .brand       { font-size: 15px; white-space: nowrap; }
  .status-pill { display: none; }
  .site-nav    { gap: 10px; font-size: 10.5px; letter-spacing: .02em; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 2px; scrollbar-width: none; width: 100%; }
  .site-nav::-webkit-scrollbar { display: none; }

  .hero-photo-wrap { height: 200px; }
  .hero-card-row   { margin: -50px auto 0; padding: 0 16px; }
  .hero-card       { padding: 24px 22px 28px; }
  .hero-kicker     { font-size: 10px; letter-spacing: .12em; }
  .hero-title      { font-size: 28px; }
  .hero-sub        { font-size: 15px; }

  .page-body   { padding: 20px 14px 36px; gap: 22px; }

  .auto-card   { flex-direction: column; align-items: flex-start; gap: 14px; }
  .auto-btn    { align-self: stretch; text-align: center; }

  .chapter-card { padding: 12px; gap: 12px; }
  .chap-tile    { width: 76px; height: 76px; }
  .chap-num     { font-size: 20px; }
  .chap-title   { font-size: 17px; margin-bottom: 8px; }
  .item-label   { font-size: 14px; }
  .item-tag     { min-width: 52px; font-size: 10.5px; }
  .item-link    { padding: 6px 6px; }

  .bac-header   { flex-direction: column; align-items: flex-start; gap: 4px; }

  .aside        { flex-direction: column; }
  .aside-card,
  .dark-card    { flex: none; }

  .site-footer  { padding: 18px 16px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }

  #nr-totop { right: 14px; bottom: 14px; width: 42px; height: 42px; font-size: 18px; }
}

@media (max-width: 400px) {
  .hero-title  { font-size: 24px; }
  .chap-tile   { width: 64px; height: 64px; }
  .chap-num    { font-size: 17px; }
}
