﻿@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Noto+Sans:wght@400;500&family=Arya:wght@700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --noir:            #F7F8FA;
  --noir-profond:    #ECEEF2;
  --noir-surface:    #ECEEF2;
  --noir-card:       #FFFFFF;
  --noir-border:     #E1E4EA;

  --bleu-imperial:   #0A1931;
  --bleu-hover:      #15305B;
  --bleu-glow:       rgba(10, 25, 49, 0.3);
  --bleu-light:      #4A7DC4;

  --argent:          #525A66;
  --argent-clair:    #383C46;
  --argent-fonce:    #6B7280;

  --or:              #5B6472;
  --or-hover:        #8F97A3;
  --or-glow:         rgba(91, 100, 114, 0.25);
  --or-subtle:       rgba(91, 100, 114, 0.08);

  --rouge-royal:     #8B1A2B;
  --rouge-hover:     #A52238;
  --rouge-glow:      rgba(139, 26, 43, 0.3);

  --blanc:           #14181F;
  --blanc-pur:       #FAFAF8;
  --blanc-muted:     rgba(20, 24, 31, 0.7);

  --font-serif:      "Rajdhani", "Segoe UI", sans-serif;
  --font-sans:       "Noto Sans", -apple-system, "Segoe UI", sans-serif;
  --font-accent:     "Arya", "Rajdhani", sans-serif;
  --font-arabic:     "Noto Sans Arabic", "Segoe UI", "Noto Sans", sans-serif;

  --glass-bg:        rgba(255, 255, 255, 0.75);
  --glass-border:    var(--noir-border);
  --blur:            blur(20px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --noir:            #0A0A0F;
    --noir-profond:    #060609;
    --noir-surface:    #12121A;
    --noir-card:       #151520;
    --noir-border:     rgba(143, 151, 163, 0.2);

    --bleu-imperial:   #0A1931;
    --bleu-hover:      #15305B;
    --bleu-glow:       rgba(10, 25, 49, 0.5);
    --bleu-light:      #4A7DC4;

    --argent:          #C0C0C0;
    --argent-clair:    #E0E6ED;
    --argent-fonce:    #8A9BB3;

    --or:              #8F97A3;
    --or-hover:        #B7BEC7;
    --or-glow:         rgba(143, 151, 163, 0.35);
    --or-subtle:       rgba(143, 151, 163, 0.1);

    --rouge-royal:     #8B1A2B;
    --rouge-hover:     #A52238;
    --rouge-glow:      rgba(139, 26, 43, 0.3);

    --blanc:           #E0E6ED;
    --blanc-pur:       #FFFFFF;
    --blanc-muted:     rgba(224, 230, 237, 0.7);

    --glass-bg:        rgba(10, 10, 15, 0.72);
  }
}

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

body {
  background-color: var(--noir);
  color: var(--blanc);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--or);
  font-weight: 600;
}

nav {
  /* Three columns — brand | menu | spare — so the menu is centred on the bar itself and not on
   * the space left over by the brand (the converse.com header pattern). The side columns are
   * implicitly minmax(auto, 1fr): they stay equal, and centred, until the brand needs more than
   * its half, at which point the menu slides right instead of colliding with the wordmark.
   * display/justify-content below are the collapsed-layout fallback (see the 860px block). */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-content: space-between;
  align-items: center;
  column-gap: 2rem;
  /* Full-bleed bar: the brand sits hard against the left edge instead of being boxed into the
     site's 1200px reading width. */
  padding: 1.3rem 1.5rem;
    background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  text-decoration: none;
  justify-self: start;
}

.brand img {
    height: 34px;
  border-radius: 8px;
}

.brand h1 {
    font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--blanc);
}

.nav-links {
  display: flex;
  align-items: center;
  grid-column: 2;
  justify-content: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--argent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}

/* Right-hand cluster: the contact CTA, kept out of the centred menu so the bar carries four
   product links instead of seven. */
.nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-actions a {
  white-space: nowrap;
}

.btn-nav {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: var(--bleu-imperial);
  color: var(--blanc-pur);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background-color: var(--bleu-hover);
  box-shadow: 0 0 20px var(--bleu-glow);
  border-color: var(--bleu-light);
}

