/* ========================================
   PATRIMOINE HORIZON — Main Stylesheet
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* ── Deep navy ── */
  --navy: #0a1628;
  --navy-dark: #060f1d;
  --navy-light: #111d33;
  /* ── Champagne gold ── */
  --gold: #c9a96e;
  --gold-light: #d4b87e;
  --gold-dark: #b8944f;
  --gold-glow: rgba(201,169,110,0.22);
  /* ── Legacy aliases (for any remaining majorelle refs) ── */
  --majorelle: #0a1628;
  --majorelle-dark: #060f1d;
  --majorelle-light: #111d33;
  /* ── Neutrals ── */
  --white: #FFFFFF;
  --off-white: #faf8f4;
  --light-gray: #e8e5df;
  --medium-gray: #9A9A9A;
  --dark-gray: #4A4A4A;
  --text-color: #0F1B2D;
  /* ── Utility values ── */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', 'Source Sans 3', Arial, sans-serif;
  --max-width: 1240px;
  --transition: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.23,1,0.32,1);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 12px;
}

/* --- Luxury global transition --- */
* {
  transition:
    color .25s ease,
    background .25s ease,
    transform .35s cubic-bezier(.19,1,.22,1),
    box-shadow .35s cubic-bezier(.19,1,.22,1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/grain.png");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

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

/* --- Top Bar --- */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 10px 0;
  letter-spacing: 0.3px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: rgba(255,255,255,0.75);
}

.top-bar a:hover {
  color: var(--gold);
}

.top-bar-address,
.top-bar-phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-phone {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- Header / Navigation --- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow var(--transition), transform 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

#site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 110px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 70px;
  width: auto;
}

/* Main Navigation */
.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 32px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
}

.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 25px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}

.main-nav > ul > li:hover > a::after,
.main-nav > ul > li > a:hover::after {
  transform: scaleX(1);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li:hover > a {
  color: var(--gold);
}

/* Dropdown */
.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 290px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}

.main-nav li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown li a {
  display: block;
  padding: 14px 22px;
  font-size: 0.88rem;
  color: var(--dark-gray);
  border-bottom: 1px solid var(--light-gray);
  transition: all var(--transition);
}

.main-nav .dropdown li:last-child a {
  border-bottom: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.main-nav .dropdown li a:hover {
  background: var(--off-white);
  color: var(--gold);
  padding-left: 28px;
}

/* CTA Button in Nav */
.nav-cta a {
  background: var(--gold) !important;
  color: #0a1628 !important;
  padding: 10px 18px !important;
  border-radius: 50px !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all var(--transition) !important;
  box-shadow: 0 4px 15px rgba(201,169,110,0.22);
}

.nav-cta a::after {
  display: none !important;
}

.nav-cta a:hover {
  background: var(--gold-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 25px rgba(201,169,110,0.30) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 769px) {
  .hero-bg {
    inset: -20%;
    will-change: transform;
  }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 24px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 4px 30px rgba(0,0,0,0.5), 0 0 60px rgba(0,0,0,0.4);
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(201,169,110,0.5);
  border-radius: 50px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-bottom: 28px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  line-height: 1.18;
  margin-bottom: 24px;
  font-weight: 700;
}

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

.hero-content p {
  font-size: 1.18rem;
  margin-bottom: 40px;
  opacity: 0.85;
  line-height: 1.8;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Decorative scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,169,110,0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Button badge & sub text --- */
.btn-badge {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.85;
}

.btn-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: none;
  margin-top: 4px;
  opacity: 0.7;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 15px 36px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: #0a1628;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.btn-primary:hover {
  background: #b8944f;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-3px);
}

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

.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10,22,40,0.35);
}

/* --- Section Common --- */
.section {
  padding: 100px 0;
}

.section-bg {
  background:
    radial-gradient(circle at 20% 30%, rgba(10,22,40,0.03), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201,169,110,0.03), transparent 40%),
    #F8F6F2;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-title-accent {
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--majorelle));
  margin: 12px auto 0;
  border-radius: 3px;
}

