/*
 Theme Name:   VIEA Editorial
 Theme URI:    https://www.viea.quantumdev.fr
 Description:  Child theme premium éditorial pour VIEA (Voyager Ici & Ailleurs), basé sur GeneratePress. Design system inspiré des grands médias travel/lifestyle internationaux.
 Author:       QuantumDev
 Author URI:   https://quantumdev.fr
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  viea-editorial
*/


/* ============================================================
   0. GLOBAL OVERFLOW & IMAGE SAFETY
   Prevents horizontal scrollbar on mobile from any oversized element.
   ============================================================ */

html,
body {
  overflow-x: hidden;
}

/* Global image safety — prevent images from breaking layout on mobile */
img {
  max-width: 100%;
  height: auto;
}

/* Tables — horizontal scroll on mobile instead of layout break */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ============================================================
   1. CUSTOM PROPERTIES — Mapping tokens WP → noms showcase
   ============================================================ */

:root {
  /* Couleurs */
  --dark: var(--wp--preset--color--dark);
  --bg: var(--wp--preset--color--background);
  --bg-alt: var(--wp--preset--color--background-alt);
  --accent: var(--wp--preset--color--accent);
  --accent-light: var(--wp--preset--color--accent-light);
  --text: var(--wp--preset--color--text);
  --muted: var(--wp--preset--color--muted);
  --white: var(--wp--preset--color--white);

  /* Fontes */
  --ff-d: var(--wp--preset--font-family--fraunces);
  --ff-b: var(--wp--preset--font-family--inter);
  --ff-m: var(--wp--preset--font-family--dm-mono);

  /* Tailles de texte */
  --text-xs: var(--wp--preset--font-size--xs);
  --text-sm: var(--wp--preset--font-size--sm);
  --text-base: var(--wp--preset--font-size--base);
  --text-lg: var(--wp--preset--font-size--lg);
  --text-xl: var(--wp--preset--font-size--xl);
  --text-2xl: var(--wp--preset--font-size--2-xl);
  --text-3xl: var(--wp--preset--font-size--3-xl);
  --text-4xl: var(--wp--preset--font-size--4-xl);
  --text-5xl: var(--wp--preset--font-size--5-xl);

  /* Spacings */
  --space-section: var(--wp--preset--spacing--section);
  --space-section-m: var(--wp--preset--spacing--section-mobile);

  /* Containers */
  --prose-width: 65ch;
}


/* ============================================================
   2. BASE TYPOGRAPHIE — Compléments au theme.json
   ============================================================ */

/* Font fallback size-adjust — réduit le CLS lors du swap */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia');
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

body {
  font-feature-settings: "ss01", "cv11";
}

h1,
h2,
h3 {
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  text-wrap: balance;
}

a {
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--ff-m);
  font-size: 12px;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Focus global */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* ============================================================
   3. COMPOSANTS TYPOGRAPHIQUES
   ============================================================ */

