@font-face {
    font-family: 'bradford_llbold';
    src: url('../fonts/bradfordll-bold-webfont.woff2') format('woff2'),
        url('../fonts/bradfordll-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'bradford_llitalic';
    src: url('../fonts/bradfordll-italic-webfont.woff2') format('woff2'),
        url('../fonts/bradfordll-italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'bradford_lllight';
    src: url('../fonts/bradfordll-light-webfont.woff2') format('woff2'),
        url('../fonts/bradfordll-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'bradford_lllight_italic';
    src: url('../fonts/bradfordll-lightitalic-webfont.woff2') format('woff2'),
        url('../fonts/bradfordll-lightitalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'bradford_llregular';
    src: url('../fonts/bradfordll-regular-webfont.woff2') format('woff2'),
        url('../fonts/bradfordll-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}


:root {
    --width: 2.5rem;
    --cols: 3;
    --gutter: 1px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: Helvetica;
    background: #c0c0c0;
    display: flex;
    padding: var(--gutter);
    margin: 0
}

section {
    height: 100%;
    background-image: linear-gradient(to right, #e4e4e4, #4a4a4a, #e4e4e4);
    overflow: hidden;
    width: var(--width);
    margin: 0 var(--gutter) 0 0;
    transition: width .25s ease;
    position: relative;
}

section:last-of-type {
    margin: 0;
}

section>div {
    /* padding: 0 var(--width); */
    position: relative;
    transition: background-color .25s ease;
    background-image: linear-gradient(to right, #e4e4e4, #4a4a4a, #e4e4e4);
    border-radius: 1vw;
    height: 100%;
    width: calc(100vw - 17.5rem - 8px);
    /* display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto; */
}

section>div>* {
    grid-column: 1 / -1;
}

header {
    position: relative;
    transform-origin: top right;
    height: var(--width);
    padding-right: var(--width);
    overflow: hidden;
    transform: translate(-100%, 0) rotate(-90deg);
    white-space: nowrap;
    margin: 0;
    width: 100vh;
    text-align: right;
    cursor: col-resize;
}

/* texte dans les onglets fermés */
header h1 {
    font-family: 'bradford_lllight_italic';
    display: inline;
    font-weight: normal;
    font-size: 1.5em;
    line-height: var(--width);
    color: #c0c0c0;
    text-transform: lowercase;
}

header h1:hover {
    color: #4a4a4a;
}


/* active section  */
.visible {
    width: calc(100vw - 17.5rem - 8px);
}

/* Ces lignes de code définissent les styles pour tous les éléments div
qui sont des enfants directs d'un élément ayant la classe .visible. */
.visible>div {
    /* définit les marges intérieures de l'élément div. 
    La valeur 0 est pour la marge supérieure et inférieure, 
    et la variable --width est utilisée pour la marge gauche et droite. 
    Cette variable doit être définie ailleurs dans le code CSS. */
    padding: 0 var(--width);
    /* définit la largeur de l'élément div en utilisant une formule de calcul.
    Dans ce cas, la largeur est égale à la largeur de l'affichage (100vw), 
    moins 17.5 rem (une unité de mesure relative à la taille de la police), 
    moins 8 pixels (pour tenir compte de la marge intérieure). */
    width: calc(100vw - 17.5rem - 8px);
    background-image: linear-gradient(to bottom, #e4e4e4, #686868, #e4e4e4);
    height: 100%;
    /* définit le comportement de débordement vertical de l'élément div 
    lorsqu'il y a trop de contenu pour tenir à l'intérieur. 
    Cela permet d'ajouter une barre de défilement verticale à l'élément div. */
    overflow-y: auto;
    overflow-x: hidden;
    /* une propriété spécifique à Webkit (moteur de rendu de certains navigateurs web), 
    qui améliore les performances de défilement lorsqu'un utilisateur 
    fait défiler du contenu sur un appareil tactile. */
    -webkit-overflow-scrolling: touch;
}

.section-container::-webkit-scrollbar {
    display: none;
}

#home>div {
    overflow-y: hidden;
}

.visible header {
    margin-left: calc(var(--width) * (-1));
    background-image: linear-gradient(to left, #373737, #adadad, #424242);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 9999;
    position: sticky;
    top: 0;

}

.soustitreTexte {
    font-family: 'bradford_llitalic';
    font-size: 2em;
    padding-left: 10%;
    margin-left: 10%;
    text-indent: -10%;
    margin-top: 3%;
    margin-bottom: 0;
    color: #adadad;
}

.paragraphTexte {
    font-family: 'bradford_llregular';
    font-size: 2em;
    margin-left: 9%;
    text-indent: -9%;
    margin-bottom: 0;
}

.paragraphTexte+.paragraphTexte {
    margin-top: 0;
}

.paragraphCitationCentre {
    font-family: 'bradford_llitalic';
    font-size: 2em;
    margin-left: 10%;
    text-indent: -10%;
    margin-top: 0%;
}

.paragraphCitationNumberListe {
    font-family: 'bradford_llitalic';
    font-size: 2em;
    margin-left: 10%;
    margin-top: 3%;
}

.paragraphTexteFin {
    font-family: 'bradford_llregular';
    font-size: 2em;
    /* margin-left: 10%; */
    /* text-indent: 0%;
    margin-top: 0;
    margin-bottom: 5%; */
    text-indent: 0;
    margin: 0;
    padding: 0;
    padding-left: 5%;
    padding-bottom: 5%;
}

.paragraphCitationFin {
    font-family: 'bradford_llitalic';
    font-size: 2em;
    /* margin-left: 10%; */
    text-indent: 0;
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
    text-indent: -1.25em;
    padding-left: 1.25em;
}

.website::before {
    content: "→ ";
    display: inline-block;
    width: 1.25em;
    text-indent: 0;
}

.container-svg {
    width: 130%;
    height: auto;
    top: 15%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.zone-delemont {
    stroke: rgb(255, 255, 255);
    fill: transparent;
}

.zone-franches {
    stroke: rgb(255, 255, 255);
    fill: transparent;
}

.zone-ajoie {
    stroke: rgb(255, 255, 255);
    fill: transparent;
}

.zone-ajoie:hover {
    fill: #adadad;
    transition: fill ease-in-out 0.2s;
}

.zone-ajoie:hover path {
    fill: #adadad;
    transition: fill ease-in-out 0.2s;
}

.zone-delemont:hover {
    fill: #adadad;
    transition: fill ease-in-out 0.2s;
}

.zone-delemont:hover path {
    fill: #adadad;
    transition: fill ease-in-out 0.2s;
}

.zone-franches:hover {
    fill: #adadad;
    transition: fill ease-in-out 0.2s;
}

.zone-franches:hover path {
    fill: #adadad;
    transition: fill ease-in-out 0.2s;
}

.grille {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;

    display: flex;
    flex-wrap: wrap;
}

.case {
    background-color: transparent;
    /* border-radius: 50%; */
    height: calc(100%/2);
    width: calc(100%/2);
}


/* .grille-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.grille-image:hover {
    opacity: 1;
    transition: background-color 0s ease-in-out 0s;
} */


.grille-economie {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;

    display: flex;
    flex-wrap: wrap;
}

.case-economie {
    background-color: transparent;
    /* border-radius: 50%; */
    height: calc(100%/3);
    width: calc(100%/2);
}

/* .grille-image-economie {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.grille-image-economie:hover {
    opacity: 1;
    transition: background-color 0s ease-in-out 0s;
} */


.grilleVache {
    width: 100%;
    height: 100%;
    position: absolute;
    margin-left: 0%;
    z-index: 1;

    display: flex;
    flex-wrap: wrap;
}

.case-vache {
    background-color: transparent;
    /* border-radius: 50%; */
    height: calc(100%/5);
    width: calc(100%/5);
}

.grille-image-vache {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.grille-image-vache:hover {
    opacity: 1;
    transition: background-color 0s ease-in-out 0s;
}


.img-archive {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 10%;
    /* aucune marge autour de l'image */
    padding: 0;
    /* aucun padding autour de l'image */
    overflow: hidden;
    /* cache tout ce qui dépasse de la zone définie par la largeur et la hauteur */
}

.img-archive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* redimensionne l'image pour qu'elle remplisse complètement son conteneur */
}

/* #gif-background{
    background-image: url("../images/gif/delemont.gif") !important;
} */


.ajoie-background {
    background-image: url("../images/gif/ajoie.gif") !important;
}


.delemont-background {
    background-image: url("../images/gif/delemont.gif") !important;

}

.franches-background {
    background-image: url("../images/gif/franches.gif") !important;

}


.section-container {
    overflow: scroll;
    width: 100%;
    height: 95%;
    margin-left: var(--width);
    position: relative;
    box-sizing: border-box;
    width: 90%;
}



@media (max-width:1111px) {
    /* .visible h1{
        font-size: calc(7vw + 1.5rem);
    } */
}

@media (max-width:850px) {
    :root {
        --width: 1.5rem;
    }

    html,
    body {
        height: auto;
        font-size: .85em
    }

    body {
        flex-direction: column;
        overflow: hidden;
    }

    section,
    .visible,
    section>div,
    .visible>div,
    header {
        width: 100%;
    }


    section {
        margin: 0 0 var(--gutter) 0
    }

    .visible,
    .visible>div {
        height: calc(100vh - 17.5rem - 8px);
        /* height: 100%; */
        /* height: auto; */
        overflow: scroll;
    }

    .visible {
        flex: 1
    }

    header {
        transform: none;
        text-align: left;
        padding: 0 var(--width);
        height: 1.7rem;
        line-height: 2.5rem
    }



    .visible h1 {
        letter-spacing: 0;
        margin-bottom: .5em
    }

    article {
        font-size: 1.25rem;
    }

    .case {
        background-color: transparent;
        /* border-radius: 50%; */
        height: calc(100%/1);
        width: calc(100%/1);
    }

    .section-container {
        height: 0;
        overflow: scroll;
        /* display: none; */
    }

    .visible .section-container {
        height: 100%;
        display: block;
    }

    .grille-image {
        opacity: 1;
    }

    .grille-economie {
        opacity: 1;
    }

    .case {
        background-color: transparent;
        height: calc(100%/1);
        width: calc(100%/1); 
        width: 100%;
        height: 50%;
        left: 0;
        top: 0;
        z-index: 1;   
    }

    .case-economie {
        background-color: transparent;
        height: calc(100%/1);
        width: calc(100%/1); 
        width: 100%;
        height: 50%;
        left: 0;
        top: 0;
        z-index: 1;   
    }
    }

    #gif-background {
        overflow: hidden;
    }

    header h1 {
        font-family: 'bradford_lllight_italic';
        display: inline;
        font-weight: normal;
        font-size: 1.75em;
        line-height: var(--width);
        color: #c0c0c0;
        text-transform: lowercase;
    }

    .soustitreTexte {
        font-family: 'bradford_llitalic';
        font-size: 1.75em;
        margin-left: 0%;
        text-indent: -11%;
        margin-top: 3%;
        margin-bottom: 0;
        color: #adadad;
    }
    
    .paragraphTexte {
        font-family: 'bradford_llregular';
        font-size: 1.75em;
        /* margin-left: 2%; */
        text-indent: -21%;
        margin-bottom: 0;
    }
    
    .paragraphTexte+.paragraphTexte {
        margin-top: 0;
    }
    
    .paragraphCitationCentre {
        font-family: 'bradford_llitalic';
        font-size: 1.75em;
        /* margin-left: 2%; */
        text-indent: -21%;
        margin-top: 0%;
    }
    
    .paragraphCitationNumberListe {
        font-family: 'bradford_llitalic';
        font-size: 1.75em;
        /* margin-left: 2%; */
        margin-top: 3%;
    }
    
    .paragraphTexteFin {
        font-family: 'bradford_llregular';
        font-size: 1.75em;
    }
    
    .paragraphCitationFin {
        font-family: 'bradford_llitalic';
        font-size: 1.75em;
    }
