/* ==========================================================================
   Fresh Coco — pages produit (en complément de styles.css)
   ========================================================================== */

.product {
  --brand: #0b3f8f;        /* bleu du logo */
  --brand-deep: #0a2f6b;
  --sky: #2f6fc6;          /* bleu des visuels */
  --sky-light: #8fc0ee;
  --accent: #ffffff;
  background: #f4f8fd;
}
.product--petillante { --accent: #bfe3fb; }

.p-wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.p-h2 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.03em; color: var(--brand-deep);
}
.p-h2 em { font-style: italic; color: var(--sky); }
.p-kicker { margin: 0 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- En-tête produit ---------- */
.p-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: #1d4f9c;
  color: #fff;
}
.p-hero__media { position: absolute; inset: 0; z-index: -1; }
.p-hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  animation: p-zoom 2.4s var(--ease) both;
}
.p-hero__media::after { /* lisibilité du texte à gauche */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 36, 84, .55) 0%, rgba(8, 36, 84, .15) 32%, rgba(8, 36, 84, 0) 45%, rgba(8, 36, 84, 0) 62%, rgba(8, 36, 84, .25) 100%);
}
@keyframes p-zoom { from { transform: scale(1.08); filter: blur(6px); opacity: .4; } to { transform: none; filter: none; opacity: 1; } }

.p-hero__inner {
  width: min(1320px, 100% - 48px); margin: 0 auto;
  padding: 120px 0 80px;
  display: grid; grid-template-columns: minmax(0, 420px) 1fr minmax(0, 240px); align-items: center; gap: 24px;
}
.p-hero__text { grid-column: 1; }
.p-hero__perks { grid-column: 3; }

.p-hero__text > * { animation: p-rise 1.2s var(--ease) both; }
.p-hero__text > :nth-child(2) { animation-delay: .1s; }
.p-hero__text > :nth-child(3) { animation-delay: .18s; }
.p-hero__text > :nth-child(4) { animation-delay: .26s; }
.p-hero__text > :nth-child(5) { animation-delay: .34s; }
.p-hero__text > :nth-child(6) { animation-delay: .42s; }
@keyframes p-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.p-crumb { display: flex; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 28px; }
.p-crumb a { color: inherit; text-decoration: none; }
.p-crumb a:hover { color: #fff; }
.p-eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); opacity: .9; }
.p-title {
  margin: 0 0 22px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -.035em;
  text-shadow: 0 10px 40px rgba(5, 25, 60, .35);
}
.p-title em { font-style: italic; color: var(--accent); }
.p-desc { margin: 0 0 30px; font-size: 16.5px; line-height: 1.65; color: rgba(255, 255, 255, .86); max-width: 400px; }

