@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #15171A;
  --paper: #FAF9F6;
  --sage: #FF7A1A;
  --sage-soft: #FFE9C7;
  --blue-soft: #FFC93C;
  --gray-line: #E4E1DA;
  --gray-mid: #8A877F;
  --white: #FFFFFF;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --shadow-soft: 0 20px 60px -20px rgba(21, 23, 26, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.dark {
  --ink: #F4F2ED;
  --paper: #121315;
  --gray-line: #2A2C2F;
  --white: #1B1D20;
  --sage-soft: #3A2A12;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--sage);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
}

/* ---------- Sticky top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 9px 40px 9px 16px;
  position: relative;
  overflow: hidden;
}

.topbar-marquee {
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
  width: 100%;
}

.topbar-track {
  display: flex;
  gap: 40px;
  animation: marquee 50s linear infinite;
  width: max-content;
}

.topbar-track span {
  opacity: 0.85;
  flex-shrink: 0;
}

.topbar .close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--paper);
  font-size: 16px;
  opacity: 0.6;
  z-index: 10;
}

.topbar .close:hover {
  opacity: 1;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-line);
}

body.dark header {
  background: rgba(18, 19, 21, 0.86);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.logo::after {
  content: '.';
  color: var(--sage);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.75;
  transition: opacity .2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gray-line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-sage {
  background: var(--sage);
  color: var(--white);
}

.btn-sage:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.mobile-toggle {
  display: none;
  font-size: 22px;
  background: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 660px);
  display: flex;
  align-items: center;
  padding: 120px 0 130px;
  background-image: url('https://maisondesverres.com/images/hero-banner.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-color: var(--ink);
}

/* Voile degrade : assez dense a gauche pour lire le texte,
   quasi transparent a droite pour laisser voir la photo. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(16, 17, 20, .70) 0%, rgba(16, 17, 20, .45) 38%, rgba(16, 17, 20, .08) 72%, rgba(16, 17, 20, 0) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 660px;
}

.hero .eyebrow {
  color: var(--blue-soft);
}

.hero .eyebrow::before {
  background: var(--blue-soft);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero h1 em {
  font-style: normal;
  color: var(--sage);
}

.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, .82);
  margin: 22px 0 32px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--ink);
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(2px);
}

.hero .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
}

@media (max-width:640px) {
  .hero {
    min-height: 0;
    padding: 72px 0 80px;
    background-position: center;
  }
}

/* Opt-in card (section sous le hero) */
.optin-section {
  padding: 0 0 20px;
}

/* La carte est une colonne flex (voir le style inline du markup).
   align-items doit rester sur stretch : avec l'ancien `end` herite de la
   version en grille, le titre et le sous-titre etaient pousses a droite. */
.optin-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 52px;
}

.optin-card h3 {
  font-size: 18px;
  margin-bottom: 2px;
  font-weight: 600;
  text-align: left;
}

.optin-card .sub {
  color: var(--gray-mid);
  font-size: 14px;
  margin-bottom: 14px;
  text-align: left;
}

.consent-group-vertical {
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-mid);
}

.field input {
  padding: 12px 14px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  background: var(--paper);
  color: var(--ink);
}

.field input:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

.optin-card .btn {
  width: 100%;
  white-space: nowrap;
  height: 46px;
}

@media (max-width:640px) {
  .optin-fields-row {
    grid-template-columns: 1fr !important;
  }

  .optin-card .btn {
    width: 100%;
  }
}

/* ---------- Section shell ---------- */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
}

.section-head p {
  color: var(--gray-mid);
  font-size: 16px;
  margin-top: 14px;
}

.divider {
  height: 1px;
  background: var(--gray-line);
  border: none;
}

/* Pourquoi protéger ses yeux */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-line);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.why-card {
  background: var(--white);
  padding: 32px 26px;
}

.why-card .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sage);
  margin-bottom: 18px;
}

.why-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14.5px;
  color: var(--gray-mid);
}

@media (max-width:900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Types de lunettes */
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.type-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-line);
  transition: transform .2s ease;
}

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

.type-media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--sage-soft), var(--blue-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.type-body {
  padding: 20px;
}

.type-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.type-body p {
  font-size: 13.5px;
  color: var(--gray-mid);
  margin-bottom: 14px;
}

.type-body a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width:900px) {
  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .types-grid {
    grid-template-columns: 1fr;
  }
}

/* Sélection Maison des Verres */
.products-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--sage-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.product-info h4 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 6px 0 4px;
  line-height: 1.3;
  min-height: 42px;
}

.product-info .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 30px;
}

.price-old {
  font-size: 15px;
  font-weight: 500;
  color: #7c7970;
  text-decoration-line: line-through;
  text-decoration-color: #d94040;
  text-decoration-thickness: 2px;
  text-underline-offset: 0;
}

.price-now {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.product-info .btn {
  width: 100%;
  font-size: 13.5px;
  padding: 10px 16px;
  margin-top: auto;
}

@media (max-width:900px) {
  .products-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tendances */
.trends {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.trend-card {
  min-width: 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--paper);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

body.dark .trend-card {
  background: var(--sage-soft);
  color: var(--ink);
}

.trend-card .eyebrow {
  color: var(--blue-soft);
}

.trend-card h4 {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 600;
}

.trend-card p {
  font-size: 14px;
  opacity: .8;
}

/* Témoignages */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 26px;
}

.testi-card .stars {
  color: var(--sage);
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testi-card p {
  font-size: 14.5px;
  margin-bottom: 18px;
}

.testi-who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.testi-who .name {
  font-size: 13.5px;
  font-weight: 600;
}

.testi-who .role {
  font-size: 12px;
  color: var(--gray-mid);
}

@media (max-width:900px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--gray-line);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
}

.faq-q .plus {
  font-size: 20px;
  color: var(--sage);
  transition: transform .25s;
}

.faq-item.open .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a p {
  padding-bottom: 22px;
  color: var(--gray-mid);
  font-size: 14.5px;
  max-width: 640px;
}

/* Newsletter band */
.newsletter-band {
  background: var(--sage);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.newsletter-band h2 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 32px);
}

.newsletter-band p {
  opacity: .9;
  margin-top: 10px;
  font-size: 15px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  font-size: 14.5px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, .7);
}

