/* ==========================================================================
   QLFEXCHANGE — Thème principal (QLF BUSINESS)
   ========================================================================== */

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
  font-size: 16px;
  --navy: #042c53;
  --navy-light: #0a3f73;
  --gold: #e6b84a;
  --gold-dark: #c99a2e;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-700: #3c4a5c;
  --gray-500: #6b7a8d;
  --gray-200: #e3e8ee;
  --success: #1e9e5a;
  --danger: #c0392b;
  --shadow: 0 10px 30px rgba(4, 44, 83, 0.12);
  --radius: 14px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --text-body: #444444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: #111111;
  background: var(--white);
  line-height: 1.8;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font);
}

h4 {
  color: var(--navy);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  color: #111111;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #111111;
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
}

p {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 400;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 1em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-block {
  width: 100%;
}

/* ---------- Sélecteur de langue (dans la navbar) ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lang-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.lang-btn.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

@media (max-width: 480px) {
  .lang-btn {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #000000;
  letter-spacing: 1px;
  text-decoration: none;
}

.admin-sidebar .logo-text {
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  color: #000000;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #042c53;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

/* ---------- Menu déroulant navbar ---------- */
.nav-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px 0;
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  color: #000000;
  cursor: pointer;
}
.dropdown-toggle:hover,
.nav-dropdown.open .dropdown-toggle {
  color: #042c53;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  padding: 8px;
  z-index: 999;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: block;
}
.nav-links .dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  position: static;
}
.nav-links .dropdown-item:hover {
  background: #f8f9fb;
  color: #042c53;
}
.nav-links .dropdown-item.active::after {
  content: none;
}
.nav-links .dropdown-item.active {
  color: #042c53;
  background: #f8f9fb;
}
@media (max-width: 900px) {
  .nav-dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--gray-200);
    margin-top: 8px;
    width: 100%;
  }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--navy);
}

/* ---------- Badge disponibilité ---------- */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(30, 158, 90, 0.12);
  color: var(--success);
}
.availability-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
}
.availability-badge.closed {
  background: rgba(192, 57, 43, 0.12);
  color: var(--danger);
}
.availability-badge.closed .dot {
  background: var(--danger);
}

/* ---------- Hero avec vagues animées ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  overflow: hidden;
  /* Vertical padding reste en px : le bas (130px) est calé sur la hauteur
     fixe (120px) de la vague décorative en SVG (.waves svg). */
  padding: 90px 1.5rem 130px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero .eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  line-height: 0;
  z-index: 1;
}
.waves svg {
  width: 100%;
  height: 120px;
  display: block;
}
.waves .wave-path-1 {
  animation: wave-move 14s linear infinite;
}
.waves .wave-path-2 {
  animation: wave-move 22s linear infinite reverse;
  opacity: 0.6;
}
@keyframes wave-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero marquee (page d'accueil) ---------- */
.hero-marquee {
  position: relative;
  background: var(--white);
  overflow: hidden;
  padding: 70px 0 130px;
}

.hero-marquee-track-wrap {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.hero-marquee-track {
  display: inline-flex;
  animation: marquee-scroll 20s linear infinite;
  will-change: transform;
}

.hero-marquee-track span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 8vw, 72px);
  color: var(--navy);
  font-weight: 700;
  margin-right: 60px;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  margin-top: 36px;
}

.hero-marquee-content .eyebrow {
  display: inline-block;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 22px;
  color: #e6b84a;
  margin-bottom: 12px;
}

.hero-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-marquee-content p {
  font-weight: 400;
  color: #555555;
  font-size: 17px;
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-marquee-content p strong {
  font-weight: 700;
  color: #042c53;
}

.spiral-decoration {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 380px;
  height: 380px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Cartes "Nos avantages" ---------- */
.advantage-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.advantage-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.advantage-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
}

.advantage-card p {
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  line-height: 1.6;
}

.advantage-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.advantage-icon-navy {
  background: rgba(4, 44, 83, 0.1);
}

.advantage-icon-gold {
  background: rgba(230, 184, 74, 0.18);
}

.hero-marquee-content .hero-actions {
  gap: 12px;
}

.hero-marquee-content .hero-actions .btn {
  font-size: 18px;
  padding: 16px 36px;
  border-radius: 8px;
}

.hero-marquee-content .hero-actions .btn-primary {
  background: #042c53;
  color: #e6b84a;
}

.hero-marquee-content .hero-actions .btn-dark {
  background: transparent;
  border: 1px solid #042c53;
  color: #042c53;
}

.hero-image {
  position: relative;
}

.hero-photo-circle {
  max-width: 460px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, #e8f4ff, #ffffff);
  padding: 20px;
  box-shadow: 0 20px 45px rgba(4, 44, 83, 0.15);
}

.hero-photo-circle img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-photo-circle {
    max-width: 320px;
  }
  .hero-headline {
    font-size: 34px;
  }
  .spiral-decoration {
    width: 240px;
    height: 240px;
  }
}

/* Vagues décoratives légères en fond des sections claires */
.section-waves-top {
  position: relative;
}
.section-waves-top::before {
  content: '';
  display: block;
  height: 60px;
  background: radial-gradient(ellipse at top, rgba(230, 184, 74, 0.08), transparent 70%);
}