.section-subtitle {
  text-align: center;
  color: var(--medium-gray);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 24px auto 60px;
  line-height: 1.8;
}

/* --- Solutions Grid (6 cards with icons) --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

.solution-card {
  background: var(--white);
  padding: 40px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition-slow);
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(10,22,40,0.06);
  border-color: rgba(201,169,110,0.1);
}

.solution-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--off-white), var(--light-gray));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
  transition: all var(--transition-slow);
}

.solution-card:hover .solution-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 8px 25px var(--gold-glow);
}

.solution-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 0.92rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: 10px;
}

/* --- Two Column Blocks (Avantages / Fiducie) --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.two-col-image {
  position: relative;
}

.two-col-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.two-col-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  opacity: 0.3;
  z-index: -1;
}

.two-col-content h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}

.two-col-content .accent-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  margin-bottom: 22px;
}

.two-col-content p {
  margin-bottom: 18px;
  color: var(--dark-gray);
  line-height: 1.85;
}

.two-col-content ul {
  margin-bottom: 28px;
}

.two-col-content ul li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: var(--dark-gray);
  line-height: 1.6;
}

.two-col-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  opacity: 0.8;
}

.two-col-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* --- Discover Solutions Grid (6 image cards) --- */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.discover-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  border: 1px solid rgba(0,0,0,0.04);
}

.discover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(10,22,40,0.06);
}

.discover-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.discover-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  pointer-events: none;
}

.discover-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-card:hover .discover-card-image img {
  transform: scale(1.08);
}

.discover-card-body {
  padding: 28px;
}

.discover-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 10px;
}

.discover-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.discover-card-body p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 18px;
}

.discover-card-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.discover-card-link:hover {
  gap: 14px;
  color: var(--gold-light);
}

.discover-card-link::after {
  content: '\2192';
  font-size: 1.1rem;
}

/* --- CTA Banner Section --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, rgba(201,169,110,0.15) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 35px;
  line-height: 1.8;
  position: relative;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 80px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-baseline {
  font-size: 0.95rem;
  margin-bottom: 22px;
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
}

.footer-legal {
  font-size: 0.8rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.4);
}

.footer-legal strong {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.footer-col ul li a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
  margin-right: 0;
}

.footer-col ul li a:hover {
  color: var(--gold);
  gap: 8px;
}

.footer-col ul li a:hover::before {
  width: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 4px 30px rgba(0,0,0,0.5), 0 0 60px rgba(0,0,0,0.4);
  max-width: 780px;
  padding: 40px 48px;
  background: rgba(15, 27, 45, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
}

.page-hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.2;
}

.page-hero-content h1 em {
  font-style: normal;
  color: var(--gold-light);
  font-size: 0.75em;
}

.page-hero-content p {
  font-size: 1.15rem;
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 30px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .page-hero {
    height: auto;
    min-height: 420px;
    padding: 40px 0;
  }
  .page-hero-content h1 {
    font-size: 2rem;
  }
  .page-hero-content p {
    font-size: 1rem;
  }
}

/* --- Hero Highlight Text --- */
.hero-highlight {
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  color: var(--gold-light) !important;
  opacity: 1 !important;
  letter-spacing: 0.5px;
  margin-bottom: 12px !important;
}

/* --- Conditions Table --- */
.conditions-table-wrapper {
  max-width: 860px;
  margin: 0 auto 50px;
  overflow-x: auto;
}

.conditions-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.conditions-table thead {
  background: var(--navy);
  color: var(--white);
}

.conditions-table th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.conditions-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-color);
}

.conditions-table tbody tr:last-child td {
  border-bottom: none;
}

.conditions-table tbody tr:nth-child(even) {
  background: var(--off-white);
}

.conditions-table tbody tr:hover {
  background: rgba(36, 71, 213, 0.04);
}

@media (max-width: 600px) {
  .conditions-table th,
  .conditions-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

/* --- Mini Simulator --- */
.mini-simulator {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201,169,110,0.12);
}