.newsletter-form .btn {
  background: var(--ink);
  color: var(--white);
  white-space: nowrap;
}

@media (max-width:760px) {
  .newsletter-band {
    grid-template-columns: 1fr;
    padding: 36px 26px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* CTA final */
.cta-final {
  text-align: center;
  padding: 100px 0;
}

.cta-final h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  max-width: 680px;
  margin: 0 auto 22px;
}

.cta-final p {
  color: var(--gray-mid);
  max-width: 480px;
  margin: 0 auto 34px;
}

/* Footer */
footer {
  border-top: 1px solid var(--gray-line);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-grid h5 {
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-mid);
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-grid li a:hover {
  color: var(--sage);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--gray-line);
  font-size: 13px;
  color: var(--gray-mid);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width:900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Floating sticky mobile CTA */
.float-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid var(--gray-line);
  padding: 12px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .06);
}

.float-cta span {
  font-size: 13px;
  font-weight: 600;
}

@media (max-width:760px) {
  .float-cta {
    display: flex;
  }

  .mobile-toggle {
    display: block;
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    padding: 7px;
  }

  .nav-links {
    display: none;
  }

  .nav {
    position: relative;
    gap: 8px;
    padding: 12px 0;
  }

  .logo {
    flex: 0 0 auto;
    font-size: 17px;
  }

  .nav-actions {
    margin-left: auto;
    gap: 6px;
  }

  .nav-actions .btn {
    padding: 9px 12px;
    font-size: 11.5px;
  }

  .nav.menu-open .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: -24px;
    right: -24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--gray-line);
    box-shadow: 0 14px 24px rgba(21, 23, 26, .08);
  }

  .nav.menu-open .nav-links a {
    padding: 11px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-line);
  }

  .nav.menu-open .nav-links a:last-child {
    border-bottom: 0;
  }
}

@media (max-width:420px) {
  .logo {
    font-size: 15px;
  }

  .nav-actions .btn {
    padding: 8px 9px;
    font-size: 10px;
  }

  .mobile-toggle {
    font-size: 17px;
    padding: 5px;
  }
}

/* Exit intent modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 23, 26, .55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  font-size: 18px;
  color: var(--gray-mid);
}

.modal-box .eyebrow {
  margin-bottom: 10px;
}

.modal-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 600;
}

.modal-box p {
  color: var(--gray-mid);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.modal-box form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-box input {
  padding: 13px 14px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  background: var(--paper);
  color: var(--ink);
}

.modal-box .btn {
  width: 100%;
  margin-top: 4px;
}

/* Quiz result stub */
.quiz-teaser {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.quiz-teaser h2 {
  color: var(--paper);
  font-size: clamp(24px, 3vw, 32px);
}

.quiz-teaser p {
  opacity: .75;
  margin-top: 10px;
  max-width: 420px;
  font-size: 15px;
}

@media (max-width:760px) {
  .quiz-teaser {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  padding: 20px;
  z-index: 1000;
  display: none;
  /* hidden by default, shown via JS */
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  color: #FAF9F6;
  opacity: 0.95;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner .btn-primary {
  background: var(--sage);
  color: #ffffff;
  border: none;
}

.cookie-banner .btn-primary:hover {
  background: #e66a12;
  transform: translateY(-1px);
}

.cookie-banner .btn-ghost {
  background: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-banner .btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-bestseller {
  background: #fdf3c3;
  color: #8b6e00;
}

.badge-coupsdecoeur {
  background: #ffe1e1;
  color: #c42626;
}

/* Kelkoo Cards Specific */
.kelkoo-card .crea-title {
  font-size: 14px;
  font-style: italic;
  color: var(--gray-mid);
  margin-top: -4px;
  margin-bottom: 8px;
  min-height: 40px;
  line-height: 1.3;
}

/* Pastille de remise en surimpression sur la photo produit */
.promo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #d94040;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 7px 13px;
  border-radius: 100px;
  box-shadow: 0 6px 18px -6px rgba(217, 64, 64, .65);
}

/* Jeu-concours Block */
.concours-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 0;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Le panneau visuel est un cadre de reference : l'image le remplit en
   absolu (inset:0) et la pastille du compte a rebours se pose dessus. */
.concours-visual {
  position: relative;
  background: var(--sage-soft);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  min-height: 360px;
  overflow: hidden;
  text-align: center;
}

.concours-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Degrade bas pour detacher la pastille de la photo */
.concours-visual::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  z-index: 1;
  pointer-events: none;
}

.concours-visual .scarcity-pill {
  position: relative;
  z-index: 2;
  margin: 0;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .6);
}

.concours-form-wrap {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .concours-grid {
    grid-template-columns: 1fr;
  }

  .concours-visual {
    min-height: 300px;
  }
}

.trend-link {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trend-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.trend-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.2s;
}

.trend-link:hover .trend-cta {
  opacity: 1;
}
