@charset "UTF-8";
/*
Theme Name: Le Bateau Noir
Theme URI: https://www.lebateaunoir.com
Author: Léo NIVET
Author URI: https://www.leonivet.com
Description: Thème pour la compagnie Le Bateau Noir. Pour toute question, contactez-moi à l'adresse web@leonivet.com.
Requires at least: WordPress 6.0
Version: 1.0
*/

:root{
  --padding-body:10px 10px 10px 10px;
}

@media only screen and (min-width: 1000px) {
  :root {
    --padding-body:20px 40px 20px 40px;
  }
}

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

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body {
  margin:0;
  padding:var(--padding-body);
  font-family: var(--ff-1);
  font-size: var(--fs-body);
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
}

img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

a, a:hover, a:focus, a:visited {
  color: inherit;
}

a {
  text-decoration: none;
}

a:hover{
  color:var(--rouge);
}

strong{
  font-weight: bold;
}

.menu-ul, .menu-ul .sub-menu{
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  max-width: 1000px;
}

p:first-child {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

p:empty {
  display: none;
}

figure {
  margin: 0;
}

iframe {
  width: 100%;
  display: block;
}

iframe {
  width: 100% !important;
  height: 600px;
}

@media only screen and (max-width: 1100px) {
  iframe {
    height: 550px;
  }
}
@media only screen and (max-width: 1000px) {
  iframe {
    height: 500px;
  }
}
@media only screen and (max-width: 900px) {
  iframe {
    height: 450px;
  }
}
@media only screen and (max-width: 800px) {
  iframe {
    height: 400px;
  }
}
@media only screen and (max-width: 700px) {
  iframe {
    height: 350px;
  }
}
@media only screen and (max-width: 600px) {
  iframe {
    height: 300px;
  }
}
@media only screen and (max-width: 500px) {
  iframe {
    height: 250px;
  }
}
@media only screen and (max-width: 375px) {
  iframe {
    height: 200px;
  }
}
iframe {
  width: 100%;
  display: block;
}

.wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* pour un ratio 3:2 */
  overflow: hidden;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

blockquote {
  margin: 0;
  width: fit-content;
}

blockquote + figcaption {
  text-align: right;
  margin-top: 0.5em;
}

button,
input[type="submit"]
{
  background-color:transparent;
  border: none;
  cursor: pointer;
  box-shadow: none;
  color:inherit;
}

.bold{
  font-weight: bold;
}

/*************************/
/****** FORMS ***********/
/*************************/

input, textarea, select{
  font-size: inherit;
  color: #444;
  background-color:#f4f4f4;
  box-shadow: none !important;
  border:none;
  padding:.7em;
  max-width: 100%;
}

input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: var(--vertfonce) solid 2px;
  border-color:transparent;
}

/**********************
*** COLORS ************
**********************/

:root{
  --noir: black;
  --white: white;
  --gris: #D9D9D9;
  --rouge:#D90909;
}


/**********************/
/****** HEADER ********/
/*********************/

header{
  
}

/**********************/
/****** PAGE ********/
/*********************/



h1{
  color: var(--rouge)
}

h1:first-child{
  color: var(--rouge);
  margin-top: 0;
}

h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child{
  margin-top: 0;
}

.wp-block-image{
  margin-left:-10px;
  margin-right:-10px;
}

.wp-block-image:not(:first-child){
  margin-top: 1em;
}

.wp-block-image:not(:last-child){
  margin-bottom: 1em;
}

/*body.transition .aside-images {
  transform: translateX(-50vw);
}*/

/*body.transition .homepage-main {
  transform: translateX(-50vw);
}*/

body.transition .ajax-target {
  transform: translateX(-50vw);
}

body{
  display: block;
}

.ajax-target-page{
  transform: translate(100%);
}

.page-left, .page-right, .ajax-target-page{
  width: 100%;
  position: fixed;
  top:0;
  padding: var(--padding-body);
  height: 100vh;
  height: 100dvh;
  overflow: scroll;
  background-color: white;
  left:0;
}

.page-extra-left, .page-left{
  left:0;
  transform: translate(-100vw);
}

#breadcrumbs{
  display: none;
}

.aside-images{
  padding:0;
}

footer{
  position: absolute;
  right:10px;
  bottom:10px;
  z-index: 99;
}

@media only screen and (min-width: 1000px) {
  body{
    display: block;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "col1 col2";
    column-gap: 40px;
  }

  .ajax-target-page{
    transform: translate(100%);
    transition: .3s cubic-bezier(0.075, 0.82, 0.165, 1);
  }

  .page-left, .page-right, .ajax-target-page{
    width: 50%;
    position: fixed;
    top:0;
    padding: var(--padding-body);
    height: 100vh;
    height: 100dvh;
    overflow: scroll;
    transition: .3s cubic-bezier(0.075, 0.82, 0.165, 1);
    background-color: white;
  }

  .page-left{
    transform: translate(0vw);
  }

  .page-left #breadcrumbs{
    display: block;
  }

  .page-left #retour{
    display: none;
  }

  .page-extra-left{
    left:0;
    transform: translate(-100vw);
  }

  .aside-images{
    padding:0;
  }

  .page-left{
    left: 0;
    z-index: 9;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
    scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE 10+ */
  }

  .page-left::-webkit-scrollbar {
    display: none;               /* Chrome, Safari, Edge */
  }

  

  .page-right{
    right:0;
  }

  .page-right, footer{
    margin-left: calc(50vw);
  }

  .wp-block-image{
    margin-left:0px;
    margin-right:0px;
  }
}

/**********************/
/****** HOMEPAGE ********/
/*********************/

.aside-images{
  display: none;
}

@media only screen and (min-width: 1000px) {
  .aside-images{
    display: grid;
    grid-template-columns:1fr;
    grid-template-rows: 1fr;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top:0;
    left:0;
    width: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
  }

  .aside-images > *{
    grid-column: 1;
    grid-row: 1;
    min-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    object-fit: cover;
    display: none;
  }

  .aside-images > *:first-child{
    display: block;
  }
}

/*********************
/***** FOOTER *******/
/********************/

.copyright{
  font-size: 12px;
  text-align: center;
  margin-top: 2rem;
}

/*********************
/****** BREADCRUMB */
/********************/

.breadcrumb_last{
  color:var(--rouge);
}
