/* =====================================================================
   LOOP & SHOP — Styles des blocs CMS (page builder)
   ===================================================================== */

.block { position: relative; }
.block + .block { margin-top: 0; }

/* ============================ HERO SLIDER ============================ */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero--tall   { min-height: 85vh; }
.hero--medium { min-height: 620px; }
.hero--short  { min-height: 440px; }

.hero__track { display: flex; height: 100%; }
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,27,58,var(--overlay, .5)) 0%, rgba(11,27,58,calc(var(--overlay, .5) * .35)) 65%, transparent 100%);
  z-index: 1;
}
.hero__slide--center::before { background: rgba(11,27,58,var(--overlay, .5)); }
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s ease-out;
}
.hero__slide.is-active .hero__bg { transform: scale(1); }

.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: 80px; }
.hero__content { max-width: 620px; }
.hero__content--center { max-width: 780px; margin-inline: auto; text-align: center; }
.hero__content--right { margin-left: auto; text-align: right; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(249,200,70,.15);
  border: 1px solid rgba(249,200,70,.35);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero__title {
  font-size: clamp(2.2rem, 5.2vw, 4.15rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__title em {
  font-style: normal;
  color: var(--brand);
  text-shadow: 0 0 34px var(--brand-glow);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.88);
  max-width: 54ch;
  margin-bottom: 34px;
  line-height: 1.7;
}
.hero__content--center .hero__sub { margin-inline: auto; }
.hero__content--right .hero__sub { margin-left: auto; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__content--center .hero__actions { justify-content: center; }
.hero__content--right .hero__actions { justify-content: flex-end; }

.hero__slide--dark .hero__title { color: var(--ink); text-shadow: none; }
.hero__slide--dark .hero__sub { color: var(--text-2); }
.hero__slide--dark::before { background: linear-gradient(100deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.4) 60%, transparent 100%); }

.hero__dots {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.4);
  transition: all var(--t);
}
.hero__dot.is-active { width: 34px; background: var(--brand); }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  color: #fff;
  z-index: 6;
  transition: all var(--t-fast);
}
.hero__arrow:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.hero__arrow--prev { left: 30px; }
.hero__arrow--next { right: 30px; }

/* Animation d'entree du contenu */
.hero__slide.is-active .hero__eyebrow,
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__sub,
.hero__slide.is-active .hero__actions { animation: heroUp .8s cubic-bezier(.16,1,.3,1) both; }
.hero__slide.is-active .hero__title   { animation-delay: .1s; }
.hero__slide.is-active .hero__sub     { animation-delay: .2s; }
.hero__slide.is-active .hero__actions { animation-delay: .3s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } }

/* =========================== BANDEAU USP =========================== */
.usp { padding-block: 40px; }
.usp--dark { background: var(--ink); color: rgba(255,255,255,.8); }
.usp__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.usp__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r);
  transition: transform var(--t), box-shadow var(--t);
}
.usp--cards .usp__item { background: var(--surface); border: 1px solid var(--line); }
.usp--cards .usp__item:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.usp--dark .usp__item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.usp__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand-700);
  flex-shrink: 0;
}
.usp--dark .usp__icon { background: rgba(249,200,70,.14); color: var(--brand); }
.usp__title { font-family: var(--font-heading); font-weight: 800; font-size: .96rem; color: var(--ink); margin-bottom: 2px; }
.usp--dark .usp__title { color: #fff; }
.usp__text { font-size: .84rem; color: var(--text-2); }
.usp--dark .usp__text { color: rgba(255,255,255,.6); }

/* ========================== GRILLE CATEGORIES ========================== */
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ink);
  isolation: isolate;
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,27,58,.88) 0%, rgba(11,27,58,.25) 55%, transparent 100%);
  z-index: 1;
}
.cat-card__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  z-index: 2;
  color: #fff;
}
.cat-card__name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.cat-card__count { font-size: .82rem; opacity: .78; }
.cat-card__arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  color: #fff;
  z-index: 2;
  transform: translateY(-8px);
  opacity: 0;
  transition: all var(--t);
}
.cat-card:hover .cat-card__arrow { opacity: 1; transform: none; background: var(--brand); color: var(--ink); }

