/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #181620;
  font-size: 1em;
  line-height: 1.4;
  background-color: var(--cuivre);
}

/*
 * 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 {
  background: var(--cuivre);
  text-shadow: none;
}

::selection {
  background: var(--cuivre);
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/******************************************************************************
******                             VARIABLES                              ******
*******************************************************************************/
:root {
  --cuivre: #D97355;
  --noir: #181620;
  --bleu: #0096FF;
}

[data-theme='darkmode'] {
  --cuivre: #181620;
  --noir: #D97355;
  --bleu: #0047AB;
}

[data-theme='lightmode'] {
  --cuivre: #D97355;
  --noir: #181620;
  --bleu: #0096FF;
}

/* modes*/
.darkmode {
  margin-bottom: 7%;
  margin-top: 6%;
  text-align: center;
}

.theme-switch-dark {
  color: var(--cuivre);
  font-size: 1.2em;
  display: block;
}

#darktoggle {
  font-size: 0.95em;
  cursor: pointer;
  pointer-events: auto;
  background-color: var(--cuivre);
  border-radius: 0.75em;
  box-shadow: 0.125em 0.125em 0 0.125em rgba(0, 0, 0, 0.3) inset;
  color: #FFD166;
  display: inline-flex;
  align-items: center;
  margin: auto;
  padding: 0.15em;
  width: 3em;
  height: 1.5em;
  transition: background-color 0.1s 0.3s ease-out, box-shadow 0.1s 0.3s ease-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: absolute;
  top: 3%;
  left: 5%;
}

#darktoggle:before, #darktoggle:after {
  content: "";
  display: block;
}

#darktoggle:before {
  background-color: #d7d7d7;
  border-radius: 50%;
  width: 1.2em;
  height: 1.2em;
  transition: background-color 0.1s 0.3s ease-out, transform 0.3s ease-out;
  z-index: 1;
}

#darktoggle:after {
  background:
    linear-gradient(transparent 50%, rgba(0, 0, 0, 0.15) 0) 0 50% / 50% 100%,
    repeating-linear-gradient(90deg, #bbb 0, #bbb, #bbb 20%, #999 20%, #999 40%) 0 50% / 50% 100%,
    radial-gradient(circle at 50% 50%, #888 25%, transparent 26%);
  background-repeat: no-repeat;
  border: 0.25em solid transparent;
  border-left: 0.4em solid #d8d8d8;
  border-right: 0 solid transparent;
  transition: border-left-color 0.1s 0.3s ease-out, transform 0.3s ease-out;
  transform: translateX(-22.5%);
  transform-origin: 25% 50%;
  width: 1.2em;
  height: 1em;
}

/* Checked */
#darktoggle:checked {
  background-color: #181620;
  box-shadow: 0.125em 0.125em 0 0.125em rgba(0, 0, 0, 0.1) inset;
}

#darktoggle:checked:before {
  background-color: currentColor;
  transform: translateX(125%)
}

#darktoggle:checked:after {
  border-left-color: currentColor;
  transform: translateX(-2.5%) rotateY(180deg);
}

/* Other States */
#darktoggle:focus {
  /* Usually an anti-A11Y practice but set to remove an annoyance just for this demo */
  outline: 0;
}

/*toggle mondrian */
/* toggle dark mode*/
#darktoggle, #darktoggle:before, #darktoggle:after {
  box-sizing: border-box;
  margin: 0;
  padding: 2px;
}

/*header */
img{
  width: 100%;
  height: auto;
}


.homepage-logo{
  background: var(--cuivre);
  padding: 0 4em 0 4em;
  margin-top: -2em;
  width: auto;
  height: 10%;
}

aside{
  height: 100px;
  width: auto;
}



#homepage-menu{
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  background: #181620;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.homepage-menu--ul{
  text-decoration: none;
  background: #181620;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
  padding-left: 0;
}

.homepage-menu--ul li a{
  color: #D97355;
  padding-top: 0;
  font-size: 1em;
  font-weight: unset;
  font-family: "Roboto Light", sans-serif;
  background-color: #181620;
  box-sizing: border-box;
  display: inline-block;
  margin: auto;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  text-transform: uppercase;
  outline: none;
  text-decoration: none;
}

.homepage-menu-list{

}


/* The sticky class is added to the menu with JS when it reaches its scroll position */
.sticky {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1;
}

/* Add some top padding to the page content to prevent sudden quick movement (as the menu gets a new position at the top of the page (position:fixed and top:0) */
.sticky+.content {
  padding-bottom: 3%;
}