.simulator-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.simulator-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.simulator-input-wrap {
  position: relative;
}

.simulator-input-wrap input,
.simulator-field select {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  background: var(--off-white);
  color: var(--text-color);
  transition: border-color var(--transition);
}

.simulator-input-wrap input:focus,
.simulator-field select:focus {
  outline: none;
  border-color: var(--gold);
}

.simulator-unit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--medium-gray);
  font-weight: 600;
  pointer-events: none;
}

.simulator-input-wrap input {
  padding-right: 40px;
}

.simulator-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 18px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .simulator-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mini-simulator {
    padding: 28px 20px;
  }
}

/* --- Solution Tabs --- */
.solution-tabs {
  margin-top: 40px;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-gray);
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.tab-btn.active svg {
  stroke: var(--gold-light);
}

.tab-btn svg {
  flex-shrink: 0;
  transition: stroke var(--transition);
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.tab-panel-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.tab-panel-text p {
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: 18px;
}

.tab-panel-text ul {
  margin-bottom: 24px;
}

.tab-panel-text ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--dark-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.tab-panel-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  opacity: 0.7;
}

.tab-panel-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
  .tabs-nav {
    gap: 6px;
  }
  .tab-btn {
    font-size: 0.78rem;
    padding: 10px 14px;
  }
  .tab-panel-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }
  .tab-panel-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .tabs-nav {
    flex-direction: column;
  }
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--medium-gray);
}

.breadcrumb a {
  color: var(--medium-gray);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .breadcrumb-active {
  color: var(--gold);
  font-weight: 600;
}

.breadcrumb .breadcrumb-sep {
  margin: 0 8px;
  color: var(--light-gray);
}

/* --- Highlight Banner --- */
.highlight-banner {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 28px 36px;
  margin: 40px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.8;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.highlight-banner strong {
  color: var(--gold);
  font-style: normal;
}

@media (max-width: 768px) {
  .highlight-banner {
    padding: 20px 22px;
    font-size: 0.97rem;
  }
}

/* --- Vertical Timeline / Steps --- */
.timeline {
  position: relative;
  padding-left: 60px;
  margin: 50px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  border-radius: 3px;
}

.timeline-step {
  position: relative;
  margin-bottom: 40px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: -60px;
  top: 0;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--gold-glow);
  z-index: 1;
}

.timeline-step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
  padding-top: 8px;
  line-height: 1.35;
}

.timeline-step p {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 48px;
  }
  .timeline::before {
    left: 16px;
  }
  .timeline-number {
    left: -48px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* --- Form Success Message --- */
.form-success-inner {
  text-align: center;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form-success-inner svg {
  color: var(--gold);
  margin-bottom: 20px;
}

.form-success-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.form-success-inner p {
  color: var(--dark-gray);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 28px;
}

/* --- Form with Reassurance Sidebar --- */
.form-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.reassurance-sidebar {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: sticky;
  top: 140px;
  color: var(--white);
}

.reassurance-sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.4;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(201,169,110,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.sidebar-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 2px;
}

.sidebar-item span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

@media (max-width: 992px) {
  .form-with-sidebar {
    grid-template-columns: 1fr;
  }
  .reassurance-sidebar {
    position: static;
    order: -1;
  }
}

/* --- Contact Form --- */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-color);
  background: var(--white);
  margin-bottom: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

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

.contact-form .form-submit {
  text-align: center;
  margin-top: 10px;
}

.contact-form .form-submit button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: #0a1628;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: all var(--transition);
}

.contact-form .form-submit button:hover {
  background: #b8944f;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.35);
}

.contact-form .rgpd-note {
  font-size: 0.78rem;
  color: var(--medium-gray);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

.contact-form .rgpd-note a {
  color: var(--gold);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- Reassurance Bar --- */
.reassurance-bar {
  background: var(--navy);
  padding: 50px 0;
}

.reassurance-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--white);
  text-align: center;
  width: 100%;
  margin-bottom: 35px;
}

