/* Artfully masterminded by ZURB  */

/* --------------------------------------------------
   Table of Contents
-----------------------------------------------------
:: Shared Styles
:: Page Name 1
:: Page Name 2
*/

.chromeframe {
  text-align: center;
  margin: 0;
  background: #f0e45b;
  color: #000;
  padding: 0.9em 0;
  font-size: 15px;
}

label span {
  display: none;
}

.ie label span,
.ie8 label span,
.ie7 label span {
  display: block;
  padding-bottom: 3px;
  font-weight: bold;
}

.cr {
  *zoom: 1;
}

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

.cr:after {
  clear: both;
}

.hidden {
  visibility: hidden;
}

body {

  font-weight: 500;
  color: #20212F;
}

h1,
h2,
h3,
h4,
.cursive {

  font-family: 'zt_neue_ralewebold';
  color: #7b76a1;
}

.ie h1,
.ie h2,
.ie h3,
.ie h4,
.ie .cursive {
  padding-left: 10px;
}

.cursive {
  font-size: 24px;
  color: #581038;
}

h3 {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
}

h4 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
}

strong,
a {
  color: #7b76a1;
  transition: 0.3s all;
  /*#cc0a3b*/
}

a:hover {
  color: #350921;
  text-decoration: underline;
}

.row,
fieldset,
.content-plan {
  background-color: #F6F0DE;
  border: 0;
}

fieldset {
  padding-bottom: 0;
}

fieldset legend {
  background: transparent;
}

.element {
  position: relative;
  float: left;
}

.element .alert {
  position: absolute;
  top: 42px;
  right: 15px;
}

.ie .element .alert {
  top: 18px;
}

.element fieldset legend {
  padding-top: 35px;
}

.ie .element fieldset legend {
  padding-top: 0;
}

#logo {
  margin: 0;
  padding: 0;
}

#logo a {
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  height: 77px;
  text-indent: -9000px;
  background: url(../images/theme/header.jpg) top left no-repeat;
}

.top-bar ul li.name h1 {
  font-family: monaco, Consolas, Lucida Console, monospace;
}

.top-bar,
.top-bar ul li.name {
  background: #7b76a1;
  font-family: monaco, Consolas, Lucida Console, monospace;
  font-weight: 700;
}

.top-bar ul>li:hover,
.top-bar ul>li.active {
  background: #1d1d1b;
  color: #fff;
}

.top-bar ul>li a:not(.button) {
  color: #7b76a1;
  color: #fff;
}

.top-bar ul>li:hover a,
.top-bar ul>li.active a {
  color: #fff;
}

.brown {
  color: #7b76a1;
}

.button {
  font-family: monaco, Consolas, Lucida Console, monospace;
}

.button.red {
  background-color: #7b76a1;
  border-color: #7b76a1;
  border: 0;
}

.button.red:hover {
  background-color: #7b76a1;
  text-decoration: none;
}

p.mentions {
  font-size: 12px;
}

.alert-box p {
  margin-bottom: 0;
  padding: 10px;
}

/* -----------------------------------------
   Shared Styles
----------------------------------------- */

#plan {
  width: 100%;
  height: 300px;
  margin-bottom: 20px;
}

@media only screen and (max-width: 767px) {
  h3 {
    text-align: center;
  }

  body {
    width: 98%;
    min-width: 0;
    padding-left: 1%;
    overflow-x: hidden;
  }

  #logo a {
    background-position: -20px 0;
  }

  .row form .row .column.mobile-choice,
  .row form .row .columns.mobile-choice {
    padding: 0 6px 15px;
  }
}

@media only screen and (max-width: 374px) {
  #logo a {
    background-position: -70px 0;
  }
}

@media only screen and (min-width: 767px) {
  /*
    #logo a {
        background: url(../images/theme/header.jpg) top left no-repeat;
    }
    */
}