.p-formats { border: 0; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.p-formats legend { width: 100%; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.p-formats label { position: relative; cursor: pointer; }
.p-formats input { position: absolute; opacity: 0; pointer-events: none; }
.p-formats span {
  display: block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14.5px; font-weight: 600; transition: background .35s, color .35s, border-color .35s, transform .4s var(--ease);
}
.p-formats label:hover span { border-color: #fff; }
.p-formats input:checked + span { background: #fff; color: var(--brand); border-color: #fff; }
.p-formats input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }

.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.p-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px; border-radius: 999px; text-decoration: none;
  background: #fff; color: var(--brand); font-weight: 700; font-size: 15.5px;
  box-shadow: 0 18px 40px -16px rgba(5, 25, 60, .6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.p-cta svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.p-cta:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -18px rgba(5, 25, 60, .7); }
.p-cta:hover svg { transform: translateX(4px); }
.p-cta--dark { background: var(--brand); color: #fff; margin-top: 34px; }
.p-link { color: #fff; font-weight: 600; font-size: 14.5px; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .5); }

.p-hero__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; justify-items: end; }
.p-hero__perks li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14.5px; font-weight: 600;
  animation: p-rise 1.2s var(--ease) both;
}
.p-hero__perks li:nth-child(1) { animation-delay: .5s; }
.p-hero__perks li:nth-child(2) { animation-delay: .6s; }
.p-hero__perks li:nth-child(3) { animation-delay: .7s; }
.p-hero__perks li:nth-child(4) { animation-delay: .8s; }
.p-hero__perks svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .18); fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.p-hero__perks .p-hero__volume { flex-direction: column; gap: 0; align-items: flex-end; background: none; border: 0; backdrop-filter: none; padding-right: 0; }
.p-hero__volume strong { font-family: var(--serif); font-weight: 500; font-size: 64px; line-height: 1; letter-spacing: -.04em; }
.p-hero__volume span { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }

.p-scroll { position: absolute; left: 50%; bottom: 22px; width: 48px; height: 48px; margin-left: -24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); }
.p-scroll svg { width: 24px; height: 24px; animation: cue 2.4s var(--ease-soft) infinite; }

/* En-tête sur image claire (fond blanc) : texte bleu */
.p-hero--light { background: #fff; color: var(--brand-deep); }
.p-hero--light .p-hero__media::after { background: linear-gradient(90deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .4) 30%, rgba(255, 255, 255, 0) 46%); }
.p-hero--light .p-title { text-shadow: none; }
.p-hero--light .p-title em { color: var(--sky); }
.p-hero--light .p-crumb { color: rgba(10, 47, 107, .6); }
.p-hero--light .p-crumb a:hover { color: var(--brand); }
.p-hero--light .p-eyebrow { color: var(--sky); }
.p-hero--light .p-desc { color: var(--ink-soft); }
.p-hero--light .p-formats legend { color: rgba(10, 47, 107, .6); }
.p-hero--light .p-formats span { border-color: rgba(11, 63, 143, .25); background: rgba(255, 255, 255, .7); color: var(--brand-deep); }
.p-hero--light .p-formats label:hover span { border-color: var(--brand); }
.p-hero--light .p-formats input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.p-hero--light .p-cta { background: var(--brand); color: #fff; box-shadow: 0 18px 40px -16px rgba(11, 63, 143, .55); }
.p-hero--light .p-link { color: var(--brand); text-decoration-color: rgba(11, 63, 143, .35); }
.p-hero--light .p-hero__perks li { background: rgba(255, 255, 255, .75); border-color: rgba(11, 63, 143, .12); box-shadow: 0 14px 30px -20px rgba(11, 63, 143, .4); }
.p-hero--light .p-hero__perks svg { background: linear-gradient(145deg, var(--sky), var(--brand)); }
.p-hero--light .p-hero__perks .p-hero__volume { background: none; box-shadow: none; }
.p-hero--light .p-scroll { color: var(--brand); background: rgba(11, 63, 143, .08); }
@media (max-width: 860px) {
  .p-hero--light .p-hero__media::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, #fff 100%); }
}

/* ---------- Bandeau défilant ---------- */
.p-marquee { overflow: hidden; background: var(--brand-deep); color: #fff; padding: 22px 0; }
.p-marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: p-marquee 28s linear infinite; }
.p-marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 30px); white-space: nowrap; }
.p-marquee i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-light); flex: none; }
@keyframes p-marquee { to { transform: translateX(-50%); } }

