body,form,figure{margin:0;padding:0}img{border:0}header,footer,nav,section,aside,article,figure,figcaption{display:block}body{font-size:100.01%}select,input,textarea{font-size:99%}#container,.inside{position:relative}#main,#left,#right{float:left;position:relative}#main{width:100%}#left{margin-left:-100%}#right{margin-right:-100%}#footer{clear:both}#main .inside{min-height:1px}.ce_gallery>ul,.content-gallery>ul{margin:0;padding:0;overflow:hidden;list-style:none}.ce_gallery>ul li,.content-gallery>ul li{float:left}.ce_gallery>ul li.col_first,.content-gallery>ul li.col_first{clear:left}.float_left,.media--left>figure{float:left}.float_right,.media--right>figure{float:right}.block{overflow:hidden}.media{display:flow-root}.clear,#clear{height:.1px;font-size:.1px;line-height:.1px;clear:both}.invisible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.custom{display:block}#container:after,.custom:after{content:"";display:table;clear:both}
@media (max-width:767px){#wrapper{margin:0;width:auto}#container{padding-left:0;padding-right:0}#main,#left,#right{float:none;width:auto}#left{right:0;margin-left:0}#right{margin-right:0}}img{max-width:100%;height:auto}.audio_container audio{max-width:100%}.video_container video{max-width:100%;height:auto}.aspect,.responsive{position:relative;height:0}.aspect iframe,.responsive iframe{position:absolute;top:0;left:0;width:100%;height:100%}.aspect--16\:9,.responsive.ratio-169{padding-bottom:56.25%}.aspect--16\:10,.responsive.ratio-1610{padding-bottom:62.5%}.aspect--21\:9,.responsive.ratio-219{padding-bottom:42.8571%}.aspect--4\:3,.responsive.ratio-43{padding-bottom:75%}.aspect--3\:2,.responsive.ratio-32{padding-bottom:66.6666%}
#colorbox,#cboxOverlay,#cboxWrapper{position:absolute;top:0;left:0;z-index:9999;overflow:hidden;-webkit-transform:translate3d(0,0,0)}#cboxWrapper{max-width:none}#cboxOverlay{position:fixed;width:100%;height:100%}#cboxMiddleLeft,#cboxBottomLeft{clear:left}#cboxContent{position:relative}#cboxLoadedContent{overflow:auto;-webkit-overflow-scrolling:touch}#cboxTitle{margin:0}#cboxLoadingOverlay,#cboxLoadingGraphic{position:absolute;top:0;left:0;width:100%;height:100%}#cboxPrevious,#cboxNext,#cboxClose,#cboxSlideshow{cursor:pointer}.cboxPhoto{float:left;margin:auto;border:0;display:block;max-width:none;-ms-interpolation-mode:bicubic}.cboxIframe{width:100%;height:100%;display:block;border:0;padding:0;margin:0}#colorbox,#cboxContent,#cboxLoadedContent{box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box}#cboxOverlay{background:#000;opacity:.9;filter:alpha(opacity = 90)}#colorbox{outline:0}#cboxContent{margin-top:20px;background:#000}.cboxIframe{background:#fff}#cboxError{padding:50px;border:1px solid #ccc}#cboxLoadedContent{border:5px solid #000;background:#fff}#cboxTitle{position:absolute;top:-20px;left:0;color:#ccc}#cboxCurrent{position:absolute;top:-20px;right:0;color:#ccc}#cboxLoadingGraphic{background:url(../../assets/colorbox/images/loading.gif) no-repeat center center}#cboxPrevious,#cboxNext,#cboxSlideshow,#cboxClose{border:0;padding:0;margin:0;overflow:visible;width:auto;background:0 0}#cboxPrevious:active,#cboxNext:active,#cboxSlideshow:active,#cboxClose:active{outline:0}#cboxSlideshow{position:absolute;top:-20px;right:90px;color:#fff}#cboxPrevious{position:absolute;top:50%;left:5px;margin-top:-32px;background:url(../../assets/colorbox/images/controls.png) no-repeat top left;width:28px;height:65px;text-indent:-9999px}#cboxPrevious:hover{background-position:bottom left}#cboxNext{position:absolute;top:50%;right:5px;margin-top:-32px;background:url(../../assets/colorbox/images/controls.png) no-repeat top right;width:28px;height:65px;text-indent:-9999px}#cboxNext:hover{background-position:bottom right}#cboxClose{position:absolute;top:5px;right:5px;display:block;background:url(../../assets/colorbox/images/controls.png) no-repeat top center;width:38px;height:19px;text-indent:-9999px}#cboxClose:hover{background-position:bottom center}
.content-slider{overflow:hidden;visibility:hidden;position:relative}.slider-wrapper{overflow:hidden;position:relative}.slider-wrapper>*{float:left;width:100%;position:relative}.slider-control{height:30px;position:relative}.slider-control a,.slider-control .slider-menu{position:absolute;top:9px;display:inline-block}.slider-control .slider-prev{left:0}.slider-control .slider-next{right:0}.slider-control .slider-menu{top:0;width:50%;left:50%;margin-left:-25%;font-size:27px;text-align:center}.slider-control .slider-menu b{color:#bbb;cursor:pointer}.slider-control .slider-menu b.active{color:#666}
/***** MAIN LAYOUT www.vignoble-prouillac.com *****/

/* ===== VARIABLES & RESET ===== */
:root {
  --primary-brown: brown;
  --primary-orange: #f57a00;
  --primary-gray: #666666;
  --light-gray: #eaeaea;
  --dark-gray: #1816165e;
  --white: #ffffff;
  --black: #000000;
  --font-main: 'Lato', Helvetica, Arial, Lucida, sans-serif;
  --font-accent: myFirstFont;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===== FONTS ===== */
@font-face {
  font-family: myFirstFont;
  src: url(../../files/css/Montserrat-LightItalic.otf);
}

/* ===== BASE STYLES =====  text-align: justify; */
body {
  background-color: var(--primary-gray);
  color: var(--light-gray);
  font-family: verdana, arial, sans-serif;
  font-size: 26px;
  font-family: var(--font-main);
  font-weight: 300;
  background: url(../../files/images/prouillac2.jpg) no-repeat center center fixed;
  background-size: cover;
  line-height: 1.3;
}

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

/* ===== LAYOUT COMPONENTS ===== */
#wrapper {
  width: 100%;
}

#main {
  margin: 0px;
  min-height: 400px;
}

#footer {
  margin: 0px;
  background: #8080808c;
  padding: 5%;
  border-radius: 40px;
}

