
/* ==========================================================================
   Base styles: utilisés par l'éditeur
========================================================================== */

*,
*::before,
*::after {
    box-sizing: inherit;
}

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    color: #403F56;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    line-height: 1.2; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */

    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
    font-size: 62.5%; /* Ré-équilibrage du Rem face au Pixel pour des calculs simples / 1.0rem = 10px */
    font-weight: 300;
    font-family: 'Signika', sans-serif;
}

body {
    background: #FFF;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    /* Attention les fonctions JS scroll ne marcheront pas avec overflow-x: hidden; */
    /*overflow-x: hidden;*/
    font-size: 1.8rem;
    font-size: clamp(1.6rem, 1.1vw, 1.8rem);
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    color: #FFF;
    background: #403F56;
    text-shadow: none;
}

::selection {
    color: #FFF;
    background: #403F56;
    text-shadow: none;
}


/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Normalize
   ========================================================================== */



main {
    display: block;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1;
    margin: 0;
    outline: none;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}

.clearfix::after {
    clear: both;
}

/*
  styles photos  pour alignement (utilisés par éditeur)
*/
.align_right {
  margin: 0 0 10px 10px;
  float:right;
}
.align_left {
  margin: 10px 10px 0 0;
  float:left;
}

.alignleft {
	float: left;
	margin: 0 40px 20px 0;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignright {
	float: right;
	margin: 0 0 20px 40px;
}

@supports (object-fit: cover) {
    /* IF object-fit IS SUPPORTED */
    .object-fit-cover {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

.ratio-box {
	position: relative;
    display: block;
	width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.ratio-box > * {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    object-fit: cover;
    object-position: center;
}

.ratio-box > iframe,
.ratio-box > img {
    width: 100%;
    height: 100%;
}

.ratio-16-9 {
    padding-bottom: 56.25%;
}

.ratio-3-2 {
    padding-bottom: 66.66%
}

.ratio-4-3 {
    padding-bottom: 75%;
}

.container {
    width: 100%;
	max-width:1240px;
    padding: 0 20px;
	margin:auto;
}

.flex-col {
    display: flex;
    gap: 30px;
}
.flex-col > * {
    flex: 1;
}

@media (min-width: 1024px) {
    .flex-col iframe {
        height: 100%;
    }
}

@media (max-width: 1025px) {
	/* M: portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */
    .flex-col {
        flex-direction: column;
    }
    .flex-col > * {
        flex: auto
    }
    .flex-col iframe {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .home .flex-col {
        gap:0;
        margin:10px 0;
    }
    .faq_accueil {
        margin:0;
    }
}


h1 {
  font-size: 3.4rem;
  font-size: clamp(2.4rem, 2.0vw, 3.4rem);
}

/*
  styles pour les tableaux
  dispo dans tinymce > Format et plugin tinymce > Table notamment
*/

/* grille : bords sur toutes les cases */
table.table_grille {

}
table.table_grille td {
  border:1px solid #999;
}

/* listing : bords bas */ 
table.table_listing {
  
}
table.table_listing td {
  border-bottom:1px solid #999;
}

/** divs plugins **/
div.divplugin {
  font-size: 13px;
  line-height: 16px;
  height: 16px;
  display:block;
  color:#000;
  text-decoration: none;
  font-weight: bold;
  border: 1px dotted #a7a7a7;
  background-color: transparent;
  background: url(../web/images/spacer.gif);
}

.backtop {
  float:left;
  width:100%;
  text-align:right;
}
