/* ============================================
   Pierre Azur — v4 Premium Styles
   Mobile-first responsive overhaul
   ============================================ */
html {
  scroll-behavior: smooth;
  /* Offset anchor-link scroll targets below the sticky header */
  scroll-padding-top: 60px;
}
@media (min-width: 1024px) {
  html { scroll-padding-top: 96px; }
}
body { overflow-x: hidden; }

/* Skip-to-content link (a11y) — visible uniquement au focus clavier */
.pa-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}
.pa-skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: #252a2b;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  outline: 2px solid #f28920;
  outline-offset: 2px;
}

/* Focus-visible global (a11y) */
:focus-visible {
  outline: 2px solid #f28920;
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #f28920;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --ease-premium: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-reveal: 1.6s;
  --dur-hover: 0.6s;
  --dur-accordion: 0.7s;
  --dur-tab: 0.22s;
  --dur-dropdown: 0.45s;
  --section-px: clamp(20px, 5vw, 150px);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-up {
  transform: translateY(50px);
  transition: opacity var(--dur-reveal) var(--ease-premium),
              transform var(--dur-reveal) var(--ease-premium);
}
.reveal-left {
  transform: translateX(-50px);
  transition: opacity var(--dur-reveal) var(--ease-premium),
              transform var(--dur-reveal) var(--ease-premium);
}
.reveal-right {
  transform: translateX(50px);
  transition: opacity var(--dur-reveal) var(--ease-premium),
              transform var(--dur-reveal) var(--ease-premium);
}
.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* ============================================
   HERO
   ============================================ */
.hero-title {
  opacity: 0;
  transform: translateY(36px);
  animation: fadeSlideUp 2s var(--ease-premium) 0.7s forwards;
}
.search-bar-wrapper {
  opacity: 0;
  transform: translateY(36px);
  animation: fadeSlideUp 1.6s var(--ease-premium) 1.2s forwards;
}
@keyframes fadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   UNIFIED HEADER STATE SYSTEM
   ============================================
   #main-header is ALWAYS position:fixed at top.
   Two visual themes via data-header attribute:
     "transparent" → over hero, white text/logo (index, programmes, actualites, qui-sommes-nous)
     "light"       → solid feel, dark text/logo (article, contact, programme-details)
   Scroll state via .is-scrolled class (JS):
     → compact padding, hide banner, dark bg + white nav
   Spacing strategy:
     Hero pages    → main has no top padding (hero goes behind fixed header)
     Non-hero pages→ main has padding-top: var(--header-h) to clear the fixed header
   ============================================ */

/* ---- Fixed header base (ALWAYS fixed) ---- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
@media (min-width: 783px) {
  body.admin-bar #main-header {
    top: 32px;
  } 
}


@media (max-width: 782px) and (min-width: 480px){
  body.admin-bar #main-header {
    top: 46px;
  }

}
/* Smooth padding transition for scroll collapse */
#main-header .header-inner {
  transition: padding-top 0.3s ease, padding-bottom 0.3s ease;
}

/* ---- CSS var for content offset ---- */
:root {
  --header-h: 160px; /* fallback — JS sets precise value */
}
@media (max-width: 1023px) {
  :root { --header-h: 100px; }
}

/* ---- Transparent header: entry animation (over hero) ---- */
#main-header[data-header="transparent"] {
  opacity: 0;
  transform: translateY(-16px);
  animation: fadeSlideDown 1.6s var(--ease-premium) 0.25s forwards;
}

/* ---- Light header: immediately visible ---- */
#main-header[data-header="light"] {
  opacity: 1;
  transform: none;
  animation: none;
  background: rgba(255, 255, 255, 0.97);
  position: static;
}

/* ---- Nav border-bottom (aligns with nav, not header-inner edges) ---- */

#main-header .header-inner nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
}
#main-header[data-header="light"] .header-inner nav {
  border-color: #e5e5e5;
}
#main-header.is-scrolled .header-inner nav {
  border-color: transparent;
  padding-bottom: 0;
}

/* ---- Nav links color in light header (override text-white from walker output) ---- */
#main-header[data-header="light"] [data-nav-links] > a,
#main-header[data-header="light"] [data-nav-links] .nav-dropdown > .nav-dropdown-trigger {
  color: #252a2b;
}
#main-header[data-header="light"] [data-nav-links] > a:hover,
#main-header[data-header="light"] [data-nav-links] .nav-dropdown > .nav-dropdown-trigger:hover {
  color: #f28920;
}
#main-header[data-header="light"] #mobile-menu-btn {
  color: #252a2b;
}

/* ---- Desktop header CTA — "Poser une question" ---- */
#main-header .nav-cta-ask {
  box-sizing: border-box;
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}
#main-header .nav-cta-ask:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}
#main-header[data-header="light"] .nav-cta-ask {
  border-color: #252a2b;
  color: #252a2b;
}
#main-header.is-scrolled .nav-cta-ask {
  border-color: #ffffff !important;
  color: #ffffff !important;
}
#main-header[data-header="light"] .nav-cta-ask:hover {
  background: rgba(242, 137, 32, 0.08);
  border-color: #f28920;
  color: #f28920;
}
#main-header .nav-cta-ask svg circle,
#main-header .nav-cta-ask svg path {
  stroke: currentColor;
}

/* Poser une question — icon stroke on orange CTAs (footer / mobile sheet) */
a.bg-pa-orange > svg path {
  stroke: #ffffff;
}
#main-header .nav-cta-ask span {
  color: currentColor;
}

/* ---- Mobile CTA buttons: icon-only round circles below xl ---- */
@media (max-width: 1279px) {
  .nav-cta-group .nav-cta-ask span,
  .nav-cta-group .nav-cta-phone span {
    display: none;
  }
  .nav-cta-group .nav-cta-ask {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    gap: 0;
  }
  .nav-cta-group .nav-cta-phone {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

/* ---- Sticky bottom CTA (mobile/tablet) ---- */
.sticky-bottom-cta {
  position: sticky;
  bottom: 0;
  z-index: 99999;
  background: #ffffff;
  border-top: 1px solid #e6e8ec;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sticky-bottom-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sticky-bottom-cta .sticky-bottom-cta-btn {
  height: 48px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sticky-bottom-cta .nav-cta-ask {
  background: #f28920;
  border: 1px solid #f28920;
  color: #ffffff;
  padding: 0 8px;
}

.sticky-bottom-cta .nav-cta-ask:hover {
  background: #e17c1b;
  border-color: #e17c1b;
  color: #ffffff;
}

.sticky-bottom-cta .nav-cta-ask svg circle,
.sticky-bottom-cta .nav-cta-ask svg path {
  stroke: #ffffff;
}

.sticky-bottom-cta .nav-cta-phone {
  width: auto;
  background: #28b37e;
  border: 1px solid #28b37e;
  padding: 0 8px;
  justify-content: center;
}

.sticky-bottom-cta .nav-cta-phone:hover {
  background: #1f9a6b;
  border-color: #1f9a6b;
}

.sticky-bottom-cta .nav-cta-ask span,
.sticky-bottom-cta .nav-cta-phone span {
  display: inline;
  color: #ffffff;
  font-size: 14px;
}



body.mobile-menu-open .sticky-bottom-cta {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

@media(max-width: 320px){
  .sticky-bottom-cta {
    display: none;
  }
}
/* ---- Scrolled state (compact, dark bg) — replaces old .is-sticky ---- */
#main-header.is-scrolled {
  position: fixed;
  background: rgba(37, 42, 43, 0.97);
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: none;
  opacity: 1;
  transform: none;
}
#main-header.is-scrolled .top-banner { display: none !important; }
#main-header.is-scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }

/* Force nav links to white on scrolled dark bg */
#main-header.is-scrolled [data-nav-links] > a,
#main-header.is-scrolled [data-nav-links] .nav-dropdown > .nav-dropdown-trigger {
  color: #fff !important;
}
#main-header.is-scrolled #mobile-menu-btn svg {
  stroke: #fff;
}
#main-header.is-scrolled .nav-cta-phone {
  background-color: #28b37e;
}

