@charset "utf-8";
@import "/page/css/defaut.css";
@import "Couleurs.css";
@import "/page/css/Etat.css";

/***********  fonts  ***************/
/*@font-face {
    font-family: fontIcons;
    font-style: normal;
    font-weight: normal;
    src: url(fonts/fontawesome-webfont.ttf);
 }
@font-face {
    font-family: cantarell;
    font-style: normal;
    font-weight: normal;
    src: url(fonts/Cantarell-Regular.ttf);
 }
 @font-face {
    font-family: Cantarell;
    font-style: italic;
    font-weight: normal;
    src: url(fonts/Cantarell-Italic.ttf);
 }
 @font-face {
    font-family: Cantarell;
    font-style: italic;
    font-weight: bold;
    src: url(fonts/Cantarell-BoldItalic.ttf);
 }
 @font-face {
    font-family: Cantarell;
    font-style: normal;
    font-weight: bold;
    src: url(fonts/Cantarell-Bold.ttf);
 }
 @font-face {
    font-family: raleway;
    font-style: normal;
    font-weight: normal;
    src: url(fonts/Raleway-VariableFont_wght.ttf);
 }
 @font-face {
    font-family: raleway;
    font-style: italic;
    src: url(fonts/Raleway-Italic-VariableFont_wght.ttf);
 }*/

/*********/

/*/////// mes reset */
* {-webkit-margin-before: 0; -webkit-margin-after: 0;margin-inline: 0}
var {font-style: unset;}
[onclick] {cursor:pointer}
:root {
    --dftFontSize:var(--ft12);
    --dftFont:Arial, verdana, sans-serif;
    --dftHdrFont:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    --fontEttMenu: var(--dftHdrFont, serif);
    --fontMenu: var(--dftFont, sans-serif);

    --bgsection:whitesmoke;
    
    --bdre:lightgrey;
    --sepcolor:navy;
    --gridtitle:rgba(245,242,230,0.5);
    --bghead: lightgrey;
    --colhead: black;
    --bgbody: whitesmoke;
    --colbody: black;
    --bgfoot: #fafafa;
    --colfoot: black;
    --coltitle:cornsilk;
    --bgttp:steelblue;
    --colttp:ivory;
    --brdttp:lightgrey;
    --linktext : rgb(13, 13, 187);

    --fondTextUnit: navy;
    --clrTextUnit: azure;
}

/**** Global ****/
body { display:grid; grid-template-rows: auto 1fr auto; grid-template-columns: 0 1fr [col-fin]; height: 100vh; width: 100vw; margin: 0; padding: 0;
    background: url(/page/images/fond_couv.jpg); overflow-wrap: normal; overflow:hidden;user-select: none;
    -webkit-text-size-adjust: none; font-family:  var(--dftFont); font-size: var(--dftFontSize); line-height: 1.4;
}
body.showmenu {grid-template-columns: minmax(300px,auto) 1fr [col-fin];}

