/* ============================================
   Nissan NC theme - main stylesheet
   ============================================ */

:root {
  --nissan-red: #C3002F;
  --nissan-red-dark: #8C0021;
  --nissan-navy: #13171B;
  --steel: #46546B;
  --light-gray: #F7F7F8;
  --border: #E5E5E7;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(19,23,27,.06);
  --shadow-md: 0 8px 24px rgba(19,23,27,.10);
  --shadow-lg: 0 24px 48px rgba(19,23,27,.18);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --header-h: 76px;
  --max-w: 1400px;
  /* Police d'affichage (titres). Point de swap unique vers la webfont
     officielle "Nissan Brand" dès réception GBH : remplacer la valeur ici. */
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Échelle des titres de sections (harmonisation 16/07/2026) :
     xl = grandes sections immersives, lg = sections standard, md = sections denses. */
  --title-xl: clamp(2rem, 4vw, 3.2rem);
  --title-lg: clamp(1.9rem, 3.5vw, 3rem);
  --title-md: clamp(1.7rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; }

/* Empêche tout scroll horizontal accidentel sur TOUS les viewports.
   Cause récurrente : .site-nav fermé en translateX(100%), pilule sticky CTA
   qui dépasse, ou un element wide hors viewport.
   IMPORTANT : utiliser `clip` et PAS `hidden` - `overflow: hidden` sur html/body
   casse `position: sticky` du header (un ancêtre en overflow hidden désactive
   le sticky des descendants). `overflow-x: clip` empêche le scroll SANS créer
   de scroll container, donc le header reste sticky. */
html, body { overflow-x: clip; max-width: 100vw; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--nissan-navy);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); letter-spacing: -0.025em; line-height: 1; }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
p  { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto; clip: auto;
  padding: 8px 16px;
  background: var(--nissan-red);
  color: var(--white);
  z-index: 9999;
}

/* ============================================
   Site header sticky + mega menu
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* Le header est fixed : on réserve sa hauteur sur le contenu, sauf sur les
   pages à hero plein écran (le hero passe volontairement sous le header). */
.site-main { padding-top: var(--header-h); }
body.has-hero .site-main { padding-top: 0; }

/* ============================================
   Nav transparente "Nissan NEXT" au-dessus d'un hero plein écran
   (UI claire sur image foncée ; redevient solide au scroll = .is-scrolled)
   ============================================ */
body.has-hero .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.has-hero .site-header:not(.is-scrolled) .brand-logo { filter: brightness(0) invert(1); }
body.has-hero .site-header:not(.is-scrolled) .nav-link { color: #fff; }
body.has-hero .site-header:not(.is-scrolled) .nav-link:hover,
body.has-hero .site-header:not(.is-scrolled) .nav-link:focus-visible { color: #fff; opacity: .75; }
body.has-hero .site-header:not(.is-scrolled) .mobile-toggle span { background: #fff; }
/* Le mega-menu / dropdown gardent leur fond blanc même en mode transparent */
body.has-hero .site-header:not(.is-scrolled) .nav-dropdown,
body.has-hero .site-header:not(.is-scrolled) .nav-mega { color: var(--nissan-navy); }
body.has-hero .site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  height: 24px;
  width: auto;
  display: block;
}

.site-nav { flex: 1; display: flex; justify-content: center; }
.nav-main {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nissan-navy);
  cursor: pointer;
  transition: color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--nissan-red);
  outline: none;
}
.nav-caret {
  transition: transform .2s ease;
  opacity: .55;
}
.nav-item--has-mega:hover .nav-caret,
.nav-item--has-dropdown:hover .nav-caret,
.nav-item--open .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown simple (Technologies / Entretien / Reprise) */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: -8px;
  min-width: 320px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  pointer-events: none;
}
/* Hover bridge - comble le gap visuel entre le nav-link et le dropdown
   pour que le :hover ne se ferme pas quand la souris descend vers le menu. */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}
