/*
Theme Name: Mydrinkable
Theme URI: https://mydrinkable.com
Author: Mydrinkable Team
Description: Thème WordPress officiel Mydrinkable — Le vrai goût des fruits. Design dynamique avec panneau de gestion des images.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: mydrinkable
Tags: food-and-drink, custom-colors, custom-header, custom-logo, full-width-template, one-column
*/

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', sans-serif;
  background: #fafaf7;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* ---- COLOUR TOKENS ---- */
:root {
  --blue:        #1d3461;
  --blue-mid:    #254785;
  --blue-light:  #e8eef8;
  --yellow:      #f5a800;
  --yellow-pale: #fff8e6;
  --green:       #3a8c3f;
  --green-pale:  #edf6ee;
  --red:         #c1121f;
  --cream:       #fdf9f2;
  --grey:        #6b6b6b;
  --border:      #e5e5e5;
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   32px;
  --radius-pill: 100px;
}

/* ---- UTILITIES ---- */
.visually-hidden { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }
img { display:block; max-width:100%; }
a { text-decoration:none; color:inherit; }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--blue);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  box-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.nav__logo { display:flex; align-items:center; gap:10px; }
.nav__logo-img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.25);
}
.nav__logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: .3px;
}
.nav__links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background .18s, color .18s;
}
.nav__links a:hover { background: rgba(255,255,255,.12); color:#fff; }
.nav__cta {
  background: var(--yellow);
  color: var(--blue) !important;
  font-weight: 900 !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-pill) !important;
  transition: transform .2s, box-shadow .2s !important;
}
.nav__cta:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(245,168,0,.38); background: var(--yellow) !important; }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: var(--yellow-pale);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  overflow: hidden;
}
.hero__left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 60px 80px 80px;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue);
  color: #fff;
  font-size: .78rem; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  width: fit-content;
}
.hero__tag-dot {
  width:7px; height:7px; border-radius:50%;
  background:var(--yellow);
  animation: blink 1.8s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.hero__h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: 1.08;
  color: var(--blue);
  margin-bottom: 22px;
}
.hero__h1 em { color: var(--yellow); font-style:normal; }
.hero__sub {
  font-size: 1.1rem; font-weight: 600;
  color: #444;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 40px;
}
.hero__actions { display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800; font-size: .95rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 4px 20px rgba(29,52,97,.22); }
.btn--primary:hover { box-shadow:0 10px 32px rgba(29,52,97,.32); }
.btn--yellow { background: var(--yellow); color: var(--blue); box-shadow: 0 4px 20px rgba(245,168,0,.28); }
.btn--yellow:hover { box-shadow: 0 10px 32px rgba(245,168,0,.45); }
.btn--outline { background: transparent; color: var(--blue); border: 2.5px solid var(--blue); }
.btn--outline:hover { background:var(--blue); color:#fff; }
.btn--wa { background:#25d366; color:#fff; }
.btn--wa:hover { box-shadow:0 10px 32px rgba(37,211,102,.4); }

.hero__right {
  position: relative; overflow: hidden;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.hero__right-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .92;
  transition: transform 8s ease;
}
.hero__right:hover .hero__right-img { transform: scale(1.04); }
.hero__badge {
  position: absolute; bottom: 28px; left: 28px;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 900; font-size: .82rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ============================================================
   TICKER
============================================================ */
.ticker-wrap {
  background: var(--yellow);
  overflow: hidden;
  padding: 13px 0;
  white-space: nowrap;
}
.ticker {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  font-weight: 900; font-size: .88rem; color: var(--blue);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 0 32px;
  display: inline-flex; align-items: center; gap: 14px;
}
.ticker-item::after { content:'✦'; color:rgba(29,52,97,.35); font-size:.7rem; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ============================================================
   SECTION WRAPPERS
============================================================ */
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section--blue  { background: var(--blue); }
.section--yellow{ background: var(--yellow-pale); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

.section__eyebrow {
  font-size: .75rem; font-weight: 900;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}
.section__title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  color: var(--blue);
  margin-bottom: 16px;
}
.section--blue .section__title { color:#fff; }
.section__body {
  font-size: 1.05rem; font-weight: 600; color: #555;
  line-height: 1.72; max-width: 560px;
}
.section--blue .section__body { color:rgba(255,255,255,.7); }

/* ============================================================
   PRODUCT GRID
============================================================ */
.drinks-intro {
  display: grid; grid-template-columns:1fr 1fr;
  gap: 0; align-items: stretch; overflow:hidden;
}
.drinks-intro__text {
  padding: 64px 60px;
  background: var(--cream);
  display:flex; flex-direction:column; justify-content:center;
}
.drinks-intro__image { overflow:hidden; max-height:480px; }
.drinks-intro__image img { width:100%; height:100%; object-fit:cover; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.product-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1.1;
}
.product-tile__img {
  width:100%; height:100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.product-tile:hover .product-tile__img { transform: scale(1.07); }
.product-tile__overlay {
  position: absolute; inset:0;
  background: linear-gradient(to top, rgba(29,52,97,.88) 0%, transparent 55%);
  display: flex; flex-direction:column; justify-content:flex-end;
  padding: 22px 20px;
  opacity:0; transition: opacity .3s;
}
.product-tile:hover .product-tile__overlay { opacity:1; }
.product-tile__name {
  font-family:'Fredoka One',cursive;
  font-size:1.6rem; color:#fff; line-height:1;
  margin-bottom: 4px;
}
.product-tile__tagline {
  font-size: .82rem; color:rgba(255,255,255,.8); font-weight:700;
}
.product-tile__band {
  position:absolute; bottom:0; left:0; right:0;
  height: 6px;
}
.band-baobab    { background: #b5936a; }
.band-ginger    { background: #d4890a; }
.band-cassi     { background: #e8c62a; }
.band-mangue    { background: #ff7700; }
.band-detox     { background: #3a8c3f; }
.band-bissap    { background: #8B0000; }
.band-ananas    { background: #a0a000; }
.band-pasteque  { background: #e05c6e; }

/* ============================================================
   PRODUCT CARDS
============================================================ */
.cards-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: transform .28s, box-shadow .28s;
}
.card:hover { transform:translateY(-8px); box-shadow:0 20px 48px rgba(0,0,0,.1); }
.card__img-wrap { overflow:hidden; height:220px; background:#f5f5f0; }
.card__img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.card:hover .card__img-wrap img { transform:scale(1.06); }
.card__body { padding: 20px 22px 24px; }
.card__name { font-family:'Fredoka One',cursive; font-size:1.35rem; color:var(--blue); margin-bottom:6px; }
.card__desc { font-size:.88rem; color:#666; font-weight:600; line-height:1.55; margin-bottom:14px; }
.card__benefits { list-style:none; margin-bottom:16px; }
.card__benefits li {
  font-size:.82rem; font-weight:700; color:#444;
  padding:3px 0;
  display:flex; align-items:center; gap:7px;
}
.card__benefits li::before {
  content:''; width:7px; height:7px; border-radius:50%;
  background:var(--yellow); flex-shrink:0;
}
.card__prices { display:flex; gap:7px; flex-wrap:wrap; }
.price-pill {
  font-size:.75rem; font-weight:900;
  padding: 5px 13px; border-radius:var(--radius-pill);
  background: var(--blue-light); color: var(--blue);
}
.price-pill--alt { background:var(--yellow); color:var(--blue); }

/* ============================================================
   BENTO GRID
============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}
.bento__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border);
  transition: transform .28s, box-shadow .28s;
}
.bento__item:hover { transform:translateY(-5px); box-shadow:0 16px 40px rgba(0,0,0,.09); }
.bento__item--wide { grid-column: span 2; }
.bento__item--tall { grid-row: span 2; }
.bento__item--blue { background:var(--blue); border-color:var(--blue); }
.bento__item--yellow { background:var(--yellow); border-color:var(--yellow); }
.bento__img { width:100%; height:260px; object-fit:cover; }
.bento__item--tall .bento__img { height:100%; max-height:540px; }
.bento__content { padding:28px 30px; }
.bento__eyebrow {
  font-size:.72rem; font-weight:900; text-transform:uppercase;
  letter-spacing:2px; margin-bottom:9px;
  color: var(--yellow);
}
.bento__item--yellow .bento__eyebrow { color:var(--blue); }
.bento__h3 {
  font-family:'Fredoka One',cursive;
  font-size:1.6rem; line-height:1.15; margin-bottom:10px;
  color: var(--blue);
}
.bento__item--blue .bento__h3 { color:#fff; }
.bento__item--yellow .bento__h3 { color:var(--blue); }
.bento__p { font-size:.9rem; font-weight:600; color:#555; line-height:1.6; }
.bento__item--blue .bento__p { color:rgba(255,255,255,.72); }
.bento__item--yellow .bento__p { color:rgba(29,52,97,.75); }
.bento__link {
  display:inline-flex; align-items:center; gap:6px;
  margin-top:16px; font-weight:900; font-size:.85rem;
  color:var(--blue); text-decoration:none;
  border-bottom: 2px solid currentColor; padding-bottom:1px;
  transition: opacity .2s;
}
.bento__item--blue .bento__link { color:var(--yellow); }
.bento__link:hover { opacity:.7; }

/* ============================================================
   STEPS
============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
  counter-reset: steps;
}
.step {
  counter-increment: steps;
  text-align:center;
  padding:36px 20px;
  border-radius:var(--radius-lg);
  background:#fff;
  border:1.5px solid var(--border);
  transition: transform .25s;
}
.step:hover { transform:translateY(-6px); }
.step::before {
  content: counter(steps);
  font-family:'Fredoka One',cursive;
  font-size:2.2rem; color:var(--yellow);
  display:block; margin-bottom:14px;
}
.step__icon { font-size:2rem; margin-bottom:12px; }
.step__title { font-family:'Fredoka One',cursive; font-size:1.2rem; color:var(--blue); margin-bottom:8px; }
.step__desc { font-size:.87rem; color:#666; font-weight:600; line-height:1.6; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.testi {
  background:#fff; border-radius:var(--radius-md);
  padding:28px; border:1.5px solid var(--border);
  position:relative; overflow:hidden;
}
.testi::before {
  content:'"';
  font-family:Georgia,serif;
  font-size:6rem; line-height:.8;
  color:var(--yellow);
  position:absolute; top:8px; left:16px;
  opacity:.6;
}
.testi__text { font-size:.92rem; font-weight:600; color:#333; line-height:1.65; margin-top:28px; }
.testi__footer { display:flex; align-items:center; gap:12px; margin-top:18px; }
.testi__avatar {
  width:40px; height:40px; border-radius:50%;
  background:var(--blue); color:#fff;
  font-weight:900; font-size:1rem;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.testi__name { font-weight:800; font-size:.88rem; color:var(--blue); }
.testi__loc  { font-size:.78rem; color:#999; font-weight:600; }
.testi__stars { color:var(--yellow); font-size:.9rem; margin-left:auto; letter-spacing:1px; }

/* ============================================================
   BIG CTA
============================================================ */
.cta-block {
  background: var(--blue);
  padding: 100px 40px;
  text-align:center;
}
.cta-block__title {
  font-family:'Fredoka One',cursive;
  font-size: clamp(2.2rem,4.5vw,4rem);
  color:#fff; margin-bottom:16px;
}
.cta-block__title span { color:var(--yellow); }
.cta-block__sub { font-size:1.05rem; font-weight:600; color:rgba(255,255,255,.7); margin-bottom:42px; }
.cta-block__buttons { display:flex; justify-content:center; gap:14px; flex-wrap:wrap; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #111c30;
  padding: 72px 0 36px;
  color: rgba(255,255,255,.65);
}
.footer__grid {
  display:grid; grid-template-columns:2.2fr 1fr 1fr 1fr;
  gap:48px; margin-bottom:56px;
}
.footer__brand-logo { width:56px; border-radius:50%; margin-bottom:16px; }
.footer__brand-name { font-family:'Fredoka One',cursive; font-size:1.4rem; color:#fff; margin-bottom:10px; }
.footer__brand-desc { font-size:.87rem; font-weight:600; line-height:1.65; max-width:280px; }
.footer__heading { color:#fff; font-weight:900; font-size:.88rem; text-transform:uppercase; letter-spacing:1.5px; margin-bottom:18px; }
.footer__links { list-style:none; }
.footer__links li { margin-bottom:10px; }
.footer__links a { font-size:.87rem; font-weight:600; color:rgba(255,255,255,.6); transition:color .2s; }
.footer__links a:hover { color:var(--yellow); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top:32px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
}
.footer__copy { font-size:.85rem; font-weight:600; }
.social-row { display:flex; gap:10px; }
.social-btn {
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.7);
  display:flex; align-items:center; justify-content:center;
  font-size:.8rem; font-weight:900;
  transition: background .2s, color .2s;
  text-decoration:none;
}
.social-btn:hover { background:var(--yellow); color:var(--blue); }

/* ============================================================
   REVEAL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__right { min-height: 50vw; }
  .hero__left { padding: 60px 40px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__item--wide { grid-column: span 2; }
  .bento__item--tall { grid-row: span 1; }
  .bento__item--tall .bento__img { height: 260px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .drinks-intro { grid-template-columns: 1fr; }
  .drinks-intro__image { max-height: 360px; }
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__links { display: none; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: span 1; }
  .section { padding:60px 0; }
}
@media (max-width: 540px) {
  .products-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__h1 { font-size:2.6rem; }
}
