/* GLOBAL */
@font-face {
    font-display: swap;
    font-family: 'Gilligans Island';
    font-style: normal;
    font-weight: normal;
    src: local(Gilligans Island), url('/assets/fonts/GILLIGAN.TTF') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Ravie';
    font-style: normal;
    font-weight: normal;
    src: local(Ravie), url('/assets/fonts/RAVIE.TTF') format('truetype');
}

html {
    font-size: 15px;
    color: #000;
    font-family: 'Open Sans', sans-serif;
}

body {
    margin: 0;
}

a {
    color: inherit;
}

.font-bold {
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.font-little {
    font-size: 12px;
}

.font-italic {
    font-style: italic;
}

.text-underline {
    text-decoration: underline;
}

/* PAGE CONTENT */
.text-content {
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    padding: 0 15px;
    border-left: #ffd966 dashed 1px;
    border-right: #ffd966 dashed 1px;
}

.text-block {
    display: table;
    margin: 30px 0;
    width: 100%;
}

.text-block:nth-child(2n+0) {
    direction: rtl;
}

.block-title {
    display: table-cell;
    width: 250px;
    vertical-align: middle;
}

.block-text {
    direction: initial;
    display: table-cell;
    background-color: #ededed;
    padding: 0 10px;
    border-radius: 15px;
    vertical-align: middle;
    counter-reset: heading;
}

.block-text img {
    padding: 15px 0;
    max-width: 100%;
}

.block-text .image-right {
    float: right;
    max-width: 230px;
    margin: 0 5px;
}

.block-text h3 {
    color: #e3001b;
    border: none;
    margin: auto;
}

img.image-album {
    max-width: 100%;
    max-width: -moz-available;
    max-width: -webkit-fill-available;
    max-width: fill-available;
    max-height: 155px;
    margin: 10px 5px;
    border: solid 8px #fff;
    padding: 0;
    cursor: pointer;
}

.image-open:hover {
    transition: transform .2s;
    transform: scale(1.03);
}

img.image-miniature {
    width: fit-content;
    height: fit-content;
    padding: 0;
}

.vertical-align-top {
    vertical-align: top;
}

.embed-pdf iframe {
    width: 100%;
    height: 500px;
}


/* HEADINGS */
.heading-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 60px;
    background-image: url('/assets/img/fremecourt.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    height: 250px;
    background-position: center;
    border-bottom: #009de0 solid 15px;
}

h1 {
    color: #fff;
    margin: auto 70px;
    font-size: 60px;
    font-family: 'Gilligans Island', 'Open Sans', sans-serif;
    letter-spacing: 5px;
    text-transform: uppercase;
}

h2,
h3 {
    font-family: 'Abril Fatface', 'Open Sans', sans-serif;
    font-size: x-large;
    font-weight: unset;
    letter-spacing: 2px;
}

h2 {
    font-family: 'Ravie', 'Open Sans', sans-serif;
    color: #fff;
    text-shadow: 1px 0 0 #e3001b, 1px 1px 0 #e3001b, 0 1px 0 #e3001b, -1px 1px 0 #e3001b, -1px 0 0 #e3001b, -1px -1px 0 #e3001b, 0 -1px 0 #e3001b, 1px -1px 0 #e3001b;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    font-style: italic;
    position: relative;
    height: 200px;
    display: inherit;
    vertical-align: middle;
    padding-right: 17px;
    padding-left: 17px;
    word-break: break-word;
    width: inherit;
    font-size: 21px;
}

h2::before {
    border-radius: 100%;
    background-color: rgba(255,217,106,0.87);
    box-shadow: 0 0 10px rgba(255, 217, 106, 0.87);
    content: ' ';
    height: 230px;
    left: 4%;
    position: absolute;
    top: -15px;
    width: 230px;
    z-index: -1;
}

h3 {
    border-bottom: #ffd966 solid 2px;
}

.heading-counter::before {
    content: counter(heading)') ';
    counter-increment: heading;
}


/* LISTS */
ul {
    padding-left: 12px;
}

ul li {
    list-style-type: '– ';
}


/* ACCUEIL */
.widgets {
    padding: 12px;
    width: 300px;
    margin: auto;
    border-radius: 15px;
    border: #e3001b dashed 1px;
}

#widgetMeteoFrance {
    width: 300px;
    height: 150px;
    border: none;
}



/* ENTREPRISES-LOCALES */
.integration {
    padding: 10px;
}

.integration iframe {
    border: none;
}

.flex-elements {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.flex-elements > div {
    width: 30%;
    border-top: #e3001b dashed 1px;
    border-bottom: #e3001b dashed 1px;
    margin: 10px;
}

.inline-flex-elements {
    display: inline-flex;
    flex-direction: column;
    margin: 7px;
    align-items: center;
}


/* NUMÉROS-UTILES */
div.full-width{
    width: 100%;
}


/* ARCHIVES */
.search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    flex-wrap: wrap
}

.search-form h3 {
    margin: initial;
}

.search-form input {
    margin: 9px;
}



/* RESPONSIVE */
@media (max-width: 1440px) {
    .text-content {
        width: 75%;
    }
}

@media (max-width: 1450px) {
    .flex-elements > div {
        width: 45%;
    }
}

@media (max-width: 1120px) {
    .flex-elements > div {
        width: 44%;
    }

    .embed-pdf iframe {
        width: 100%;
        height: 350px;
    }
}

@media (max-width: 1024px) {
    img.image-album {
        max-height: 140px;
    }
}

@media (max-width: 805px) {
    .flex-elements > div {
        width: auto;
    }

    .text-content {
        width: 85%;
    }
}

@media (max-width: 670px) {
    h1 {
        margin: auto 5px;
        font-size: 50px;
    }
}

@media (max-width: 620px) {
    .text-block {
        display: block;
    }

    .block-text {
        display: flow-root;
        width: initial;
        margin-top: inherit;
    }
}

@media (max-width: 537px) {
    .heading-title {
        flex-direction: column;
    }

    h1 {
        margin: 10px 0;
    }
}

@media (max-width: 425px) {
    .block-title {
        width: 162px;
    }

    h2 {
        height: 130px;
        font-size: 17px;
    }

    h2::before {
        height: 150px;
        width: 150px;
        top: -10px;
    }

    .embed-pdf iframe {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 350px) {
    h1 {
        font-size: 45px;
    }
}

@media (max-width: 383px) {
    .widgets {
        width: 200px;
    }

    #widgetMeteoFrance {
        width: 200px;
        height: 318px;
    }
}
