/*
Theme Name: Abbaye
Theme URI: https://htc.chemin-neuf.fr
Author: Communauté du Chemin Neuf
Author URI: https://wwww.chemin-neuf.fr
Description: The WordPress theme for the CCN abbaye website
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccn
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
Version: 1.4.9
*/


:root {

    --black: #000000;
    --dark-grey:#2e2c2a;
    --light-grey:#505761;
    --beige:#EEEADD;
    --white: #FFFFFF;

    --light-orange: #F3EEEA;
    --dark-orange: #C1573C;
    --green-valid: hsl(85 100% 58% / 1);
    --orange-warning: orange;
    --red-error: red;

    --main-menu-height: 5rem;

    --shadow1: 0 0 20px rgba(0,0,0,.2);
    --text-shadow1: 1px 1px 2px #00000047;

    --don-background: grey;

    font-size: 16px;
    scroll-behavior: smooth;
}

.has-text-color.has-primary-color {
    color: var(--primary-color);
}
.has-text-color.has-black-color {
    color: var(--black);
}
.has-text-color.has-dark-grey-color {
    color: var(--dark-grey);
}
.has-text-color.has-light-grey-color {
    color: var(--light-grey);
}
.has-text-color.has-beige-color {
    color: var(--beige);
}
.has-text-color.has-white-color {
    color: var(--white);
}

.has-background.has-primary-background-color {
    background-color: var(--primary-color);
}
.has-background.has-black-background-color {
    background-color: var(--black);
}
.has-background.has-dark-grey-background-color {
    background-color: var(--dark-grey);
}
.has-background.has-light-grey-background-color {
    background-color: var(--light-grey);
}
.has-background.has-beige-background-color {
    background-color: var(--beige);
}
.has-background.has-white-background-color {
    background-color: var(--white);
}


html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    font-family: 'Roboto Slab', serif;
    background: white;
}
body {overflow: hidden;}

* {
    box-sizing: border-box;
}

h1 {
    font-family: 'David Libre';
    letter-spacing: 1rem;
    font-size: 5rem;
    text-align: center;
    color: white;
}

h2 {
    position: relative;
    color:rgb(102, 102, 102);
    font-size: 3rem;
    line-height: 3.8rem;
    margin: 3rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    /* max-width: 100vw; */
    /* z-index: -1; */
}

h3 {
    font-size: 2rem;
    color: #666666;
    margin: 1rem 0rem;
}

h4 {
    font-size: 1.3rem;
    color: #666666;
    margin-left: 1rem;
    margin-right: 1rem;
}

p {
    max-width: 21cm;
    padding: 0 1rem;
    text-align: justify;
    color: #444;
}

p strong {
    color: black;
}

#page.fullwidth p {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

h1 a, h2 a, h3 a {
    text-decoration: none;
    color: inherit;
}

ul {
    max-width: 1000px;
    margin: auto;
    margin-top: 1rem;
}

input.error {
    border: 1px solid red;
}

.success-msg {
    background: hsl(122 100% 82% / 1);
    padding: 2rem;
    border: 3px solid green;
    color: hsl(39 100% 18% / 1);
}
.warning-msg {
    background: hsl(39 100% 76% / 1);
    padding: 2rem;
    border: 3px solid orange;
    color: hsl(39 100% 18% / 1);
}


.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3, .wp-block-cover h4 {
    text-shadow: var(--text-shadow1);
}

.wp-block-gallery.aligncenter {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wp-block-image img {
    object-fit: cover;
    width: 100%;
    max-width: 100vw;
    height: 100%;
}

div.header {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: var(--text-shadow1);
    margin-bottom: -1rem; 
    /* pour bordure courbe aux bandeaux de haut de page
    border-radius: 0 0 90% 0 /15%;
    */
    margin-bottom: 0rem;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    div.header {
        height: 40vh;
    }
}

div.header h1 {
    margin-top: 7rem;
    z-index: 1;
}

h2.subtitle {
    color: white;
    font-size: 2rem;
    text-align: center;
}

#page.restrictedwidth {
    max-width: 800px;
    margin: auto;
}
/*
div#page {
    display : flex;
    flex-direction: column;
}
*/
#page > h2:first-child, 
#page > h3:first-child, 
#page > h4:first-child {
    margin-top: 3rem;
}

#page  .wp-block-button:last-child {
    margin-bottom: 2rem;
}

#container > #page > p:last-child {
    margin-bottom: 2rem;
}

.overlap-header {
    background: var(--primary-color); /* #00558a; */
    color: white;
    text-align: center;
    padding: 1rem;
    height: 23.9rem;
    margin-bottom: -19.2rem;
}

.show-mobile {display: none;}
@media screen and (max-width: 1024px) {.show-mobile {display: flex;}}

img {object-fit: contain; height: auto;}
img.contain {object-fit: contain;}
img.cover {object-fit: cover;}
.wp-block-column {display: flex; flex-direction: column; align-items: center;}


/* Logo Cana spécifique */
#menu-item-874 > a:nth-child(1) > img {
    height: 4.4rem;
    margin-bottom: 0.5rem;
}

/* page inscriptions spécifique */
.header.inscription-header {
    position: fixed;
    top: 0;
    left: 0;
    height: 70vh;
    width: 100%;
    z-index: 0;
}
.header.inscription-header h1 {
    margin-bottom: 0;
    margin-top: 12rem;
    opacity: 1;
}
.header.inscription-header h3 {
    color: var(--light-orange);
}

.inscription-container {
    /* padding: 3rem; */
    background: white;
    position: relative;
    margin-top: 58vh !important;
    z-index: 1000000000;
    border-radius: 6px;
    box-shadow: 0 0 33px -2px #2b2b2b70;
}

.inscription-container > .frm_forms {
    background-color: white;
    position: relative;
    z-index: 1;
    padding: 3rem;
}


figure.map a img {
    width: 100%;
}

.title-video {
    /* pour bordure courbe à la video d'accueil
    border-radius: 0 0 90% 0 /15%;
    */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    -o-object-fit: cover;
    object-fit: cover;
}


/* pour bordure courbe aux bandeaux de section
.wp-block-cover {
    border-radius: 0 0 90% 0 /15%;
}
*/

#page > .wp-block-buttons.alignright {
    margin-right: 3rem;
}

.wp-block-buttons.alignright {
    text-align: right;
}

.wp-block-buttons.alignleft {
    text-align: left;
}

.wp-block-cover, .wp-block-cover-image {
    margin: 20px 0px;
}

.wp-block-media-text > figure.wp-block-media-text__media {
    display: flex;
}

.wp-block-button__link {
    background: var(--primary-color);
}