.reassurance-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.reassurance-item i,
.reassurance-item .reassurance-icon {
  font-size: 1.6rem;
  color: var(--gold);
  flex-shrink: 0;
}

.reassurance-item span {
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 992px) {
  .reassurance-bar .container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .reassurance-item {
    flex: 0 0 calc(33.333% - 24px);
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .reassurance-bar {
    padding: 30px 0;
  }
  .reassurance-bar .container {
    gap: 18px;
  }
  .reassurance-item {
    flex: 0 0 calc(50% - 18px);
  }
}

/* --- Quote Block --- */
.quote-block {
  position: relative;
  padding: 50px 50px 40px;
  margin: 50px 0;
  background: var(--off-white);
  border-radius: var(--radius);
  text-align: center;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 30px;
  font-size: 6rem;
  font-family: var(--font-heading);
  color: var(--gold);
  line-height: 1;
  opacity: 0.5;
}

.quote-block p {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.8;
  max-width: 660px;
  margin: 0 auto 20px;
}

.quote-block .quote-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.quote-block .quote-signature img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.quote-block .quote-signature span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.quote-block--navy {
  background: var(--navy);
}

.quote-block--navy::before {
  color: var(--gold-light);
  opacity: 0.3;
}

.quote-block--navy p {
  color: var(--white);
}

.quote-block--navy .quote-signature span {
  color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
  .quote-block {
    padding: 40px 24px 30px;
  }
  .quote-block::before {
    font-size: 4rem;
    left: 16px;
  }
  .quote-block p {
    font-size: 1.02rem;
  }
}

/* --- 3-Column Contact Cards --- */
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0;
}

.contact-option-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition-slow);
}

.contact-option-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,169,110,0.2);
}

.contact-option-card i,
.contact-option-card .contact-option-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.contact-option-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.contact-option-card p {
  font-size: 0.92rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 22px;
}

.contact-option-card .btn {
  padding: 11px 28px;
  font-size: 0.82rem;
}

@media (max-width: 992px) {
  .contact-options {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Legal Text Page --- */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  line-height: 1.8;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.legal-page h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-top: 32px;
  margin-bottom: 10px;
}

.legal-page p {
  font-size: 0.97rem;
  color: var(--dark-gray);
  margin-bottom: 16px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: disc;
}

.legal-page ol {
  list-style: decimal;
}

.legal-page li {
  font-size: 0.95rem;
  color: var(--dark-gray);
  margin-bottom: 6px;
  line-height: 1.7;
}

.legal-page a {
  color: var(--gold);
  text-decoration: underline;
  transition: color var(--transition);
}

.legal-page a:hover {
  color: var(--majorelle);
}

.legal-page .accent-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  margin-bottom: 30px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

.legal-page thead {
  background: var(--navy);
  color: var(--white);
}

.legal-page th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.legal-page td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-color);
}

.legal-page tbody tr:last-child td {
  border-bottom: none;
}

.legal-page tbody tr:nth-child(even) {
  background: var(--off-white);
}

@media (max-width: 768px) {
  .legal-page {
    padding: 40px 18px 60px;
  }
  .legal-page h1 {
    font-size: 1.7rem;
  }
  .legal-page h2 {
    font-size: 1.25rem;
    margin-top: 36px;
  }
}

