/* ==========================================================================
#PAGE HEADER (pages intérieures)
========================================================================== */
.page-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  min-height: 300px;
  padding: 0 40px;
  background: var(--navy) no-repeat 50% 50% / cover;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 15px;
  font: 300 66px/1.1 var(--font-text);
  color: #ffffff;
  letter-spacing: 3px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
  .page-header {
    height: 40vh;
  }
  .page-header h1 {
    font-size: 42px;
  }
}

/* Contenu simple (pages légales, contact, 404) */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--gutter) 100px;
}
.main--center {
  text-align: center;
}

/* ==========================================================================
#ACCUEIL
========================================================================== */
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  min-height: 400px;
  background: #fbe2db url("/assets/uploads/images/vins_pradel_rose_or_de_provence_large.jpg") no-repeat 50% 50% / cover;
}
@media (max-width: 767px) {
  .hero {
    height: calc(80vh - var(--header-height));
    background-image: url("/assets/uploads/images/vins_pradel_rose_or_de_provence_responsive.jpg");
  }
}

.hero__arrow {
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: 55px;
  height: 55px;
  margin-left: -27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5) url("/assets/uploads/images/arrow_down_blue.png") no-repeat 50% 50%;
  animation: bounce 2s ease-in-out infinite;
}
.hero__arrow:hover {
  background-color: #ffffff;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__arrow {
    animation: none;
  }
}

/* Actualité à la une */
.sticky-news {
  padding: 40px 0;
}

.sticky-news__container {
  display: grid;
  grid-template-columns: 4fr 2fr 6fr;
  align-items: center;
  gap: 0 30px;
}

.sticky-news__title {
  font: 400 40px var(--font-title);
  color: var(--navy);
  text-transform: uppercase;
}

.sticky-news__content h3 {
  font: italic bold 20px/22px var(--font-serif);
}
.sticky-news__content a {
  color: var(--coral);
}
.sticky-news__content a:hover,
.sticky-news__content a:focus {
  color: var(--navy);
}
.sticky-news__content p {
  line-height: 24px;
  color: #333333;
}

.sticky-news__link {
  font: 15px var(--font-brandon);
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .sticky-news__container {
    grid-template-columns: 1fr 3fr;
  }
  .sticky-news__title {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* Date des actualités (jour en grand + mois) */
.news-date {
  margin: 0;
  text-align: center;
  color: var(--coral);
}
.news-date__day {
  display: block;
  font: 700 110px/120px var(--font-title);
}
.news-date__month {
  display: block;
  font: 24px var(--font-text);
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .news-date__day {
    font-size: 70px;
    line-height: 80px;
  }
  .news-date__month {
    font-size: 18px;
  }
}

/* Sections plein écran : image fixe, légende qui défile par-dessus */
.fullscreen {
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--header-height));
  background: var(--bg) no-repeat right 50% / cover fixed;
}
/* background-attachment: fixed n'est pas géré sur mobile/tablette tactile */
@media (hover: none), (max-width: 1024px) {
  .fullscreen {
    background-attachment: scroll;
    min-height: 80vh;
  }
}

.fullscreen__caption {
  width: 100%;
  padding: 50px var(--gutter) 60px;
  background: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.fullscreen__caption p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections image / texte */
.splitscreen {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.splitscreen--reverse .splitscreen__img {
  order: 2;
}

.splitscreen__img {
  min-height: 400px;
  background: no-repeat 50% 50% / cover;
}

.splitscreen__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(75vh - var(--header-height));
  padding: 60px 40px;
  text-align: center;
}

@media (max-width: 767px) {
  .splitscreen {
    grid-template-columns: 1fr;
  }
  .splitscreen--reverse .splitscreen__img {
    order: 0;
  }
  .splitscreen__img {
    min-height: 300px;
  }
  .splitscreen__content {
    min-height: 0;
    padding: 50px var(--gutter);
  }
}

/* ==========================================================================
#GAMME
========================================================================== */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 40px var(--gutter);
  background: var(--coral);
  text-align: center;
}
.intro p {
  max-width: 780px;
  margin: 0;
  font: 24px/40px var(--font-text);
  color: #ffffff;
}

.range__title {
  margin: 0;
  padding: 40px var(--gutter) 15px;
  background: var(--navy);
  text-align: center;
}
.range__title img {
  width: 200px;
}

.range__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  padding: 10px var(--gutter) 30px;
  background: var(--navy);
}
.range__nav a {
  position: relative;
  padding-bottom: 2px;
  font: 400 17px var(--font-title);
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.range__nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: auto;
  background: #2865bb;
  transition: width 0.5s ease;
}
.range__nav a:hover::after,
.range__nav a:focus::after {
  width: 100%;
}

/* Fiche produit : ardoise | bouteille | description, posés sur la table du visuel */
.product {
  display: grid;
  grid-template-columns: 1fr 400px 1fr;
  align-items: end;
  gap: 30px;
  min-height: calc(100vh - var(--header-height));
  padding: 60px 40px 8vh;
  background: no-repeat 50% 65% / cover;
}

.product__bottle {
  align-self: end;
  text-align: center;
}
.product__bottle img {
  width: 100%;
  max-width: 400px;
}

/* Ardoise */
.product__slate {
  position: relative;
  justify-self: end;
  width: 370px;
  min-height: 303px;
  padding: 50px 60px 40px 55px;
  background: url("/assets/uploads/images/bg_ardoise_boisclair.png") no-repeat 0 0 / 100% 100%;
  font: italic 15px/18px var(--font-serif);
  color: #ffffff;
}
.product__slate::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -70px;
  bottom: -30px;
  width: 160px;
  height: 113px;
  background: url("/assets/uploads/images/feuille_de_vigne.png") no-repeat 0 0 / contain;
  pointer-events: none;
}

