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

:root {
  --noir:            #09110f;
  --noir-profond:    #060b0a;
  --noir-surface:    #101c1a;
  --noir-card:       #162522;
  --noir-border:     #25403b;

  --argent:          #b8c9c4;
  --argent-clair:    #d5e2de;
  --argent-fonce:    #8ea29b;

  --or:              #54c488;
  --or-hover:        #6cdaa1;
  --or-glow:         rgba(84, 196, 136, 0.25);
  --or-subtle:       rgba(84, 196, 136, 0.08);

  --bleu-imperial:   #1f6f63;
  --bleu-hover:      #2a8f80;
  --bleu-glow:       rgba(42, 143, 128, 0.35);
  --bleu-light:      #56b4a4;

  --blanc:           #ecf3f0;
  --blanc-pur:       #f6fbf9;

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

  --glass-bg:        rgba(9, 17, 15, 0.7);
  --blur:            blur(20px);
}

@media (prefers-color-scheme: light) {
  :root {
    --noir:            #F5FBF8;
    --noir-profond:    #E8F3EE;
    --noir-surface:    #ECF6F1;
    --noir-card:       #FFFFFF;
    --noir-border:     #CFE8DC;

    --argent:          #4a6058;
    --argent-clair:    #2f4a42;
    --argent-fonce:    #6a8078;

    --or:              #1a5c4f;
    --or-hover:        #2a8f80;
    --or-glow:         rgba(26, 92, 79, 0.18);
    --or-subtle:       rgba(26, 92, 79, 0.08);

    --bleu-imperial:   #1a5c4f;
    --bleu-hover:      #2a8f80;
    --bleu-glow:       rgba(42, 143, 128, 0.25);
    --bleu-light:      #2a8f80;

    --blanc:           #16342c;
    --blanc-pur:       #0c1614;

    --glass-bg:        rgba(255, 255, 255, 0.75);
  }
}

* {
  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;
  display: flex;
  flex-direction: column;
}

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

a { color: inherit; }

/* ===== NAV ===== */
nav {
  /* Three columns — brand | menu | spare — so the menu is centred on the bar itself and not
   * packed against 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 768px block). */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-content: space-between;
  align-items: center;
  column-gap: 2rem;
  padding: 1.3rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--noir-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 0.6rem;
  font-size: 1.5rem;
  letter-spacing: 4px;
  color: var(--blanc-pur);
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-serif);
}

.brand-orb {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
}

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

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

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

/* ===== HAMBURGER NAV =====
   .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 {
  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-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); }

/* ===== MAIN / HERO ===== */
main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  width: 100%;
}

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

.hero h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  letter-spacing: 1px;
}

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

.page-header {
  text-align: center;
  padding: 2rem 0 3rem;
}

.page-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--argent);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== PRODUCT CHOICE CARDS ===== */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.choice-card {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-decoration: none;
  display: block;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.choice-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.35s ease;
}

.choice-card:hover {
  transform: translateY(-6px);
  border-color: rgba(84, 196, 136, 0.35);
  box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

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

.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--francia {
  border-color: #8F97A3;
  background: radial-gradient(circle, rgba(143, 151, 163, 0.35), rgba(143, 151, 163, 0.08));
  box-shadow: 0 0 18px rgba(143, 151, 163, 0.3);
}

.brand-logo-frame--lifepath {
  border-color: #d63b2b;
  background: radial-gradient(circle, rgba(214, 59, 43, 0.35), rgba(214, 59, 43, 0.08));
  box-shadow: 0 0 18px rgba(214, 59, 43, 0.3);
}

.brand-logo-frame--screenguard {
  border-color: #2a78d6;
  background: radial-gradient(circle, rgba(42, 120, 214, 0.35), rgba(42, 120, 214, 0.08));
  box-shadow: 0 0 18px rgba(42, 120, 214, 0.3);
}

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


.choice-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--or);
  border: 1px solid rgba(84, 196, 136, 0.45);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  background: var(--or-subtle);
  margin-bottom: 1.2rem;
}

.choice-card h3 {
  font-size: 2.1rem;
  margin-bottom: 0.8rem;
}

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