.first {
  min-height: 100%;
}

.full {
  min-height: 85vh;
}

.vh100 {
  height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  margin: 7px 0;
  font-family: var(--font-accent);
  font-weight: 300;
}

h1 {
  font-size: 1.5em;
}

h2 {
  font-size: 1.3em;
}

h3 {
  font-size: 1.2em;
}

.ce_teaser h1 {
  font-size: 2em;
  float: left;
  margin: 20px;
  width: 50%;
}

#vins_titel {
  line-height: 1.6;
  padding: 20px;
  margin: 0px;
  border-radius: 10px;
  font-weight: 300;
  letter-spacing: 2rem;
}

.toggler {
  font-size: xx-large;
  cursor: pointer;
  letter-spacing: .2rem;
}

.toggler:hover {
  margin-left: 10px;
  transition: margin-left 0.5s ease-in-out;
}

.wines div.toggler {
  font-size: x-large;
}

/* ===== NAVIGATION ===== */
#navigation {
  position: absolute;
  top: 52px;
  right: 9px;
  margin-top: 10px;
}

.mod_navigation ul {
  float: right;
  list-style-type: none;
  margin: 0;
  margin-left: 50px;
  padding: 0;
  font-family: var(--font-main);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mod_navigation li {
  float: left;
  background-color: var(--white);
  border-right: 1px solid #bbb;
  border-radius: 10px;
}

.mod_navigation li:last-child {
  border-right: none;
}

.mod_navigation li a,
.mod_navigation li span {
  display: block;
  color: gray;
  text-align: center;
  padding: 8px 30px;
  text-decoration: none;
  border-radius: 10px;
}

.mod_navigation li a:hover {
  background-color: #666;
  color: var(--white);
}

.mod_navigation .active {
  background-color: gray;
  color: var(--white);
}

/* ===== FORM ELEMENTS ===== */
textarea, input, select {
  font-family: verdana, arial, sans-serif;
  background-color: #eeeeee;
  border: 1px solid #ccc;
  margin: 10px;
  padding: 5px;
  border-radius: 10px;
}

.formbody .widget {
  display: grid;
}

form .submit {
  background: var(--primary-orange);
  transition: background 0.2s ease-in-out;
  border: 0.1625rem solid transparent;
  color: var(--white);
  padding: 10px;
  font-size: x-large;
  width: 40%;
  border-radius: 20px;
}

.submit:hover {
  translate: 5px;
}

.captcha_text {
  background-color: gray;
}

.ce_form {
  margin: 40px;
}

/* ===== BACKGROUND SECTIONS ===== */
#bg_nous .toggler,
#bg_terroir .toggler,
#bg_vins .toggler, 
#bg_aurelien .toggler,
#bg_biodyn .toggler,
#bg_portraits .toggler,
#bg_agro .toggler {
  padding-top: 10%;
}