/* ---- Compact scrolled header on mobile ---- */
@media (max-width: 1023px) {
  #main-header.is-scrolled nav {
    height: 52px;
  }
  #main-header.is-scrolled .nav-logo img {
    height: 60px;
  }
  #main-header.is-scrolled .nav-cta-group .nav-cta-ask,
  #main-header.is-scrolled .nav-cta-group .nav-cta-phone {
    width: 36px;
    height: 36px;
  }
  #main-header.is-scrolled .nav-cta-group {
    gap: 10px;
  }
  #main-header .header-inner nav{
    padding-bottom: 12px;
  }
  #mobile-menu-btn{
    padding: .3rem 0;
  }
}


/* ---- Breadcrumb : fond blanc pleine largeur, aligné avec le header light ---- */
.site-breadcrumb {
  background: rgba(255, 255, 255, 0.97);
  clip-path: inset(0 -100vmax);
  box-shadow: 0 0 0 100vmax rgba(255, 255, 255, 0.97);
  padding-top: 0;
  padding-bottom: 14px;
  margin-top: 0 !important;
  margin-bottom: 24px;
}

/* Exception : breadcrumb dans un hero sombre (bloc-hero_page) — fond transparent */
[data-hero] .site-breadcrumb {
  background: transparent;
  clip-path: none;
  box-shadow: none;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 1.5rem !important;
}


/* ---- Hide breadcrumb on mobile (≤ 993px) ---- */
@media (max-width: 993px) {
  .site-breadcrumb {
    display: none !important;
  }
}

/* Hero pages: push hero content below fixed header */
[data-hero] {
  padding-top: var(--header-h);
}
@media (min-width: 783px) {
  body.admin-bar [data-hero]:not(.hero-bg-img) {
    padding-top: calc(var(--header-h) + 32px);
  }
  body.admin-bar.has-scrolled-header .detail-tab-nav {
      top: calc(var(--header-scrolled-h, 70px) + 32px);
  }
}
@media (max-width: 782px) and (min-width: 480px){
  body.admin-bar [data-hero]:not(.hero-bg-img) {
    padding-top: calc(var(--header-h) + 46px);
  }
  body.admin-bar.has-scrolled-header .detail-tab-nav {
    top: calc(var(--header-scrolled-h, 70px) + 46px);
  }
}
[data-hero]:not(.hero-bg-img) {
  background-color: #4a4a52;
}
.hero-bg-img[data-hero] {
  padding-top: 0;
}
.hero-bg-img[data-hero] > *:first-child {
  padding-top: var(--header-h);
}
@media (min-width: 783px){
  body.admin-bar .hero-bg-img[data-hero]>*:first-child {
    padding-top: calc(var(--header-h) + 32px);
  }
}

@media (max-width: 782px) and (min-width: 480px){
  body.admin-bar .hero-bg-img[data-hero] > *:first-child {
    padding-top: calc(var(--header-h) + 46px);
  }
}
/* ============================================
   NAV DROPDOWN (desktop)
   ============================================ */
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow {
  transform: rotate(180deg);
}
.nav-dropdown:hover > .nav-dropdown-trigger,
.nav-dropdown:focus-within > .nav-dropdown-trigger {
  color: #f28920;
}

/* Flyout latéral (niveau 3) — révélé au survol/focus de l'item niveau 2 */
.nav-flyout:hover > .nav-flyout-panel,
.nav-flyout:focus-within > .nav-flyout-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.nav-flyout:hover > a,
.nav-flyout:focus-within > a {
  background-color: rgba(242, 137, 32, 0.05);
  color: #f28920;
}

/* ============================================
   SEARCH DROPDOWNS
   ============================================ */
.dropdown-menu {
  transition: opacity var(--dur-dropdown) var(--ease-premium),
              visibility var(--dur-dropdown),
              transform var(--dur-dropdown) var(--ease-premium);
}
.dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-arrow {
  transition: transform var(--dur-dropdown) var(--ease-premium);
}
.dropdown-arrow.is-open {
  transform: rotate(180deg);
}
.dropdown-option.is-selected {
  color: #f28920;
  background: rgba(242, 137, 32, 0.06);
}

/* ============================================
   FLOATING CARDS
   ============================================ */
.floating-card {
  animation: floatY 9s ease-in-out infinite;
}
.floating-card:nth-of-type(2) {
  animation-delay: -4.5s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   PROPERTY CARDS
   ============================================ */
.property-card {
  transition: transform var(--dur-hover) var(--ease-premium),
              box-shadow var(--dur-hover) var(--ease-premium);
}
.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px -20px rgba(0, 0, 0, 0.13);
}
.property-card .card-img img {
  transition: transform 1.2s var(--ease-premium);
}
.property-card:hover .card-img img {
  transform: scale(1.05);
}

/* Tab content transition */
#program-cards {
  opacity: 1;
  transform: translateY(0);
  /* Use plain ease — the elastic ease-premium causes visible bounce on short durations */
  transition: opacity var(--dur-tab) ease,
              transform var(--dur-tab) ease;
}
#program-cards.is-fading-out {
  opacity: 0;
  transform: translateY(8px);
}

/* ============================================
   PROGRAM TABS
   ============================================ */
.program-tab {
  position: relative;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  background: none;
  opacity: 0.45;
  font-weight: 500;
  transition: opacity 0.5s var(--ease-premium),
              border-color 0.5s var(--ease-premium),
              font-weight 0.3s ease;
}
.program-tab.active {
  opacity: 1;
  border-bottom-color: #f28920;
  font-weight: 700;
}
.program-tab:not(.active):hover {
  opacity: 0.7;
}
.program-tabs-scroll {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.program-tabs-scroll::-webkit-scrollbar { display: none; }

/* ============================================
   AVIS CLIENTS — maquette Figma « HP V3 – Avis Google »
   (template-parts/bloc-testimonials.php, note de l'en-tête : inc/avis-google.php)
   ============================================ */
/* Étoiles selon la note : image grisée dessous, image jaune dessus coupée à la largeur de la note */
.pa-etoiles {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.pa-etoiles img {
  display: block;
  max-width: none;
}
.pa-etoiles-fond {
  display: block;
  filter: grayscale(1);
  opacity: 0.3;
}
.pa-etoiles-pleines {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

/* Note Google en haut de l'en-tête (nœud 392:783) */
.avis-entete {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 18px;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  line-height: 16px;
  color: #252a2b;
}
.avis-entete-nombre {
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.5s;
}
.avis-entete:hover .avis-entete-nombre {
  color: #f28920;
}
@media (max-width: 359px) {
  .avis-entete-etoiles { display: none; }
}

/* Note Google sous le titre de la section (nœud 392:956) */
.avis-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 18px;
  border: 1px solid #e6e8ec;
  border-radius: 90px;
  background: #fff;
  transition: border-color 0.5s;
}
.avis-note:hover {
  border-color: #f28920;
}
.avis-note-valeur {
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #252a2b;
}
.avis-note-nombre {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: #777e90;
  white-space: pre;
}
@media (max-width: 419px) {
  .avis-note { gap: 8px; padding: 8px 14px 8px 12px; }
  .avis-note-nombre { font-size: 14px; }
}
@media (max-width: 359px) {
  .avis-note-etoiles { display: none; }
}

/* Avis : 3 colonnes, 2 sur tablette, rangée qui défile au doigt sur mobile (nœuds 392:970 et 392:971) */
.avis-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
}
.avis-carte {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid #e6e8ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 15, 15, 0.05);
  overflow-wrap: anywhere;
}
.avis-carte-nom {
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: #252a2b;
}
@media (max-width: 1023px) {
  .avis-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 639px) {
  .avis-grille {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--section-px);
    margin: 0 calc(-1 * var(--section-px));
    padding: 8px var(--section-px) 32px;
    scrollbar-width: none;
  }
  .avis-grille::-webkit-scrollbar { display: none; }
  .avis-carte { flex: 0 0 85%; max-width: 340px; padding: 24px; scroll-snap-align: start; }
}
/* Avis Google : texte complet dans la page, affiché sur 6 lignes au plus */
.testimonial-texte-long {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

/* Bouton vers la fiche Google (nœud 392:1097) */
.avis-bouton {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 22px;
  border: 2px solid #e6e8ec;
  border-radius: 90px;
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 16px;
  color: #252a2b;
  text-align: center;
  transition: border-color 0.5s;
}
.avis-bouton:hover {
  border-color: #f28920;
}
.avis-bouton img {
  flex-shrink: 0;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  transition: box-shadow var(--dur-hover) ease;
}
.faq-item:hover {
  box-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.07);
}
.faq-content {
  overflow: hidden;
  transition: max-height var(--dur-accordion) var(--ease-premium),
              opacity 0.5s ease,
              padding var(--dur-accordion) var(--ease-premium);
}
.faq-content[aria-hidden="true"] {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.faq-content[aria-hidden="false"] {
  opacity: 1;
}
.faq-chevron {
  transition: transform 0.5s var(--ease-premium);
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */
.btn-hover {
  transition: all var(--dur-hover) var(--ease-premium);
}
.btn-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.14);
}
.nav-logo {
  transition: transform 0.5s ease;
}
.nav-logo:hover { transform: scale(1.03); }