@font-face {
  font-family: 'zt_neue_ralewebold';
  src: url('./ztneueralewe-bold-webfont.woff2') format('woff2'),
    url('./ztneueralewe-bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

html {
  font-size: 16px;
}

body {
  position: relative;
  background: #F6F0DE;
  padding-bottom: 3rem;
  font-family: monaco, Consolas, Lucida Console, monospace;
}

body::before {
  position: absolute;

  left: 0;
  bottom: 0;
  right: 0;
  height: 40vh;
  content: "";
  background: url(../images/theme/trichateau_raisins-small.png) bottom center repeat-x;




  z-index: -1;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
pre,
form,
p,
blockquote,
th,
td,
label,
p {
  font-size: 16px;
  line-height: 1.5;
  color: #20212F;
  font-family: monaco, Consolas, Lucida Console, monospace;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="datetime"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
textarea {
  margin-bottom: 16px;
  font-family: monaco, Consolas, Lucida Console, monospace;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'zt_neue_ralewebold';
  font-weight: 400;
}

h3 {
  font-size: 30px;
  margin-bottom: 1.25em;
}

hr {
  border-color: #fffbf5;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
button,
select,
.button {

  letter-spacing: -0.025em;
  border-radius: 40px;
  font-weight: 500;
  padding: 0rem 24px;
  height: 46px;
  font-size: 17px;
}

select,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"] {
  background-color: #fff;
  color: #7b76a1;
  border-color: #fff;
  box-shadow: none;
  font-weight: 600;
  transition: 0.3s all;
}

select {
  border: 1px solid #fff;
}

select:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
  background-color: #fff;
  border-color: #d3bdc3;
}

input::placeholder {
  color: #7b76a1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: 0.3s all;
}

.button.secondary {
  background-color: rgba(123, 118, 161, .3);
  border-color: rgba(123, 118, 161, .2);
  color: rgb(123, 118, 161);
  box-shadow: none;
}

.button.secondary:hover {
  background-color: rgb(123, 118, 161);
  border-color: rgb(123, 118, 161);
  color: #fff;
}

.row {
  width: 1080px;
}

/*
#nav .top-bar section ul {
  display: none;
}
*/

@media (min-width: 768px) {

  #nav,
  #nav .top-bar,
  #nav .top-bar section ul li.name {
    background-color: transparent;
  }

  #nav .top-bar {
    height: auto;
    line-height: 1.4;
  }

  #nav .top-bar section ul {
    display: flex;
    width: 80%;
    max-width: 650px;
    margin: 2.5rem auto 2.5rem;
    justify-content: space-between;
  }

  #nav .top-bar section ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: 0.3s all;
    padding: 0rem 24px;
    height: 46px;
    border-radius: 40px;
    border: 1px solid transparent;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 500;
    color: #7b76a1;
  }

  #nav .top-bar section ul li a:after {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: inline-block;
    transform: translate(-50%, 1.5rem);
    width: 8px;
    height: 8px;
    content: "";
    background-color: #7b76a1;
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s all;
  }

  #nav .top-bar section ul>li:hover,
  #nav .top-bar section ul>li.active {
    background-color: transparent;
  }

  #nav .top-bar section ul>li:hover a,
  #nav .top-bar section ul>li.active a {
    background-color: #7b76a1;
    color: white;
    text-decoration: none;
    border-color: #7b76a1;
  }

  #nav .top-bar section ul>li:hover a:after,
  #nav .top-bar section ul>li.active a:after {
    opacity: 1;
  }
}

.row--person {
  display: flex;
  align-items: center;
  margin-bottom: 12px !important;
}

.row--person input {
  margin-bottom: 0;
}

fieldset {
  padding-left: 0;
  padding-right: 0;
}

#content,
.row.content-plan {
  position: relative;
  padding: 3rem 3rem;
  background: #AD985C;

  mask-image:
    radial-gradient(circle at top left, transparent 0, transparent 40px, black 41px),
    radial-gradient(circle at top right, transparent 0, transparent 40px, black 41px),
    radial-gradient(circle at bottom left, transparent 0, transparent 40px, black 41px),
    radial-gradient(circle at bottom right, transparent 0, transparent 40px, black 41px);
  mask-position: top left, top right, bottom left, bottom right;
  mask-repeat: no-repeat;
  mask-size: 50% 50%;
}

#content:before,
.row.content-plan:before {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  display: block;
  content: '';

  background: #F6F0DE;

  mask-image:
    radial-gradient(circle at top left, transparent 0, transparent 40px, black 41px),
    radial-gradient(circle at top right, transparent 0, transparent 40px, black 41px),
    radial-gradient(circle at bottom left, transparent 0, transparent 40px, black 41px),
    radial-gradient(circle at bottom right, transparent 0, transparent 40px, black 41px);
  mask-position: top left, top right, bottom left, bottom right;
  mask-repeat: no-repeat;
  mask-size: 50% 50%;
  z-index: -1
}


.row.content-plan {
  margin-top: 3rem;
}

.row.content-plan h4::before {
  display: inline-block;
  width: 100%;
  height: 160px;
  margin-bottom: 2rem;
  content: "";
  background: transparent url(../images/theme/trichateau_tampon.png) top left no-repeat;
  background-size: auto 100%;
}

#logo a {
  position: relative;

  height: 235px;
  background: transparent url(../images/theme/trichateau_logo.png) 50% 50% no-repeat;
}

@media (min-width: 768px) {
  #header {
    background: url(../images/theme/trichateau_pattern.png) bottom center repeat;
    background-size: cover;
  }

  #header .row {
    background: transparent url(../images/theme/trichateau_etiquette_bouteille.png) top left no-repeat;
    background-size: auto 200px;

    background-color: transparent;
    background-image: url(../images/theme/trichateau_etiquette_bouteille.png), url(../images/theme/trichateau_invitation.png);
    background-repeat: no-repeat, no-repeat;
    background-position: top left, right center;
    background-size: auto 200px, 200px auto;


  }

  #logo a {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  #logo a::before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -57.5%);
    display: inline-block;
    content: "";
    width: 360px;
    height: 360px;
    background-color: #F6F0DE;
    border-radius: 50%;
    z-index: -1;
  }
}

