/*
Theme Name: Audible France Landing
Theme URI: https://www.amazon.fr/hz/audible/mlp?actionCode=AMSTM1450129210001&tag=ska123344-21
Author: Audible France
Description: Landing page premium optimisee conversion pour la promotion de l'essai gratuit Audible en France, pensee pour Google Ads (mono-page, rapide, mobile-first).
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: audible-landing
*/

/* ==========================================================================
   Audible France — Landing Page Styles
   ========================================================================== */

:root {
  --color-primary: #FF9900;
  --color-primary-dark: #E68A00;
  --color-primary-light: #FFB84D;
  --color-black: #0F1111;
  --color-black-soft: #1A1D1F;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F8FA;
  --color-text: #17181A;
  --color-text-muted: #5B6169;
  --color-border: #E7E9EC;
  --shadow-sm: 0 2px 8px rgba(15, 17, 17, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 17, 17, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 17, 17, 0.14);
  --shadow-primary: 0 12px 28px rgba(255, 153, 0, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-width: 1180px;
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-black);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 153, 0, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

.btn-full {
  width: 100%;
}

.btn-header {
  padding: 10px 22px;
  font-size: 14px;
}

/* ==================== HEADER ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--color-black);
}

.logo-icon {
  font-size: 24px;
}

.logo-accent {
  color: var(--color-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-black);
  transition: color var(--transition);
}

.header-nav-link:hover {
  color: var(--color-primary);
}

/* ==================== HERO (dark split layout) ==================== */

.hero {
  position: relative;
  background: #0f1111;
  padding: 88px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(0.55) saturate(1.1);
  transform: scale(1.05);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(22, 24, 28, 0.9) 0%, rgba(11, 12, 14, 0.88) 65%, rgba(15, 17, 17, 0.92) 100%);
}

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #fff;
}

.text-accent {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.stars {
  font-size: 16px;
  letter-spacing: 2px;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

.hero-photo-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(255, 153, 0, 0.4);
}

/* ==================== BENEFITS STRIP (floats over hero bottom) ==================== */

.hero-benefits-strip {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  margin-bottom: 64px;
  background: var(--color-black-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.benefit-icon-purple { background: rgba(167, 139, 250, 0.18); }
.benefit-icon-orange { background: rgba(255, 153, 0, 0.18); }
.benefit-icon-blue   { background: rgba(96, 165, 250, 0.18); }
.benefit-icon-green  { background: rgba(74, 222, 128, 0.18); }

.benefit-item:nth-child(1) h3 { color: #a78bfa; }
.benefit-item:nth-child(2) h3 { color: var(--color-primary); }
.benefit-item:nth-child(3) h3 { color: #60a5fa; }
.benefit-item:nth-child(4) h3 { color: #4ade80; }

.benefit-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.benefit-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* ==================== SECTIONS GENERIC ==================== */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--color-black);
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 17px;
}

.disclaimer-text {
  font-style: italic;
  font-size: 14px;
  opacity: 0.8;
}

.center-cta {
  text-align: center;
  margin-top: 48px;
}

/* ==================== GRIDS / CARDS ==================== */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ==================== TIMELINE ==================== */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.timeline-step {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.timeline-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-black);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-primary);
}

.timeline-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-step p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ==================== CATEGORIES ==================== */

.categories-grid {
  grid-template-columns: repeat(6, 1fr);
}

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  gap: 4px;
}

.cat-icon {
  font-size: 22px;
}

/* ==================== WHY SECTION (DARK) ==================== */

.section-dark {
  background: var(--color-black);
  color: #fff;
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why-content h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  margin-bottom: 28px;
  line-height: 1.3;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-black-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
}

.why-icon {
  font-size: 20px;
}

.why-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ==================== TESTIMONIALS ==================== */

.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.testimonial-card p {
  margin: 16px 0 20px;
  font-size: 16px;
  color: var(--color-text);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-black);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
}

.testimonial-author small {
  color: var(--color-text-muted);
  font-size: 12px;
}