input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(242, 137, 32, 0.1);
}

/* ============================================
   MOBILE MENU — Premium, safe-area aware
   ============================================ */

/* Overlay */
#mobile-menu {
  /* hidden state managed by JS (.hidden Tailwind class) */
  opacity: 0;
  transition: opacity 0.4s ease;
}
#mobile-menu.active {
  opacity: 1;
}

/* Close button — fully visible, safe-area inset */
.mobile-menu-close-btn {
  position: absolute;
  /* top: safe-area-inset-top + 14px, fallback 14px */
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  /* right: safe-area-inset-right + 16px, fallback 16px */
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  /* Ensure it's never obscured */
  flex-shrink: 0;
}
.mobile-menu-close-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}
.mobile-menu-close-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

/* Inner scrollable pane */
#mobile-menu-inner {
  /* Safe-area top: leave room for the close button (44px btn + 14px top + 16px gap = 74px) */
  padding-top: calc(env(safe-area-inset-top, 0px) + 74px);
  /* Safe-area bottom */
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  /* Horizontal padding — comfortable on all widths */
  padding-left:  clamp(20px, 6vw, 40px);
  padding-right: clamp(20px, 6vw, 40px);

  /* Animated slide-in from slight offset when menu opens */
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.5s var(--ease-premium), opacity 0.42s ease;
  /* Delay slightly so the overlay fades in first */
  transition-delay: 0.06s;
}
#mobile-menu.active #mobile-menu-inner {
  transform: translateY(0);
  opacity: 1;
}

/* Nav items — full width, generous tap area */
.mobile-nav-item {
  min-height: 52px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* CTA section */
.mobile-menu-ctas a {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
/* Subtle hover lift on CTAs */
.mobile-menu-ctas a:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* ============================================
   LAYOUT
   ============================================ */
.section-padding {
  padding-left: var(--section-px);
  padding-right: var(--section-px);
}

/* About collage — desktop default */
.about-flex {
  display: flex;
  align-items: center;
}
.about-text {
  flex: 1;
  min-width: 0;
  max-width: 500px;
}
.about-text ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}
.about-text ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.about-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #000;
}
.about-collage {
  position: relative;
  width: 544px;
  height: 644px;
  flex-shrink: 0;
}
.about-collage .collage-img {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.12);
}
.about-collage .collage-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-premium);
}
.about-collage .collage-img:hover img {
  transform: scale(1.04);
}
.collage-img-1 { top: 0; left: 96px; width: 352px; height: 352px; }
.collage-img-2 { top: 253px; left: 0; width: 256px; height: 298px; }
.collage-img-3 { top: 284px; right: 0; width: 256px; height: 360px; }
main + footer{
  background-color: #4a4a52;
}
/* ============================================
   RESPONSIVE — 1280px
   ============================================ */
@media (max-width: 1280px) {
  .about-text { max-width: none; }
  .about-collage { width: 440px; height: 540px; }
  .collage-img-1 { left: 60px; width: 300px; height: 300px; }
  .collage-img-2 { top: 210px; width: 210px; height: 250px; }
  .collage-img-3 { top: 235px; width: 210px; height: 305px; }
  .about-collage .floating-card:first-of-type { left: 0 !important; top: 85px !important; width: 250px !important; }
  .about-collage .floating-card:last-of-type { left: 55px !important; top: 420px !important; width: 230px !important; }
}

/* ============================================
   RESPONSIVE — 1024px (tablet)
   ============================================ */
@media (max-width: 1024px) {
  .about-flex { flex-direction: column; gap: 40px !important; }
  .about-text { max-width: 640px; width: 100%; }
  .about-collage { width: 100%; max-width: 460px; height: 500px; margin: 0 auto; }
  .collage-img-1 { left: 55px; width: 270px; height: 270px; }
  .collage-img-2 { top: 185px; width: 195px; height: 235px; }
  .collage-img-3 { top: 210px; width: 195px; height: 290px; }
  .about-collage .floating-card:first-of-type { left: 0 !important; top: 75px !important; width: 230px !important; }
  .about-collage .floating-card:last-of-type { left: 50px !important; top: 410px !important; width: 210px !important; }
}

/* Footer — copyright / legal links: pipe separators align with text */
.footer-copyright-sep {
  line-height: 1;
}

/* SEO footer links grid — narrower track, centered inside section */
.footer-links-grid {
  max-width: 1264px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   RESPONSIVE — 768px (mobile landscape / small tablet)
   ============================================ */
@media (max-width: 767px) {
  :root {
    --dur-reveal: 1.2s;
    --section-px: 20px;
  }
  #programs{
    padding-left: 0;
    padding-right: 0;
  }
  #programs > * {
    padding-left: var(--section-px);
    padding-right: var(--section-px);
  }
  /* ---- Hero ---- */
  .hero-bg { min-height: 420px !important; }
  .search-bar-wrapper { margin-top: -90px !important; }

  /* ---- Sections vertical rhythm ---- */
  #programs, #about, #testimonials, #contact, #faq {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
    overflow: hidden;
  }

  /* ---- Program tabs ---- */
  .program-tab {
    font-size: 14px !important;
    padding-bottom: 14px;
    padding-left: 4px;
    padding-right: 4px;
  }

  /* ---- About collage ---- */
  .about-collage { height: 380px; max-width: 320px; }
  .collage-img-1 { left: 35px; width: 210px; height: 210px; border-radius: 16px; }
  .collage-img-2 { top: 145px; width: 155px; height: 185px; border-radius: 16px; }
  .collage-img-3 { top: 165px; width: 155px; height: 215px; border-radius: 16px; }
  .about-collage .floating-card {
    height: 56px !important;
    padding: 8px 12px !important;
    border-radius: 28px !important;
  }
  .about-collage .floating-card:first-of-type { top: 52px !important; width: 190px !important; left: 0 !important; }
  .about-collage .floating-card:last-of-type { left: 30px !important; top: 310px !important; width: 180px !important; }
  .about-collage .floating-card .avatar-img { width: 32px !important; height: 32px !important; }
  .about-collage .floating-card .avatar-name { font-size: 12px !important; line-height: 1.3 !important; }

  .about-buttons { flex-direction: column; width: 100%; }
  .about-buttons a { width: 100%; justify-content: center; text-align: center; }

  /* ---- Contact section ---- */
  .contact-buttons-row { flex-direction: column; }
  .contact-buttons-row a { width: 100%; justify-content: center; }

  /* ---- FAQ ---- */
  .faq-item button.faq-toggle {
    padding: 20px 18px !important;
  }
  .faq-item .faq-toggle span {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  .faq-content {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .faq-content[aria-hidden="false"] {
    padding-bottom: 20px !important;
  }

  /* ---- Program cards — horizontal scroll on mobile ----
     Safe approach: overflow-x within section padding (no negative margins).
     Cards are wide enough that the next card peeks naturally.
  ---- */
  #program-cards {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 16px;
    /* No negative margins — avoids overflow bugs on Android/Safari */
    transform: none !important;
  }
  #program-cards::-webkit-scrollbar { display: none; }
  #program-cards.is-fading-out {
    transform: none !important;
    opacity: 0;
  }
  /* Each card: fixed-width tile that snaps cleanly.
     78vw ensures the next card peeks into view on the right edge. */
  #program-cards > article.property-card {
    min-width: clamp(260px, 78vw, 290px);
    max-width: 290px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* ---- Footer links grid ---- */
  .footer-links-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px 16px !important; }

  /* ---- Footer ---- */
  .footer-cta-row { flex-direction: column !important; gap: 12px !important; }
  .footer-cta-row a { width: 100%; justify-content: center; }

  /* Copyright row: slightly tighter horizontal rhythm when wrapped on narrow tablets */
  .footer-copyright-nav {
    column-gap: 10px !important;
    row-gap: 10px !important;
  }
}