/*/////////////////////////
/     Modal Histoire      /
/////////////////////////*/


#histoire {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  width: 100%;
  height: auto;
  background: var(--noir);
}

#homepage-histoire {
  color: #D97355;
  padding-top: 0;
  font-size: 1em;
  font-weight: unset;
  font-family: "Roboto Light", sans-serif;
  background-color: #181620;
  box-sizing: border-box;
  display: inline-block;
  margin: auto;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  text-transform: uppercase;
  outline: none;
  border-left: #D97355 1px solid;
  padding-left: 1.7em;
}

.modal_histoire {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 10%;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

.histoire--close_button {
  font-size: 2em;
  text-decoration: none;
  color: var(--cuivre);
  display: flex;
  justify-content: flex-end;
  margin: 0.3em 1em 1em 1em;
  cursor: pointer;
}

#histoire--close_button{
  max-height: 0;
}

.modal_histoire p {
  margin: 1em 1.5em 4em 1.5em;
  padding-top: 135em;
  padding-bottom: 10em;
  color: var(--cuivre);
  font-family: "Roboto Light", sans-serif;
  font-size: 1.3em;
  line-height: 2.5em;
}



/*/////////////////////////
/     Modal Conseil       /
/////////////////////////*/


#conseil {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  min-width: 100%;
  min-height: 100%;
  background: var(--noir);

}

#homepage-conseil {
  color: #D97355;
  padding-top: 0;
  font-size: 1em;
  font-weight: bold;
  font-family: "Roboto Light", sans-serif;
  background-color: #181620;
  box-sizing: border-box;
  display: inline-block;
  margin: auto;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  text-transform: uppercase;
  outline: none;
  text-decoration: none;
  border-right: #D97355 1px solid;
  padding-right: 1.7em;
}

.modal_conseil {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20%;
  width: 100%;
}


.conseil--close_button {
  font-size: 3em;
  text-decoration: none;
  color: var(--cuivre);
  display: flex;
  justify-content: flex-end;
  margin-right: 15%;
  margin-top: 7%;
  margin-bottom: 1%;
  cursor: pointer;
}

.modal_conseil h1{
  color: var(--cuivre);
  font-family: "Roboto Light", sans-serif;
  font-size: 1.5em;
  text-transform: uppercase;
  margin: 2em 0.5em 1em 0.5em;
  text-align: center;
  vertical-align: middle;

}

.modal_conseil p{
  color: var(--cuivre);
  font-family: "Roboto Light", sans-serif;
  font-size: 1em;
  text-align: center;
  vertical-align: middle;
}

.modal_conseil button{
  color: var(--noir);
  background-color: var(--cuivre);
  text-decoration: none;
  outline: none;
  font-size: 16px;
  padding: 12px 15px;
  cursor: pointer;
  border-radius: 1px;
  border: solid 2px var(--cuivre);
  text-align: center;
  vertical-align: middle;
  margin-bottom: 1em;
  margin-top: 5em;
}

.contact-a-calendly{
  color: var(--noir);
  text-decoration: none;
  outline: none;
  text-transform: uppercase;
  font-family: "Roboto Light", sans-serif;
  font-size: 1em;
  margin-bottom: 1em;
  text-align: center;
  vertical-align: middle;
}

.contact-a{
  color: var(--bleu);
  text-align: center;
  vertical-align: middle;
}


.homepage-galerie-last img{
background: transparent;
  color: var(--noir);
}




/* Container needed to position the button. Adjust the width as needed */
.homepage-galerie-last {
  position: relative;
  width: 100%;
}

/* Make the image responsive */
.homepage-galerie-last img {
  width: 100%;
  height: auto;
}

/* Style the button and place it in the middle of the container/image */
.homepage-galerie-last button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  background-color: var(--noir);
  font-size: 16px;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 1px;
  border: solid 2px var(--cuivre);
}

.homepage-galerie-last .button:hover {
  background-color: var(--cuivre);
  color: #181620;
}

.homepage-galerie-last--a{
  color: var(--cuivre);
  padding-top: 0;
  font-size: 1em;
  font-weight: unset;
  font-family: "Roboto Light", sans-serif;
  background-color: var(--noir);
  box-sizing: border-box;
  display: inline-block;
  margin: auto;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  text-transform: uppercase;
  outline: none;
  text-decoration: none;
}


footer{
  background: var(--cuivre);
}

.footer_p{
  background: var(--cuivre);
  color: var(--noir);
  margin:0;
  padding-top: 2em;
  margin-bottom: 2em;
  text-align: center;
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}