/* ==================== FAQ ==================== */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
}

.faq-toggle {
  font-size: 22px;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding var(--transition);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding: 0 24px 22px;
}

.faq-answer p {
  color: var(--color-text-muted);
  font-size: 15px;
}

.hero-microcopy {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ==================== FINAL CTA ==================== */

.final-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
}

.final-cta-inner h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--color-black);
  margin-bottom: 14px;
}

.final-cta-inner p {
  font-size: 18px;
  color: rgba(15, 17, 17, 0.75);
  margin-bottom: 32px;
}

.final-cta .btn-primary {
  background: var(--color-black);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

.final-cta .btn-primary:hover {
  background: var(--color-black-soft);
}

.final-cta .hero-microcopy {
  margin-top: 18px;
  color: rgba(15, 17, 17, 0.7);
}

/* ==================== FOOTER ==================== */

.site-footer {
  background: var(--color-black);
  color: #C9CCD1;
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 14px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: #C9CCD1;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-disclaimer {
  padding-top: 28px;
  font-size: 13px;
  line-height: 1.7;
  color: #9AA0A8;
}

.footer-disclaimer p {
  margin-bottom: 10px;
}

.affiliate-disclaimer {
  color: var(--color-primary);
  font-weight: 600;
}

.footer-copy {
  margin-top: 20px;
  font-size: 13px;
  color: #6B7178;
  text-align: center;
}

/* ==================== STICKY MOBILE CTA ==================== */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  display: none;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.sticky-cta.visible {
  transform: translateY(0);
}

/* ==================== SCROLL ANIMATIONS ==================== */

/* Hidden-until-revealed state only applies once JS confirms it can reveal
   them again (js-loaded class added in script.js). Without JS, or before
   it runs, content stays fully visible — never depend on JS for content
   to exist for users, crawlers, or full-page screenshots. */
.js-loaded .fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-loaded .fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */

/* Large desktop: give the design a bit more room to breathe */
@media (min-width: 1440px) {
  :root {
    --container-width: 1280px;
  }
  .hero-title {
    font-size: 60px;
  }
  .hero-photo img {
    height: 620px;
  }
  .btn-large {
    padding: 20px 40px;
    font-size: 19px;
  }
}

/* Small laptops / large tablets */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .why-inner { grid-template-columns: 1fr; }
  .why-media { order: -1; }
  .why-media img { height: 280px; }
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: 2; }
  .hero-photo img { height: 360px; }
  .hero-benefits-strip { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
}

/* Tablets (portrait) */
@media (max-width: 860px) {
  .hero { padding: 72px 0 48px; }
  .timeline { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 768px) {
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .why-inner { gap: 32px; }
}

/* Phones (landscape and large) */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 64px 0 40px; }
  .hero-photo img { height: 280px; }
  .grid { gap: 18px; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: 1fr; }
  .why-media img { height: 220px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 16px 24px; }
  .btn-header { display: none; }
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn { width: 100%; }
  .hero-checks { gap: 10px 20px; }
  .hero-benefits-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: -28px;
    padding: 24px;
  }

  /* Consistent full-width, easy-to-tap CTAs on every phone screen. */
  .final-cta-inner .btn,
  .center-cta .btn,
  .why-content .btn {
    width: 100%;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo-text { font-size: 17px; }
  .logo-icon { font-size: 20px; }
  .hero-kicker { font-size: 12px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 16px; margin-bottom: 24px; }
  .btn-large { padding: 16px 24px; font-size: 16px; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 15px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-step { padding: 28px 20px; }
  .why-content h2 { font-size: 22px; }
  .why-list li { font-size: 14px; padding: 12px 14px; }
  .testimonial-card { padding: 22px; }
  .final-cta-inner h2 { font-size: 24px; }
  .faq-question { padding: 16px 18px; font-size: 15px; }
  .footer-brand p { max-width: none; }
}

/* Very small phones */
@media (max-width: 360px) {
  .hero-title { font-size: 25px; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .grid-6 { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
