﻿body {
  justify-content: center;
  align-items: center;
  height: 100svh;
  padding: 0;
}

.fil0 {
  fill: #A22538;
  fill-rule: nonzero
}

h1 {
  color: #A22538;
  padding: 20px;
  font-size: 1em;
  font-family: Montserrat;
  font-weight: 700;
  position: absolute;
  z-index: 3;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  font-size: 20px;
  background-color: #881437;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

  #backToTop.visible {
    opacity: 0.8;
    pointer-events: auto;
  }

  #backToTop:hover {
    opacity: 1;
  }

header {
  color: #A22538;
  position: fixed;
  width: 99.6%;
  top: 0;
  z-index: 5000;
  background-color: white; /* ou couleur de ton header */
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* petit effet ombre */
  margin: 0;
  padding: 0;
}

main {
  padding-top: 180px;
}

html {
  scroll-behavior: smooth;
}

.degustation a {
  color: black;
}

.ecocert-logo {
  display: inline-block;
  float: left;
  padding-right: 4px;
}

.ecocert a {
  color: black;
}

  .ecocert a:hover {
    color: #A22538;
  }

table {
  padding-left: 16px;
}

.galerie-part {
  width: 160px;
  position: relative;
  text-decoration: none;
}

.galerie-part-img {
  width: 160px;
  border: solid 3px transparent;
}

  .galerie-part-img:hover {
    width: 160px;
    border: solid 3px #A22538;
  }

.galerie-part-title {
  background-color: #A22538;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  padding: 4px;
  font-variant: small-caps;
}

fieldset > *:not(:last-child) {
  margin-bottom: 4px;
}

fieldset {
  max-width: 540px;
}

.calage {
  width: 130px;
  display: inline-block;
}

.text2 {
  min-width: 250px;
  max-width: 400px;
  width: 100%;
  height: 100px;
}

#pied-f {
  max-width: 510px;
  width: 100%;
  text-align: center;
}

#map {
  height: 500px;
  width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  max-width: 900px;
  margin: 40px auto;
  padding-top: 4px;
}

  .gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
  }

.pswp__img {
  object-fit: contain;
}

.submenu {
  background-color: #A22538;
  text-align: center;
  color: white;
  padding-top:24px;
  position:fixed;
  width:100%;
}

  .submenu a {
    text-decoration: none;
    font-variant: small-caps;
    color: white;
  }

    .submenu a:hover {
      color: wheat;
    }

a {
  text-decoration: none;
}

#bandeau {
  height: 160px;
  background-image: url('/images/fut.png'), url('/images/travertin.jpg');
  background-repeat: no-repeat, repeat-x;
  background-size: auto 50%, auto;
  background-position: right bottom, left -420px;
  border: solid 2px #A22538;
  margin: 0;
  padding: 10px 20px;
}

#DomaineDufes {
  color: #A22538;
  font-size: 0.9em;
  font-family: Montserrat;
  font-weight: 700;
  text-align: right;
}

#etiquette {
  height: 120px;
  width: 254px;
  margin-top: 10px;
  transform: scale(1.2) translate(20px, 10px);
}

nav {
  width: 100%;
  min-height: 24px;
  background-color: #A22538;
  text-align: center;
  color: white;
}

  nav a {
    text-decoration: none;
    font-variant: small-caps;
    color: white;
  }

.menu-sep {
  width: 10px;
  text-align: center;
  padding: 0;
  margin: 0 0 0 4px;
}

section {
  scroll-margin-top: 210px;
}

h2 {
  font-variant: small-caps;
  width: 100%;
  min-height: 30px;
  padding: 12px 0 8px 12px;
  background: url('/images/pied.jpg') no-repeat;
  background-size: cover;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
  color: #A22538;
}

@font-face {
  font-family: 'ElicitScript';
  src: url('/fonts/ElicitScript-SmBdFormal.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

.firstletter {
  font-size: 2.5em;
  font-family: 'ElicitScript';
  color: #A22538;
  font-weight: 800;
  float: left;
  margin-right: 0.05em;
  /*padding: 0 4px 0 8px;*/
  width: 35px;
  text-align: right;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3); /* Ombre portée pour donner du relief */
  height: 50px;
  padding-top: 0;
  margin-top: -30px;
}

  section p {
    margin: 0;
  }

.firstline {
}

footer {
  background-color: #A22538;
  color: wheat;
  text-align: center;
  height: 48px;
}

  footer p {
    padding-top: 4px;
  }

  footer a {
    color: wheat;
    text-decoration: none;
  }

    footer a:hover {
      color: black;
    }

section p {
  min-height: 70px;
}

.section-text {
  width: 70%;
  display: inline-block;
  float: left;
  text-align: justify;
  text-align-last: left;
  margin-right: 2px;
}

.section-image {
  width: 29%;
  display: inline;
  float: right;
  text-align: left;
}

.section-image img{
/*  max-height: 100px;
  min-height: 200px;*/
  width: 80%;
  max-width: 240px;
}

  .paragraph {
    display: inline-block;
    width: 100%;
  }

#Revendeurs > div > ul > li > a {
  color: black;
}
#Revendeurs > div > ul > li > a:hover {
  color: #A22538;
}