/* ============================================
   RESPONSIVE — 480px (small mobile)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --section-px: 16px;
  }

  .hero-bg { min-height: 380px !important; }
  .search-bar-wrapper { margin-top: -80px !important; }

  .about-collage { height: 320px; max-width: 270px; }
  .collage-img-1 { left: 25px; width: 180px; height: 180px; }
  .collage-img-2 { top: 122px; width: 135px; height: 158px; }
  .collage-img-3 { top: 140px; width: 135px; height: 180px; }
  .about-collage .floating-card:first-of-type { width: 170px !important; top: 44px !important; }
  .about-collage .floating-card:last-of-type { left: 15px !important; top: 260px !important; width: 165px !important; }

  .footer-links-grid { grid-template-columns: 1fr !important; }

  .footer-copyright-nav {
    column-gap: 8px !important;
    row-gap: 8px !important;
  }

  .program-tab {
    font-size: 13px !important;
  }

  /* Form submit button full width on small screens */
  #contact-form button[type="submit"] {
    width: 100% !important;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .floating-card { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 993px) {
  #breadcrumb {
    display: none;
  }
}

/* Carousel arrows */
.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid #e6e8ec;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.carousel-arrow:hover {
  border-color: #f28920;
}

.carousel-arrow svg {
  width: 16px;
  height: 16px;
}

/* Disabled arrow state */
.carousel-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* ============================================ */
/* PAGE: PROGRAMMES                             */
/* ============================================ */

/* Programme page hero — no background image, solid dark */
#hero .bg-pa-dark {
  animation: none;
}

/* Programme filter dropdowns */
.programme-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.programme-dropdown-arrow.is-open {
  transform: rotate(180deg);
}
.programme-filter-option.is-selected {
  color: #f28920;
  background: rgba(242, 137, 32, 0.06);
}

@media (max-width: 1024px) {
  programmes-filter-row {
    gap: 1.25rem 1.08rem;
  }
  .programme-filter-col {
    min-width: 48% !important;
    flex: 0 0 48% !important;
  }
  .programmes-filter-row > button {
    min-width: 48% !important;
    flex: 0 0 48% !important;
  }
}
/* Filter row responsive — 993px breakpoint */
@media (max-width: 993px) {
  .programmes-filter-row {
    gap: 25px;
  }
  .programme-filter-col {
    min-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .programmes-filter-row>button {
    min-width: 100% !important;
    flex: 0 0 100% !important;
  }
}
.programme-cards-grid .reveal-up {
      transition: opacity var(--dur-reveal) var(--ease-premium), transform var(--dur-reveal) var(--ease-premium);
}
.programme-cards-grid .reveal-up.revealed {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}
/* Cards grid responsive */
@media (max-width: 1024px) {
  .programme-cards-grid {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .programme-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Sort dropdown — white background variant */
.sort-dropdown .programme-dropdown-btn {
  background: white;
}

/* SEO content section divider */
#seo-content::after {
  content: '';
  display: block;
  height: 1px;
  background: #e5e5e5;
  max-width: 1106px;
  margin: 0 auto;
}

/* ============================================ */
/* PAGE: PROGRAMME DETAILS                      */
/* ============================================ */

/* Tab navigation — sticky below fixed header */
.detail-tab-nav {
  position: sticky;
  top: var(--header-h, 70px);
  z-index: 15;
  background: #FFF;
  padding-top: 15px;
  margin-top: -15px;
  transition: top 0.3s ease;
}
.has-scrolled-header .detail-tab-nav {
  /* Compact scrolled header is shorter */
  top: var(--header-scrolled-h, 70px);
}

.detail-tab {
  padding-bottom: 20px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, opacity 0.3s;
  border-bottom: 2px solid transparent;
  opacity: 0.5;
  font-weight: 500;
}
.detail-tab.is-active {
  border-bottom-color: #f28920;
  opacity: 1;
  font-weight: 600;
}

/* Photo gallery */
.detail-gallery {
  display: flex;
  gap: 30px;
  flex: 1;
  min-height: 480px;
}
.detail-gallery-main {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  min-height: 100%;
}
.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 255px;
}
.detail-gallery-side > div {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.detail-gallery-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-overlay-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(1.5px);
  border-radius: 72px;
  color: white;
  font-size: 13px;
  line-height: 13px;
  padding: 0 10px;
  cursor: pointer;
  transition: background 0.3s;
}
.gallery-overlay-btn:hover {
  background: rgba(0,0,0,0.7);
}

/* Accessibility info card */
.access-card {
  border: 2px solid #efefef;
  border-radius: 14px;
  padding: 20px;
}
.access-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.access-icon {
  width: 30px;
  height: 30px;
  border-radius: 100px;
  background: rgba(242,137,32,0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.access-icon img {
  width: 18px;
  height: 18px;
}

/* Checkmark list card */
.check-card {
  border: 2px solid #efefef;
  border-radius: 14px;
  padding: 20px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.check-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fde9d5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-icon img {
  width: 18px;
  height: 18px;
}

/* Auto-style des <ul><li> dans les onglets de programme (WYSIWYG) */
.detail-section-border ul {
  border: 2px solid #efefef;
  border-radius: 14px;
  padding: 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 15px 0;
}
.detail-section-border ul:nth-last-of-type(1) {
  margin-bottom: 0;

}
/* Bloc (pas flex) : un <li> peut mêler texte, <strong> et <sup> sans les séparer.
   Pastille en absolu : 30px + 14px d'écart, centrée en hauteur comme avant. */
.detail-section-border ul li {
  display: block;
  position: relative;
  min-height: 30px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.009px;
  color: #252a2b;
  padding: 5px 0 5px 44px;
  margin: 0;
  line-height: 1.4;
}
.detail-section-border ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fde9d5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23252a2b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
  flex-shrink: 0;
}

/* Bloc Texte WYSIWYG — styles du contenu riche */
.pa-texte-content p { margin: 0 0 16px; }
.pa-texte-content p:last-child { margin-bottom: 0; }
.pa-texte-content ul,
.pa-texte-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.pa-texte-content ul { list-style: disc; }
.pa-texte-content ol { list-style: decimal; }
.pa-texte-content li { margin-bottom: 6px; }
.pa-texte-content li::marker { color: #e07a2b; }
.pa-texte-content li > ul,
.pa-texte-content li > ol { margin: 6px 0 0; }
.pa-texte-content a {
  color: #e07a2b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pa-texte-content a:hover { color: #c5651d; }
.pa-texte-content strong, .pa-texte-content b { font-weight: 600; color: #252a2b; }
.pa-texte-content em, .pa-texte-content i { font-style: italic; }
.pa-texte-content h2, .pa-texte-content h3, .pa-texte-content h4 {
  font-weight: 600;
  color: #252a2b;
  margin: 24px 0 12px;
  line-height: 1.3;
}
.pa-texte-content h2 { font-size: 22px; }
.pa-texte-content h3 { font-size: 20px; }
.pa-texte-content h4 { font-size: 18px; }
.pa-texte-content blockquote {
  border-left: 3px solid #e07a2b;
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: #4a4a52;
}

/* CTA cards (brochure + advisor) */
.cta-card-brochure {
  background: #f9f9f9;
  border-radius: 24px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 182px;
}
.cta-card-advisor {
  background: #ffeddd;
  border-radius: 24px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 182px;
}
.cta-card-brochure .cta-card-image,
.cta-card-advisor .cta-card-image {
  position: absolute;
  right: 0;
  top: 74px;
  width: 110px;
  pointer-events: none;
}
.cta-card-brochure .cta-card-image {
  transform: rotate(10.81deg);
}

/* Lead form sidebar */
.detail-form-card {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  padding: 30px;
  width: 360px;
}
.detail-form-input {
  width: 100%;
  height: 48px;
  border: 1px solid #e6e8ec;
  border-radius: 100px;
  padding: 8px 11px 8px 17px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: #252a2b;
  background: white;
  outline: none;
  transition: border-color 0.3s;
}
.detail-form-input:focus {
  border-color: #f28920;
}
.detail-form-input::placeholder {
  color: rgba(35,38,47,0.7);
  font-weight: 500;
}
.detail-form-textarea {
  width: 100%;
  height: 139px;
  border: 1px solid #e6e8ec;
  border-radius: 20px;
  padding: 17px 11px 8px 17px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: #252a2b;
  background: white;
  outline: none;
  resize: none;
  transition: border-color 0.3s;
}
.detail-form-textarea:focus {
  border-color: #f28920;
}
.detail-form-textarea::placeholder {
  color: rgba(35,38,47,0.7);
  font-weight: 500;
}

/* CF7 form inside sidebar — match integration layout */
.detail-form-card .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.detail-form-card .wpcf7-form p {
  margin: 0;
}
.detail-form-card .wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-weight: 600;
  font-size: 14px;
  color: #252a2b;
}
.detail-form-submit {
  background: #252a2b;
  border: 0;
  border-radius: 100px;
  height: 48px;
  width: 100%;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .3s;
}
.detail-form-submit:hover {
  background: #374151;
}
.detail-form-card .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #dc2626;
  margin-top: 6px;
}
.detail-form-card .wpcf7-response-output {
  margin: 0;
  border-radius: 12px;
  font-size: 13px;
}

/* Sticky sidebar */
@media (min-width: 1025px) {
  .detail-sidebar {
    position: sticky;
    top: 145px;
    align-self: flex-start;
  }
}

/* Two-column layout */
.detail-content-row {
  display: flex;
  gap: 30px;
}
.detail-content-left {
  flex: 1;
  max-width: 750px;
  min-width: 0;
}

/* Section borders */
.detail-section-border {
  border-bottom: 1px solid #dedede;
  padding-bottom: 35px;
}

/* Gallery trigger cursor */
.gallery-trigger {
  cursor: pointer;
  transition: filter 0.3s;
}
.gallery-trigger:hover {
  filter: brightness(0.92);
}

/* ====== GALLERY POPUP ====== */
.gallery-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.33,1,0.68,1), visibility 0.4s;
}
.gallery-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.gallery-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(4px);
}
.gallery-popup-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
}
.gallery-popup-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background 0.3s;
  z-index: 2;
}
.gallery-popup-close:hover {
  background: rgba(255,255,255,0.25);
}
.gallery-popup-nav {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  flex-shrink: 0;
  z-index: 2;
}
.gallery-popup-nav:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
}
.gallery-popup-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  padding: 0 24px;
  overflow: hidden;
}
.gallery-popup-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  object-fit: contain;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery-popup-image.is-fading {
  opacity: 0;
  transform: scale(0.97);
}
.gallery-popup-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