.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown,
.nav-item--open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
  pointer-events: auto;
}
.nav-dropdown__item {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--nissan-navy);
  text-decoration: none;
  transition: background .15s;
}
.nav-dropdown__item:hover {
  background: var(--light-gray);
}
.nav-dropdown__item strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  color: var(--nissan-navy);
}
.nav-dropdown__item span {
  font-size: 12px;
  color: var(--steel);
  font-weight: 500;
}

/* Mega menu (Modèles) */
.nav-mega {
  position: fixed;
  top: var(--header-h);
  left: 50%;
  transform: translate(-50%, -6px);
  width: min(1280px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  pointer-events: none;
  z-index: 99;
}
/* Hover bridge - comble le gap entre le nav-link (en haut, dans le header)
   et le mega-menu (juste en dessous du header). Sans ce bridge, le :hover se
   ferme dès que la souris quitte le nav-link et n'a pas encore atteint le
   mega-menu (zone morte de 20-30px entre les deux). */
.nav-mega::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
}
.nav-item--has-mega:hover .nav-mega,
.nav-item--has-mega:focus-within .nav-mega,
.nav-item--open .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
  pointer-events: auto;
}
.nav-mega__inner {
  padding: 28px 32px 22px;
  /* Scroll interne si beaucoup de modèles (10-12) : le panneau ne déborde
     jamais hors de l'écran, il scrolle à l'intérieur. */
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
}
.nav-mega__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-mega__title::before,
.nav-mega__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.nav-mega__grid {
  display: grid;
  /* Auto-fit pour s'adapter au nombre de modèles affichés (4 actuellement,
     5+ si Magnite + futurs modèles). Min 220px, max 1fr → pas de slot vide. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.nav-mega__card {
  display: flex;
  flex-direction: column;
  background: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--nissan-navy);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-mega__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.nav-mega__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 4px;
  background: var(--nissan-red);
  color: var(--white);
}
/* Pastille promo : à gauche, pour cohabiter avec la pastille e-POWER à droite. */
.nav-mega__badge--promo {
  right: auto;
  left: 10px;
}
.nav-mega__card-price s {
  color: var(--steel);
  font-weight: 600;
  text-decoration: line-through;
}
.nav-mega__card-price--promo strong {
  color: var(--nissan-red);
}
.nav-mega__badge--e-power {
  background: var(--nissan-navy);
}
/* Badge e-POWER empile : mention "Hybride" au-dessus du logo e-POWER (Mailys 08/06) */
.nav-mega__badge--epower-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.05;
  padding: 5px 10px;
}
.nav-mega__badge-hybride {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  opacity: .85;
}
/* Logo officiel e-POWER dans le badge (Mailys, remplace le texte "e-POWER") */
.nav-mega__badge-logo {
  display: block;
  height: 9px;
  width: auto;
}
.nav-mega__card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .35s ease;
}
.nav-mega__card:hover .nav-mega__card-image {
  transform: scale(1.05);
}
.nav-mega__card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-mega__card-name {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.nav-mega__card-tagline {
  font-size: 11px;
  color: var(--steel);
  font-weight: 500;
  margin-bottom: 4px;
  min-height: 28px;
  line-height: 1.3;
}
.nav-mega__card-price {
  font-size: 11px;
  color: var(--steel);
  margin-top: auto;
  padding-top: 6px;
}
.nav-mega__card-price strong {
  display: block;
  color: var(--nissan-navy);
  font-size: 13px;
  font-weight: 800;
}
/* Modèle annoncé dont le tarif n'est pas encore communiqué (Magnite) : même
   gabarit de carte, mention un cran plus discrète qu'un prix. */
.nav-mega__card-price--soon strong {
  font-size: 12px;
  color: var(--steel);
  letter-spacing: .02em;
}
.nav-mega__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nissan-red);
}
.nav-mega__card-cta svg {
  transition: transform .2s ease;
}
.nav-mega__card:hover .nav-mega__card-cta svg {
  transform: translateX(3px);
}
.nav-mega__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.nav-mega__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nissan-navy);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .15s;
}
.nav-mega__footer-link:hover {
  background: var(--light-gray);
}