.kicker,
.label {
  font-family: var(--ff-m);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.kicker--light {
  color: var(--accent-light);
}

.kicker--link {
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-block;
  width: fit-content;
}

.kicker--link::before {
  content: '';
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -6px;
  right: -6px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.25s ease;
}

.kicker--link:hover {
  color: var(--white);
}

.kicker--link:hover::before {
  opacity: 1;
}

.kicker--subtle::before {
  display: none;
}

.kicker--subtle:hover {
  color: var(--dark);
}

.section-number {
  font-family: var(--ff-m);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-number::after {
  content: " \2014";
  color: var(--accent);
}

.meta {
  font-family: var(--ff-m);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(26, 26, 24, 0.72);
}

.lede {
  font-family: var(--ff-d);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.5;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  color: rgba(26, 26, 24, 0.80);
  max-width: 65ch;
}

.hairline {
  height: 1px;
  width: 3rem;
  background: var(--accent);
  margin-block: 2rem;
  border: none;
}

.hairline--centered {
  margin-inline: auto;
}

.prose {
  max-width: 65ch;
  margin-inline: auto;
}

/* Boutons design system */
.btn--primary {
  font-family: var(--ff-m);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 1rem 2.5rem;
  background: var(--dark);
  color: var(--bg);
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn--primary:hover {
  background: var(--accent);
}

.btn-accent {
  font-family: var(--ff-b);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-accent:hover {
  opacity: 0.88;
  color: var(--white);
}

.btn-outline {
  font-family: var(--ff-b);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  border-radius: 4px;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

/* Section header pattern */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 16px;
  margin-bottom: 2.5rem;
}

.section-header--centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: none;
}

.section-link {
  font-family: var(--ff-m);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--dark);
}


/* ============================================================
   4. RESET CONTENEUR GP — Pleine largeur
   ============================================================ */

.site-content,
.content-area,
.inside-article,
.entry-content {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
}

/* GP separate-containers — NUCLEAR RESET
   On force les variables GP pour coller au design system VIEA */
:root {
  --base-3: transparent !important;
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.inside-page-header,
.separate-containers .widget-area .widget {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

.separate-containers .site-main>article,
.separate-containers .site-main>.hentry {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.separate-containers .site-main>*:hover,
.separate-containers .inside-article:hover {
  box-shadow: none !important;
}

.site-main .wp-block-group__inner-container {
  padding: 0 !important;
}

.site-content .content-area {
  float: none;
}

.site-main {
  margin: 0 !important;
  padding: 0 !important;
}

.page-header,
.sidebar .widget,
.site-main > * {
  margin-bottom: 0;
}


/* Force le container GP à 100% — pas de max-width restrictif */
.grid-container,
.site.grid-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Blocs natifs Gutenberg — les classes CSS VIEA s'appliquent sur le .wp-block-group */
.stats-grid.wp-block-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.testimonials-grid.wp-block-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.offers-grid.wp-block-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.audience-grid.wp-block-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.booking-cta.wp-block-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a28 100%);
  max-width: 720px;
  margin: 48px auto;
}

.prevnext.wp-block-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--bg-alt);
}

.author-box.wp-block-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.meta-bar.wp-block-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-sidebar.wp-block-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cta-btns.wp-block-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .stats-grid.wp-block-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid.wp-block-group {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .testimonials-grid.wp-block-group {
    grid-template-columns: 1fr;
  }

  .offers-grid.wp-block-group {
    grid-template-columns: 1fr;
  }

  .audience-grid.wp-block-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .booking-cta.wp-block-group {
    flex-direction: column;
    text-align: center;
  }

  .prevnext.wp-block-group {
    grid-template-columns: 1fr;
  }

  .author-box.wp-block-group {
    flex-direction: column;
    text-align: center;
  }

  .meta-bar.wp-block-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Supprime le titre de page GP par défaut sur les pages */
.page .entry-header {
  display: none;
}

/* Supprime featured image GP sur les single posts */
.single .featured-image {
  display: none;
}

/* Sections homepage — wrappers legacy (conservé pour compat) */
.section,
.section-alt {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-section) 48px;
}

.section-alt {
  background: var(--bg-alt);
  max-width: 100%;
}

.section-alt>* {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {

  .section,
  .section-alt {
    padding: var(--space-section-m) 20px;
  }
}

/* ── ALTERNANCE AUTOMATIQUE — empêche deux sections dark consécutives ── */
/* Quand deux sections dark se suivent, la deuxième passe en fond clair */
.nl + .nl,
.cta-banner + .nl,
.cta-lastissue + .nl,
.viea-product__cta + .nl,
.nl + .cta-banner,
.nl + .cta-lastissue,
.cta-banner + .cta-lastissue,
.cta-lastissue + .cta-banner,
.viea-product__cta + .cta-lastissue,
.cta-lastissue + .viea-product__cta,
.viea-product__cta + .cta-banner {
  background: var(--bg-alt);
  color: var(--text);
}

/* Ajuster les textes quand une section dark passe en clair */
.nl + .nl .nl-title,
.cta-lastissue + .nl .nl-title,
.cta-banner + .nl .nl-title,
.viea-product__cta + .nl .nl-title {
  color: var(--dark);
}

.nl + .nl .nl-sub,
.cta-lastissue + .nl .nl-sub,
.cta-banner + .nl .nl-sub,
.viea-product__cta + .nl .nl-sub {
  color: var(--muted);
}

.nl + .nl .nl-kicker,
.cta-lastissue + .nl .nl-kicker,
.cta-banner + .nl .nl-kicker,
.viea-product__cta + .nl .nl-kicker {
  color: var(--accent);
}

/* Ajuster CTA lastissue quand forcé en fond clair */
.nl + .cta-lastissue .cta-title,
.cta-banner + .cta-lastissue .cta-title,
.viea-product__cta + .cta-lastissue .cta-title {
  color: var(--dark);
}

.nl + .cta-lastissue .cta-desc,
.cta-banner + .cta-lastissue .cta-desc,
.viea-product__cta + .cta-lastissue .cta-desc {
  color: var(--muted);
}

.nl + .cta-lastissue .cta-label,
.cta-banner + .cta-lastissue .cta-label,
.viea-product__cta + .cta-lastissue .cta-label {
  color: var(--accent);
}

/* Ajuster CTA banner quand forcé en fond clair */
.nl + .cta-banner .cta-title,
.cta-lastissue + .cta-banner .cta-title,
.viea-product__cta + .cta-banner .cta-title {
  color: var(--dark);
}

.nl + .cta-banner .cta-desc,
.cta-lastissue + .cta-banner .cta-desc,
.viea-product__cta + .cta-banner .cta-desc {
  color: var(--muted);
}

.nl + .cta-banner .cta-label,
.cta-lastissue + .cta-banner .cta-label,
.viea-product__cta + .cta-banner .cta-label {
  color: var(--accent);
}

/* ── HOMEPAGE SECTIONS PREMIUM ── */
.hp-section {
  padding: var(--space-section) 0;
}

.hp-section+.hp-section {
  margin-block-start: 0;
}

.hp-section--alt {
  background: var(--bg-alt);
}

.hp-section__inner {
  max-width: 100%;
  margin: 0;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .hp-section__inner {
    padding: 0 20px;
  }
}

/* Section headers premium */
.hp-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--accent-light);
}