.nav-hamburger {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--argent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* .nav-toggle-checkbox + <label class="nav-hamburger"> is a CSS-only checkbox hack: the menu
   opens/closes via the ~ sibling combinator below with zero JS required, so it still works if
   main.js never runs (blocked by a privacy extension / ad blocker). main.js still listens for
   the checkbox's change event to toggle the .open bar-flip animation and auto-close on link
   click, but that's a nice-to-have, not a requirement. */
.nav-toggle-checkbox {
  display: none;
}

.nav-hamburger.open span:nth-child(1),
.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2),
.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3),
.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links a:hover, .nav-links a.active {
  color: var(--or);
  border-bottom-color: var(--or);
}

/* ===== RESPONSIVE NAV COLLAPSE (mirrors web_lara/style.css's pattern). With four links in the
   centre and the contact CTA on the right, the bar needs 807px in the widest locale (de) —
   measured with Playwright across the 7 locales, so it collapses at 840px. */
@media (max-width: 840px) {
  nav {
    /* Back to a wrapping flex row: brand + hamburger on the first line, the open menu as a full
       width block underneath. */
    display: flex;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 1rem;
    gap: 0;
    order: 3;
    border-top: 1px solid var(--noir-border);
  }

  .nav-links.open,
  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
  }

  /* The right-hand cluster has nowhere to sit once the bar collapses, so it drops into the
     dropdown under the links rather than being duplicated there. */
  .nav-actions {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 0.85rem;
  }

  .nav-links.open ~ .nav-actions,
  .nav-toggle-checkbox:checked ~ .nav-actions {
    display: flex;
  }

  .btn-nav {
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .nav-links a {
    display: block;
    border-bottom: 1px solid var(--noir-border);
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--or-subtle);
    border-bottom-color: var(--noir-border);
  }

}

main {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.hero {
  text-align: center;
  padding: 6rem 0 4rem;
  animation: fadeIn 1s ease-out;
}

.hero h2 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--argent);
  max-width: 650px;
  margin: 0 auto 3rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--bleu-imperial);
  color: var(--blanc-pur);
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--bleu-hover);
  box-shadow: 0 0 20px var(--bleu-glow);
  border-color: var(--bleu-light);
}

/* ---- Accès distant (compte.html / chat.html) — porté depuis le projet jumeau Lara ---- */
.auth-panel {
  max-width: 440px;
  margin: 0 auto;
}

.privacy-banner {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--or-subtle);
  border: 1px solid var(--noir-border);
  border-left: 3px solid var(--or);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--argent);
}

.privacy-banner strong {
  color: var(--or);
}

.form-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--noir-border);
}

.form-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--argent-fonce);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.8rem 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.form-tab.active {
  color: var(--or);
  border-bottom-color: var(--or);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-field label {
  font-size: 0.82rem;
  color: var(--argent-fonce);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"] {
  background: var(--noir-surface);
  border: 1px solid var(--noir-border);
  border-radius: 4px;
  color: var(--blanc-pur);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
}

.form-field input:focus {
  outline: none;
  border-color: var(--or);
}

.form-field.is-invalid input {
  border-color: var(--rouge-hover);
}
.form-field.is-invalid input:focus {
  border-color: var(--rouge-hover);
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  font-size: 0.88rem;
  color: var(--argent);
}

.form-status {
  min-height: 1.4em;
  font-size: 0.88rem;
  margin-top: 0.8rem;
}

.form-status.is-error { color: var(--rouge-hover); }
.form-status.is-ok { color: var(--or); }

.btn-primary--block {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

/* ---- Chat shell ---- */
.chat-shell {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.chat-status-pill {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--noir-border);
  color: var(--argent-fonce);
}

.chat-status-pill.is-ok { color: var(--or); border-color: var(--or); }
.chat-status-pill.is-warn { color: var(--rouge-hover); border-color: var(--rouge-hover); }

.pairing-panel {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
  text-align: center;
}

.pairing-panel input {
  background: var(--noir-surface);
  border: 1px solid var(--noir-border);
  border-radius: 4px;
  color: var(--blanc-pur);
  font-size: 1.6rem;
  letter-spacing: 6px;
  text-align: center;
  padding: 0.6rem;
  width: 220px;
  margin: 0.8rem 0;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 320px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 1rem;
  background: var(--noir-surface);
  border: 1px solid var(--noir-border);
  border-radius: 6px;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--bleu-imperial);
  color: var(--blanc-pur);
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  color: var(--argent-clair);
}

.chat-input-row {
  display: flex;
  gap: 0.6rem;
}

.chat-input-row input {
  flex: 1;
  background: var(--noir-surface);
  border: 1px solid var(--noir-border);
  border-radius: 4px;
  color: var(--blanc-pur);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--or);
}

