/* ====================================================================
   PINEAU DES CHARENTES — Landing page
   Squelette responsive. Variables, zones, table superposée,
   carrousel, bandeaux orange.
==================================================================== */

/* --- Polices de la créa --- */
/* @font-face {
  font-family: "Century Gothic";
  src: url("../fonts/CenturyGothic.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
} */
@font-face {
  font-family: "Century Gothic";
  src: url("/des-possibilites/fonts/CenturyGothic.ttf") format("truetype");
  font-weight: 400;
  /* Regular = poids exact, pas une plage */
  font-display: swap;
}

@font-face {
  font-family: "Century Gothic";
  /* src: url("../fonts/CenturyGothicBold.ttf") format("truetype"); */
  src: url("/des-possibilites/fonts/century-gothic-bold.ttf") format("truetype");
  font-weight: 700;
  /* le vrai Bold */
  font-display: swap;
}

@font-face {
  font-family: "Roustel";
  src: url("/des-possibilites/fonts/Roustel.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --orange: #e8623a;
  --orange-soft: #f59b3c;
  --yellow: #f5b740;
  --dark: #1a1208;
  --cream: #fff8ee;
  --text-dark: #2a1a0e;

  --maxw: 1024px;
  /* largeur de référence de la créa */
  --font-sans: "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Roustel", "Brush Script MT", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--yellow);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

em {
  font-style: italic;
}

/* ====================================================================
   AGE GATE — vérification de l'âge (overlay plein écran)
==================================================================== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate[hidden] {
  display: none;
}

.age-gate__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/des-possibilites/img/hero-bg.webp") center/cover no-repeat;
  background-color: #e98a6b;
}

.age-gate__panel {
  position: relative;
  width: min(100%, 380px);
}

.age-gate__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .45));
}

/* Boutons superposés sur la zone libre, en bas du visuel */
.age-gate__buttons {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14%;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.age-gate__btn {
  min-width: 110px;
  padding: 16px 28px;
  font-size: clamp(13px, 3vw, 20px);
  font-weight: 700;
  letter-spacing: .06em;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid #000;
  border-radius: 0;
  transition: background .2s;
}

.age-gate__btn:hover {
  background: rgba(0, 0, 0, .06);
}

/* ====================================================================
   ZONE 1 — HERO
==================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  color: #fff;
  padding-bottom: 0;
  clear: both;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/des-possibilites/img/hero-bg.webp") top/cover no-repeat;
  /* fallback dégradé coucher de soleil tant que l'image n'est pas dispo */
  background-color: #e98a6b;
  background-blend-mode: normal;
}

.hero__bg::after {
  /* léger voile pour lisibilité du texte */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0) 40%);
}

/* --- Navigation --- */
.topnav {
  position: relative;
  z-index: 2;
  padding: 12px 8px;
  background: #000;
  color: #FFF;
  /* color: #cfc4b4; */
  clear: both;
  margin: 0;
}