/* ---------- Les atouts ---------- */
.p-perks { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 160px) 0; background: radial-gradient(70% 60% at 85% 10%, #dcecfb, transparent 70%), #f4f8fd; }
.p-deco { position: absolute; pointer-events: none; filter: drop-shadow(0 30px 40px rgba(20, 50, 90, .25)); }
.p-deco--top { width: clamp(160px, 20vw, 290px); right: -40px; top: 60px; transform: rotate(-14deg); animation: p-float 7s var(--ease-soft) infinite; -webkit-mask-image: linear-gradient(#000 62%, transparent 82%); mask-image: linear-gradient(#000 62%, transparent 82%); } /* masque : cache le reste de fond bleuté sous la coque */
@keyframes p-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

.p-cards { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  position: relative; padding: 34px 30px 36px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(240, 247, 255, .8));
  border: 1px solid #fff;
  box-shadow: 0 30px 60px -40px rgba(20, 60, 120, .45);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.p-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(20, 60, 120, .55); }
.p-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(145deg, var(--sky), var(--brand)); margin-bottom: 26px; box-shadow: 0 14px 30px -14px rgba(11, 63, 143, .7); }
.p-card__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.p-card h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--brand-deep); letter-spacing: -.01em; }
.p-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Fiche produit ---------- */
.p-spot { position: relative; overflow: hidden; padding: clamp(90px, 10vw, 150px) 0; background: linear-gradient(180deg, #f4f8fd, #e6f0fb); }
.p-spot__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 100px); }
.p-spot__can { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1000px; }
.p-spot__halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #ffffff, rgba(170, 210, 245, .6) 55%, transparent); }
.p-spot__img {
  position: relative; z-index: 2; height: min(560px, 70vh); width: auto;
  filter: drop-shadow(0 40px 40px rgba(15, 45, 90, .3));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-6deg);
  transition: transform .8s var(--ease);
  animation: p-float 6s var(--ease-soft) infinite;
}
.p-spot__coco { position: absolute; z-index: 1; width: 40%; bottom: -30px; right: -4%; transform: rotate(8deg); filter: drop-shadow(0 24px 30px rgba(15, 45, 90, .3)); }
.p-spot__logo { width: 150px; height: auto; margin-bottom: 22px; }
.p-specs { margin: 36px 0 0; border-top: 1px solid var(--line); }
.p-specs div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.p-specs dt { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.p-specs dd { margin: 0; font-weight: 600; color: var(--brand-deep); text-align: right; }

/* ---------- Découvrez aussi ---------- */
.p-more { padding: clamp(80px, 9vw, 130px) 0; background: #fff; }
.p-more__grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.p-more__card {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 380px; padding: 34px; border-radius: 30px; text-decoration: none; color: #fff;
  background: radial-gradient(70% 80% at 70% 30%, #6fa8e8, #1d4f9c 75%);
  transition: transform .6s var(--ease);
}
.p-more__card--petillante { background: radial-gradient(70% 80% at 70% 30%, #8ccbf2, #2a63b5 75%); }
.p-more__card--originale { background: radial-gradient(70% 80% at 70% 30%, #7aa9e6, #163f85 75%); }
.p-more__card--soon { background: radial-gradient(70% 80% at 70% 30%, #b9c8d8, #64788f 75%); }
a.p-more__card:hover { transform: translateY(-6px); }
.p-more__card img { position: absolute; right: 8%; top: 50%; height: 88%; width: auto; transform: translateY(-50%) rotate(8deg); filter: drop-shadow(0 30px 30px rgba(5, 25, 60, .35)); transition: transform .8s var(--ease); }
a.p-more__card:hover img { transform: translateY(-53%) rotate(4deg) scale(1.03); }
.p-more__label { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; max-width: 55%; }
.p-more__label small { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.p-more__arrow { position: absolute; left: 34px; top: 30px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .p-hero__inner { grid-template-columns: minmax(0, 380px) 1fr; }
  .p-hero__perks { display: none; }
}
@media (max-width: 860px) {
  .p-hero { display: block; min-height: 0; }
  .p-hero__media { position: relative; height: 78svh; }
  .p-hero__media::after { background: linear-gradient(180deg, rgba(8, 36, 84, 0) 60%, #1d4f9c 100%); }
  .p-hero__inner { width: auto; padding: 0 20px 70px; margin-top: -60px; display: block; position: relative; }
  .p-title { font-size: clamp(40px, 11vw, 56px); }
  .p-scroll { display: none; }
  .p-cards { grid-template-columns: 1fr; }
  .p-spot__grid { grid-template-columns: 1fr; }
  .p-spot__can { min-height: 420px; }
  .p-spot__img { height: 420px; }
  .p-more__grid { grid-template-columns: 1fr; }
  .p-more__card { min-height: 300px; }
  .p-deco--top { width: 140px; right: -30px; top: 20px; opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