.chat-input-row button {
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0.75rem 1.2rem;
}

.glass-card {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 3.5rem;
  margin: 2rem 0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(156, 122, 46, 0.3);
  box-shadow: 0 10px 30px rgba(30,29,26,0.12);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card h3 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.glass-card p {
  color: var(--argent);
  font-size: 1.05rem;
}

.sibling-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.brand-logo-frame {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 2px solid;
  overflow: hidden;
}

.brand-logo-frame img {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-logo-frame--lara {
  border-color: #4A7DC4;
  background: radial-gradient(circle, rgba(10, 25, 49, 0.55), rgba(10, 25, 49, 0.15));
  box-shadow: 0 0 18px rgba(74, 125, 196, 0.35);
}

.brand-logo-frame--authentis {
  border-color: #d4af37;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.08));
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.3);
}

.brand-logo-frame--larai {
  border-color: #6cdaa1;
  background: radial-gradient(circle, rgba(108, 218, 161, 0.3), rgba(108, 218, 161, 0.08));
  box-shadow: 0 0 18px rgba(108, 218, 161, 0.3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 768px) {
  main {
    margin: 2rem auto;
    padding: 0 1.2rem;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero h2 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .glass-card {
    padding: 2rem 1.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  footer {
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
  }
}

@media (max-width: 480px) {
  

  .hero h2 {
    font-size: 2rem;
  }

  .avatar-img {
    width: 200px;
  }

  .btn-primary {
    padding: 0.9rem 2rem;
    display: block;
    text-align: center;
  }
}

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

footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--noir-border);
  color: var(--argent-fonce);
  font-size: 0.9rem;
  margin-top: 5rem;
  background: var(--noir-surface);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  margin: 0 auto 1.3rem;
  text-decoration: none;
}

.footer-brand img {
  height: 32px;
  border-radius: 6px;
}

.footer-brand span {
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--blanc);
}

.footer-links {
  margin-top: 0.5rem;
  margin-bottom: 1.3rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--argent-fonce);
  text-decoration: none;
}

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

.contact-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
}

.contact-card a.email {
  display: inline-block;
  margin-top: 1rem;
  color: var(--or);
  font-size: 1.1rem;
  text-decoration: none;
}

.contact-card a.email:hover {
  color: var(--or-hover);
}

/* ===== COOKIE BANNER (localStorage only, no tracker — same pattern as Authentis_Website) ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--noir-card);
  border-top: 1px solid var(--noir-border);
  color: var(--argent);
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 500;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner button {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.cookie-banner #accept-cookies {
  background: var(--bleu-imperial);
  color: var(--blanc-pur);
}

.cookie-banner #reject-cookies {
  background: transparent;
  color: var(--argent);
  border-color: var(--noir-border);
}

.cookie-banner #learn-more {
  background: transparent;
  color: var(--or);
  border-color: var(--or-glow);
}

/* "En savoir plus" opens a small list of every relevant national data-protection authority
   instead of guessing one country from the page language — French/Dutch/German are each shared
   by 2-4 EU countries on this site, so a single guessed link would be wrong for some visitors. */
.cookie-learn-more {
  position: relative;
  display: inline-block;
}

.cookie-learn-menu {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 0.4rem;
  min-width: 200px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.12);
  z-index: 510;
}

.cookie-learn-menu.open {
  display: flex;
}

