/* ----- Général ----- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'bilbo';
    src: url('./squirrel/bilbo-regular.otf');
    src: url('./squirrel/bilbo-regular-webfont.woff2') format('woff2'),
    url('./squirrel/bilbo-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nymphette';
    src: url('./squirrel/nymphette.otf');
    src: url('./squirrel/nymphette-webfont.woff2') format('woff2'),
    url('./squirrel/nymphette-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.nymphette {
    font-family: 'nymphette';
    font-size: 4em;
}

/* titres */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1, .h1 { font-size: 3.00rem; }
h2, .h2 { font-size: 2.75rem; }
h3, .h3 { font-size: 2.50rem; }
h4, .h4 { font-size: 2.25rem; }
h5, .h5 { font-size: 2.00rem; }
h6, .h6 { font-size: 1.75rem; }

h1,
h2,
h3,
h4,
h5,
h6,
a {
    font-family: 'bilbo', 'cambria', serif;
}

p,
label,
ul li {
    font-size: 1.5rem;
    line-height: 1.5;
}

/* liens */
* a,
nav a,
div a,
article a {
    text-decoration: none;
    list-style: none;
    color: #000;
    font-size: inherit;
}

nav a,
div a,
article a {
    font-size: 2rem;
}
a:hover {
    font-variant: small-caps;
    font-weight: bolder;
}

/* coloration et design */

