
/*@import "colors.css";
@import "page.css";
@import "header.css";
@import "sidebar.css";
@import "footer.css";
@import "summary.css";
@import "tuto.css";
@import "game.css";
@import "settings.css";
@import "grammar.css";
@import "fraction.css";*/
:root {
    --header-h: 60px;
    --footer-h: 40px;
    --sidebar-w: 17rem;
    --sidebar-r: 21rem;
    --bd-border: #111;
} 
.card {
    width: 100%;
    background: #fff;

    border: 3px solid #000;
    border-radius: 20px;
    box-shadow: 6px 6px 0 #000;

    margin-top: 22px;
    overflow: hidden;
    overflow-x: auto;
}
.card-header {
    padding: 12px;
    font-weight: 700;
    border-bottom: 3px solid #000;
    position: sticky;
    left:0;
}
.card-body {
    padding: 16px;
    line-height:  1.5em;
}
.mini{
    font-size: x-small;
    left: 1%;
    margin-left: 0;
    width: fit-content;
}
.btn{
    display: block;
    padding: 8px 12px;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 2px 2px 0 #000;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    text-align: center;
    cursor:pointer;
    background: linear-gradient(
    135deg,
   #ccc,white,
    hsl(var(--hb), 85%, 45%)
  );
}
.btnMini{
    padding: 2px 3px;
    border: 1px solid #000;
    border-radius: 5px;
    box-shadow: 2px 2px 0 #000;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    text-align: center;
    cursor:pointer;
    background: linear-gradient(
    135deg,
    hsl(var(--hb), 85%, 80%),white,
    hsl(var(--hb), 85%, 45%)
  );
}
.btn:hover {
    transition: 0.15s;
    transform: translate(-2px,-2px);
    box-shadow: 4px 4px 0 #000;
    background: hsl(var(--hb), 85%, 50%);
    transform: scale(1.05);  
    background: linear-gradient(
    135deg,
    hsl(var(--hb), 95%, 90%),
    hsl(var(--hb), 95%, 55%)
  );
  background: radial-gradient(

     white 30%,
    hsl(var(--hb), 85%, 45%) 100%
  );
}
.btnMini:hover {
    transition: 0.15s;
    transform: translate(-1px,-1px);
    box-shadow: 3px 3px 0 #000;
    background: hsl(var(--hb), 85%, 50%);
    transform: scale(1.05);  
    background: linear-gradient(
    135deg,
    hsl(var(--hb), 95%, 90%),
    hsl(var(--hb), 95%, 55%)
  );
}
.btn:active {
    transform: translate(1px, 1px); /* décale le bouton comme s’il était enfoncé */
    box-shadow: 1px 1px 0 #000;    /* réduit l’ombre */
         /* couleur normale */
}
.btnMini:active {
    transform: translate(1px, 1px); /* décale le bouton comme s’il était enfoncé */
    box-shadow: 1px 1px 0 #000;    /* réduit l’ombre */
         /* couleur normale */
}
.btn.active {
    transform: translate(1px, 1px);
    box-shadow: inset 1px 1px 0 #000;
    background: hsl(var(--h), 90%, 60%);
    background: radial-gradient(
    
     white 30%,
    hsl(var(--h), 85%, 45%) 100%
  );
}

.d-none{
    display:none;
}
#tuto-game0 {
    overflow: visible;
    height: 0;
    transition: height 0.5s ease;
}
#tuto-section {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: top;
}

#tuto-section.collapsed {
    transform: scaleY(0);
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
        overflow: hidden;

}
#tuto-game0 {
    transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease, padding 0.5s ease;
    max-height: 2000px; /* assez grand pour tout le cours */
    opacity: 1;
    overflow: hidden;
}

#tuto-game.collapsed0 {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}
.tuto-inner {
    overflow: visible;
}
.page-title-container {
    text-align: center; /* centre le titre horizontalement */
    margin: 0rem 0;
}

.page-title {
    display: inline-block;        /* reste inline pour la largeur du texte */
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 14px 14px;
    border: 3px solid #000;
    color: #000;
    background-color: var(--card-color); /* couleur BD par classe */
    font-weight: 700;
    font-size: 2rem;
background: linear-gradient(
    to bottom,
    #ddd 0%,white 30%,white 60%,
    hsl(var(--h), 100%, 50%)100%
  );
    /* centrer horizontalement */
    margin-bottom: 1rem;
    text-align: center;

    /* bordures “en biais” */
    transform: skew(-13deg);
}

.page-title span {
    display: inline-block;
    transform: skew(13deg);  /* contre-biais pour que le texte reste droit */
}
.page-title span.ph{
    transform: skew(0deg);  /* contre-biais pour que le texte reste droit */

}


.page-content.card-bd {
    max-width: 800px; /* largeur type A4 */
    margin: 2rem auto; /* centré */
    padding: 2rem;
    background: #fffbe6; /* couleur papier style BD */
    border: 2px solid black; /* contour léger */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* légère ombre */
    box-shadow: 4px 4px 0 #000;

    line-height: 1.6;
}

.page-content.card-bd h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.page-content.card-bd .content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #222;
        font-family: "Caveat";

}
.home div{
    width: fit-content;
    margin: auto;
        font-family: "Courgette";

}
.wrapper-flex-row{
    display: flex;
    flex-direction: row;
    gap:10px;
}
.wrapper-flex-column{
    display: flex;
    flex-direction: column;
    gap:10px;
}
.center{
    text-align: center;

}
.fcenter{
    justify-content: center;
    align-items: center;
}
.dblock-center{
    display: block;
    margin:auto;
}
.schema {
  text-align: center;
  margin: 10px 0;
}
/*
.schema img {
    max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  background: white;
}*/

.schema figcaption {
  font-size: 18px;
  margin-top: 8px;
  font-style: italic;
  font-family: "Gabriela";
}
.img-xs{ width:35%; }
.img-s { width:50%; }
.img-m { width:70%; }
.img-l { width:85%; }
.img-xl{ width:100%; }

.img-inline{ display:inline-block;vertical-align: middle;margin: 0 .5em;}
.img-left {float:left;margin: 0.3rem 1.5rem 1rem 0;}
.img-right { float:right;margin: 0.3rem 0 1rem 1.5rem;}
/* ===========================
   SCROLLBARS PERSONNALISÉES
   =========================== */
/* Firefox */
* {
    scrollbar-width:thin;
    scrollbar-color: hsl(var(--h), 70%, 55%, 50%) transparent;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--h), 70%, 55%, 50%);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--h), 80%, 45%, 50%);
}