/* --- Inline Image Float --- */
.inline-image-right,
.inline-image-left {
  max-width: 40%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.inline-image-right {
  float: right;
  margin: 6px 0 20px 30px;
}

.inline-image-left {
  float: left;
  margin: 6px 30px 20px 0;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .inline-image-right,
  .inline-image-left {
    float: none;
    max-width: 100%;
    margin: 20px 0;
    display: block;
  }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animation delays for grid items */
.solutions-grid .solution-card:nth-child(2),
.discover-grid .discover-card:nth-child(2) { transition-delay: 0.1s; }
.solutions-grid .solution-card:nth-child(3),
.discover-grid .discover-card:nth-child(3) { transition-delay: 0.2s; }
.solutions-grid .solution-card:nth-child(4),
.discover-grid .discover-card:nth-child(4) { transition-delay: 0.3s; }
.solutions-grid .solution-card:nth-child(5),
.discover-grid .discover-card:nth-child(5) { transition-delay: 0.4s; }
.solutions-grid .solution-card:nth-child(6),
.discover-grid .discover-card:nth-child(6) { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .solutions-grid,
  .discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .two-col-image::after {
    display: none;
  }

  .two-col.reverse-mobile .two-col-image {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 40px rgba(0,0,0,0.25);
    transition: right var(--transition);
    overflow-y: auto;
    padding-top: 70px;
    z-index: 999;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav > ul > li > a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--light-gray);
  }

  .main-nav > ul > li > a::after {
    display: none;
  }

  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    display: none;
    background: var(--off-white);
  }

  .main-nav li.dropdown-open > .dropdown {
    display: block;
  }

  .main-nav .dropdown li a {
    padding-left: 40px;
    border-radius: 0;
  }

  .nav-cta {
    padding: 16px 24px;
  }

  .nav-cta a {
    display: block !important;
    text-align: center;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
  }

  .mobile-overlay.active {
    display: block;
  }

  .hero {
    height: 75vh;
    min-height: 450px;
  }


  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .solutions-grid,
  .discover-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }
}

/* --- Scroll to top button --- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--navy);
}

.scroll-top svg {
  stroke: currentColor;
}

/* Menu toggle animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Close button for mobile nav */
.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
  padding: 8px;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-close {
    display: block;
  }
}

/* ========================================
   V4 — DL Patrimoine Horizon (refonte 09/2026)
   ======================================== */

/* --- Logo : icône + wordmark HTML --- */
.logo a { gap: 14px; }
.logo img { height: 46px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.logo-tagline {
  font-size: 0.6rem;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #6b7280;
  margin-top: 5px;
  white-space: nowrap;
}
.footer-brand img { height: 44px; width: auto; }
.footer-phone { font-weight: 700; color: var(--gold-light) !important; font-size: 1.05rem; letter-spacing: 0.5px; }

/* --- Téléphone dans la navigation --- */
.nav-phone a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  text-transform: none !important;
  letter-spacing: 0.5px !important;
  padding: 32px 8px 32px 14px !important;
  white-space: nowrap;
}
.nav-phone a::after { display: none !important; }
.nav-phone a:hover { color: var(--gold) !important; }
.nav-phone svg { color: var(--gold); flex-shrink: 0; }
.header-phone-mobile { display: none; }

@media (max-width: 1120px) {
  .main-nav > ul > li > a { padding: 32px 8px; font-size: 0.76rem; }
  .nav-cta a { padding: 9px 12px !important; font-size: 0.68rem !important; }
  .nav-phone a { font-size: 0.95rem !important; padding-left: 8px !important; }
  .logo-name { font-size: 0.95rem; }
}

@media (max-width: 768px) {
  .header-inner { height: 80px; gap: 10px; }
  .logo img { height: 38px; }
  .logo-name { font-size: 0.82rem; }
  .logo-tagline { font-size: 0.48rem; letter-spacing: 1.8px; }
  .header-phone-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(201,169,110,0.3);
  }
  .main-nav { margin-left: 0; }
  .nav-phone { padding: 18px 24px 24px; }
  .nav-phone a { padding: 0 !important; font-size: 1.4rem !important; justify-content: center; }
}