body {
    min-width: 480px;
    background-color: #675d4f;
    background: radial-gradient(#e7e3de, #c3b198, #675d4f);
    margin: 0;
}


article{
    background: #e7e3de;
    background-image: url("./img/boisblanc.jpg");
    background-size: 100%;
    margin: 1em 0;
    padding: 0 0 1.5rem 0 ;
    box-shadow: 0 0 10px #000;
    align-self: stretch;
}

.scrollable {
    overflow-y: scroll;
}

.page {
    background-color: #fff;
    padding: 2.5rem;
    text-align: justify;
    margin: 1rem;
}

.pageA {
    font-family: 'bilbo', 'georgia', 'arial', sans-serif;
    font-size: 1.5rem;

    background: none;
    border: none;
    border-top: solid 1px #000;
    border-bottom: solid 1px #000;
}

.pageA:hover {
    font-weight: normal;
    font-variant: none;
    background-color: rgba(0,0,0,0.2);
}


.GreenTitleDiv {
    border: double #000;
    padding: 1em;
    margin: 1em 0;
    background-color: rgba(0,150,0,0.2);
    align-self: center;
}

.RedTitleDiv {
    border: double #000;
    padding: 1em;
    margin: 1em 0;
    background-color: rgba(150,0,0,0.2);
    align-self: center;
}

.WhiteTitleDiv {
    border: double #000;
    padding: 1em;
    margin: 1em 0;
    background-color: rgba(255,255,255,0.2);
    align-self: center;
}

.noMargin {
    margin: 0 !important;
}

.borderRight {
    border-right: solid 1px #000;
}
.borderLeft {
    border-left: solid 1px #000;
}

header {
    background-color: #e7e3de;
    background-image: linear-gradient(135deg, #a62b00, #ffcf6a, #ffffff, #ddffeb, #b5ff40);
    background-image: url('./img/feuille.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;

    height: 21em;

    margin-bottom: 0.5em;
    padding: 0 0 5rem 5rem;
    color: #000;
}

#menu{
    background-color: #e7e3de;
    background-image: linear-gradient(#7d2000 0%, #e7e3de 5%, #e7e3de 50%, #e7e3de 95%, #7d2000 100%);
    background-image: url("./img/boisblanc.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    box-shadow: 0 0 5px #000;

    padding: 0.5em 0;

    overflow: hidden;
    z-index: 10000;
}


.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

#MsgBackToSchool {
    /* color: #000; */
    color: #fff;
    
    padding: 2rem;
    
    /*background-image: url("https://cdn.pixabay.com/photo/2016/02/26/11/18/school-1223873_960_720.jpg");*/
    /*background-image: url("https://cdn.pixabay.com/photo/2020/11/13/23/49/christmas-5740350_960_720.png");*/
    background-image: url("https://cdn.pixabay.com/photo/2024/09/09/05/59/ai-generated-9033871_960_720.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    box-shadow: 0 0 5px #000;
}
#MsgBackToSchool > * > a {
    color: #FFF !important;
}

/* pour que l'img s'adapte à la taille de l'ecran */

.img-fluid {
    max-width: 100%;
    height: auto;
}

.HoverBigger:hover {
    transform: scale(2);
    box-shadow: 0 0 10rem #000;
    z-index: 15000;
    position: relative;
}

/* définition du conteneur pour le placement des element ensuite */

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* possibilité de mettre en ligne les elements */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* décomposition en colonnes */

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg,
.col-lg-auto{
    position: relative;
    width: 100%;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.col-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.offset-1 {
    margin-left: 8.333333%;
}

.offset-2 {
    margin-left: 16.666667%;
}

.offset-3 {
    margin-left: 25%;
}

.offset-4 {
    margin-left: 33.333333%;
}

.offset-5 {
    margin-left: 41.666667%;
}

.offset-6 {
    margin-left: 50%;
}

.offset-7 {
    margin-left: 58.333333%;
}

.offset-8 {
    margin-left: 66.666667%;
}

.offset-9 {
    margin-left: 75%;
}

.offset-10 {
    margin-left: 83.333333%;
}

.offset-11 {
    margin-left: 91.666667%;
}


@media (min-width: 1200px) {

    body {
        background-image: url("./img/wood.png");
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: top;
        background-attachment: fixed;

    }

    /* colonnes */

    .col-lg {
        -ms-flex-preferred-size: 0;
        flex-basis: 0;
        -ms-flex-positive: 1;
        flex-grow: 1;
        max-width: 100%;
    }

    .col-lg-auto {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }

    .col-lg-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-lg-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-lg-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* espacement en nbre de colonne depuis le coté gauche */

    .offset-lg-0 {
        margin-left: 0;
    }

    .offset-lg-1 {
        margin-left: 8.333333%;
    }

    .offset-lg-2 {
        margin-left: 16.666667%;
    }

    .offset-lg-3 {
        margin-left: 25%;
    }

    .offset-lg-4 {
        margin-left: 33.333333%;
    }

    .offset-lg-5 {
        margin-left: 41.666667%;
    }

    .offset-lg-6 {
        margin-left: 50%;
    }

    .offset-lg-7 {
        margin-left: 58.333333%;
    }

    .offset-lg-8 {
        margin-left: 66.666667%;
    }

    .offset-lg-9 {
        margin-left: 75%;
    }

    .offset-lg-10 {
        margin-left: 83.333333%;
    }

    .offset-lg-11 {
        margin-left: 91.666667%;
    }


    /* apparition d'un element */

    .d-lg-none {
        display: none !important;
    }

    .d-lg-inline {
        display: inline !important;
    }

    .d-lg-inline-block {
        display: inline-block !important;
    }

    .d-lg-block {
        display: block !important;
    }
}

/* adaptation */

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

.align-content-start { align-content: flex-start !important; }
.align-content-end { align-content: flex-end !important; }
.align-content-center { align-content: center !important; }
.align-content-between { align-content: space-between !important; }
.align-content-around { align-content: space-around !important; }
.align-content-stretch { align-content: stretch !important; }

.align-self-auto { align-self: auto !important; }
.align-self-start { align-self: flex-start !important; }
.align-self-end { align-self: flex-end !important; }
.align-self-center { align-self: center !important; }
.align-self-baseline { align-self: baseline !important; }
.align-self-stretch { align-self: stretch !important; }


/* alignement du texte */

.text-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

.text-justify {
    text-align: justify !important;
}

.text-wrap {
    white-space: normal !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

/* integration de video */


.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-responsive-21by9::before {
    padding-top: 42.857143%;
}

.embed-responsive-16by9::before {
    padding-top: 56.25%;
}

.embed-responsive-4by3::before {
    padding-top: 75%;
}

.embed-responsive-1by1::before {
    padding-top: 100%;
}

/* affichage ou pas */

.d-none {
    display: none !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}


/************* TRYING STUFF ************/


.slider {
  /* width: 300px;*/
  text-align: center;
  overflow: hidden;
}

.slides {
  display: flex;
  
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.slides::-webkit-scrollbar-thumb {
  background: black;
  border-radius: 10px;
}
.slides::-webkit-scrollbar-track {
  background: transparent;
}
.slides > div {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 100% ;
  height: 750px;
  margin-right: 50px;
  border-radius: 10px;
  background: #eee;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.5s;
  position: relative;
  
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
}

.slider > img {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider > a {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  background: white;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0 0.5rem 0;
  position: relative;
}
.slider > a:active {
  top: 1px;
}
.slider > a:focus {
  background: #000;
}

/* Don't need button navigation */
@supports (scroll-snap-type) {
  .slider > a {
    display: none;
  }
}