#bg_accueil {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%),
              url(../../files/images/lestignac.JPG) no-repeat center center;
  background-size: cover;
  padding-top: 10%;
}

#bg_nous {
  background: linear-gradient(180deg, rgb(106 221 33 / 19%) 0%, rgba(255,255,255,1) 100%),
              url(../../files/images/nous.png) no-repeat center center fixed;
  background-size: cover;
  color: var(--black);
}

#bg_terroir {
  background: linear-gradient(to bottom, rgba(245, 246, 252, 0.52), rgb(29 16 16 / 75%)), 
              url(../../files/images/terroir.jpg) no-repeat center center fixed;
  background-size: cover;
}

#bg_vins {
  background: linear-gradient(to bottom, rgb(129 36 36 / 61%), rgb(19 76 117 / 21%)), 
              url(../../files/images/bouteilles.jpg) no-repeat center center fixed;
  background-size: cover;
}

#bg_aurelien {
  background: linear-gradient(to right, rgba(100, 100, 100, 0.52), rgba(200, 200, 200, 0.73)),
              url(../../files/images/1.jpg) no-repeat center center fixed;
  background-size: cover;
}

#bg_portraits {
  background: linear-gradient(to bottom, rgb(201 15 102 / 52%), rgb(9 9 9 / 75%)),
              url(../../files/images/portraits_bw.png) no-repeat center center fixed;
  background-size: cover;
}

#bg_biodyn {
  background: linear-gradient(to bottom, rgb(41 42 50 / 52%), rgb(29 16 16 / 75%)),
              url(../../files/images/biodynamie.png) no-repeat center center fixed;
  background-size: cover;
}

#bg_agro {
  background: linear-gradient(to bottom, rgb(41 42 50 / 52%), rgb(29 16 16 / 75%)),
              url(../../files/images/agro.png) no-repeat center center fixed;
  background-size: cover;
}

#bg_contact {
  background: linear-gradient(to right, rgba(100, 100, 100, 0.52), rgba(200, 200, 200, 0.73)),
              url(../../files/images/prouillac.jpg) no-repeat center center fixed;
  background-size: cover;
}

/* ===== CONTENT BLOCKS ===== */
.ce_teaser, .ce_text, #actualites, .ce_accordion {
  line-height: 1.6;
  padding: 20px;
  margin: 0px;
  border-radius: 10px;
}

.ce_teaser {
  width: 70%;
}

.mod_newsreader {
  padding: 20px;
  background-color: hsla(343, 100%, 50%, 0.5);
  border-radius: 20px;
}

.mod_newsreader .ce_text {
  background-color: hsla(343, 40%, 50%, 0.8);
}

.mod_newsreader .ce_text h1 {
  display: none;
}

.backstretch {
  visibility: none;
}

/* ===== SLIDERS & MEDIA ===== */
.ce_flexSlider {
  width: 50%;
  margin: auto;
}