.hp-section__header--centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

.hp-section__header .kicker {
  display: block;
  margin-bottom: 0.5rem;
}

.hp-section__title {
  font-family: var(--ff-d);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.hp-section__sub {
  font-family: var(--ff-b);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0.5rem 0 0;
  max-width: 480px;
}

.hp-section__header--centered .hp-section__sub {
  margin-left: auto;
  margin-right: auto;
}

.hp-section__header .section-link {
  flex-shrink: 0;
  margin-left: 2rem;
}

/* Grille 6 articles — 3 colonnes desktop */
.hp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Grille destinations — 3 colonnes avec overlay */
.hp-dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.hp-dest-grid .dest-card {
  height: 280px;
}

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

  .hp-dest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hp-section {
    padding: var(--space-section-m) 0;
  }

  .hp-section__inner {
    padding: 0 20px;
  }

  .hp-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hp-section__header .section-link {
    margin-left: 0;
  }

  .hp-grid {
    grid-template-columns: 1fr;
  }

  .hp-dest-grid {
    grid-template-columns: 1fr;
  }

  .hp-dest-grid .dest-card {
    height: 220px;
  }
}

/* Masque les résidus GP : nav native, sidebar */
.main-navigation,
#site-navigation,
.mobile-menu-control-wrapper,
#right-sidebar,
#left-sidebar {
  display: none !important;
}

/* Reset le wrapper footer GP pour afficher notre footer custom */
.site-footer {
  all: unset;
  display: block;
}

/* Masque le copyright GP natif s'il reste */
.site-info {
  display: none !important;
}