.topnav__list {
  display: flex;
  justify-content: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.topnav__list li:not(:last-child)::after {
  content: "|";
  margin-left: 18px;
  /* color: #ed6947; */
  opacity: .5;
  vertical-align: bottom;
}

/* --- Titre géant --- */
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.hero__title {
  margin: 0;
  /* margin: -10px 0 0; */
  line-height: .9;
  font-weight: 800;
  /* color: rgba(255, 255, 255, .35); */
  color: #ffddbe99;
  /* translucide */

  display: flex;
  flex-direction: column;
  /* La boîte ne dépasse pas la largeur de "PINEAU" (la ligne la plus large),
     donc son bord droit tombe pile sur le "U" */
  width: fit-content;
  margin: 0 auto;
}

.hero__title-main {
  display: block;
  font-size: clamp(56px, 13vw, 150px);
  /* letter-spacing: .04em; */
  letter-spacing: -2px;
}

.hero__title-sub {
  display: block;
  font-size: clamp(16px, 3.2vw, 34px);
  /* letter-spacing: .35em; */
  letter-spacing: 0px;
  text-align: right;

}

/* --- Accroche --- */
.hero__pitch {
  margin-top: 8px;
}

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(26px, 5vw, 46px);
  margin: 0 0 8px;
  color: var(--orange);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.hero__script {
  color: #fff;
}

.hero__text {
  font-size: clamp(11px, 1.6vw, 15px);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 460px;
  text-shadow: 0 0 10px black;
}

.hero__text em {
  font-family: var(--font-script);
  font-size: 1.3rem;
  line-height: 0;
}

/* --- Table + cocktail superposés --- */
.table-overlay {
  position: relative;
  z-index: 1;
  margin: 10px auto 0;
  width: min(70%, 620px);
  width: min(80%, 1000px);
  width: min(100%, 1200px);
  /* width: 80%; */
}

.table-overlay__img {
  margin: 0 auto;
}

/* --- Claim bas de hero --- */
.table-overlay .hero__claim {
  position: absolute;
  z-index: 1;
  bottom: 0;
  margin: 4px 0 18px;
  margin: 0 auto 6px;
  width: 100%;
  font-weight: 800;
  font-size: clamp(12px, 3vw, 40px);
  color: var(--orange);
  line-height: 1.05;
}

.table-overlay .hero__claim em {
  font-family: var(--font-script);
  font-weight: 400;
}

/* --- Bandeau onglets --- */
.tabs {
  position: relative;
  z-index: 2;
  background: var(--dark);
  padding: 12px 8px;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tabs__btn {
  color: #cfc4b4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  position: relative;
  transition: color .2s;
}

.tabs__list li:not(:last-child) .tabs__btn::after {
  content: "|";
  position: absolute;
  right: -8px;
  color: #5a4d3a;
}

.tabs__btn:hover {
  color: #fff;
}

.tabs__btn.is-active {
  color: var(--orange);
}

/* ====================================================================
   ZONE 2 — CARROUSEL (bg jaune)
==================================================================== */
.zone2 {
  position: relative;
  isolation: isolate;
  padding: 60px 16px 80px;
  overflow: hidden;
}

.zone2__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/des-possibilites/img/zone2-bg.webp") center/cover no-repeat, var(--yellow);
}

/* --- Carrousel --- */
.carousel {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel__viewport {
  overflow: hidden;
  flex: 1;
  /* Fondu sur les bords : les cartes voisines s'estompent au lieu d'être coupées net */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.carousel__track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 20px 0;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.carousel__arrow {
  font-size: 0;
  /* masque tout texte résiduel */
  line-height: 1;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity .2s;
}

.carousel__arrow--prev {
  background-image: url("/des-possibilites/img/arrow-left.png");
  background-position: center;
  background-size: 30% auto;
}

.carousel__arrow--next {
  background-image: url("/des-possibilites/img/arrow-right.png");
  background-position: center;
  background-size: 30% auto;
}

.carousel__arrow:hover {
  opacity: .7;
}

/* --- Carte cocktail (image autoporteuse : texte + cœur intégrés) --- */
.card {
  flex: 0 0 80%;
  /* carte centrale large + aperçu doux des voisines */
  margin: 0 1%;
  transform: scale(.84);
  opacity: .5;
  transition: transform .45s, opacity .45s;
  cursor: pointer;
}

.card.is-active {
  transform: scale(1);
  opacity: 1;
}

.card__img {
  width: 100%;
  height: auto;
}

/* Ombre douce qui épouse les coins arrondis, seulement sur la carte active */
.card.is-active .card__img {
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35));
}

/* --- Bloc producteurs --- */
.producers {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 70px auto 0;
}

/* Bandeau orange diagonal qui CONTIENT le texte (suit sa hauteur -> responsive) */
.producers__band {
  position: relative;
  z-index: 0;
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 24px;
}

.producers__band::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 130vw;
  /* pleine largeur (déborde, .zone2 masque) */
  transform: translateX(-50%) rotate(-3deg);
  background: var(--orange);
  z-index: -1;
}

.producers__title {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  color: var(--cream);
  margin: 0 0 12px;
  line-height: 1.3;
}

.producers__title span {
  font-family: var(--font-script);
  font-weight: 400;
}

.producers__intro {
  /* color: var(--cream); */
  color: #000000;
  max-width: 460px;
  margin: 0 auto;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
}

/* --- Stories vidéo --- */
.stories {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
}

.story {
  display: block;
  padding: 0;
  width: 200px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .25);
  transition: transform .2s;
}

.story:hover {
  transform: translateY(-4px);
}

.story__img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Overlay lecteur vidéo (stories YouTube) --- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  /* Format vertical 9:16 des stories, limité à la hauteur de l'écran */
  max-height: 90vh;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: video-modal-in .25s ease;
}

@keyframes video-modal-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.video-modal__frame {
  width: 100%;
  height: 100%;
  background: #000;
}

.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-modal__close {
  position: absolute;
  top: -46px;
  right: 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, .3);
}

/* --- Outro --- */
.zone2__outro {
  text-align: center;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-dark);
  margin: 70px 0 0;
  line-height: 1.1;
}

.zone2__outro em {
  font-family: var(--font-script);
  font-size: 50px;
  font-weight: 400;
}

/* ====================================================================
   FOOTER LÉGAL
==================================================================== */
.legal {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  font-size: 12px;
  letter-spacing: .04em;
}

.legal p {
  margin: 0;
}

/* ====================================================================
   RESPONSIVE — tablette / desktop
==================================================================== */
@media (min-width: 768px) {

  /* La carte centrale montre davantage ses voisines */
  .card {
    flex: 0 0 60%;
  }

  /* Stories côte à côte */
  .stories {
    flex-direction: row;
    justify-content: center;
  }

  .story {
    width: 220px;
  }
}

@media (min-width: 1024px) {
  .card {
    flex: 0 0 48%;
  }
}