mark {background-color : #FDF55E; padding:2px;}
mark:before{margin:0px 3px;padding:2px; background-clip:border-box ;background:red; color:white; font-weight : bolder;font-size:110%}
mark[subject]:before {content:attr(subject);}


h2 {font-family:  var(--dftHdrFont,serif); margin:5px 0; padding:5px; border-radius: 3px;background-color:var(--bg-color,#af8f83); color:var(--coltitle); 
    text-align: start; font-size: calc(4px + var(--dftFontSize)); font-weight:bold;}
h3 {font-family:  var(--dftHdrFont,serif); margin: 5px 0; padding:3px 5px; background-color:var(--bg-color,rgba(0, 0, 125, 0.25));text-align: start;
    color:#f6f6aa;font-size: calc(3px + var(--dftFontSize)); font-weight:bold;}
h4 {font-family:  var(--dftHdrFont,serif); width:fit-content; margin: 5px 0 5px 10px; margin-left: var(--decal,0px); border-bottom: 3px currentColor double;
    padding:2px; background-color:var(--bg-color,rgba(203,135,135,50%));text-align: start;font-size: calc(1px + var(--dftFontSize));font-weight: bold;}
h5, h6 { width:fit-content; font-family:  var(--dftHdrFont,serif); font-size: var(--dftFontSize);}
hr {display: block; margin: 3px auto;box-sizing:border-box; background-clip:content-box;}
hr.sep {margin:10px auto; width:40%; height:5px; background:linear-gradient(#60a3dd,#093153,#60a3dd);border: 1px solid navy; border-radius: 4px}


img, canvas, svg {display:block; margin:0 auto; border: 1px navy solid; text-align: center}

*.sepr {padding-top:10px; background-size: 45% 4px;background-position: 50% top;background-repeat: no-repeat; background-image: linear-gradient(to right, var(--sepcolor),var(--sepcolor));}
*.text {padding : 7px 30px;background-color: white; border: solid 1px rgba(200,200,200,0.5);border-radius: 7px}
*.bullet {padding-left:calc(1em + 5px);background-size: 1em; background-position: left calc(calc(16px - 1em) / 2); background-image: url(/page/gif/puce2.gif); background-repeat: no-repeat;}

div.details{display: grid;grid-template-columns: 10px 1fr;}
div.details[onclick]:before{content:"\1F83A";font-size: 200%;color: slateblue;grid-column:1;grid-row:1}
div.details >* {margin-left:15px; grid-column:2;grid-row:auto}
div.details:not(.open) >* {display:none;}
div.details:not(.open) >*.ref {display:block;margin-left:5px}
div.details.open >* {display:block}
div.details.open >*:first-child {margin-left:5px}
div.details[onclick].open:before{content:"\1F83B";}

/**** traductions et libellés****/
*[data-trad]{cursor:text;pointer-events:none;}
dfn[data-trad], *.dfn[data-trad] {background-color: oldlace;}
q[data-trad]:before, q[data-trad]:after {content:"\0022"; font-size:110%}

i-lnk.unit {background-color:var(--fondTextUnit,#dcfbfb); font-weight:bold; font-style:oblique;color:var(--clrTextUnit,unset)}
cite {padding-right:3px;font-weight: bold; text-decoration: underline;}

/******************* les tableaux *****************/
table {margin: 2px auto; border: 2px solid var(--bdre); border-collapse:collapse;border-spacing:0; vertical-align:top; cursor: default; color:var(--colbody); font-size:var(--locFontSize,var(--dftFontSize,var(--ft11)))}
table > caption{border:inherit; border-bottom:none;padding: 2px 5px; background-color:var(--gridtitle,var(--bgbody,white)); font-size:120%; font-weight:bold; color:var(--colhead);}
table > caption.bot {caption-side: bottom;border-top:none;border-bottom:inherit}
table > thead, table.grid > tbody th {border-bottom:inherit;background-color:var(--bghead,var(--bgbody,white)); text-align: center; font-size:110%; font-weight:bold;color:var(--colhead);}
table > tbody {background-color:var(--bgbody,white);}
td, th {border: 1px solid var(--bdre); padding:2px; background-color: var(--bg-color,unset);}
table > tfoot {border-top:inherit;background-color:var(--bgfoot,var(--bgbody,white)); color:var(--colfoot);}

/*******************************/
table.grorg {align-self:start;margin:5px 5px 5px 50px;}
table.grorg>caption {white-space:pre;font-style: italic;} /* bug pour les caption la couleur de fond est celle de l'éléménet parent du tableau, pas le tableau*/
table.grorg th {background-color: var(--bghead,white); font-weight:bold}
table.grorg tr>th:first-child {padding-right:5px; text-align: right}
table sup {margin-left:2px; background-color: #FDF55E;text-decoration: underline;font-style: italic;}
table :is(caption,thead,tbody) sup:before{content:'['}
table sup:after{content:']'}
table tfoot sup {margin-right:3px; margin-left:unset;}
/*******************************/
table.grcolor {border: 1px solid lightgrey; align-self:start; padding:2px; white-space: nowrap;background-color: rgba(255,255,255,0.75)}
    table.grcolor tr>* {border:1px solid lightgrey;padding:2px 3px;background-color: var(--bg-color,transparent); background-position:left 3px;background-repeat: no-repeat; vertical-align:top;}
    table.grcolor tr>td.gap {width:2px;background-color:var(--bdre);color:transparent}
table.grcolor>caption {padding: 0; background-color:rgba(255,255,255,0.75);font-style: italic; font-size: 130%;font-weight: bold;} /* bug pour les caption la couleur de fond est celle de l'éléménet parent du tableau, pas le tableau*/
table.grcolor>thead, table.grcolor>tbody th {--bghead:#006FA4; border-bottom:inherit;text-align:center;font-size:110%; color:white;font-weight:bold;}
    table.grcolor >thead *.titre {background-color:rgba(255,255,255,0.75); color:var(--colhead);}
table.grcolor>tbody {border:none; pointer-events: all}
    table.grcolor *.current *.lib {font-style: italic;font-weight:bold;}
    table.grcolor tbody >tr {background-color: beige}
    table.grcolor *.odd {background-color: lavenderblush}
    table.grcolor >tbody *.btnb, table.grcolor >tbody *.btnj {padding-left:20px; background-size: 17px;}
    table.grcolor >tbody *.btnb.center, table.grcolor >tbody *.btnj.center {background-position: center}
    table.grcolor *.rgtTitle{background-color:aliceblue; padding: 2px 5px; font-style: italic; font-size: 110%;font-weight: bold;}
    table.grcolor *.rgtDesc {padding: 3px;background-color: #faf483;white-space: normal}
    table.grcolor *.head{background-color: gainsboro;}
table.grcolor>tfoot {--bgfoot:#eaeaea; border-top:inherit; white-space: normal; }
    table.grcolor>tfoot td, table.grcolor>tfoot th {white-space: normal; }
td.psp:after {
    content: '.';
    width: 5px;
    display: inline-block;
    height: 75%;
    background-color: white;
    margin: auto 2px auto 20px;
    border: 1px solid grey;
    color: transparent;
}

/*******************************/
div.blocgrade {display:grid; grid-template-columns: 1fr auto; margin-inline:3em; gap:1em;}
/*******************************/
table.grades {margin:unset}
table.grades th[colspan] {background:beige; font-size:110%; font-weight: bold;}
table.grades th {background:#e6e6e6}
table.grades td:first-child:not([colspan]) {background:#D5EDFF; font-weight : bold;}
/************************************************/
table.grid {display:grid; column-gap: 5px;max-width:fit-content; grid-template-columns: [coldeb] repeat(var(--nbcoln,2),1fr) [colfin]; }
    table.grid > caption {grid-row: 1; grid-column: coldeb / span colfin;}
    table.grid > thead {grid-row: 2; grid-column: coldeb / span colfin;}
    table.grid > tbody {grid-row: 3; grid-column:auto}
    table.grid > tfoot {grid-row: 4; grid-column: coldeb / span colfin;}
/************************************************/
div.grades{ display: flex;flex-direction: column;margin: 2px auto;border: 2px outset var(--bdre);width: max-content;background-color: rgb(245,245,245);color: var(--colbody);font-size: var(--locFontSize,var(--dftFontSize,var(--ft11)));}
div.grades >div {display: grid; grid-template-columns: var(--lgcol1,250px) var(--lgcol2,500px);margin-bottom:10px;border-bottom: 1px solid var(--bdre);}
div.grades >div:not(:first-child) {border-top: 1px solid var(--bdre);}
div.grades >div >p {grid-column: 1/ all; grid-row:1;background-color:var(--bghead,#e6e6e6); border-bottom: inherit;padding: 2px;color:var(--colhead,black);font-weight: bold;font-size: 110%;text-align: center}
div.grades >div >span {grid-column:1; grid-row:auto;border-bottom: inherit;padding:3px 5px}
div.grades >div > div {grid-row: 2 / all; grid-column: 2;border-bottom: inherit;border-left: 3px double var(--bdre);padding:3px 5px}


/*******************/

/**** bloc titre ****/
header#bloctitre {flex:0 0 65px; border: 3px groove lightgrey;padding:3px 15px; background-image: url(/page/images/fond4.jpg); }
    header#bloctitre > h1 {margin: 0; padding-block: 0.2em; border:0; font-family: var(--dftHdrFont, serif); font-size: 2rem; font-weight: bold; font-style: italic; color: blanchedalmond;
        text-transform:uppercase; text-decoration: underline; text-underline-offset: 0.25em; text-align: center;}
/*******************/


main { flex:1 1 auto; margin:0.75rem 5px;overflow-y:auto;overflow-x: hidden; display:flex; flex-direction: column;}
main > * {flex:1 1 auto}

/**** article et section ****/
article:empty, article > section:empty {display:none}
article > section.gridMode, article> div  > section.gridMode {display:grid; height:var(--pageH,800px); box-sizing:border-box; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; grid-column-gap: 5px;}


:is(section > header,section > my-content):has(~ my-content) {padding-bottom:15px; margin-bottom:15px; background-image: url(/page/images/fond4.jpg); background-size: 50% 5px; background-position: center bottom; background-repeat: no-repeat;}

section.gridMode > aside {grid-column: 1; grid-row:2; overflow: visible auto}
section.gridMode > div.princ, article > section.gridMode > my-content {grid-column: 2; grid-row:2; overflow-y: auto}
section.gridMode > header, article > section.gridMode > h1 {grid-column: span 2; margin-bottom:10px; padding-bottom:5px;border-bottom: double 3px #e0e0e0}

ul.navAside {margin: 2px 10px 2px 5px;padding: 3px 5px;border: var(--bdre) 1px solid;border-radius: 5px;background-color: cornsilk;list-style-type: none;font-size: 110%;white-space: nowrap}
ul.navAside[title]:before{content:attr(title)" :";display:block; border-bottom:inherit; background-color:var(--bghead, lightgrey);font-size: 110%;font-weight: bold;text-decoration: underline}
ul.navAside li:nth-of-type(even) {background-color: rgb(192, 210, 226);}
ul.navAside li[data-sel] {font-style: italic;font-weight: bold;text-decoration: underline}

my-dl {display:block; padding: 3px; padding-left: 15px; text-align: left; font-weight: normal; line-height: 1.4; --puceimg: url(/page/gif/puce2.gif);}
my-dl.text {background-color: white; border: solid 1px rgba(200,200,200,0.5);border-radius: 7px;}
my-dl > my-dt {display:block; padding:2px 5px;}
my-dl > my-dt >strong {padding-right:5px;text-decoration: underline;background-color:var(--fondText,transparent)}

my-dl > my-dd {display:block; margin: 0 0 3px 10px; padding-left: 13px; background-image: var(--puceimg,none); background-size: 8px; background-repeat: no-repeat; background-position: left 3px;}
my-dl > my-ddn {display:block; margin: 0 0 3px 15px; padding-left: 10px;}
    my-dl > my-ddn::first-line {padding-left: 0;}
my-dl > my-dn {display:block; margin: 0 0 3px 15px; padding-left: 5px; font-style: italic;}

/**** Avancement ****/
div.gridavcmt { align-self:start; display: grid; border: navy ridge 3px; background: #f8f8f8; column-gap: 5px; row-gap:0;font-size:var(--dftFontSize)}
div.gridavcmt > div {grid-row: 1; margin:0; padding:5px 5px 2px; border: 1px solid navy; border-width: 0 1px; background: rgba(180,180,60,0.3); background-clip: content-box; text-align: center;font-weight: bold; font-size:140%}
div.gridavcmt > dl {grid-row: 2; margin:0; padding:3px 5px 5px; border: 1px solid navy; border-width: 0 1px; }
div.gridavcmt > div:first-of-type, div.gridavcmt > dl:first-of-type {border-left:0}
div.gridavcmt dt {margin-bottom: 3px; text-decoration: underline;font-weight: bold; font-size:110%}
div.gridavcmt dd {margin-left:5px; padding-left: 12px; background-image: url(/page/gif/puce2.gif);background-size: 8px; background-repeat: no-repeat; background-position: left center;}
div.gridavcmt dd>span.afaire {font-style:italic;background-color:  rgba(255,125,0,0.25);}

/**** Intro et texte ****/
article section.intro, *.text {background-color: white;}
:is(article section.intro, *.text) :where(p + p, div + p, p + div,div + div)  { margin-top: 7px;}
*.text {border: solid 1px var(--bdre);border-radius: 7px;}




figure:where(.small,.vsmall) {display: inline-grid; margin: 2px;border: lightgrey solid 1px;border-radius: 5px;padding: 3px;vertical-align: bottom;}
figure.small {grid-template-columns: repeat(2,auto); grid-column-gap: 5px;}
figure.vsmall {grid-template-rows: repeat(2,auto); grid-row-gap: 5px;}
figure:where(.small,.vsmall) figcaption {font-style: italic; font-size: 90%;}
figure:where(.small,.vsmall) :where(img,svg,canvas) {border:none}

/**** Planches ****/
figure.planche {display:grid; grid-auto-flow:dense; grid-template-columns: auto 1fr; grid-auto-columns: 1fr; gap: 20px; justify-items: left; align-items: start}
figure.planche > * {margin:0}
figure.planche.center {margin:0 auto;width:max-content;grid-template-columns: repeat(2,1fr); justify-content: center; }
figure.planche.rvrs {grid-template-columns: 1fr auto;}
figure.planche.rvrs > :where(img,svg,canvas) {order:100}
    
.gridcolor {display:inline-grid; border: 3px groove lightgrey; align-self:start; white-space: nowrap;background-color: rgba(255,255,255,0.75)}
    .gridcolor>div>* {padding:2px 3px}
    .gridcolor>div.head {border-bottom:inherit; text-align:center;font-size:110%; color:white;font-weight:bold; }
        .gridcolor>div.head>* {background:var(--bghead,#006FA4);box-shadow: 1px 1px 0 0 lightgrey,1px -1px 0 0 lightgrey,-1px 1px 0 0 lightgrey,-1px -1px 0 0 lightgrey;}
    .gridcolor>div.foot {background:#eaeaea; border-top:inherit; white-space: normal; }
    .gridcolor>div.body, .gridcolor>div.body>:first-child {background-color:aliceblue;border:none}
        .gridcolor>div.body>* {box-shadow: 1px 1px 0 0 grey,1px -1px 0 0 grey,-1px 1px 0 0 grey,-1px -1px 0 0 grey;}
    .gridcolor>div.body:nth-of-type(odd),.gridcolor>div.body:nth-of-type(odd)>:first-child {background-color: beige;}
        .gridcolor>div.body>* {pointer-events: all;background-repeat: no-repeat;background-position:2px top;background-color: var(--bg-color,var(--dft_bgcolor,rgba(0,0,0,0)));white-space:normal;vertical-align:top;}
        .gridcolor>div.body>*>* {pointer-events: none;}
        .gridcolor>div.body>*.btnb, .gridcolor>div.body>*.btnj {padding-left:20px; background-size: 17px;background-position: 2px center}
        .gridcolor>div.body>div.rgtTitle{--spX:var(--maxCol,2);padding: 2px 5px; font-style: italic; font-size: 110%;font-weight: bold;pointer-events: all;}
        .gridcolor>div.body>div.rgtDesc{--spX:var(--maxCol,2);width:calc(var(--autoSzX) * var(--spX));margin:2px auto; box-sizing:border-box;padding: 3px;background-color: #faf483;border: 1px solid navy;}
        .gridcolor>div.body.current>*:first-child {font-style: italic;text-decoration: dotted}
    .gridcolor.vertc>div.head {text-align: start;border-bottom:none;border-right:inherit}
    .gridcolor.vertc>div.body>:first-child {text-align:center;font-weight:bold;}

    .gridcolor[title]:before {content: attr(title);padding: 2px 5px; font-style: italic; font-size: 130%;font-weight: bold;}
    .gridcolor:not(.astuce):after{content:"Naviguer sur le tableau pour voir la tenue" ; margin: 2px 5px; padding-left: 20px ;border: 1px solid grey; border-radius: 5px;font-style: italic;
        background-color: cornsilk;background-repeat: no-repeat ; background-image: url(/page/gif/ptoeil.gif);background-position: left center;font-weight: bold;}

psp {display:inline-block; margin-right:2px;width:10px; height:100%; min-height:21px; box-sizing:border-box; background-clip:content-box;background-color: var(--bg-color,rgba(0,0,0,0));padding:1px 2px;vertical-align:middle ;}


.spinner { z-index: 10; position: absolute; top: 50%; left: 50%; height: 100px; width: 100px;
    /* Create a curve at the top */
    border: 4px solid #d1d5db;
    border-top-color: #3b82f6;
    border-radius: 50%;

    animation: spinner 800ms linear infinite;
}
.spinner.stop {display:none;animation-duration: unset;}
@keyframes spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@counter-style puceverte {
    system: cyclic;
    symbols: url('/page/gif/puce2.gif');
    suffix: "\0020\0020";
}
@counter-style fleche {
    system: cyclic;
    symbols: "\2BA9";
    suffix: "\0020\0020";
}
@counter-style flecheblanche {
    system: cyclic;
    symbols: "\21E8";
    suffix: "\0020\0020";
}
@counter-style etoile {
    system: cyclic;
    symbols: "\2726";
    suffix: "\0020\0020";
}
@counter-style carre {
    system: cyclic;
    symbols: "\2BC0";
    suffix: "\0020\0020";
}
@counter-style diamant {
    system: cyclic;
    symbols: "\2666";
    suffix: "\0020\0020";
}

/******pas utilisé ******
@counter-style unifdesc {
    system: cyclic;
    symbols: "\25CF";
    prefix: "\0020\0020";
    suffix: "\0020\0020";
}

my-dl2 {display:block; padding: 3px; padding-left: 15px; text-align: left; font-weight: normal; line-height: 1.4; --pucetxt:"\25C9"; --puceimg: url(/page/gif/puce2.gif); list-style: unifdesc inside var(--puceimg,none);}
my-dl2.text {background-color: white; border: solid 1px rgba(200,200,200,0.5);border-radius: 7px;}
my-dl2 > my-dt {display:block; padding:2px 5px;}
my-dl2 > my-dt >strong {padding-right:5px;text-decoration: underline;background-color:var(--fondText,transparent)}

my-dl2 > my-dd {display:list-item; margin: 0 0 3px 10px; padding-left: 13px;}
my-dl2 > my-ddn {display:block; margin: 0 0 3px 15px; padding-left: 10px;}
    my-dl2 > my-ddn::first-line {padding-left: 0;}
my-dl2 > my-dn {display:block; margin: 0 0 3px 15px; padding-left: 5px; font-style: italic;}
*/