.cookie-learn-menu a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 5px;
  color: var(--argent);
  text-decoration: none;
  font-size: 0.85rem;
  text-align: left;
  white-space: nowrap;
}

.cookie-learn-menu a:hover {
  background: var(--or-subtle);
  color: var(--or);
}

@media (max-width: 480px) {
  .cookie-banner button {
    margin: 0.4rem 0.3rem 0;
  }

  .cookie-learn-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
  }
}

.avatar-img {
  width: 360px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid var(--or);
  padding: 4px;
  margin-bottom: 1.5rem;
  object-fit: cover;
}

/* ==== Page transition (rideau + logo), inspiré de virtexsimulation.com ==== */
#page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--noir);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Default state must be hidden (not covering): the page has to stay usable and visible
   even if main.js never runs (blocked by a privacy extension, ad blocker, or network
   failure) — this is the only element that used to sit on top of the entire viewport. */
#page-transition-overlay.is-covering {
  transform: scaleY(1);
}

#page-transition-overlay.is-instant {
  transition: none;
}

#page-transition-logo {
  width: 64px;
  height: 64px;
  opacity: 0;
  transform: scale(0.6) rotate(-12deg);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 18px var(--or-glow));
}

#page-transition-logo.is-visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  #page-transition-overlay,
  #page-transition-logo {
    transition: none !important;
  }
}

/* ==== Floating globe / language hub button (replaces the old flag-dropdown switcher) ==== */
.lang-globe {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  color: var(--or);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 150;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.lang-globe svg {
  width: 24px;
  height: 24px;
}

.lang-globe:hover,
.lang-globe:focus-visible {
  color: var(--blanc-pur);
  background: var(--or);
  border-color: var(--or);
  box-shadow: 0 8px 24px var(--or-glow);
  transform: translateY(-2px);
}

/* Sit above the cookie banner instead of overlapping its text while it's visible. */
#cookie-banner:not(.hidden) ~ .lang-globe {
  bottom: calc(2rem + 64px);
}

@media (max-width: 480px) {
  .lang-globe {
    right: 1.2rem;
    bottom: 1.2rem;
    width: 44px;
    height: 44px;
  }

  .lang-globe svg {
    width: 20px;
    height: 20px;
  }

  #cookie-banner:not(.hidden) ~ .lang-globe {
    bottom: calc(1.2rem + 90px);
  }
}

/* ===== FAQ PAGE ===== */
.faq-category {
  margin: 3rem 0 1rem;
  font-family: var(--font-accent, var(--font-sans));
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--argent-fonce);
}

.faq-category:first-of-type {
  margin-top: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(143, 151, 163, 0.35);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-serif);
  color: var(--or);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--argent-fonce);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--or);
}

.faq-answer {
  padding: 0 1.8rem 1.6rem;
  color: var(--argent);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--or);
}

@media (max-width: 480px) {
  .faq-item summary {
    padding: 1.1rem 1.2rem;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 0 1.2rem 1.3rem;
  }
}

/* ==== Language hub page (langue.html) ==== */
.lang-hub-grid {
  max-width: 900px;
  margin: 0 auto;
}

.lang-hub-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 2.5rem 1.5rem;
}

.lang-hub-card h3 {
  margin-bottom: 0;
}

.lang-hub-card:hover h3 {
  color: var(--or-hover);
}

/* ==== Arabic / RTL support ==== */
html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6 {
  font-family: var(--font-arabic);
}

html[dir="rtl"] body {
  direction: rtl;
}

/* Brand/nav bar stays a fixed left-logo/right-links layout regardless of page direction —
   only body content flows RTL for Arabic, the header chrome doesn't mirror. Without this,
   direction:rtl on body flips the nav's flex start/end and the logo lands on the right. */
html[dir="rtl"] nav {
  direction: ltr;
}

html[dir="rtl"] .lang-globe {
  right: auto;
  left: 2rem;
}

@media (max-width: 480px) {
  html[dir="rtl"] .lang-globe {
    right: auto;
    left: 1.2rem;
  }
}


.brand-logo-frame--laraivpn {
  border-color: #f2c14e;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.35), rgba(242, 193, 78, 0.08));
}