#vin #slider.flexslider img {
  height: 500px;
  width: auto;
  margin: auto;
}

.slider-control {
  height: 50px;
  position: relative;
}

.slider-control .slider-menu {
  top: 0px;
  font-size: 53px;
}

.slider-control .slider-prev:before, 
.slider-control .slider-next:before {
  display: block;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.25rem;
  background: var(--primary-brown) url(../../files/css/caret-left--white.svg) center center no-repeat;
  transition: background ease-in-out 0.2s;
  content: "";
}

.slider-control .slider-next:before {
  background: var(--primary-brown) url(../../files/css/caret-right--white.svg) center center no-repeat;
}

a.slider-prev, 
a.slider-next {
  font-size: 0px;
}

.ce_sliderStart.block {
  padding: 50px;
}

/* ===== UTILITY CLASSES ===== */
/* Margins */
.mm { margin: 4%; }
.m { margin: 2%; }
.mt { margin-top: 5%; }
.mb { margin-bottom: 5%; }

/* Padding */
.t { padding-top: 2%; }
.b { padding-bottom: 2%; }
.r { padding-right: 2%; }
.l { padding-left: 2%; }
.tt { padding-top: 4%; }
.bb { padding-bottom: 4%; }
.rr { padding-right: 4%; }
.ll { padding-left: 4%; }
.p { padding: 2%; }
.pp { padding: 4%; }
.ppp { padding: 3%; }

/* Positioning */
.lfloat { float: left; }
.rfloat { float: right; }
.left { width: 60%; }
.center { display: block; margin-left: auto; margin-right: auto; width: 50%; }
.center_2 { margin: auto; width: 80%; }
.w { width: 80%; }

/* Colors */
.white { color: var(--white); }
.black { color: var(--black); }
.gray { color: gray; }
.bg_gray { background-color: var(--dark-gray); }
.bg_white { background-color: var(--white); }

/* Effects */
.rad { border-radius: 20px; }
.o2 { opacity: .2; }
.o4 { opacity: .4; }
.o6 { opacity: .6; }
.o8 { opacity: .8; }

/* ===== SPECIFIC ELEMENTS ===== */
a {
  color: var(--white);
}

#contact a, #actualites a, #vin a, .back a {
  font-weight: bolder;
}

figure > img {
  float: right;
  margin-left: 20px;
}

#titel {
  padding-top: 10px;
  margin: 0px 0;
  font-size: 1.4em;
  margin-left: 1em;
  float: left;
  color: var(--primary-brown);
}

#titel:before {
  content: url(../../files/css/prouillac_3.png);
}

#phone {
  text-align: right;
  color: var(--primary-brown);
  float: right;
  background: rgb(255, 255, 255, .5);  
  padding: 0px 21px; 
}

#naturellement {
  color: var(--primary-brown);
  letter-spacing: normal;
  transition-property: opacity, display;
  transition-delay: 2s;
  transition-duration: 5s;
  transition-timing-function: ease-in-out;
  display: block;
  opacity: 1;
  clear: both;
  padding-top: 1%;
}

#naturellement .hidden {
  display: none;
  opacity: 0;
}

#language a {
  float: right;
  color: gray;
  padding: 10px;
}

div#language a {
  background: var(--primary-orange);
  transition: background 0.2s ease-in-out;
  border: 0.1625rem solid transparent;
  color: var(--white);
  font-size: large;
  border-radius: 20px;
}

div#language a:hover {
  translate: 5px;
}

div.accordion > div > div > p > img {
  float: left;
  margin-right: 20px;
}

div.accordion > div > div {
  clear: left;
  margin-bottom: 70px;
}

.checked {
  color: orange;
} 

.star {
  width: 20px;  
  float: left;
  aspect-ratio: 1;
  background: #F8CA00;
  clip-path: polygon(50% 0,
    calc(50%*(1 + sin(.4turn))) calc(50%*(1 - cos(.4turn))),
    calc(50%*(1 - sin(.2turn))) calc(50%*(1 - cos(.2turn))),
    calc(50%*(1 + sin(.2turn))) calc(50%*(1 - cos(.2turn))),
    calc(50%*(1 - sin(.4turn))) calc(50%*(1 - cos(.4turn))) 
  );
}