.choice-card .go {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--bleu-light);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ===== SECTION TITLES ===== */
.section {
  margin-top: 5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h3 {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.section-title p {
  color: var(--argent-fonce);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== POWERED-BY BAND ===== */
.powered-band {
  border-top: 1px solid var(--noir-border);
  border-bottom: 1px solid var(--noir-border);
  padding: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.powered-item {
  text-align: center;
}

.powered-item .name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--argent-clair);
  letter-spacing: 1px;
}

.powered-item .role {
  display: block;
  font-size: 0.75rem;
  color: var(--argent-fonce);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ===== GLASS CARD GRID (features) ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.glass-card {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 1.8rem;
}

.glass-card h4 {
  font-family: var(--font-serif);
  color: var(--or);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

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

.glass-card p strong {
  color: var(--or);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2.2rem;
  background: linear-gradient(135deg, var(--or), var(--or-hover));
  color: var(--noir-profond);
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  box-shadow: 0 8px 24px var(--or-glow);
  transform: translateY(-2px);
}

/* ===== SIMPLE CONTENT PAGES (about / contact / legal) ===== */
.content-block {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.content-block h3 {
  font-size: 1.5rem;
  margin: 2.2rem 0 0.8rem;
}

.content-block h3:first-child {
  margin-top: 0;
}

.content-block p, .content-block li {
  color: var(--argent);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.content-block ul {
  padding-left: 1.3rem;
}

.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);
}

/* Native HTML5 validation bubbles ignore the site theme, so the contact form uses `novalidate`
   and this instead — see contact.js for the themed validation logic. */
.contact-form {
  text-align: left;
}

.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,
.form-field textarea {
  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 textarea {
  resize: vertical;
  min-height: 120px;
}

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

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: #d9534f;
}

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

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

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--noir-border);
  color: var(--argent-fonce);
  font-size: 0.85rem;
  background: var(--noir-surface);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin: 0 auto 1.1rem;
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: var(--blanc-pur);
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-serif);
}

.footer-orb {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

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

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

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

/* ===== LANGUAGE HUB (floating globe button + langue.html cards) ===== */
.lang-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--noir-border);
  border-radius: 50%;
  color: var(--argent);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: all 0.3s ease;
  z-index: 500;
}

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

.lang-fab:hover,
.lang-fab:focus-visible {
  color: var(--or);
  border-color: rgba(84, 196, 136, 0.45);
  box-shadow: 0 8px 24px var(--or-glow);
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .lang-fab {
    right: 1rem;
    bottom: 1rem;
    width: 46px;
    height: 46px;
  }

  .lang-fab svg {
    width: 21px;
    height: 21px;
  }
}

/* ===== 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(84, 196, 136, 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;
  }
}

.lang-hub-card {
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.lang-hub-card h4 {
  margin-bottom: 0.4rem;
}

.lang-hub-card:hover {
  border-color: rgba(84, 196, 136, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* ===== 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;
}

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

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

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  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;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    /* undo the centring the desktop bar needs — collapsed rows span the full width */
    align-items: stretch;
    width: 100%;
    margin-top: 1rem;
    gap: 0;
    border-top: 1px solid var(--noir-border);
  }

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

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

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

@media (max-width: 600px) {
  .hero h2 {
    font-size: 2.3rem;
  }
  main {
    padding: 3rem 1.2rem 4rem;
  }
  .powered-band {
    gap: 2rem;
  }
}

/* ==== 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-overlay.is-instant #page-transition-logo {
  transition: none;
}

#page-transition-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  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);
}

#page-transition-logo svg {
  width: 3.2rem;
  height: 3.2rem;
  filter: drop-shadow(0 0 18px var(--or-glow));
}

#page-transition-logo span {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  color: var(--or);
  text-shadow: 0 0 24px var(--or-glow);
}

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

.pt-ripple {
  transform-origin: 65px 65px;
  animation: pt-ripple 2.4s ease-out infinite;
}

.pt-ripple-2 { animation-delay: 0.8s; }
.pt-ripple-3 { animation-delay: 1.6s; }

@keyframes pt-ripple {
  0%   { transform: scale(0.55); opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}

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

  .pt-ripple {
    animation: none !important;
    opacity: 0 !important;
  }
}