#plan {
  height: 390px;
}

body.home.merci #content>div:first-child,
body.accueil #content>div:first-child {
  position: relative;
}

body.home.merci #content>div:first-child::after,
body.accueil #content>div:first-child::after {
  display: block;

  width: 100%;
  height: 160px;
  background: transparent url(../images/theme/trichateau_foireauxvins.png) 50% 50% no-repeat;
  content: "";
  background-size: contain;
}

@media (min-width: 768px) {

  body.home.merci #content>div:first-child::after,
  body.accueil #content>div:first-child::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: inline-block;
    width: 150px;
    transform: translate(-50%, 150%);
    margin-left: -15px;
  }

  .top-bar>ul {
    display: none;
  }

  .columns--emailing label {
    padding-top: 8px;
    padding-left: 5px;
  }
}

input[type="checkbox"],
input[type="radio"] {
  position: absolute;
  left: -9999px;
}

input[type="checkbox"]:not(:checked)+span,
input[type="checkbox"]:checked+span,
input[type="radio"]:not(:checked)+span,
input[type="radio"]:checked+span {
  position: relative;
  display: block;
  padding-left: 2rem;
  cursor: pointer;
  font-weight: 600;
}

input[type="checkbox"]:not(:checked)+span:before,
input[type="checkbox"]:checked+span:before,
input[type="radio"]:not(:checked)+span:before,
input[type="radio"]:checked+span:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  background: #F6F0DE;
  border: 1px dotted transparent;
  text-align: center;
  border: 1px solid #d3bdc3;
  border-radius: 5px;
  transition: 0.3s all;
}

input[type="checkbox"]:checked+span:before,
input[type="radio"]:checked+span:before {
  background: #7b76a1;
  border-color: #7b76a1;
}

/* accessibility */
input[type="checkbox"]:checked:focus+span:before,
input[type="checkbox"]:not(:checked):focus+span:before,
input[type="radio"]:checked:focus+span:before,
input[type="radio"]:not(:checked):focus+span:before {
  border: 1px dotted blue;
}

#form_commande .element {
  float: none;
  clear: both;
}

#form_commande .element+.element {
  border-top: 1px solid #d3bdc3;
}

#form_commande .element:nth-child(1) .small.alert.button {
  display: none;
}

#form_commande .element .total {
  margin-bottom: 0;
  line-height: 46px;
}

#form_commande .button:not(.small) {
  min-width: 250px;
}

#form_commande legend {
  padding-top: 0;
  font-size: 20px;
  font-weight: 500;
}

.small.alert.button {
  height: auto;
  font-weight: 600;
  font-size: 20px;
  box-shadow: none;
  top: 15px;
  right: 10px;
  border-color: #c60f13;
}

.button.full-width {
  width: auto;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

div.alert-box p {
  color: #fff;
}

@media (min-width: 768px) {
  a[href="#coordonnees"] {
    margin-left: 10px;
  }

  .columns--bouteilles {
    padding-left: 0 !important;
  }
}

@media (max-width: 1190px) {

  h3 {
    text-align: center;
  }

  .row {
    max-width: 95%;
    min-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .row.content-plan h4::before {
    height: 140px;
  }

  #content,
  .row.content-plan {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 767px) {
  body {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    overflow-x: hidden;
  }

  #logo {
    padding-bottom: 0.5rem;
  }

  #logo a {
    margin-top: 1rem;
    height: 200px;
    background-size: contain;
  }

  .top-bar {
    margin-bottom: 2rem;
  }

  .top-bar ul li.toggle-topbar {
    width: 30%;
  }

  .top-bar ul>li a:not(.button) {
    font-size: 16px !important;
    text-transform: uppercase;
    font-weight: 600;
  }

  .top-bar ul li.name h1 a {

    font-weight: 600;
    font-size: 18px !important;
  }

  .top-bar ul>li:hover,
  .top-bar ul>li.active {
    background: #000;
  }

  .top-bar section li+li {
    border-top: 1px solid #d3bdc3;
  }

  form legend {
    text-align: center;
  }

  #content,
  .row.content-plan {
    padding: 1.25rem 1.5rem;
  }

  .row form .row {
    margin: 0;
  }

  .columns--bouteilles {
    padding-left: 0;
    padding-right: 0;
  }

  .columns--btn {
    margin-top: 1rem;
    text-align: center;
  }

  .columns--btn .button.full-width {
    width: calc(100% - 38px);
  }

  .columns--btn [type="submit"] {
    margin-bottom: 1rem;
  }

  .hidden {
    display: none;
  }

  hr.show-for-small {
    margin: 5px 0 5px;
  }

  body {
    padding-bottom: 1rem;
  }

  .row.content-plan h4::before {
    float: left;
    width: 90px;
    background-size: contain;

    display: none;
  }

  /*
  .row.content-plan h4 + p + p {
    margin-left: 90px;
  }
  */

  .mentions {
    padding: 1rem 1rem 0;
    margin-bottom: 0;
  }
}