.nav-link--simple {
  text-decoration: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nissan-red);
  color: var(--white) !important;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .15s, transform .15s, box-shadow .15s;
  flex-shrink: 0;
  text-decoration: none;
}
.header-cta svg {
  transition: transform .2s ease;
}
.header-cta:hover {
  background: var(--nissan-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(195,0,47,.32);
}
.header-cta:hover svg {
  transform: translateX(3px);
}

/* Mobile toggle hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nissan-navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .15s ease;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   Site footer - newsletter + dark main + legal
   ============================================ */
.site-footer {
  margin-top: 80px;
}

/* Newsletter section (light, above dark) */
.footer-newsletter {
  background: var(--light-gray);
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.footer-newsletter__inner {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 32px;
  text-align: center;
}
.footer-newsletter h3 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.footer-newsletter__copy p {
  font-size: 1rem;
  color: var(--steel);
  margin: 0 0 28px;
}
.footer-newsletter__form {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--nissan-navy);
  border-radius: 999px;
  padding: 4px 4px 4px 24px;
  max-width: 560px;
  margin: 0 auto 18px;
  overflow: hidden;
}
.footer-newsletter__form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--nissan-navy);
  padding: 12px 8px;
  min-width: 0;
}
.footer-newsletter__form input::placeholder {
  color: var(--steel);
  opacity: .7;
}
.footer-newsletter__form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nissan-navy);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.footer-newsletter__form button:hover {
  background: var(--nissan-red);
}
.footer-newsletter__rgpd {
  font-size: 11px;
  color: var(--steel);
  line-height: 1.5;
  margin: 0;
  text-align: left;
}
.footer-newsletter__rgpd a {
  color: var(--nissan-red);
  text-decoration: underline;
}

/* Main footer (dark navy) */
.footer-main {
  background: var(--nissan-navy);
  color: rgba(255,255,255,.78);
  padding: 64px 0 24px;
}
.footer-main__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 32px;
}

/* Top row : logo + addresses + social */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  align-items: flex-start;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-logo__label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--white);
}
.footer-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer-address h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nissan-red);
  display: inline-block;
}
.footer-address p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255,255,255,.78);
}
.footer-tel {
  font-size: 18px;
  font-weight: 900;
  color: var(--white) !important;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 4px;
}
.footer-tel:hover {
  color: var(--nissan-red) !important;
}
.footer-address__location {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.footer-social__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.footer-social__icons {
  display: flex;
  gap: 10px;
}
.footer-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: var(--white);
  transition: background .15s, border-color .15s, transform .15s;
}
.footer-social__icon:hover {
  background: var(--nissan-red);
  border-color: var(--nissan-red);
  transform: translateY(-2px);
}

/* Links columns (5 cols depuis 26/05 : Recrutement fusionné dans Contact, Paul) */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding: 40px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 5px 0; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  transition: color .15s, padding-left .15s;
  display: inline-block;
}
.footer-col a:hover {
  color: var(--white);
  padding-left: 4px;
}