@media (max-width: 768px) {
  .gallery-popup-container {
    padding: 50px 10px;
  }
  .gallery-popup-nav {
    width: 36px;
    height: 36px;
  }
  .gallery-popup-image-wrap {
    padding: 0 8px;
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .detail-content-row {
    flex-direction: column;
  }
  .detail-content-left {
    max-width: 100%;
  }
  .detail-form-card {
    width: 100%;
  }
  .detail-gallery-side {
    width: 200px;
  }
}
@media (max-width: 768px) {
  .detail-gallery {
    flex-direction: column;
    min-height: auto;
    gap: 20px;
  }
  .detail-gallery-main {
    height: 240px;
  }
  .detail-gallery-side {
    flex-direction: row;
    width: 100%;
    gap: 20px;
  }
  .detail-gallery-side > div {
    height: 160px;
  }
  .cta-cards-row {
    flex-direction: column;
  }
  .cta-card-brochure .cta-card-image,
  .cta-card-advisor .cta-card-image {
    display: none;
  }
}
@media (max-width: 480px) {
  .detail-gallery {
    gap: 10px;
  }
  .detail-gallery-side > div {
    height: 120px;
  }
  .detail-gallery-side {
    gap: 10px;
  }
}

/* ====== OTHER RESIDENCES CAROUSEL ====== */
#residences-viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
}

#residences-viewport img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

#residences-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Desktop xl (≥1280px): 3 cards visible */
#residences-track .property-card {
  flex: 0 0 calc((100% - 60px) / 3);
  min-width: 0;
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Tablet lg (1024–1279px): 2 cards visible */
@media (max-width: 1279px) {
  #residences-track {
    gap: 20px;
  }
  #residences-track .property-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

/* Mobile (<1024px): 1 card + peek of next */
@media (max-width: 1023px) {
  #residences-viewport{
    width: auto;
    margin: 0 -2rem;
    padding: 0 2rem;
  }
  #residences-track .property-card {
    flex: 0 0 calc(65%);
  }
}

@media (max-width: 640px) {
  #residences-viewport{
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
  }
  #residences-track .property-card {
    flex: 0 0 calc(96%);
  }
}

/* ============================================ */
/* PAGE: ACTUALITES & ARTICLE CARDS             */
/* ============================================ */

/* HERO — flat dark banner (no background image) */
#actualites-hero {
  background-color: #4a4a52;
  padding-bottom: 60px;
}

#actualites-hero .hero-title {
  font-size: clamp(32px, 3.1vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.5px;
}

#actualites-hero .hero-subtitle {
  font-size: 15px;
  line-height: 1.6;
  max-width: 424px;
  letter-spacing: 0.009px;
}

/* Fond blanc sur les articles single (matche article.html :: body class="bg-white") */
body.single-post {
  background-color: #fff;
}

/* ARTICLE CARD — shared component (also used by article.html) */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.article-card-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 352 / 256;
  background: #e6e8ec;
}

.article-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  transition: transform 0.55s var(--ease-premium, cubic-bezier(0.25, 0.46, 0.45, 0.94));
  will-change: transform;
}

.article-card:hover .article-card-img-wrap img {
  transform: scale(1.04);
}

.article-card-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #252a2b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #777e90;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
}

.article-card-meta svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #777e90;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #252a2b;
  text-decoration: none;
  transition: color 0.3s ease;
  width: fit-content;
}

.article-card-link svg {
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #f28920;
}

.article-card-link:hover {
  color: #f28920;
}

.article-card-link:hover svg {
  transform: translateX(4px);
}

/* ARTICLES GRID */
#articles-section {
  padding-top: 80px;
  padding-bottom: 60px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

/* Page group visibility */
.articles-page {
  display: contents; /* renders children directly in the grid */
}

.articles-page.is-hidden {
  display: none;
}

/* PAGINATION */
#news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 0 80px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e6e8ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #777e90;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.pagination-btn:hover:not(.is-active) {
  border-color: #f28920;
  color: #f28920;
  transform: scale(1.05);
}

.pagination-btn.is-active {
  background: #f28920;
  border-color: #f28920;
  color: #fff;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #articles-section {
    padding-top: 60px;
  }

  .articles-grid {
    gap: 32px 24px;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  #actualites-hero .hero-subtitle {
    max-width: 100%;
  }

  #news-pagination {
    padding-bottom: 60px;
  }
}

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

  #actualites-hero {
    padding-bottom: 40px;
  }

  .article-card-title {
    font-size: 15px;
  }
}

/* ============================================ */
/* PAGE: SINGLE ARTICLE                         */
/* ============================================ */

/* BREADCRUMB */
#article-breadcrumb .breadcrumb-current {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 580px;
}

/* ARTICLE LAYOUT — Two-column */
#article-layout {
  padding-top: 60px;
  padding-bottom: 80px;
}

.article-columns {
  display: grid;
  grid-template-columns: 750px 360px;
  gap: 45px;
  align-items: start;
}

/* ARTICLE BODY — Rich text content */
.article-body {
  min-width: 0;
}

.article-body .article-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #252a2b;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #494848;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 40px;
}

.article-meta svg {
  flex-shrink: 0;
  color: #777e90;
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 750 / 539;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  margin-bottom: 54px;
}

/* Content blocks — scoped to avoid polluting global styles */
.article-body h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: #252a2b;
  margin-bottom: 20px;
}

.article-body p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: #474c5a;
  margin-bottom: 16px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-content-block {
  margin-bottom: 52px;
}

.article-content-block:last-child {
  margin-bottom: 0;
}

/* Checklist block */
.article-checklist {
  border: 2px solid #efefef;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 52px;
}

.article-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 21.6px;
  color: #252a2b;
  letter-spacing: 0.009px;
  list-style: none;
}

.article-checklist .check-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fde9d5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-checklist .check-icon svg {
  width: 16px;
  height: 16px;
  color: #252A2B;
}