/* ============================================================
   5. HEADER — iso showcase
   ============================================================ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 48px;
  background: var(--dark);
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar-left {
  color: rgba(255, 255, 255, 0.7);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-icon {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.topbar-icon svg {
  width: 18px;
  height: 18px;
}

.topbar-icon:hover {
  color: var(--accent);
}

.topbar-badge {
  background: var(--accent);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Séparateur entre les icônes */
.topbar-right .topbar-icon+.topbar-icon::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--bg-alt);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  text-decoration: none;
}

.nav-logo .nav-logo-text {
  font-family: var(--ff-b);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
}

.nav-logo .nav-logo-mark {
  font-family: var(--ff-d);
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current_page_item a {
  color: var(--accent);
}

/* Mini-panier nav */
.nav-cart {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  margin-left: 8px;
}

.nav-cart:hover {
  color: var(--accent);
}

.nav-cart__count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--ff-m);
  font-size: 9px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 11px;
  /* 22px icon + 22px padding = 44px touch target */
  background: none;
  border: none;
  /* Minimum 44px touch target for accessibility */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.active span:nth-child(2) {
  opacity: 0;
}

.nav-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--ff-b);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.nav-burger.active:hover {
  background: transparent;
}

.nav-burger {
  background-color: transparent !important;
}

@media (max-width: 1200px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 8px 20px;
  }

  .nav {
    padding: 12px 20px;
  }

  .topbar-icon {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
}


/* ============================================================
   6. FOOTER — iso showcase
   ============================================================ */

