/* ═══════════════════════════════════════════════════════════════════════════
   Bondora — Styles globaux (nav, hero, footer, calculateur, responsive)
   Extrait de base.html au LOT 7. Tokens définis dans tokens.css (chargé en amont).
   ═══════════════════════════════════════════════════════════════════════════ */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; font-size: 100%; }
  body { font-family: var(--font-brand); color: var(--dark); background: var(--white); }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; height: auto; display: block; }
  h1 { font-size: 3.5rem; line-height: 1; font-weight: 900; letter-spacing: -1px; }
  h2 { font-size: 3.25rem; line-height: 1; font-weight: 900; letter-spacing: -1px; }
  h3 { font-size: 2rem; line-height: 1.25; font-weight: 900; }
  h4 { font-size: 1.75rem; line-height: 1.4; font-weight: 500; }
  h5 { font-size: 1.25rem; font-weight: 500; }
  .container { max-width: var(--max-w); margin: 0 auto; padding: 0 0.5rem; width: 100%; }

  /* ===== BANNER (défilement une ligne, compact sur mobile) ===== */
  .banner {
    position: relative;
    background: var(--secondary);
    padding: 0.4rem 0 0.4rem var(--space-sm);
    display: none;
    overflow: hidden;
  }
  .banner-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .banner-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding-inline-end: var(--space-sm);
  }
  .banner-icon { flex-shrink: 0; display: flex; align-items: center; align-self: center; }
  .banner-marquee-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .banner-marquee-track {
    display: flex;
    width: max-content;
    color: white;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: nowrap;
    will-change: transform;
    animation: banner-marquee-scroll 42s linear infinite;
  }
  /* Défilement horizontal infini : le texte entre par la droite et sort vers la gauche (ticker classique). */
  @keyframes banner-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .banner-marquee-segment {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding-inline-end: 3rem;
  }
  .banner-marquee-segment-inner { display: inline; }
  .banner a { color: white; font-weight: 700; text-decoration: underline; }
  .banner strong { font-weight: 800; }
  @media (max-width: 767px) {
    .banner { padding: 0.35rem 0 0.35rem var(--space-sm); }
    .banner-marquee-track { font-size: 0.8125rem; }
    .banner-marquee-segment { padding-inline-end: 2rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .banner-marquee-viewport {
      mask-image: none;
      -webkit-mask-image: none;
    }
    .banner-marquee-track {
      animation: none;
      width: 100%;
      max-width: 100%;
      white-space: normal;
      justify-content: center;
      text-align: center;
      flex-wrap: wrap;
      margin: 0 auto;
      transform: none;
    }
    .banner-marquee-segment:nth-child(2) { display: none; }
    .banner-marquee-segment {
      padding-inline-end: 0;
      white-space: normal;
      text-align: center;
    }
    .banner-inner { flex-wrap: wrap; justify-content: center; }
    .banner-icon { display: flex; }
  }

  /* ===== HEADER ===== */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
  }
  .header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.75rem var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
  }
  .logo { width: 124px; flex-shrink: 0; }
  .nav { margin-inline-start: 12rem; }
  .logo img { width: 100%; height: auto; }
  .nav { display: flex; align-items: center; gap: var(--space-md); }
  .nav-link { font-size: 1rem; font-weight: 500; color: var(--dark); white-space: nowrap; }
  .nav-link:hover { text-decoration: underline; }
  button.nav-link { appearance: none; -webkit-appearance: none; background: none; border: none; padding: 0; cursor: pointer; }
  .nav-lang { display: flex; align-items: center; gap: 4px; font-size: 1rem; font-weight: 500; cursor: pointer; }
  .nav-login { display: flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 500; }
  .nav-login:hover { text-decoration: underline; }
  .btn-primary {
    background: var(--primary);
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: var(--space-xs);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
  }
  .btn-primary:hover { background: var(--primary-hover); }
  .btn-primary--alt {
    background: var(--primary-alt);
    color: var(--dark);
  }
  .btn-primary--alt:hover { background: var(--primary-alt-hover); }
  .btn-primary-lg {
    font-size: 1.25rem;
    padding: 1.25rem 2rem;
    border-radius: var(--space-xs);
    line-height: 2rem;
    gap: 10px;
  }
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
  .hamburger span { display: block; width: 30px; height: 3px; background: var(--dark); border-radius: 2px; }

  /* Mobile Nav */
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-sm);
    box-shadow: 0 6px 15px -2px rgba(13,27,38,0.16);
    border-radius: 0 0 var(--space-xs) var(--space-xs);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { font-size: 1rem; font-weight: 500; color: var(--dark); padding: 0.5rem 0; }
  .mobile-nav form button { appearance: none; -webkit-appearance: none; background: none; border: none; padding: 0.5rem 0; cursor: pointer; font-size: 1rem; font-weight: 500; color: var(--dark); text-align: start; width: 100%; }
  /* CTA pleine largeur : évite texte / bord coupés sur petits écrans */
  .mobile-nav .btn-primary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
  }

  /* ===== HERO ===== */
  .hero {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(120px + 4rem);
    padding: 2rem 0.5rem 0;
    background-image: url("../img/hero-character.136732c769bb.png");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 33% auto;
    min-height: 480px;
  }
  .hero-content { max-width: 75%; padding: 0 0.5rem; }
  .hero h1 { max-width: 500px; margin-bottom: 2rem; }
  .hero h4 { font-size: 1.75rem; line-height: 2.5rem; margin-bottom: var(--space-md); }
  .hero-features { margin-bottom: var(--space-lg); }
  .hero-feature {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
  }
  .hero-feature svg { flex-shrink: 0; width: 2rem; height: 2rem; }

  /* ===== CALCULATOR ===== */
  .calc-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
  }
  .calc-wrapper {
    background: var(--white);
    box-shadow: 0 8px 16px 1px rgba(13,27,38,0.16);
    border: 1px solid var(--white);
    border-radius: 10px;
    padding: 32px;
  }
  .calc-sliders { display: flex; flex-direction: column; gap: 0; width: 100%; }
  .slider-block { width: 100%; padding-bottom: 22px; }
  .slider-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; }
  .slider-label { font-size: 24px; font-weight: 500; line-height: 28px; color: #373a3c; }
  .slider-val { font-size: 32px; font-weight: 900; color: #373a3c; }
  .slider-bottom { display: flex; justify-content: space-between; padding-top: 18px; }
  .range-min-max { font-size: 14px; color: #98a2b3; }
  .calc-action { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .calc-monthly-label { font-size: 16px; font-weight: 500; color: #373a3c; margin-bottom: 0.5rem; text-align: center; }
  .calc-monthly-val { font-size: 44px; font-weight: 900; color: #373a3c; margin-bottom: 0; }
  .calc-btn {
    background: var(--primary); color: var(--dark); font-family: inherit;
    font-size: 20px; font-weight: 500; width: 100%;
    border: none; border-radius: 8px; padding: 20px 24px;
    cursor: pointer; margin: 24px 0;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: background 0.2s;
  }
  .calc-btn:hover { background: var(--primary-hover); }

  /* ===== STATS ===== */
  .stats-section { max-width: var(--max-w); margin: 0 auto; padding: var(--space-lg) var(--space-xs); display: flex; align-items: center; }
  .stats-row { display: flex; flex-direction: row; width: 100%; justify-content: space-around; }
  .stat-item { max-width: 33.3%; display: flex; align-items: center; flex-direction: column; text-align: center; }
  .stat-num { font-size: 3.25rem; font-weight: 900; line-height: 1; margin-bottom: var(--space-sm); }
  .stat-label { font-size: 1.25rem; font-weight: 400; }

  /* ===== WHY US ===== */
  .why-section { max-width: var(--max-w); margin: 0 auto; padding: 0 0.5rem; }
  .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1.5rem;
    padding: 2rem 0;
  }
  .why-card {
    display: block;
    border-radius: var(--radius);
    background: var(--light-blue);
    padding: 4rem 3rem 2rem;
    min-height: 280px;
  }
  .why-card--plain { background: none; }
  .why-card h3 { font-size: 2rem; line-height: 2.5rem; font-weight: 900; margin-bottom: 0.5rem; }
  .why-card p { font-size: 1.25rem; line-height: 1.875rem; color: var(--gray); }
  .why-card svg { height: 2.5rem; width: 2.5rem; margin-bottom: var(--space-sm); }
  .btn-center { display: flex; justify-content: center; align-items: center; padding: 1.5rem 0 3rem; }

  /* ===== HOW IT WORKS ===== */
  .how-section { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem 0.5rem 3rem; }
  .how-title { text-align: center; margin-bottom: 2rem; }
  .how-title h3 { font-size: 3.25rem; letter-spacing: -1px; font-weight: 900; }
  .how-title .highlight { color: var(--secondary); }
  .how-content { display: flex; flex-direction: row; align-items: center; }
  .how-image {
    position: relative;
    max-width: 50%;
    background-image: url("../img/hand-snap-triangle-stars.f4ae0d823fb9.png");
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    height: 450px;
    flex: 1;
  }
  .how-steps { max-width: 50%; flex: 1; }
  .how-step { margin-bottom: 1.5rem; display: flex; align-items: center; gap: var(--space-sm); }
  .how-step-num { font-size: 5rem; line-height: 4rem; font-weight: 900; margin-bottom: 0.5rem; min-width: 80px; }
  .how-step-text { font-size: 1.25rem; color: var(--dark); }

  /* ===== TESTIMONIALS ===== */
  .testimonials-section { max-width: 100vw; overflow: hidden; padding: 2rem 0.5rem 5rem; }
  .testimonials-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
  .testimonials-slider { display: flex; gap: 1.25rem; overflow: hidden; }
  .testimonial-slide {
    flex-shrink: 0; width: 100%;
    border-radius: var(--radius);
    padding: 3.25rem 4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 377px);
    gap: 1.75rem;
    align-items: end;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: clamp(260px, 34vw, 360px);
  }
  .testimonial-slide--blue { background: #c0dff8; }
  .testimonial-slide--green { background: var(--primary); }
  .testimonial-slide--dark { background: var(--dark); }
  .testimonial-quote { max-width: 1088px; text-align: start; min-width: 0; align-self: center; }
  .testimonial-quote h3 { font-size: 2rem; line-height: 2.45rem; font-weight: 900; margin-bottom: var(--space-xs); }
  .testimonial-quote .author { font-size: 1.1rem; font-weight: 500; }
  .testimonial-slide--dark .testimonial-quote h3,
  .testimonial-slide--dark .author { color: var(--primary); }
  .testimonial-img-wrap {
    width: 100%;
    max-width: 377px;
    aspect-ratio: 377 / 275;
    max-height: min(275px, 34vh);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    justify-self: end;
    align-self: end;
    flex-shrink: 0;
  }
  .testimonial-img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
  }
  .splide-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 1rem; }
  .splide-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #d0d5dd; border: none; cursor: pointer; padding: 0;
  }
  .splide-dot.active { background: var(--dark); }

  /* ===== TRUST ===== */
  .trust-section { background: var(--bg-light); padding: 2rem 0.5rem var(--space-xl); }
  .trust-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-around; align-items: flex-start; flex-wrap: nowrap; padding: 1.5rem 0 3rem; }
  .trust-item { display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 33%; }
  .trust-item svg { height: 5rem; width: 5rem; margin-bottom: 2rem; }
  .trust-item p { text-align: center; font-size: 1.25rem; color: var(--dark); width: 100%; }

  /* ===== FAQ ===== */
  .faq-section { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem 0.5rem 3rem; display: flex; flex-direction: row; justify-content: space-around; align-items: center; }
  .faq-left { max-width: 50%; }
  .faq-title h3 { font-size: 3.25rem; letter-spacing: -1px; font-weight: 900; line-height: 1; }
  .faq-title .blue { color: var(--secondary); margin-inline-start: 0.5rem; }
  .faq-right { max-width: 41.6%; width: 100%; }
  .accordion { list-style: none; }
  .accordion-item { border-bottom: 1px solid #e4e7ec; }
  .accordion-title {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 0; cursor: pointer; width: 100%;
    background: none; border: none; text-align: start;
    font-family: inherit; font-size: 1.25rem; font-weight: 400; color: var(--dark);
  }
  .accordion-title .acc-icon { width: 0.75rem; height: 0.75rem; fill: #98a2b3; transition: transform 0.2s; flex-shrink: 0; }
  .accordion-title.open .acc-icon { transform: rotate(90deg); }
  .accordion-body { display: none; padding: 0 0 1rem 1.5rem; font-size: 1rem; color: var(--dark); line-height: 1.6; }
  .accordion-body.open { display: block; }
  .accordion-body a { color: var(--secondary); }

  /* ===== CONTACT ===== */
  .contact-section { margin-bottom: var(--space-xxl); }
  .contact-inner { max-width: var(--max-w); margin: 0 auto; padding: 2rem var(--space-sm); }
  .contact-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    column-gap: var(--space-md);
  }
  .contact-img { max-width: 33%; }
  .contact-img img { width: 307px; margin-top: -5rem; }
  .contact-content h3 { font-size: 3.25rem; letter-spacing: -1px; font-weight: 900; margin-bottom: 1rem; line-height: 1; }
  .contact-content p { font-size: 1.25rem; color: var(--dark); margin-bottom: 1rem; }
  .contact-links { display: grid; grid-template-columns: 4fr 5fr; gap: 0; }
  .contact-link { display: flex; align-items: center; gap: 1rem; flex-direction: row; }
  .contact-link svg { width: 3rem; height: 2.5rem; flex-shrink: 0; }
  .contact-link a { font-size: 1.25rem; font-weight: 500; color: var(--dark); }
  .contact-link a:hover { text-decoration: underline; }

  /* ===== FOOTER ===== */
  footer { background: var(--bg-light); }
  .footer-main { max-width: var(--max-w); margin: 0 auto; padding: 35px 15px; }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: var(--space-xl);
    align-items: flex-start;
  }
  .footer-col h5 { font-weight: 500; margin-bottom: var(--space-sm); color: var(--dark); }
  .footer-nav { list-style: none; columns: 2; }
  .footer-nav li { margin-left: 0; margin-bottom: 0.25rem; }
  .footer-nav a { font-size: 14px; color: #667085; line-height: 2rem; display: inline; }
  .footer-nav a:hover { text-decoration: underline; }
  .footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-logo img { width: 100px; margin-bottom: 10px; }
  .footer-contact-link { font-size: 14px; font-weight: 700; color: #667085; margin-top: 10px; }
  .footer-contact-link:hover { text-decoration: underline; }
  .footer-address { font-size: 14px; color: #667085; line-height: 1.6; }
  .footer-phone { font-size: 14px; color: #667085; line-height: 1.6; }
  .footer-email { font-size: 14px; font-weight: 600; color: #667085; }
  .footer-email:hover { text-decoration: underline; }
  .footer-legal { border-top: 1px solid #e4e7ec; padding: 36px 15px 34px; max-width: var(--max-w); margin: 0 auto; }
  .footer-legal-title { font-size: 12px; font-weight: 700; color: #667085; margin-bottom: 0.5rem; }
  .footer-legal-text { font-size: 12px; color: #667085; line-height: 1.5; margin-bottom: var(--space-md); }
  .footer-terms-title { font-size: 12px; font-weight: 700; color: #667085; margin-bottom: 0.5rem; }
  .footer-terms-text { font-size: 12px; color: #667085; line-height: 1.5; }

  /* ===== RESPONSIVE ===== */
  @media (min-width: 1200px) {
    .nav { margin-inline-start: 32rem; }
  }
  @media (max-width: 991px) {
    html { overflow-x: hidden; }
    h1 { font-size: 2.5rem; }
    .hero { background-size: 35%; }
  }
  @media (max-width: 767px) {
    /* Évite le défilement horizontal dû à un enfant plus large que la viewport (mobile / tablette) */
    main {
      overflow-x: hidden;
      max-width: 100%;
    }
    h1 { font-size: 2rem; line-height: 40px; }
    h2 { font-size: 24px; line-height: 32px; }
    h3 { font-size: 20px; }
    .header-inner { width: 100%; max-width: 100%; padding-left: var(--space-xl); padding-right: var(--space-xl); justify-content: space-between; }
    .nav { display: none !important; }
    .hamburger { display: flex; margin-inline-start: auto; flex-shrink: 0; }
    .hero { background-image: none !important; padding: var(--space-md); margin-top: calc(120px + 3.5rem); }
    .hero-content { max-width: 100%; }
    .how-content { flex-direction: column; }
    .how-image { max-width: 100%; width: 100%; }
    .how-steps { max-width: 100%; }
    .faq-section { flex-direction: column; }
    .faq-left { max-width: 100%; width: 100%; margin-bottom: var(--space-md); }
    .faq-right { max-width: 100%; width: 100%; }
    .contact-box { flex-direction: column; }
    .contact-img { max-width: 100%; }
    .contact-img img { margin-top: 0; }
    .contact-links { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .testimonial-slide {
      padding: 2rem;
      grid-template-columns: 1fr;
      min-height: 0;
      gap: 0;
    }
    .testimonial-img-wrap { display: none; }
    .why-grid { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; align-items: center; }
    .stat-item { max-width: 100%; margin-bottom: 2rem; }
    .trust-inner { flex-direction: column; align-items: center; }
    .trust-item { max-width: 100%; flex-direction: row; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; }
    .trust-item svg { min-width: 4rem; height: 4rem; margin-bottom: 0; }
    .trust-item p { text-align: start; font-weight: 500; }
    .banner { display: flex; }
  }
  @media (max-width: 478px) {
    .header-inner { padding-left: var(--space-lg); padding-right: var(--space-lg); }
    h2 { font-size: 2.25rem; line-height: 2.5rem; }
    h3 { font-size: 20px; }
    .testimonial-quote h3 { font-size: 1.25rem; line-height: 1.75rem; }
    .hero h1 { font-size: 2.5rem; line-height: 2.5rem; }
    .btn-primary-lg { width: 100%; justify-content: center; }
    .calc-btn { width: 100%; }
    .how-step-num { font-size: 5rem; }
    .faq-title h3 { font-size: 2.25rem; line-height: 2.5rem; }
    .contact-content h3 { font-size: 2.25rem; line-height: 2.5rem; }
    .stat-num { font-size: 2.25rem; }
  }
  @media (min-width: 768px) {
    .nav { margin-inline-start: 20rem; }
    .banner { display: flex; }
    .calc-sliders { flex-direction: row; gap: 32px; }
    .calc-action { flex-direction: row; gap: 24px; }
    .calc-monthly { flex-basis: 50%; }
    .calc-btn { flex-basis: 50%; }
    .calc-wrapper { padding: 32px; }
  }

  /* ===== LANGUAGE SELECTOR ===== */
  .lang-form { display: inline-flex; align-items: center; }
  .lang-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .lang-select-wrap::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
  }
  .lang-select-wrap::after {
    content: '';
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2398a2b3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
  }
  .lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f2f4f7;
    border: 1.5px solid #e4e7ec;
    border-radius: 20px;
    padding: 5px 28px 5px 30px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    line-height: 1.4;
  }
  .lang-select:hover {
    border-color: var(--secondary);
    background: #fff;
  }
  .lang-select:focus {
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(43,141,219,0.12);
  }
  /* Mobile variant */
  .lang-form-mobile { display: block; width: 100%; }
  .lang-form-mobile .lang-select-wrap { width: 100%; }
  .lang-form-mobile .lang-select {
    width: 100%;
    border-radius: 10px;
    padding: 10px 32px 10px 32px;
    font-size: 0.95rem;
    background: #f2f4f7;
    margin-bottom: 0.5rem;
  }

/* ═══ RTL overrides ══════════════════════════════════════════════════════════
   Correctifs directionnels pour la locale arabe (dir="rtl").
   ══════════════════════════════════════════════════════════════════════════ */

/* Défilement du ticker : direction inversée (entrée par la gauche en RTL) */
[dir="rtl"] .banner-marquee-track {
  animation-direction: reverse;
}