/* Variante carte claire */
.cat-card--light { aspect-ratio: auto; background: var(--surface); border: 1px solid var(--line); }
.cat-card--light::after { display: none; }
.cat-card--light .cat-card__media { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.cat-card--light img { position: absolute; }
.cat-card--light .cat-card__content { position: static; padding: 18px; color: var(--text); text-align: center; }
.cat-card--light .cat-card__name { color: var(--ink); font-size: 1.05rem; }
.cat-card--light .cat-card__count { color: var(--text-3); }

/* Variante cercle */
.cat-circle { text-align: center; display: block; }
.cat-circle__img {
  width: 148px; height: 148px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--line);
  background: var(--surface-2);
  transition: all var(--t);
}
.cat-circle:hover .cat-circle__img { border-color: var(--brand); transform: translateY(-6px); box-shadow: var(--sh-gold); }
.cat-circle__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle__name { font-family: var(--font-heading); font-weight: 700; color: var(--ink); font-size: .96rem; }

/* ============================= BANNIERES ============================= */
.banner-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: 42px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.banner img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
  z-index: -2;
}
.banner:hover img { transform: scale(1.06); }
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11,27,58,.78), rgba(11,27,58,.2));
  z-index: -1;
}
.banner--dark::before { background: linear-gradient(105deg, rgba(255,255,255,.85), rgba(255,255,255,.35)); }
.banner__content { max-width: 340px; color: #fff; }
.banner--dark .banner__content { color: var(--ink); }
.banner__eyebrow {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}
.banner--dark .banner__eyebrow { color: var(--brand-700); }
.banner__title { font-size: 1.75rem; color: inherit; margin-bottom: 8px; }
.banner--dark .banner__title { color: var(--ink); }
.banner__sub { font-size: .95rem; opacity: .88; margin-bottom: 22px; }

/* Banniere pleine largeur */
.banner-full {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.banner-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,27,58,var(--overlay, .5));
}
.banner-full__content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.banner-full__content--center { margin-inline: auto; text-align: center; }
.banner-full__title { font-size: clamp(1.8rem, 3.6vw, 3rem); color: #fff; margin-bottom: 14px; }

/* ============================ COMPTE A REBOURS ============================ */
.countdown-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  padding: 46px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-700) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.countdown-block::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 68%);
}
.countdown-block__content { position: relative; z-index: 2; }
.countdown-block h2 { color: #fff; }
.countdown-block p { color: rgba(255,255,255,.78); }
.countdown-block__img { border-radius: var(--r-lg); overflow: hidden; position: relative; z-index: 2; }

.countdown { display: flex; gap: 12px; margin: 26px 0 30px; }
.countdown__unit {
  min-width: 78px;
  padding: 16px 12px;
  text-align: center;
  border-radius: var(--r);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}
.countdown__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.countdown__label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .7;
  margin-top: 6px;
  display: block;
}