/* SIDEBAR */
.article-sidebar {
  position: sticky;
  top: calc(var(--sticky-header-h, 70px) + 24px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  border-radius: 24px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #252a2b;
  margin-bottom: 12px;
}

.sidebar-card-title svg,
.sidebar-card-title img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.sidebar-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: #252a2b;
  letter-spacing: 0.009px;
  max-width: 200px;
  margin-bottom: 20px;
}

.sidebar-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.sidebar-card-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Card 1 — Brochure */
.sidebar-card--brochure {
  background: #f9f9f9;
  min-height: 182px;
}

.sidebar-card--brochure .sidebar-card-btn {
  background: #252a2b;
}

/* Decorative brochure image */
.sidebar-card--brochure .sidebar-deco {
  position: absolute;
  right: -8px;
  top: 74px;
  width: 110px;
  pointer-events: none;
  transform: rotate(11deg);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  object-fit: cover;
}

/* Card 2 — Conseiller */
.sidebar-card--conseiller {
  background: #ffeedd;
  min-height: 182px;
}

.sidebar-card--conseiller .sidebar-card-btn {
  background: #f28920;
}

/* Decorative advisor image */
.sidebar-card--conseiller .sidebar-deco {
  position: absolute;
  right: -8px;
  top: 105px;
  width: 110px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  pointer-events: none;
}

/* ORANGE CTA BANNER */
#article-cta-banner {
  background: #f28920;
  padding: 38px 150px;
}

.article-cta-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.article-cta-text .label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 36px;
  color: #fff;
  display: block;
}

.article-cta-text .phone {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  color: #fff;
  display: block;
}

.article-cta-text .hours {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 11.6px;
  line-height: 14.4px;
  color: rgba(255,255,255,0.8);
  display: block;
  margin-top: 4px;
}

.article-cta-btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 20px;
  border-radius: 100px;
  border: 2px solid #e6e8ec;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.article-cta-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* RELATED ARTICLES — Carousel */
#related-viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
}

#related-viewport img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

#related-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Desktop xl (≥1280px): 3 cards visible */
#related-track .article-card {
  flex: 0 0 calc((100% - 60px) / 3);
  min-width: 0;
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Tablet lg (1024–1279px): 2 cards visible */
@media (max-width: 1279px) {
  #related-track {
    gap: 20px;
  }
  #related-track .article-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

/* Mobile (<1024px): 1 card + peek */
@media (max-width: 1023px) {
  #related-viewport {
    width: auto;
    margin: 0 -2rem;
    padding: 0 2rem;
  }
  #related-track .article-card {
    flex: 0 0 calc(65%);
  }
}

@media (max-width: 640px) {
  #related-viewport {
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
  }
  #related-track .article-card {
    flex: 0 0 calc(88%);
  }
}

/* RESPONSIVE */
@media (max-width: 1280px) {
  .article-columns {
    grid-template-columns: 1fr 320px;
    gap: 32px;
  }
}

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

  .article-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .sidebar-card {
    flex: 1;
    min-width: 260px;
  }

  #article-layout {
    padding-top: 40px;
  }

  .article-body .article-title {
    font-size: 30px;
  }

  #article-cta-banner {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .article-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .article-cta-text .label,
  .article-cta-text .phone {
    font-size: 24px;
  }

  #related-articles {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (max-width: 768px) {
  #article-layout {
    padding-top: 32px;
  }

  .article-body .article-title {
    font-size: 26px;
  }

  .article-body h2 {
    font-size: 20px;
  }

  .article-sidebar {
    flex-direction: column;
  }

  #article-breadcrumb .breadcrumb-current {
    max-width: 200px;
  }

  #related-articles {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .related-header h2 {
    font-size: 28px;
  }

  #article-cta-banner {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .article-body .article-title {
    font-size: 22px;
  }

  .article-body h2 {
    font-size: 18px;
  }

  .article-hero-img {
    border-radius: 16px;
    margin-bottom: 32px;
  }

  .article-content-block {
    margin-bottom: 36px;
  }
}

/* ============================================ */
/* PAGE: CONTACT                                */
/* ============================================ */
#contact{
  overflow: hidden;
}
/* MAIN LAYOUT — two columns */
#contact-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 150px;
}

/* LEFT COLUMN — contact info */
.contact-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 35px;
  line-height: 45px;
  letter-spacing: -0.8px;
  color: #252a2b;
  margin-bottom: 12px;
}

.contact-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #777e90;
  margin-bottom: 24px;
}

/* Info blocks: Siret, Carte Pro, Adresse */
.contact-info-block {
  margin-bottom: 18px;
}

.contact-info-block dt {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: #252a2b;
  margin-bottom: 4px;
}

.contact-info-block dd {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.009px;
  color: #252a2b;
}

/* Contact action buttons row */
.contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-bottom: 32px;
}

.contact-btn-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px;
  border: 2px solid #e6e8ec;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #252a2b;
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.contact-btn-email:hover {
  border-color: #f28920;
  color: #f28920;
}

.contact-btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px;
  background: #28b37e;
  border-radius: 90px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.contact-btn-phone:hover {
  background: #1d9b6a;
}

/* Map container */
.contact-map {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid #e0dcdc;
  flex-shrink: 0;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Carte Leaflet — marker SVG custom (Pierre Azur orange) */
#contact-map { background: #f3f4f6; }
.pa-map-marker {
  background: transparent !important;
  border: none !important;
}
.pa-map-marker svg {
  display: block;
  filter: drop-shadow(0 4px 8px rgba(240, 131, 0, 0.35));
}

/* RIGHT COLUMN — form card */
.contact-form-card {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-form-card-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 29.6px;
  color: #252a2b;
}

/* Form fields wrapper */
.contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* Field group: label + input */
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-field label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  color: #252a2b;
}

/* Pill inputs */
.contact-input {
  height: 48px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 100px;
  padding: 0 17px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #23262f;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.contact-input::placeholder {
  color: rgba(35, 38, 47, 0.45);
}

.contact-input:focus {
  border-color: #f28920;
  box-shadow: 0 0 0 3px rgba(242, 137, 32, 0.12);
}

.contact-input.is-invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Textarea */
.contact-textarea {
  height: 139px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 20px;
  padding: 16px 17px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #23262f;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  min-height: 100px;
}

.contact-textarea::placeholder {
  color: rgba(35, 38, 47, 0.45);
}

.contact-textarea:focus {
  border-color: #f28920;
  box-shadow: 0 0 0 3px rgba(242, 137, 32, 0.12);
}

.contact-textarea.is-invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Field error message */
.contact-field-error {
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #e53e3e;
  margin-top: 2px;
  padding-left: 4px;
}

.contact-field.has-error .contact-field-error {
  display: block;
}

/* Submit button */
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 183px;
  background: #f28920;
  border: none;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.contact-submit-btn:hover {
  background: #e07710;
}

.contact-submit-btn:active {
  transform: scale(0.97);
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success / error feedback */
.contact-feedback {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.contact-feedback.is-success {
  display: flex;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
}

.contact-feedback.is-error {
  display: flex;
  background: #fff5f5;
  border: 1px solid #fca5a5;
  color: #dc2626;
}

.contact-feedback svg {
  flex-shrink: 0;
}

/* Form actions row */
.contact-form-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* RESPONSIVE */
@media (max-width: 1279px) {
  #contact-main {
    padding: 60px 60px;
  }
}

@media (max-width: 1023px) {
  #contact-main {
    grid-template-columns: 1fr;
    padding: 50px 40px;
    gap: 48px;
  }
}

@media (max-width: 767px) {
  #contact-main {
    padding: 40px 20px;
  }

  .contact-title {
    font-size: 28px;
    line-height: 36px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-map {
    height: 280px;
  }

  .contact-form-card {
    padding: 24px 20px;
  }

  .contact-submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-title {
    font-size: 24px;
  }

  .contact-form-card-title {
    font-size: 21px;
  }
}

/* ============================================ */
/* PAGE: QUI SOMMES-NOUS (ABOUT)                */
/* ============================================ */

/* HERO — flat dark banner (same pattern as actualites) */
#about-hero {
  background-color: #4a4a52;
  padding-bottom: 60px;
}

#about-hero .hero-title {
  font-size: clamp(32px, 3.1vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.5px;
}