/* ---------- Sections génériques ---------- */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-header .eyebrow {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.bg-off {
  background: var(--off-white);
}

/* ---------- Cartes devises / tarifs ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3,
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 18px rgba(4, 44, 83, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rate-card {
  text-align: center;
}
.rate-card .currency-flag {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.rate-card .rate-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.rate-card .rate-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rate-card .rate-minmax {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ---------- Convertisseur ---------- */
.converter {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 520px;
  /* margin-top reste en px : calé sur la hauteur fixe de la vague (.waves) */
  margin: -80px auto 0;
  position: relative;
  z-index: 3;
  border: 1px solid var(--gray-200);
}

.converter h3 {
  text-align: center;
}

.converter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.converter-field {
  flex: 1;
}

.converter-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.converter input[type='number'],
.converter select,
input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  font-size: 1rem;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
}
.converter input[type='number']:focus,
.converter select:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
}

.converter-swap {
  display: flex;
  justify-content: center;
  margin: -6px 0 10px;
}
.converter-swap button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--off-white);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--navy);
}

.converter-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: var(--off-white);
  text-align: center;
}
.converter-result .amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.converter-result .meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ---------- Compteurs animés ---------- */
.counters {
  background: var(--navy);
  color: var(--white);
}
.counters .grid {
  text-align: center;
}
.counter-value {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  /* Or (#E6B84A) plutôt que marine ici : ces chiffres sont sur fond marine (.counters),
     le marine serait illisible. Même taille/graisse que les autres chiffres clés du site. */
  color: var(--gold);
}
.counter-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: none;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.faq-question .icon {
  transition: transform 0.2s ease;
  color: var(--gold-dark);
  font-size: 1.2rem;
}
.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 22px;
  color: var(--gray-500);
}
.faq-item.open .faq-answer {
  padding: 0 22px 20px;
}

/* ---------- Témoignages ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
}
.testimonial-card .stars {
  color: var(--gold);
  margin-bottom: 12px;
}
.testimonial-card .author {
  margin-top: 16px;
  font-weight: 700;
  color: var(--navy);
}
.testimonial-card .role {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  color: var(--gold);
  font-size: 0.95rem;
}
.footer-grid ul li {
  margin-bottom: 10px;
}
.footer-grid ul li a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 500;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ---------- Popup taux du jour ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 44, 83, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.visible {
  display: flex;
}
.modal-box {
  background: var(--white);
  border-radius: 18px;
  max-width: 460px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray-500);
}
.modal-rate-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}
.modal-rate-row:last-child {
  border-bottom: none;
}

/* ---------- Formulaires (auth / admin) ---------- */
.auth-wrapper {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--off-white);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 36px;
}
.auth-tabs {
  display: flex;
  border-radius: 999px;
  background: var(--off-white);
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  color: var(--gray-500);
}
.auth-tab.active {
  background: var(--navy);
  color: var(--white);
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-message {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}
.form-message.error {
  display: block;
  background: rgba(192, 57, 43, 0.1);
  color: var(--danger);
}
.form-message.success {
  display: block;
  background: rgba(30, 158, 90, 0.1);
  color: var(--success);
}

/* ---------- Page contact ---------- */
.contact-card-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.contact-card-value a {
  color: var(--navy);
}
.contact-card-value a:hover {
  color: var(--gold-dark);
}
.contact-card-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
}

.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 36px;
  box-shadow: var(--shadow);
}

/* ---------- Bandeau cookies RGPD ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--white);
  box-shadow: 0 -4px 24px rgba(4, 44, 83, 0.12);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner-text {
  flex: 1;
  min-width: 240px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--gray-700);
}
.cookie-banner-text a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-banner-accept,
.cookie-banner-refuse {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner-accept {
  background: #042c53;
  color: #e6b84a;
  border: none;
}
.cookie-banner-refuse {
  background: transparent;
  color: #042c53;
  border: 1.5px solid #042c53;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner-actions {
    justify-content: center;
  }
}

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-12 { gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Navbar / Hero / Grilles / Sections : 768px ---- */
@media (max-width: 768px) {
  :root { font-size: 15px; }

  /* Navbar */
  .nav-links,
  .nav-cta .btn-outline-desktop {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-toggle {
    display: flex;
  }
  .navbar { position: relative; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    gap: 18px;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 2.5rem 1rem;
    text-align: center;
  }
  .hero-image {
    width: 100%;
    max-width: 100%;
  }

  /* Grilles */
  /* grid-3/grid-4 utilisent repeat(auto-fit, minmax(280px,1fr)) : elles
     s'adaptent déjà sans palier fixe (2 colonnes en tablette, 1 en mobile). */
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Sections */
  section { padding: 2.5rem 1rem; }

  /* margin-top reste en px : hero plus bas sur mobile, vague plus proche */
  .converter { margin-top: -60px; padding: 1.5rem; }

  /* Tableaux */
  .table-wrapper {
    overflow-x: auto;
  }
}

/* ---- Boutons : 600px ---- */
/* Les titres/paragraphes n'ont plus besoin d'override ici : ils utilisent
   clamp() (fluide, sans palier) + la taille racine réduite ci-dessus. */
@media (max-width: 600px) {
  .counter-value, .rate-card .rate-value { font-size: 2.125rem; }

  /* Texte défilant statique et centré sur mobile (pas d'animation, pas de débordement) */
  .hero-marquee-track-wrap {
    white-space: normal;
  }
  .hero-marquee-track {
    display: flex;
    animation: none;
    transform: none;
    justify-content: center;
    width: 100%;
  }
  .hero-marquee-track span:not(:first-child) {
    display: none;
  }
  .hero-marquee-track span:first-child {
    white-space: normal;
    text-align: center;
    margin-right: 0;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.5rem, 7vw, 32px);
  }

  /* Boutons pleine largeur sur mobile */
  .btn {
    width: 100%;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---- Sections : padding resserré sous 480px ---- */
@media (max-width: 480px) {
  :root { font-size: 14px; }
  section { padding: 1.5rem 0.75rem; }
}
