@charset "UTF-8";
/* ================================ Rouge (GitHub) — Thème accessible sur fond blanc ================================ */
:root { /* Palette contrastée (fond blanc) */ --hl-bg: #ffffff; --hl-fg: #111827; /* base (≈ noir) */ --hl-comment: #6b7280; /* gris 500 (≈ 4.8:1) */ --hl-keyword: #1d4ed8; /* bleu 700 */ --hl-type: #0f766e; /* teal 700 */ --hl-string: #9a3412; /* orange 800 */ --hl-number: #0f766e; /* teal 700 */ --hl-func: #7c3aed; /* violet 600/700 */ --hl-attr: #065f46; /* emerald 800 */ --hl-punct: #374151; /* gris 700 */ --hl-error: #b91c1c; /* red 700 */ --hl-warn: #92400e; /* amber 800 */ --hl-diff-add-bg: #eefcf3; /* ajout (clair) */ --hl-diff-del-bg: #fff0f0; /* suppression (clair) */ }

/* Bloc code */
.highlight { background: var(--hl-bg) !important; /* remplace #f8f8f8 */ color: var(--hl-fg); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: clamp(14px, calc(0.9rem + 0.2vw), 16px); /* jamais < 14px */ line-height: 1.55; border: 1px solid #e5e7eb; border-radius: 8px; }

.highlight table td { padding: 5px; }

.highlight table pre { margin: 0; }

.highlight pre { margin: 0; padding: 12px 14px; overflow: auto; }

.highlight code { background: transparent; font-size: inherit; }

.highlight:focus-within { outline: 2px solid #ff4d4f; outline-offset: 3px; border-radius: 9px; }

/* Commentaires */
.highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs { color: var(--hl-comment); font-style: italic; }

/* Erreurs / avertissements / diff */
.highlight .err { color: var(--hl-error); background: #fff; /* pas de rouge pâle illisible */ border-left: 3px solid var(--hl-error); padding-left: 8px; }

.highlight .gd { background: var(--hl-diff-del-bg); color: var(--hl-fg); }

.highlight .gi { background: var(--hl-diff-add-bg); color: var(--hl-fg); }

.highlight .gt, .highlight .gr { color: var(--hl-error); }

.highlight .ge { color: var(--hl-fg); font-style: italic; }

.highlight .gs { font-weight: 600; }

/* Mots-clés */
.highlight .k, .highlight .kc, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv { color: var(--hl-keyword); font-weight: 600; }

/* Types / classes / balises */
.highlight .kt, .highlight .nc, .highlight .nn, .highlight .nt { color: var(--hl-type); font-weight: 600; }

/* Nombres */
.highlight .m, .highlight .mb, .highlight .mx, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .il, .highlight .mo { color: var(--hl-number); }

/* Chaînes */
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx, .highlight .sr, .highlight .ss { color: var(--hl-string); }

/* Noms / attributs / builtins */
.highlight .na, .highlight .no, .highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi { color: var(--hl-attr); }

.highlight .nb, .highlight .bp { color: var(--hl-type); }

/* Fonctions / méthodes / labels */
.highlight .nf, .highlight .ne, .highlight .nl { color: var(--hl-func); font-weight: 600; }

/* Opérateurs / ponctuation */
.highlight .o, .highlight .ow { color: var(--hl-punct); font-weight: 600; }

.highlight .go { color: #4b5563; }

/* output console */
.highlight .gp { color: #374151; }

.highlight .gh, .highlight .gu { color: #4b5563; }

.highlight .w { color: #9ca3af; }

/* whitespace markers discrètes */
/*******************************************************************************
MeyerWeb Reset
*******************************************************************************/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; }

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

ol, ul { list-style: none; }

table { border-collapse: collapse; border-spacing: 0; }

/*******************************************************************************
Typo fluide & variables (NOUVEAU)
*******************************************************************************/
/* === Typo MICRO-COMPACT : plus petite encore === */
/* version adaptée qui fonctionne */
/*
:root { --step--2: clamp(13px, 0.70rem + 0.04vw, 14px); --step--1: clamp(14px, 0.78rem + 0.08vw, 15px); --step-0 : clamp(15px, 0.92rem + 0.12vw, 16px); --step-1 : clamp(16px, 1.02rem + 0.18vw, 17px); --step-2 : clamp(18px, 1.14rem + 0.26vw, 20px); --step-3 : clamp(21px, 1.32rem + 0.40vw, 24px); --step-4 : clamp(24px, 1.50rem + 0.55vw, 26px); --step-5 : clamp(28px, 1.80rem + 0.75vw, 34px);
*/
/* === Typo MICRO-COMPACT : plus petite encore === */
/* NOTE: pour Sass/SCSS, on emballe rem+vw dans calc() */
:root { --step--2: clamp(13px, calc(0.70rem + 0.04vw), 14px); --step--1: clamp(14px, calc(0.78rem + 0.08vw), 15px); --step-0: clamp(15px, calc(0.92rem + 0.12vw), 16px); --step-1: clamp(16px, calc(1.02rem + 0.18vw), 17px); --step-2: clamp(18px, calc(1.14rem + 0.26vw), 20px); --step-3: clamp(21px, calc(1.32rem + 0.40vw), 24px); --step-4: clamp(24px, calc(1.50rem + 0.55vw), 26px); --step-5: clamp(28px, calc(1.80rem + 0.75vw), 34px); /*
:root { --step--2: clamp(12px, 0.70rem + 0.04vw, 13px); --step--1: clamp(13px, 0.78rem + 0.08vw, 14px); --step-0 : clamp(14px, 0.92rem + 0.12vw, 15px); --step-1 : clamp(16px, 1.02rem + 0.18vw, 17px); --step-2 : clamp(18px, 1.14rem + 0.26vw, 20px); --step-3 : clamp(21px, 1.32rem + 0.40vw, 24px); --step-4 : clamp(24px, 1.50rem + 0.55vw, 26px); --step-5 : clamp(28px, 1.80rem + 0.75vw, 34px); */ --type-scale: 0.92; /* Hauteurs de ligne */ --lh-tight: 1.2; --lh-normal: 1.5; --lh-relaxed: 1.65; /* Mesure (longueur de ligne) */ --measure: 68ch; --measure-wide: 84ch; /* Espacements verticaux */ --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2rem; --space-5: 3rem; /* Police monospace */ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /*--focus-ring-color: #ff4d4f; */ /* rouge visible */ --focus-bg-light: #f8f9fa; /* fond clair */ }

/*******************************************************************************
Navbar (modification)
*******************************************************************************/
/* ----- HOVER (souris) : fond clair + texte foncé ----- */
.navbar-dark .navbar-brand:hover, .navbar-dark .navbar-nav .nav-link:hover { background-color: var(--focus-bg-light); color: #111 !important; }

/* ----- FOCUS (clavier) : même fond + anneau + soulignement ----- */
.navbar .navbar-brand:focus, .navbar .navbar-nav .nav-link:focus, .navbar .navbar-nav .nav-link:focus-visible, .navbar .navbar-toggler:focus { background-color: var(--focus-bg-light); color: #111 !important; outline: 2px solid var(--focus-ring-color); outline-offset: 2px; border-radius: .25rem; text-decoration: underline; }

/* Toggler au survol (facultatif) */
.navbar-dark .navbar-toggler:hover { border-color: rgba(255, 255, 255, 0.7); filter: brightness(1.2); }

/* État actif / ouvert cohérent */
.navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .show > .nav-link { background-color: var(--focus-bg-light); color: #111 !important; }

/* Dropdown sombre (rappel pour homogénéité) */
.navbar-dark .dropdown-menu { background-color: #2b3035; border-color: #222; }

.navbar-dark .dropdown-item { color: rgba(255, 255, 255, 0.92); }

.navbar-dark .dropdown-item:hover, .navbar-dark .dropdown-item:focus, .navbar-dark .dropdown-item.active { color: #111; background-color: var(--focus-bg-light); }

.navbar-dark .dropdown-toggle::after { border-top-color: #fff; }

/***************************** Modification pour les sous-menu de la navbar
*****************************/
/* Positionner le sous-menu à droite du parent */
.dropdown-submenu { position: relative; }

.dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -.125rem; margin-left: .25rem; }

/* Petite flèche pour indiquer qu’il y a un sous-menu */
.dropdown-submenu > .dropdown-toggle::after { content: "▸"; border: 0; margin-left: .5rem; font-size: .8em; vertical-align: middle; }

/* Ouvrir au survol ET au focus clavier */
.dropdown-submenu:hover > .dropdown-menu, .dropdown-submenu:focus-within > .dropdown-menu { display: block; }

/* Sombre : harmoniser les couleurs si besoin */
.navbar-dark .dropdown-menu { background-color: #2b3035; border-color: #222; }

.navbar-dark .dropdown-item { color: rgba(255, 255, 255, 0.92); }

.navbar-dark .dropdown-item:hover, .navbar-dark .dropdown-item:focus { background-color: #f8f9fa; color: #111; }

/* Mobile : déplier sous l’élément au lieu d’à droite */
@media (max-width: 991.98px) { .dropdown-submenu > .dropdown-menu { left: 0; right: 0; margin: .25rem 0 0 0; } }
/*******************************************************************************
Theme Styles (AJUSTÉS POUR ACCESSIBILITÉ)
*******************************************************************************/
body { box-sizing: border-box; color: #e9e9e9; /* meilleur contraste sur fond sombre */ background: #212121; font-size: var(--step-0); font-family: 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif; line-height: var(--lh-relaxed); -webkit-font-smoothing: antialiased; }

#main_content, #main_content_wrap { color: #222; /* texte sombre sur fond clair du contenu */ }

h1, h2, h3, h4, h5, h6 { margin: var(--space-4) 0 var(--space-2); font-weight: 700; color: #222222; font-family: 'Lucida Grande', 'Calibri', Helvetica, Arial, sans-serif; letter-spacing: -0.02em; line-height: var(--lh-tight); scroll-margin-top: 6rem; }

/* === Titres avec clamp() (REMPLACE les tailles en vw et les overrides mobiles) === */
h1 { font-size: calc(var(--step-5) * var(--type-scale)); }

h2 { font-size: calc(var(--step-4) * var(--type-scale)); }

h3 { font-size: calc(var(--step-3) * var(--type-scale)); }

h4 { font-size: calc(var(--step-2) * var(--type-scale)); }

h5 { font-size: calc(var(--step-1) * var(--type-scale)); }

h6 { font-size: calc(var(--step-0) * var(--type-scale)); font-weight: 600; opacity: 0.9; }

/* Décor du h2 conservé */
h2 { padding-bottom: var(--space-1); background: url("../images/bg_hr.png") repeat-x bottom; background-size: auto 2px; }

/* Skip link (corrigé) */
.lien-evitement { position: absolute; top: 5px; left: 0; /* 'center' n'est pas une valeur valide */ font-size: 0.9rem; color: #f7f3f3; text-decoration: none; }

p { margin: 10px 0 15px 0; }

footer p { color: #f2f2f2; }

a { text-decoration: none; color: #0F79D0; text-shadow: none; text-underline-offset: 0.15em; text-decoration-thickness: 0.08em; transition: color 0.3s ease, text-shadow 0.3s ease; }

a:hover, a:focus { text-decoration: underline; }

footer a { color: #F2F2F2; text-decoration: underline; }

em, cite { font-style: italic; }

strong { font-weight: bold; }

/* Images */
img { position: relative; margin: 10px 0; max-width: 739px; padding: 5px; border: 1px solid #ebebeb; box-shadow: 0 0 5px #ebebeb; }

p img { display: inline; margin: 0; padding: 0; vertical-align: middle; text-align: center; border: none; }

/* Code */
pre, code { color: #222; background-color: #f5d7d7; font-family: var(--font-mono); font-size: var(--step--1); /* ≈ 14–16px selon viewport */ border-radius: 6px; }

pre { padding: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.08); overflow: auto; }

code { padding: 3px 6px; margin: 0 3px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.06); }

pre code { display: block; box-shadow: none; font-size: inherit; /* évite double réduction */ }

/* Blockquote */
blockquote { color: #444; margin-bottom: 20px; padding: 0 0 0 20px; border-left: 4px solid #bbb; background: rgba(0, 0, 0, 0.03); }

/* Listes */
ul, ol, dl { margin-bottom: 15px; }

ul { list-style-position: inside; list-style: disc; padding-left: 20px; }

ol { list-style-position: inside; list-style: decimal; padding-left: 20px; }

dl dt { font-weight: bold; }

dl dd, dl p { padding-left: 20px; font-style: italic; }

/* HR */
hr { height: 1px; margin-bottom: 5px; border: none; background: url("../images/bg_hr.png") repeat-x center; }

/* Tables */
table { border: 1px solid #373737; margin-bottom: 20px; text-align: left; }

th { font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif; padding: 10px; background: #373737; color: #fff; }

td { padding: 10px; border: 1px solid #373737; }

/* Formulaires & kbd */
form { background: #f2f2f2; padding: 20px; }

kbd { background-color: #fafbfc; border: 1px solid #c6cbd1; border-bottom-color: #959da5; border-radius: 3px; box-shadow: inset 0 -1px 0 #959da5; color: #444d56; display: inline-block; font-size: 11px; line-height: 11px; padding: 3px 5px; vertical-align: middle; }

/*******************************************************************************
Full-Width Styles
*******************************************************************************/
.outer { width: 100%; }

.inner { position: relative; /* max-width: 640px; */ padding: 10px 10px; margin: 0 auto; }

#forkme_banner { display: block; position: absolute; top: 0; right: 10px; z-index: 10; padding: 10px 50px 10px 10px; color: #fff; background: url("../images/blacktocat.png") #0090ff no-repeat 95% 50%; font-weight: 700; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; }

#header_wrap { background: #212121; background: -moz-linear-gradient(top, #373737, #212121); background: -webkit-linear-gradient(top, #373737, #212121); background: -ms-linear-gradient(top, #373737, #212121); background: -o-linear-gradient(top, #373737, #212121); background: linear-gradient(to top, #373737, #212121); }

#header_wrap .inner { padding: 10px 10px 30px 10px; }

#project_title { margin: 20px; color: #fff; font-size: var(--step-2); /* fluide */ font-weight: 300; text-shadow: #111 0px 0px 10px; }

#project_tagline { color: #fff; font-size: var(--step-1); font-weight: 400; background: none; text-shadow: #111 0px 0px 10px; }

#downloads { position: absolute; width: 210px; z-index: 10; bottom: -40px; right: 0; height: 70px; background: url("../images/icon_download.png") no-repeat 0% 90%; }

.zip_download_link, .tar_download_link { display: block; float: right; width: 90px; height: 70px; text-indent: -5000px; overflow: hidden; background: url(../images/sprite_download.png) no-repeat bottom left; }

.tar_download_link { background-position: bottom right; margin-left: 10px; }

.zip_download_link:hover { background-position: top left; }

.tar_download_link:hover { background-position: top right; }

#main_content_wrap { /*background: #f2f2f2;
border-top: 1px solid #111;
border-bottom: 1px solid #111; */ background: #fff; /* <- blanc pur */ border-top: 1px solid #ddd; /* plus doux sur fond blanc */ border-bottom: 1px solid #ddd; }

#main_content { padding-top: 45px; }

#footer_wrap, .site-footer { background: #212121; font-size: 13px !important; line-height: 1.3; padding: 0 !important; /* on repart de zéro */ }

/* L’intérieur du footer (ton thème utilise .inner partout) */
#footer_wrap .inner, .site-footer .inner { padding: 6px 10px !important; /* contrôle fin */ }

/* Supprime les marges par défaut des éléments de texte dans le footer */
#footer_wrap p, #footer_wrap ul, #footer_wrap li, #footer_wrap h1, #footer_wrap h2, #footer_wrap h3, .site-footer p, .site-footer ul, .site-footer li { margin: 0 !important; padding: 0 !important; }

/* Petits assets dans le footer (logo, icônes mail) */
#footer_wrap img, #footer_wrap svg { height: 16px; width: auto; vertical-align: middle; }

/*******************************************************************************
Small Device Styles
*******************************************************************************/
@media screen and (max-width: 992px) { img { max-width: 100%; } }
/* Les tailles des titres ne sont plus redéfinies ici : clamp() s’en charge */
@media screen and (max-width: 480px) { body { font-size: var(--step-0); }
  #downloads { display: none; }
  .inner { min-width: 320px; max-width: 480px; }
  #project_title { font-size: var(--step-2); }
  code, pre { font-size: var(--step--1); } }
@media screen and (max-width: 320px) { body { font-size: 14px; }
  #downloads { display: none; }
  .inner { min-width: 240px; max-width: 320px; }
  #project_title { font-size: var(--step-1); }
  code, pre { min-width: 240px; max-width: 320px; font-size: var(--step--2); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.markme { background-color: yellow; padding: 0 0.2em; border-radius: 2px; }

/* ------------ Modification Navbar -------------- */
/* ==== NAVBAR SLIM / HAUTEUR FIXE (BS4.5, dark) ==== */
:root { --navbar-height: 44px; }

/* ajuste si besoin (44–50px) */
.navbar { padding-top: 4px !important; padding-bottom: 4px !important; line-height: 1.2; /* empêche l'effet accordéon dû au line-height global */ margin-bottom: 8px; /* si navbar non fixed-top */ }

/* Liens & brand figés en px => n'augmentent pas avec le body */
.navbar-dark .navbar-brand, .navbar-dark .navbar-nav .nav-link, .navbar-dark .navbar-text { font-size: 14px !important; padding-top: 4px !important; padding-bottom: 4px !important; white-space: nowrap; /* évite les retours qui gonflent la hauteur */ color: #fff !important; /* contraste */ }

/* Items du menu déroulant : même corps */
.navbar-dark .dropdown-item { font-size: 14px !important; line-height: 1.3; padding: .3rem .75rem; }

/* Logo brand : hauteur fixe */
.navbar-brand img { height: 40px; width: auto; }

/* Toggler (burger) compact */
.navbar-toggler { padding: 2px 6px; font-size: 14px; /* ne suit pas la typo globale */ }

/* Si navbar est fixed-top, pousser le contenu de manière fixe également */
body.has-fixed-navbar { padding-top: calc(var(--navbar-height) + 8px); }

/* Ancres vers titres : évite que le titre passe sous la barre */
h1, h2, h3, h4, h5, h6 { scroll-margin-top: calc(var(--navbar-height) + 8px); }

/* === Sticky footer : le footer reste en bas sans “gonfler” === */
html, body { height: 100%; }

body { min-height: 100vh; /* occupe toute la hauteur de viewport */ display: flex; flex-direction: column; }

/* Les wrappers du thème Jekyll */
#header_wrap { flex: 0 0 auto; }

/* header hauteur naturelle */
#main_content_wrap { flex: 1 0 auto; }

/* prend tout l'espace restant */
#footer_wrap { flex: 0 0 auto; }

/* footer hauteur naturelle */
/* Évite que des marges du dernier élément “poussent” le footer */
#main_content > :last-child { margin-bottom: 0; }

/* (si navbar fixed-top) : garde ton padding-top existant */
body.has-fixed-navbar { /* déjà dans ton CSS, on garde */ }

.front { background-color: #FFD580; color: #111111; text-align: center; }

.back { background-color: #81C784; color: #111111; text-align: center; }

.persistence { background-color: #D7DBDD; color: #111111; text-align: center; }

.white { background-color: #FFFFFF; }

.front-color { background-color: #FFD580; }

.back-color { background-color: #81C784; color: #111111; }

.persistence-color { background-color: #D7DBDD; color: #111111; }

/* nav.navbar ul { list-style: none; display: flex; justify-content: space-between; align-items: flex-start;
}

nav.navbar li { margin: 0 10px;
}

nav.navbar a { text-decoration: none; color: rgb(238, 224, 224);
}

form { margin: 20px; padding: 10px; background-color: #eee;
}

@media (max-width: 768px) { form { margin: 10px; padding: 5px; }
} */