/* Bottom legal */
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom__legal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.footer-bottom__legal a {
  color: rgba(255,255,255,.7);
  transition: color .15s;
}
.footer-bottom__legal a:hover {
  color: var(--white);
}
.footer-bottom__legal span {
  opacity: .35;
}
.footer-bottom__copyright {
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

/* ============================================
   Generic page article
   ============================================ */
.page-article > .wp-block-group,
.page-article > .wp-block-cover {
  margin-bottom: 0;
}

/* Pages éditoriales standards (mentions légales, politique de confidentialité, CGU, etc.)
   qui ne contiennent que du texte brut (h1/h2/p/ul) sans blocs Nissan custom : on leur
   donne un container lisible (max-width + padding) au lieu de coller à la marge gauche.
   Jordan (26/05/2026) : "texte collé sur la gauche au maximum" sur /mentions-legales/.
   IMPORTANT : on scope avec body:not(.has-hero) pour ne PAS toucher les VLP / home qui
   commencent par un hero-fullscreen plein écran sous le header fixe. Sans ce scope, le
   padding-top de 96px crée une bande blanche entre header et hero (flag Paul 26/05). */
body:not(.has-hero) .page-article {
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 32px) clamp(80px, 10vw, 120px);
}
body:not(.has-hero) .page-article > :not(.wp-block-group):not(.wp-block-cover):not([class*="nissan-"]):not(.alignfull) {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
body:not(.has-hero) .page-article > h1:not([class*="nissan-"]) {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 auto 32px;
  line-height: 1.1;
}
body:not(.has-hero) .page-article > h2:not([class*="nissan-"]) {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  margin: 40px auto 16px;
  letter-spacing: -0.01em;
}
body:not(.has-hero) .page-article > h3:not([class*="nissan-"]) {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  margin: 28px auto 12px;
}
body:not(.has-hero) .page-article > p:not([class*="nissan-"]) {
  line-height: 1.7;
  color: var(--ink-light, #4a525e);
  margin: 0 auto 16px;
}
body:not(.has-hero) .page-article > ul:not([class*="nissan-"]),
body:not(.has-hero) .page-article > ol:not([class*="nissan-"]) {
  line-height: 1.7;
  color: var(--ink-light, #4a525e);
  margin: 0 auto 16px;
  padding-left: 22px;
}
body:not(.has-hero) .page-article > ul:not([class*="nissan-"]) li,
body:not(.has-hero) .page-article > ol:not([class*="nissan-"]) li {
  margin-bottom: 6px;
}
body:not(.has-hero) .page-article a:not([class*="nissan-"]):not([class*="sticky-cta-bar"]) {
  color: var(--nissan-red, #C3002F);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body:not(.has-hero) .page-article a:not([class*="nissan-"]):not([class*="sticky-cta-bar"]):hover {
  text-decoration-thickness: 2px;
}

/* ============================================
   Utility / WordPress block defaults
   ============================================ */
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.alignwide { max-width: 1400px; margin-inline: auto; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }

/* ============================================
   Responsive
   ============================================ */
/* Desktop intermediate (1025-1340px) : on garde le menu visible mais on compresse
   pour que tout tienne sans déborder. Paul (20/05/2026) : "sur desktop on garde
   le menu en haut, hamburger uniquement sur tablette/mobile". */
@media (min-width: 1025px) and (max-width: 1340px) {
  .header-wrap { padding: 10px 18px; gap: 12px; }
  .nav-main { gap: 0; }
  .nav-link { padding: 10px 8px; font-size: 11px; letter-spacing: .02em; }
  .header-cta { padding: 9px 14px; font-size: 12px; gap: 6px; }
  .header-cta svg { width: 12px; height: 12px; }
}

@media (max-width: 1180px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-social { align-items: flex-start; }
}

/* Passage en mode hamburger uniquement à <= 1024px (tablette + mobile).
   Sur desktop (>= 1025px), le menu reste visible en permanence
   (Paul, 20/05/2026 : "sur desktop on garde le menu en haut"). */
@media (max-width: 1024px) {
  .header-wrap { padding: 12px 20px; gap: 12px; }
  .mobile-toggle { display: flex; order: 3; margin-left: auto; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: #ffffff;
    padding: 8px 0 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 95;
    display: block;
    box-shadow: -8px 0 24px -8px rgba(0, 0, 0, 0.15);
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .nav-item {
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-link {
    width: 100%;
    padding: 18px 24px;
    justify-content: space-between;
    font-size: 15px;
    background: #ffffff;
  }
  /* G3 - le panneau menu mobile est toujours blanc : forcer le texte foncé même
     quand le header est en mode hero transparent (sinon nav-links blancs sur fond
     blanc = invisibles tant qu'on n'a pas scrollé). */
  body.has-hero .site-header:not(.is-scrolled) .site-nav .nav-link { color: var(--nissan-navy); }
  body.has-hero .site-header:not(.is-scrolled) .site-nav .nav-link:hover { color: var(--nissan-red); }
  .nav-mega,
  .nav-dropdown {
    position: static;
    width: 100%;
    max-width: none;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0;
    background: var(--light-gray, #f6f7f8);
    display: none;
    margin-top: 0;
    top: auto;
    left: auto;
    right: auto;
  }
  .nav-mega::before,
  .nav-dropdown::before {
    display: none;
  }
  .nav-item--open > .nav-mega,
  .nav-item--open > .nav-dropdown {
    display: block;
  }
  /* Mega-menu Modèles en mobile : liste simple noms uniquement
     (cards images débordaient en mobile, on garde l'info essentielle). */
  .nav-mega__inner { padding: 0; }
  .nav-mega__title { display: none; }
  .nav-mega__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav-mega__card {
    flex-direction: row;
    align-items: center;
    background: #ffffff;
    border-radius: 0;
    padding: 14px 24px 14px 40px;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    transform: none !important;
  }
  .nav-mega__card:last-child { border-bottom: 0; }
  .nav-mega__card-image,
  .nav-mega__card-tagline,
  .nav-mega__card-price,
  .nav-mega__badge,
  .nav-mega__card-cta { display: none; }
  .nav-mega__card-body { padding: 0; }
  .nav-mega__card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--nissan-navy);
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
  }
  .nav-mega__footer {
    padding: 14px 24px;
    background: var(--light-gray);
  }
  .nav-item--has-mega:hover .nav-mega,
  .nav-item--has-dropdown:hover .nav-dropdown {
    display: none;
  }
  .nav-item--open.nav-item--has-mega .nav-mega,
  .nav-item--open.nav-item--has-dropdown .nav-dropdown {
    display: block;
    transform: none !important;
    position: static;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
  }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav-mega__grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-addresses { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-newsletter__form { flex-direction: column; border-radius: 12px; padding: 8px; gap: 8px; }
  .footer-newsletter__form input { padding: 12px 14px; }
  .footer-newsletter__form button { width: 100%; justify-content: center; }
  .site-footer { margin-top: 56px; }
  .footer-main { padding: 48px 0 20px; }
}

/* ============================================
   Bouton générique .nissan-btn (pilule)
   Déplacé ici depuis hero-banner/style.css le 16/07/2026 : consommé par
   feature-spotlight, finitions-row, hero-vehicle... Le CSS d'un bloc n'est
   chargé QUE si le bloc est présent sur la page ; une page utilisant ces
   boutons sans hero-banner les aurait affichés non stylés.
   ============================================ */
.nissan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .2s;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
  position: relative;
}
.nissan-btn--primary {
  background: var(--nissan-red);
  color: #fff !important;
}
.nissan-btn--primary:hover {
  background: var(--nissan-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(195,0,47,.35);
}
.nissan-btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.85);
}
.nissan-btn--ghost:hover {
  background: #fff;
  color: var(--nissan-navy) !important;
}
.nissan-btn--dark {
  background: var(--nissan-navy);
  color: #fff !important;
}
.nissan-btn--dark:hover { background: #000; }
@media (max-width: 720px) {
  .nissan-btn { width: 100%; }
}

/* Ancres : ne pas masquer la section ciblee sous le header sticky. */
[id] { scroll-margin-top: calc(var(--header-h, 76px) + 24px); }


/* Entree de synthese en pied de menu deroulant (rubriques Entretien / Reprise). */
.nav-dropdown__item--all {
    border-top: 1px solid rgba(0, 0, 0, .08);
    margin-top: 4px;
}
.nav-dropdown__item--all strong {
    font-weight: 600;
    opacity: .8;
}

/* Groupe de mots insécable (ex. e-POWER dans un bouton) */
.nissan-nowrap { white-space: nowrap; }