#about-hero .hero-subtitle {
  font-size: 15px;
  line-height: 1.6;
  max-width: 424px;
  letter-spacing: 0.009px;
}

/* ABOUT CONTENT BLOCKS — text + image sections */
.about-block {
  padding: 80px 0;
}

/* Fond blanc comme l'intégration (body bg-white) ; l'option « Fond gris » garde bg-pa-bg */
.about-block:not(.bg-pa-bg) {
  background-color: #fff;
}

.about-block-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
}

.about-block--reversed .about-block-inner {
  flex-direction: row-reverse;
}

.about-block-text {
  flex: 1;
  min-width: 0;
}

.about-block-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 41px;
  letter-spacing: -0.76px;
  color: #252a2b;
  margin-bottom: 18px;
}

.about-block-body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #252a2b;
}

/* Contenu WYSIWYG multi-paragraphes / listes (le reset Tailwind les aplatit) */
.about-block-body p + p { margin-top: 16px; }
.about-block-body ul { list-style: disc; padding-left: 1.25rem; margin: 16px 0; }
.about-block-body li { margin-bottom: 6px; }

.about-block-image {
  flex-shrink: 0;
  width: 555px;
  border-radius: 24px;
  overflow: hidden;
}

.about-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 555 / 404;
  border-radius: 24px;
  transition: transform 0.8s var(--ease-premium, cubic-bezier(0.33, 1, 0.68, 1));
}

.about-block-image:hover img {
  transform: scale(1.03);
}

/* Option « Image entière » : pleine largeur de colonne, ratio d'origine (pas de recadrage) */
.about-block-image--natural img {
  height: auto;
  aspect-ratio: auto;
}

/* Titre de section optionnel au-dessus d'un bloc Texte + Image */
.about-block-section-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.02;
  color: #252a2b;
  text-align: center;
  max-width: 694px;
  margin: 30px auto 65px;
}

/* HERO SPLIT — variante deux colonnes de bloc-hero_page (image + panneau sombre) */
/* .hero-split[data-hero] {
  background-color: #222627;
} */

/* Qui sommes-nous : contact aligné sur la grille 150 px de la page (comme #about-contact de l'intégration) */
@media (min-width: 1280px) {
  .page-template-page-qui-sommes-nous #contact > .section-padding {
    padding-left: 150px;
    padding-right: 150px;
  }

  .page-template-page-qui-sommes-nous #contact .contact-flex {
    gap: 30px;
  }
}

/* Pas de filet sous le menu au-dessus du hero split (maquette V2) */
body:has(.hero-split) #main-header:not(.is-scrolled) .header-inner nav {
  border-bottom-color: transparent;
}

.hero-split-inner {
  display: grid;
  grid-template-columns: 812fr 628fr;
  min-height: 520px;
}

.hero-split-image {
  position: relative;
}

.hero-split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 30px 80px;
  color: #fff;
}

.hero-split-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.1vw, 45px);
  line-height: 0.92;
  max-width: 468px;
}

.hero-split-text {
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.009px;
  max-width: 468px;
}

.hero-split-text strong {
  font-weight: 700;
}

/* CHIFFRES CLÉS — bloc-chiffres */
.pa-chiffres {
  background: #fff;
  padding: 100px 0;
}

.pa-chiffres-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1140px;
  margin: 0 auto;
}

.pa-chiffres-intro {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  min-height: 150px;
  color: #252a2b;
}

.pa-chiffres-title {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
}

.pa-chiffres-text {
  flex: 1;
  font-size: 16px;
  line-height: 24px;
}

.pa-chiffres-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pa-chiffres-stats-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #252a2b;
}

.pa-chiffres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pa-stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 186px;
  padding: 44px 30px 30px;
  background: #f9f9f9;
  border-radius: 24px;
  color: #252a2b;
}

.pa-stat-number {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 54px;
}

.pa-stat-prefix {
  font-weight: 400;
  font-size: 20px;
  line-height: 1; /* n'agrandit pas la ligne du nombre */
}

.pa-stat-label {
  font-size: 16px;
  line-height: 24px;
}

/* GALERIE PHOTOS — bloc-galerie (carrousel : initPaGalerie) */
.pa-galerie {
  background: #4a4a52;
  padding: 100px 0;
}

.pa-galerie-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto 50px;
}

.pa-galerie-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  color: #fff;
}

.pa-galerie-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
}

.pa-galerie-intro {
  font-style: italic;
  font-size: 16px;
  line-height: 24px;
  opacity: 0.8;
}

.pa-galerie-nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.pa-galerie-nav[hidden] {
  display: none;
}

.pa-galerie-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2.5px solid #e6e8ec;
  border-radius: 125px;
  transition: border-color 0.3s, opacity 0.3s;
}

.pa-galerie-arrow:hover {
  border-color: #f28920;
}

.pa-galerie-prev img {
  transform: rotate(180deg);
}

.pa-galerie-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pa-galerie-viewport {
  max-width: 1140px;
  margin: 0 auto;
  overflow: hidden;
}

.pa-galerie-track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s var(--ease-premium, cubic-bezier(0.33, 1, 0.68, 1));
}

.pa-galerie-tile {
  flex: 0 0 calc((100% - 60px) / 3);
  height: 256px;
  border-radius: 24px;
  overflow: hidden;
}

.pa-galerie-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PARTENAIRES — bloc-partenaires */
.pa-partenaires {
  background: #f9f9f9;
  padding: 100px 0;
}

.pa-partenaires-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  color: #252a2b;
  text-align: center;
}

.pa-partenaires-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
}

.pa-partenaires-intro {
  max-width: 700px;
  font-size: 16px;
  line-height: 24px;
}

.pa-partenaires-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pa-partenaires-group + .pa-partenaires-group {
  margin-top: 40px;
}

.pa-partenaires-label {
  font-weight: 600;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #96989a;
}

.pa-partenaires-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1080px;
}

.pa-partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 96px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 24px;
}

.pa-partner-card img {
  display: block;
  width: 160px;
  height: 60px;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-split-image {
    aspect-ratio: 812 / 520;
  }

  .hero-split-content {
    padding: 40px 20px 50px;
  }

  .about-block-section-title {
    margin: 0 auto 40px;
  }

  .pa-chiffres,
  .pa-galerie,
  .pa-partenaires {
    padding: 70px 0;
  }

  .pa-chiffres-inner {
    gap: 40px;
  }

  .pa-chiffres-intro {
    flex-direction: column;
    gap: 20px;
  }

  .pa-chiffres-grid {
    grid-template-columns: 1fr;
  }

  .pa-stat-card {
    min-height: 0;
  }

  .pa-galerie-track {
    gap: 20px;
  }

  .pa-galerie-tile {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 639px) {
  .pa-galerie-head {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .pa-galerie-tile {
    flex-basis: 100%;
    height: 220px;
  }

  .pa-partenaires-grid {
    gap: 12px;
  }

  .pa-partner-card {
    width: calc(50% - 6px);
    height: 84px;
    padding: 0 12px;
  }

  .pa-partner-card img {
    width: 100%;
    height: auto;
    max-height: 60px;
  }
}

/* ABOUT CONTACT SECTION — reuse contact layout */
#about-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 150px;
}

/* RESPONSIVE — 1280px */
@media (max-width: 1280px) {
  .about-block-image {
    width: 460px;
  }

  #about-contact {
    padding: 60px 80px;
  }
}

/* RESPONSIVE — 1024px (tablet) */
@media (max-width: 1024px) {
  .about-block {
    padding: 60px 0;
  }

  .about-block-inner {
    flex-direction: column;
    gap: 32px;
  }

  .about-block--reversed .about-block-inner {
    flex-direction: column;
  }

  .about-block-image {
    width: 100%;
    max-width: 555px;
  }

  #about-contact {
    grid-template-columns: 1fr;
    padding: 50px 40px;
    gap: 48px;
  }
}

/* RESPONSIVE — 768px */
@media (max-width: 768px) {
  #about-hero .hero-subtitle {
    max-width: 100%;
  }

  .about-block {
    padding: 48px 0;
  }

  .about-block-inner {
    gap: 28px;
  }

  .about-block-title {
    line-height: 1.15;
  }

  #about-contact {
    padding: 40px 20px;
  }

  .about-block-body {
    font-size: 15px;
  }
}