div.merci {
  margin: 10%;  
}

.retour a::before {
  display: block;
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.25rem;
  background: #25455f url(../../files/css/caret-left--white.svg) center center no-repeat;
  transition: background ease-in-out 0.2s;
  content: "";
  width: 100px;
  margin: auto;
}

/* ===== TEASER COMPONENT ===== */
.teaser-container {
  width: 300px;
  max-width: 100%;
  margin: 1em auto;
}

.teaser {
  margin: 0;
}

.teaser-meta {
  padding: 15px;
}

.teaser-title {
  display: block;
  font-weight: bold;
  font-size: 100%;
  margin-bottom: 5px;
}

.teaser-description {
  margin: 0;
}

figcaption {
  user-select: none;
}

/* ===== MEDIA QUERIES ===== */
/* Mobile-first optimizations */
@media (max-width: 929px) {
  body,
  #bg_nous,
  #bg_terroir,
  #bg_vins, 
  #bg_aurelien,
  #bg_biodyn,
  #bg_portraits,
  #bg_agro,
  #bg_contact,
  #bg_accueil {
    background-attachment: scroll !important;
  }
  
  /* Use smaller background images for mobile */

  
  .ce_flexSlider {
    width: 90%;
  }

  .ce_sliderStart.block {
    padding: 10px;
  }
  
  .slider-control .slider-menu {
    font-size: 30px;
  }
  
  /* Reduce background image quality for mobile */
  #bg_accueil,
  #bg_nous,
  #bg_terroir,
  #bg_vins,
  #bg_aurelien,
  #bg_portraits,
  #bg_agro,
  #bg_contact {
    background-size: 100% auto;
    background-position: center top;
  }
}

@media (min-width: 375px) and (orientation: portrait) {
  body {
    font-size: 20px;
  }
}

@media (min-width: 375px) and (orientation: landscape) {
  body {
    font-size: 20px;
  }
}

@media (min-width: 930px) and (orientation: landscape) {
  body {
    font-size: 18px;
  }
 
  #phone {
    position: relative;
    bottom: -40px;
  }
   
  .ce_flexSlider {
    width: 50%;
  }
 
  #titel {
    font-size: 4em;
  }
 
  #naturellement {
    letter-spacing: 1rem;
  }
 
  .mm { margin: 10%; }
  .m { margin: 3%; }
  .mt { margin-top: 10%; }
  .mb { margin-bottom: 10%; }
  .t { padding-top: 4%; }
  .b { padding-bottom: 4%; }
  .r { padding-right: 5%; }
  .l { padding-left: 5%; }
  .tt { padding-top: 10%; }
  .bb { padding-bottom: 10%; }
  .rr { padding-right: 10%; }
  .ll { padding-left: 10%; }
  .p { padding: 3%; }
  .pp { padding: 6%; }
  
  .left {
    width: 40%;
  }
  
  .w {
    width: 60%;
  }

  h1, h2, h3 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.6em;
  }
  
  h3 {
    font-size: 1.4em;
  }
  
  form .submit {
    width: 20%;
    margin-left: 10px;
  }

  div.ce_sliderStart.block > div > div > div > figure > a > img,
  .contact {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }
}

/* Enhanced teaser styles for larger screens */
@media (min-width: 350px) {
  .teaser {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
  }
  
  .teaser-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .teaser-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: 0.2s ease-in-out;
  }

  .teaser-overlay:hover,
  .teaser-overlay:active {
    background-color: rgba(0, 0, 0, 0.8);
  }

  .teaser-meta {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0 20px 20px;
    color: rgb(255, 255, 255);
    transition: inherit;
  }

  .teaser:hover .teaser-meta,
  .teaser:active .teaser-meta {
    transform: translateY(-100%);
  }

  .teaser-title {
    transform: translateY(-100%);
    margin-top: -20px;
    margin-bottom: 5px;
    transition: inherit;
  }
  
  .teaser:hover .teaser-title,
  .teaser:active .teaser-title {
    transform: translateY(0);
  }
}
