
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html, body {
  /*  height: 100%;*/
    font-family: system-ui, sans-serif;
    overflow: hidden;
      font-family: "ComicRelief", "cursive";

}
body {
    /* Forcer le respect des espaces insécables pour ponctuation */
    word-break: break-word;   /* coupe les mots trop longs si nécessaire */
    overflow-wrap: anywhere;  /* moderne, gère la coupure */
}
body {
    word-break: keep-all;       /* ne coupe pas les mots arbitrainement */
    overflow-wrap: break-word;  /* coupe seulement si nécessaire */
    hyphens: auto;              /* hyphenation si nécessaire */

}
body {
    padding-bottom: var(--footer-h);
}
/* Protéger les ponctuations fines en français */
p, li, span, div {
    word-spacing: normal;
    hyphens: none;

}
p, li, div {
    text-align: justify;
}
sup0{
    font-size: 0.7em;
    vertical-align: super;
    line-height: 0;
    font-size: 0.65em;
    vertical-align: 0.45em;
}
.expo{
    font-size: 0.65em;
    vertical-align: 0.45em;
    position: relative;
}

.cell .expo{
   display:inline;
}
/* Petite astuce : espace insécable avant ponctuation française */
.fr {
    white-space: pre-wrap; /* conserve les retours à la ligne */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    height: var(--header-h);
    width: 100%;
    background: var(--header);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 10;
    border-bottom: 3px solid #111;
    box-shadow: 0 3px 0 #111;
    font-weight: 800;
}
header a {
    color: white;
    font-weight: 800;
    text-decoration: none;
}
.header-title {
    width: 100%;
    display: flex;
    align-items: center;    /* aligne titre et date verticalement */
    justify-content: space-between; /* titre à gauche, date à droite */
    gap: 1rem;
    font-size: 1rem;
}
.header-title h1 {
    margin: 0;
    font-family:"Julee", 'Caveat';
    
}
.current-date {
    font-family: "PlaywriteFRTrad",'MeaCulpa';
    font-size: 0.7rem;

    color: #333;
    white-space: nowrap;  /* évite le retour à la ligne */
}
.layout {
    position: fixed;
    top: var(--header-h);
    bottom: var(--footer-h);
    inset:var(--header-h)0 var(--footer-h) 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
}
.layout.has-right-aside {
    grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-r); /* left | main | right */
}
.main {
    overflow-y: auto;
    padding: 1.5rem;
    padding-top: 0;
    background: #fff;
}
.sidebar {
  position: relative;
  font-family: "Poetsenone","Sniglet","Gluten", "cursive";

}
.sidebar.left-aside {
    background: #f4f4f4;
    overflow-y: auto;
    border-right: 1px solid #ddd;
    padding: 1.2rem;
}

.right-aside {
    background: #f9f9f9;
    border-left: 2px solid #ddd;
    padding: 1rem;
    padding-top: 0;
    overflow-y: auto;
}
.close-aside {
  position: absolute;
  top: 2px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.close-aside.left{
    right: 5px;

}
.close-aside.right{
  left: 5px;

}
.open-aside {
  position: fixed;
top:calc(var(--header-h) + 6px);  
z-index: 2000;
  background: none;
  border: none;
    font-size: 1.2rem;
  cursor: pointer;
    display: none;

}

.open-aside.left {
  left: 10px;
}

.open-aside.right {
  right: 10px;
}

.layout.no-left .open-aside.left {
  display: block;
}

.layout.no-right .open-aside.right {
  display: block;
}

.layout.no-left {
  grid-template-columns: 1fr;
}

.layout.no-right {
  grid-template-columns: var(--sidebar-w) 1fr;
}

.layout.no-left.has-right-aside {
  grid-template-columns: 1fr var(--sidebar-r);
}

.layout.no-left.no-right {
  grid-template-columns: 1fr;
}
.sidebar.hidden {
  display: none;
}

/* Quand l’aside est ouvert via JS */
.sidebar.open {
  display: block;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    height: var(--footer-h);
    width: 100%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-family: "Caveat";
}


.site-footer {
    padding: 1rem 0;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.site-footer {
    display: flex;
    justify-content: center; /* centre tout horizontalement */
    align-items: center;     /* aligne verticalement le texte et les liens */
    gap: 2rem;               /* espace entre le texte et les liens */
    flex-wrap: wrap;         /* pour mobile */

}

.site-footer  span {
    display: inline-block;   /* pour que flex l’aligne correctement */
color: #bbb;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0 ;
    display: flex;
    justify-content: center; /* liens centrés */
    gap: 1.5rem;           /* espace entre les liens */
}

.site-footer .footer-links li {
    display: inline;
}

.site-footer .footer-links a {
    text-decoration: none;
    color: #bbb;
    font-weight: normal;
    transition: color 0.2s;
}

.site-footer .footer-links a:hover {
    color: #ff6600; /* accent BD orange */
}


.sidebar.left-aside ul {
    list-style: none;
}

.sidebar.left-aside li + li {
    margin-top: .5rem;
}

.sidelink.btn {
    display: block;
    padding: .7rem 1rem;
    margin-bottom: .6rem;

    font-weight: 700;
    font-size: 1.5rem;

    text-decoration: none;
    color: #111;
    text-align: center;
    border-radius: 12px;

    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;  
    background: linear-gradient(
    135deg,
    hsl(var(--h), 95%, 100%),
    hsl(var(--h), 95%, 65%)
  );
  
}
.sidelink.btn:hover{
 background: linear-gradient(
    135deg,
    hsl(var(--h), 85%, 80%),white,
    hsl(var(--h), 85%, 45%)
  )!important;
}