.product__slate p {
  margin: 0 0 5px 20px;
}

.product__info {
  min-height: 45px;
  padding-left: 44px;
  background: no-repeat 0 0;
}
.product__info--geo {
  background-image: url("/assets/uploads/images/icon_zone_geographique.png");
  background-position: 6px 0;
  background-size: 22px auto;
}
.product__info--alcohol {
  background-image: url("/assets/uploads/images/icon_alcool_percentage.png");
  background-size: 32px auto;
}
.product__info--temperature {
  background-image: url("/assets/uploads/images/icon_degre_service.png");
  background-position: 7px 0;
  background-size: 18px auto;
}

.product__formats {
  padding-left: 12px;
    padding-bottom: 40px;
}
.product__format {
  display: inline-block;
  margin-right: 15px;
  padding-left: 30px;
  background: url("/assets/uploads/images/icon_capacity_75cl.png") no-repeat 0 50% / auto 32px;
  font: normal 17px/40px var(--font-text);
  font-style: normal;
}

/* Description */
.product__description {
  align-self: center;
  max-width: 420px;
  padding: 30px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 22px;
}
.product__description h3 {
  margin-bottom: 15px;
  font: 24px var(--font-text);
  color: #024299;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product__description h4 {
  margin: 15px 0 5px;
  font: 14px var(--font-text);
  font-weight: bold;
  text-transform: uppercase;
}
.product__description h4::before {
  content: "• ";
}
.product__calories {
  display: inline-block;
}

@media (max-width: 1199px) {
  .product {
    grid-template-columns: 1fr 1fr;
    padding: 50px var(--gutter);
  }
  .product__bottle {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .product__bottle img {
    max-width: 300px;
  }
}
@media (max-width: 767px) {
  .product {
    grid-template-columns: 1fr;
    justify-items: center;
    background-position: 50% 100%;
  }
  .product__bottle img {
    max-width: 240px;
  }
  .product__slate {
    justify-self: center;
    width: 100%;
    max-width: 340px;
    min-height: 0;
    padding: 40px 40px 30px;
  }
  .product__description {
    justify-self: stretch;
    max-width: none;
    padding: 25px 20px;
  }
  .product__slate::after {
    right: -10px;
    width: 110px;
    height: 78px;
  }
}

/* ==========================================================================
#ACTUALITES
========================================================================== */
.news {
  position: relative;
  display: grid;
  grid-template-columns: 9fr 3fr;
  background: var(--blue-mid);
  color: #ffffff;
}
.news--alternate {
  grid-template-columns: 3fr 9fr;
  background: url("/assets/uploads/images/grunge-bg-2.png") top left;
  color: #333333;
}
.news--alternate .news__picture {
  order: -1;
}

.news__picture {
  order: 2;
  min-height: 300px;
  background: no-repeat 50% 50% / cover;
}

.news__infos {
  display: grid;
  grid-template-columns: 2fr 10fr;
  gap: 30px;
  max-width: 820px;
  width: 100%;
  margin-left: auto;
  padding: 75px 30px;
}
.news--alternate .news__infos {
  margin-left: 0;
}

.news .news-date {
  color: #ffffff;
}
.news--alternate .news-date {
  color: var(--coral);
}

.news__title {
  margin-top: 5px;
  font: italic bold 20px/26px var(--font-serif);
}
.news--alternate .news__title {
  color: var(--coral);
}

.news__summary,
.news__content {
  padding-bottom: 20px;
  line-height: 24px;
}
.news__content p,
.news__content ul {
  margin: 0 0 10px;
}
.news__content a {
  color: inherit;
  text-decoration: underline;
}
.news__content a:hover {
  text-decoration: none;
}
.news.is-open .news__summary {
  display: none;
}

/* Bouton +/- */
.news__toggle {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  transition: background-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.news__toggle::before,
.news__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  background: currentColor;
  transition: transform 0.25s;
}
.news__toggle::after {
  transform: rotate(90deg);
}
.news.is-open .news__toggle::after {
  transform: rotate(0deg);
}
.news__toggle:hover,
.news__toggle:focus-visible {
  background: #ffffff;
  color: var(--blue-mid);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}
.news--alternate .news__toggle {
  border-color: var(--coral);
  color: var(--coral);
}
.news--alternate .news__toggle:hover,
.news--alternate .news__toggle:focus-visible {
  background: var(--coral);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(239, 117, 98, 0.3);
}

@media (max-width: 991px) {
  .news,
  .news--alternate {
    grid-template-columns: 1fr;
  }
  .news__picture,
  .news--alternate .news__picture {
    order: -1;
    min-height: 260px;
  }
  .news__infos {
    margin: 0 auto;
    padding: 40px var(--gutter);
  }
  .news--alternate .news__infos {
    margin: 0 auto;
  }
}
@media (max-width: 479px) {
  .news__infos {
    grid-template-columns: 1fr 3fr;
    gap: 15px;
  }
}

/* ==========================================================================
#CONTACT
========================================================================== */
.contact-api {
  max-width: 900px;
  margin: 0 auto;
}
.contact-api > h1 {
  margin: 20px 0;
  font: 300 40px var(--font-text);
  color: var(--navy);
  text-align: center;
  letter-spacing: 2px;
}
.contact-api > p {
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 1.1em;
  text-align: center;
}

/* ==========================================================================
#LEGAL (module CDN Castel : /mentions-legales et /agec)
========================================================================== */
/* Les sections sont en position absolue dans le module : on remet la section active dans le flux
   pour que la page prenne sa hauteur et garde de l'air en bas (pas de footer sur ces pages) */
#legal-pages .legal-sections section.active {
  position: relative;
}
.mentions-legales .main,
.agec .main {
  padding-bottom: 150px;
}