/* RESPONSIVE — 480px */
@media (max-width: 480px) {
  #about-hero {
    padding-bottom: 40px;
  }

  .about-block {
    padding: 40px 0;
  }

  .about-block-title {
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .about-block-body {
    font-size: 14px;
    line-height: 22px;
  }
}

/* Footer — réseaux sociaux : pas de scale, inversion couleurs au survol, X sur fond sombre */
.footer-social-row > a {
  transform: none !important;
}

.footer-social-row > a svg path {
  transition: fill 0.3s ease;
}

.footer-social-row .footer-social-x {
  background-color: #0f1419 !important;
  border: none !important;
}

.footer-social-row > a[title="Instagram"]:hover {
  background-color: #ffffff !important;
}

.footer-social-row > a[title="Instagram"]:hover svg path {
  fill: #bf2279;
}

.footer-social-row .footer-social-x:hover {
  background-color: #ffffff !important;
}

.footer-social-row .footer-social-x:hover svg path {
  fill: #0f1419;
}

.footer-social-row > a[title="Linked-in"]:hover {
  background-color: #ffffff !important;
}

.footer-social-row > a[title="Linked-in"]:hover svg path {
  fill: #2f21cc;
}

.footer-social-row > a[title="Youtube"]:hover {
  background-color: #ffffff !important;
}

.footer-social-row > a[title="Youtube"]:hover svg path {
  fill: #bb242d;
}

.footer-social-row > a[title="Facebook"]:hover {
  background-color: #ffffff !important;
}

.footer-social-row > a[title="Facebook"]:hover svg path {
  fill: #1a60e0;
}
/* ============================================
   BROCHURE POPUP MODAL
   ============================================ */

/* Overlay */
.brochure-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-premium), visibility 0.35s;
}
.brochure-popup.is-open {
  opacity: 1;
  visibility: visible;
}

/* Backdrop */
.brochure-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

/* Modal card — reuses contact-form-card visual style */
.brochure-popup__card {
  position: relative;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  padding: 45px 30px 30px;
  width: 100%;
  max-width: 555px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s var(--ease-premium);
}
.brochure-popup.is-open .brochure-popup__card {
  transform: scale(1) translateY(0);
}

/* Title */
.brochure-popup__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.18;
  color: #252a2b;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e8ec;
}

/* Close button */
.brochure-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #252a2b;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.brochure-popup__close:hover {
  background: rgba(0, 0, 0, 0.07);
}
.brochure-popup__close svg {
  display: block;
}

/* Submit button — dark variant (per Figma) */
.brochure-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  min-width: 183px;
  background: #252a2b;
  border: none;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.brochure-submit-btn:hover {
  background: #3d4446;
}
.brochure-submit-btn:active {
  transform: scale(0.97);
}
.brochure-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Form actions centred */
.brochure-popup .contact-form-actions {
  align-items: center;
}

/* Responsive */
@media (max-width: 599px) {
  .brochure-popup__card {
    padding: 30px 20px 24px;
    gap: 28px;
  }
  .brochure-popup__title {
    font-size: 20px;
  }
  .brochure-popup .contact-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.bloc-wysiwig-title ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.bloc-wysiwig-title ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.bloc-wysiwig-title ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #000;
}
.bloc-wysiwig-title + .bloc-wysiwig-title{
  padding-top: 0;
}
.bloc-wysiwig-title + .bloc-wysiwig-title .wysiwig-container{
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #e5e5e5;
}

/* ============================================ */
/* TAXONOMIE RÉGION — contenu éditorial (intro) */
/* (taxonomy-region.php : .region-content)       */
/* ============================================ */
.region-content > *:first-child { margin-top: 0; }
.region-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #252a2b; /* pa-text-dark */
  margin: 28px 0 14px;
}
.region-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: #252a2b;
  margin: 22px 0 10px;
}
.region-content p { margin: 0 0 16px; }
.region-content a {
  color: #f28920; /* pa-orange */
  text-decoration: none;
  transition: color 0.25s ease;
}
.region-content a:hover { color: #d4730f; text-decoration: underline; }
.region-content ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 16px; }
.region-content ol { list-style: decimal; padding-left: 1.25rem; margin: 0 0 16px; }
.region-content li { margin-bottom: 6px; }
.region-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* Conteneur de carte interactive hérité de l'ancien site (non implémenté) — masqué */
#container_carte_france_interactive_normal { display: none; }

/* ============================================
   CONSENTEMENT COOKIES — bannière, panneau, contenus externes
   (template-parts/cookie-consent.php, assets/js/consent.js)
   ============================================ */
.pa-cookie-banner[hidden],
.pa-cookie-panel[hidden] { display: none !important; }

.pa-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 100000; /* au-dessus de la barre d'appel fixe mobile (.sticky-bottom-cta : 99999) */
  width: calc(100% - 32px);
  max-width: 980px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
}
.pa-cookie-banner__text {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #474c5a;
}
.pa-cookie-banner__text a,
.pa-cookie-panel__intro a {
  color: #252a2b;
  font-weight: 600;
  text-decoration: underline;
}
.pa-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
/* « Tout refuser » et « Tout accepter » ont le même style (même poids visuel, recommandation CNIL) */
.pa-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  background: #252a2b;
  border: 2px solid #252a2b;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.pa-cookie-btn:hover { background: #f28920; border-color: #f28920; }
.pa-cookie-btn--ghost { background: transparent; border-color: #d2d2d2; color: #252a2b; }
.pa-cookie-btn--ghost:hover { background: transparent; border-color: #f28920; color: #f28920; }
.pa-cookie-btn:focus-visible { outline: 2px solid #f28920; outline-offset: 2px; }

.pa-cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s var(--ease-premium);
}
.pa-cookie-panel.is-open { opacity: 1; }
.pa-cookie-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.pa-cookie-panel__card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 30px 30px;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s var(--ease-premium);
}
.pa-cookie-panel.is-open .pa-cookie-panel__card { transform: scale(1) translateY(0); }
.pa-cookie-panel__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #252a2b;
  cursor: pointer;
}
.pa-cookie-panel__close:hover { background: #efefef; }
.pa-cookie-panel__title {
  margin: 0 0 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e8ec;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.18;
  color: #252a2b;
}
.pa-cookie-panel__intro {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #474c5a;
}
.pa-cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.pa-cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
}
.pa-cookie-cat__title {
  margin: 0 0 2px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #252a2b;
}
.pa-cookie-cat__desc {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 20px;
  color: #777e90;
}
.pa-cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
}
.pa-cookie-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pa-cookie-switch span {
  position: absolute;
  inset: 0;
  background: #d2d2d2;
  border-radius: 100px;
  transition: background 0.2s ease;
}
.pa-cookie-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.pa-cookie-switch input:checked + span { background: #28b37e; }
.pa-cookie-switch input:checked + span::after { transform: translateX(20px); }
.pa-cookie-switch input:focus-visible + span { outline: 2px solid #f28920; outline-offset: 2px; }
.pa-cookie-switch.is-locked { opacity: 0.6; }
.pa-cookie-switch.is-locked input { cursor: not-allowed; }

/* Tableaux de contenu (ex. liste des cookies de la politique de confidentialité) */
.pa-table-scroll { overflow-x: auto; margin: 0 0 16px; }
.pa-texte-content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}
.pa-texte-content th,
.pa-texte-content td {
  padding: 10px 12px;
  border: 1px solid #e6e8ec;
  text-align: left;
  vertical-align: top;
}
.pa-texte-content th { background: #f9f9f9; font-weight: 600; color: #252a2b; }

/* Contenu externe (vidéo YouTube) en attente de consentement */
.pa-embed {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.pa-embed iframe { display: block; max-width: 100%; }
.pa-embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: #252a2b;
  border-radius: 16px;
  text-align: center;
}
.pa-embed-text {
  display: block;
  max-width: 380px;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #fff;
}
.pa-embed-placeholder .pa-cookie-btn { background: #f28920; border-color: #f28920; }
.pa-embed-placeholder .pa-cookie-btn:hover { background: #e07710; border-color: #e07710; }
.pa-embed-placeholder a {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .pa-cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    bottom: 12px;
    padding: 18px;
  }
  .pa-cookie-actions { justify-content: stretch; }
  .pa-cookie-actions .pa-cookie-btn { flex: 1 1 auto; }
  .pa-cookie-panel__card { padding: 36px 18px 20px; }
}