.footer {
  background: var(--dark);
  padding: 80px 48px 40px;
  color: rgba(255, 255, 255, 0.7);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.foot-title {
  font-family: var(--ff-d);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.foot-link,
.foot-col li {
  display: block;
  font-family: var(--ff-b);
  font-size: 14px;
  margin-bottom: 10px;
  list-style: none;
}

.foot-link,
.foot-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.foot-link:hover,
.foot-col a:hover {
  color: var(--accent);
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--ff-m);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.foot-bar a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.foot-bar a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer {
    padding: 48px 20px 32px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .foot-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* A11y — cibles tactiles minimum 44px */
  .foot-col a,
  .foot-link {
    padding: 6px 0;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .foot-bar a {
    padding: 8px 12px;
  }
}

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


/* ============================================================
   7. PAGINATION GLOBALE
   ============================================================ */

/* Pagination globale — s'applique partout */
.load-more,
.paging-navigation .nav-links,
.woocommerce-pagination,
.site-main .nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.page-numbers,
.paging-navigation .nav-links a,
.paging-navigation .nav-links span {
  font-family: var(--ff-m);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid var(--accent-light);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.page-numbers.current,
.paging-navigation .nav-links .current {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.page-numbers:hover,
.paging-navigation .nav-links a:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
}

.page-numbers.dots {
  border: none;
  padding: 8px 4px;
  color: var(--muted);
}

.page-numbers.prev,
.page-numbers.next {
  font-weight: 600;
  color: var(--accent);
  border-color: var(--accent);
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
  background: var(--accent);
  color: var(--white);
}


/* ============================================================
   8. PRÉ-FOOTER — Section claire entre NL dark et footer dark
   ============================================================ */

.prefooter {
  background: var(--bg-alt);
  padding: var(--space-section) 48px;
  text-align: center;
  margin-top: 0;
}

.nl {
  margin-bottom: 0;
}

.prefooter__inner {
  max-width: 560px;
  margin: 0 auto;
}

.prefooter__title {
  font-family: var(--ff-d);
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin: 16px 0;
}

.prefooter__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .prefooter {
    padding: var(--space-section-m) 20px;
  }
}


/* ============================================================
   8. PAGE 404
   ============================================================ */

.error-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68vh;
  padding: 4rem 20px;
  text-align: center;
}

.error-hero__inner {
  max-width: 640px;
  margin-inline: auto;
}

.error-hero .kicker {
  display: block;
  margin-bottom: 1.5rem;
}

.error-title {
  font-family: var(--ff-d);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  color: var(--dark);
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.error-text {
  font-family: var(--ff-d);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.5;
  color: rgba(26, 26, 24, 0.70);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .error-hero {
    min-height: 60vh;
    padding: 3rem 20px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions .btn-accent,
  .error-actions .btn-outline {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}


/* ============================================================
   9. UTILITY CLASSES — remplace les inline styles
   ============================================================ */

/* Images cover */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-thumb {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

/* Links reset */
.link-block {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.link-reset {
  text-decoration: none;
}

.link-outline-accent {
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent);
}

/* Layout */
.flex-center {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.flex-center--mt {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.nl-form {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: stretch;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.text-center-mt {
  margin-top: 40px;
  text-align: center;
}

/* Sections */
.viea-container {
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-section) 48px;
}

.viea-container-narrow {
  padding: 0 48px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.viea-bg-alt-full {
  max-width: 100%;
  background: var(--bg-alt);
}

/* Sidebar card dark variant */
.sidebar-card--dark {
  background: var(--dark);
}

.sidebar-card--dark .sidebar-label {
  color: var(--accent-light);
}

.sidebar-card--dark .sidebar-title {
  color: var(--white);
}

.sidebar-card--dark .sidebar-text {
  color: rgba(255, 255, 255, 0.7);
}

/* Breadcrumb on dark */
.breadcrumb--light a {
  color: var(--accent-light);
}

/* Small CTA button inside cards */
.btn-sm-accent {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--ff-b);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-sm-accent:hover {
  opacity: 0.88;
}

/* Cat hero height variant */
.cat-hero--short {
  height: 280px;
}

@media (max-width: 768px) {
  .viea-container {
    padding: var(--space-section-m) 20px;
  }

  .viea-container-narrow {
    padding: 0 20px 40px;
  }
}


/* ============================================================
   10. RYTHME VERTICAL DE SECTIONS
   ============================================================ */

/* Pas de margin entre sections — le padding gère l'espacement */

/* Additional utility classes */
.viea-bg-alt {
  background: var(--bg-alt);
}

.viea-container--tight {
  padding-block: 2rem;
}

/* Prose page — content Gutenberg libre wrappé proprement */
.viea-prose-page {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-section) 48px;
  font-size: 17px;
  line-height: 1.75;
}

.viea-prose-page h2,
.viea-prose-page h3,
.viea-prose-page h4,
.viea-prose-page h5 {
  font-family: var(--ff-d);
  color: var(--dark);
  margin-top: 2rem;
}

.viea-prose-page .wp-block-media-text {
  margin-bottom: 2rem;
}

.viea-prose-page ul {
  padding-left: 1.5rem;
}

.viea-prose-page li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .viea-prose-page {
    padding: var(--space-section-m) 20px;
    font-size: 16px;
  }
}

/* ============================================================
   11. CONTACT FORM 7 — Style design system VIEA
   ============================================================ */

.wpcf7 {
  font-family: var(--ff-b);
}

.wpcf7 .grve-form-style-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.wpcf7 .grve-one-half {
  flex: 1;
  min-width: 200px;
}

.wpcf7 .grve-last-column {
  margin: 0;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  border: 1px solid var(--accent-light);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  font-family: var(--ff-b);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--muted);
  font-size: 0.9rem;
}

.wpcf7 input[type="submit"],
.wpcf7 .grve-custom-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--dark);
  color: var(--bg);
  border: none;
  border-radius: 0;
  font-family: var(--ff-m);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .grve-custom-btn:hover {
  background: var(--accent);
}

.wpcf7-response-output {
  border: none !important;
  padding: 1rem !important;
  margin: 1rem 0 0 !important;
  font-family: var(--ff-m);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  border-radius: 6px;
}

.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
  background: rgba(196, 148, 61, 0.1);
  color: var(--accent);
}

.wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output {
  background: rgba(200, 0, 0, 0.05);
  color: #c00;
}

.wpcf7-not-valid-tip {
  font-family: var(--ff-m);
  font-size: 0.7rem;
  color: #c00;
  margin-top: 0.25rem;
}