/* --- Téléphone en grand (hero) --- */
.hero-phone {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-phone span {
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero-phone a {
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  line-height: 1.1;
}
.hero-phone a:hover { color: var(--white); }
.hero-content p.hero-lead { margin-bottom: 28px; }
@media (max-width: 768px) {
  .hero-phone a { font-size: 1.8rem; }
}

/* --- Deux entrées : crédit hypothécaire / prêt immobilier --- */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px 34px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.offer-label {
  font-size: 0.72rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.offer-card h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.offer-card p {
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 26px;
  flex: 1;
}
.offer-card .btn { align-self: flex-start; }
@media (max-width: 768px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card { padding: 30px 24px 26px; }
}

/* --- Bandeau banques / étranger --- */
.highlight-banner p { margin: 0; }
.highlight-banner p + p { margin-top: 10px; }
.highlight-banner .btn { margin-top: 18px; font-style: normal; }

/* --- Page contact : téléphone et formulaire simple --- */
.phone-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.phone-big svg { color: var(--gold); flex-shrink: 0; }
.phone-big:hover { color: var(--gold-dark); }
.sidebar-item .phone-link {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.sidebar-item .phone-link:hover { color: var(--gold-light); }

.contact-form .form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--dark-gray);
  line-height: 1.5;
}
.contact-form .form-checkbox input { width: auto; margin: 4px 0 0; }
.contact-form .form-checkbox label { font-weight: 400; margin: 0; color: var(--dark-gray); }
.contact-form .form-checkbox a { color: var(--gold-dark); text-decoration: underline; }
.contact-form .optional { font-weight: 400; color: var(--medium-gray); font-size: 0.78rem; }
.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 22px;
}
.form-note {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 20px 26px;
  margin-top: 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy);
  line-height: 1.7;
}
.form-note p { margin: 0; }
.form-note p + p { margin-top: 10px; }
.contact-cards-2 { grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; }
@media (max-width: 768px) {
  .contact-cards-2 { grid-template-columns: 1fr; }
  .phone-big { font-size: 1.5rem; }
}

/* --- Bandeau CTA : téléphone --- */
.cta-banner .cta-phone {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 26px;
  letter-spacing: 1px;
  position: relative;
}
.cta-banner .cta-phone:hover { color: var(--white); }
@media (max-width: 768px) { .cta-banner .cta-phone { font-size: 1.6rem; } }

/* --- Navigation : une seule ligne par libellé --- */
.main-nav > ul > li > a { white-space: nowrap; }
@media (min-width: 769px) {
  .main-nav > ul > li > a { padding: 32px 10px; font-size: 0.8rem; }
  .nav-cta a { padding: 10px 16px !important; font-size: 0.7rem !important; }
  .logo-name { font-size: 0.98rem; }
}
@media (min-width: 769px) and (max-width: 1180px) {
  .main-nav > ul > li > a { padding: 32px 7px; font-size: 0.72rem; }
  .nav-cta a { padding: 9px 11px !important; font-size: 0.64rem !important; }
  .nav-phone a { font-size: 0.9rem !important; gap: 5px; }
  .logo img { height: 40px; }
  .logo-name { font-size: 0.86rem; }
  .logo-tagline { font-size: 0.52rem; letter-spacing: 2px; }
}
@media (min-width: 769px) and (max-width: 1000px) {
  .logo-text { display: none; }
}

/* --- Grille 4 cartes (page Qui sommes-nous) --- */
.solutions-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .solutions-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .solutions-grid--4 { grid-template-columns: 1fr; } }

/* --- Header mobile : tenir sur 390 px --- */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; height: 72px; }
  .logo a { gap: 9px; }
  .logo img { height: 34px; }
  .logo-name { font-size: 0.72rem; letter-spacing: 0.4px; }
  .logo-tagline { font-size: 0.46rem; letter-spacing: 1.6px; margin-top: 3px; }
  .menu-toggle { flex-shrink: 0; }
}
@media (max-width: 480px) {
  .header-phone-mobile { display: none; } /* le numéro reste visible dans la barre supérieure (sticky) */
  .menu-toggle { margin-left: auto; }
  .logo img { height: 30px; }
  .logo-name { font-size: 0.66rem; }
  .logo-tagline { font-size: 0.42rem; letter-spacing: 1.4px; }
  .top-bar { font-size: 0.78rem; padding: 8px 0; }
}