/* ============================== FEATURES ============================== */
.feature-card {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.feature-card__icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  color: var(--brand-700);
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.feature-card__title { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card__text { color: var(--text-2); font-size: .93rem; }

/* ================================ ETAPES ================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; position: relative; }
.step { text-align: center; position: relative; }
.step__num {
  width: 70px; height: 70px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 35px; left: calc(50% + 46px); right: calc(-50% + 46px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 14px);
}
.step__title { font-size: 1.05rem; margin-bottom: 7px; }
.step__text { color: var(--text-2); font-size: .9rem; }

/* ============================== CHIFFRES ============================== */
.stats-block { padding-block: 62px; }
.stats-block--dark { background: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; text-align: center; }
.stat__num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.stats-block:not(.stats-block--dark) .stat__num { color: var(--ink); }
.stat__label {
  font-size: .88rem;
  letter-spacing: .05em;
  margin-top: 9px;
  color: rgba(255,255,255,.68);
}
.stats-block:not(.stats-block--dark) .stat__label { color: var(--text-2); }

/* ============================= TEMOIGNAGES ============================= */
.testimonial {
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 14px; right: 26px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--brand);
  opacity: .16;
}
.testimonial__text { color: var(--text-2); font-size: .95rem; line-height: 1.75; flex: 1; }
.testimonial__author { display: flex; align-items: center; gap: 13px; }
.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.testimonial__name { font-weight: 700; color: var(--ink); font-size: .93rem; }
.testimonial__role { font-size: .8rem; color: var(--text-3); }

/* ================================= FAQ ================================= */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t);
}
.faq__item.is-open { border-color: var(--brand); box-shadow: var(--sh-sm); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.faq__q svg { flex-shrink: 0; color: var(--brand-700); transition: transform var(--t); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq__a-inner { padding: 0 24px 22px; color: var(--text-2); font-size: .94rem; line-height: 1.75; }

/* ================================ CTA ================================ */
.cta-block {
  position: relative;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-align: center;
}
.cta-block--gradient { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-600) 100%); color: #fff; }
.cta-block--gold { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%); color: var(--ink); }
.cta-block--dark { background: var(--ink); color: #fff; }
.cta-block::before {
  content: '';
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,200,70,.22), transparent 68%);
  pointer-events: none;
}
.cta-block--gold::before { background: radial-gradient(circle, rgba(255,255,255,.35), transparent 68%); }
.cta-block img.cta-block__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.cta-block__content { position: relative; z-index: 2; max-width: 660px; margin-inline: auto; }
.cta-block__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: inherit; margin-bottom: 14px; }
.cta-block--gradient .cta-block__title, .cta-block--dark .cta-block__title { color: #fff; }
.cta-block__sub { font-size: 1.02rem; opacity: .85; margin-bottom: 30px; }

/* ============================= NEWSLETTER ============================= */
.news-block {
  padding: clamp(36px, 5vw, 62px);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.news-block--dark { background: var(--ink); color: rgba(255,255,255,.8); }
.news-block--dark h2 { color: #fff; }
.news-block--gold { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: var(--ink); }
.news-block--soft { background: var(--surface-2); border: 1px solid var(--line); }
.news-block__form { display: flex; gap: 10px; }
.news-block__form .input { flex: 1; border-radius: var(--r-pill); height: 52px; }
.news-block--dark .news-block__form .input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
.news-block--dark .news-block__form .input::placeholder { color: rgba(255,255,255,.45); }
.news-block__note { font-size: .8rem; opacity: .7; margin-top: 12px; }

/* ============================ IMAGE + TEXTE ============================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}
.two-col--reverse .two-col__media { order: 2; }
.two-col__media { border-radius: var(--r-xl); overflow: hidden; position: relative; }
.two-col__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.two-col__media::after {
  content: '';
  position: absolute;
  inset: auto auto -22px -22px;
  width: 130px; height: 130px;
  border-radius: var(--r-lg);
  border: 3px solid var(--brand);
  z-index: -1;
}
.two-col__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 14px;
}

/* ============================== GALERIE ============================== */
.gallery-grid { display: grid; gap: 10px; }
.gallery-grid__item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gallery-grid__item:hover img { transform: scale(1.1); }
.gallery-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,27,58,.45);
  opacity: 0;
  transition: opacity var(--t);
}
.gallery-grid__item:hover::after { opacity: 1; }

/* ============================== VIDEO ============================== */
.video-block {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
.video-block img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.video-block iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px; height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 0 0 14px rgba(249,200,70,.2);
  transition: transform var(--t);
}
.video-block:hover .video-block__play { transform: scale(1.1); }

/* ============================== MARQUES ============================== */
.brands-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 52px; }
.brands-strip a { opacity: .55; transition: opacity var(--t), filter var(--t); }
.brands-strip--gray a { filter: grayscale(1); }
.brands-strip a:hover { opacity: 1; filter: none; }
.brands-strip img { max-height: 44px; width: auto; }

/* ============================== SPACER ============================== */
.spacer-block { width: 100%; }
.spacer-block hr { margin: 0; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 991px) {
  .hero--tall { min-height: 560px; }
  .hero--medium { min-height: 460px; }
  .hero__arrow { display: none; }
  .countdown-block { grid-template-columns: 1fr; padding: 32px; }
  .countdown-block__img { order: -1; }
  .news-block { grid-template-columns: 1fr; gap: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col--reverse .two-col__media { order: 0; }
  .two-col__media::after { display: none; }
  .step:not(:last-child)::after { display: none; }
  .banner { min-height: 240px; padding: 30px; }
}

@media (max-width: 640px) {
  .hero--tall, .hero--medium { min-height: 480px; }
  .hero__inner { padding-block: 50px; }
  .hero__actions .btn { flex: 1; }
  .countdown { gap: 8px; }
  .countdown__unit { min-width: 0; flex: 1; padding: 12px 6px; }
  .countdown__num { font-size: 1.5rem; }
  .news-block__form { flex-direction: column; }
  .cat-circle__img { width: 108px; height: 108px; }
  .brands-strip { gap: 18px 30px; }
  .brands-strip img { max-height: 32px; }
}
