/* ═══════════════════════════════════════════════════════════════
   OPENARRIVAL — GLOBAL CSS
   Tokens, Reset, Nav, Footer, Utilitaires
═══════════════════════════════════════════════════════════════ */

/* --- TOKENS --- */
:root {
  --blue:        #2B5EA7;
  --blue-dark:   #1d4278;
  --blue-light:  #4A7EC7;
  --blue-pale:   #EBF2FF;
  --teal:        #3A9E9B;
  --teal-light:  #5BBDBA;
  --teal-pale:   #E8F8F8;
  --amber:       #D4830A;
  --amber-light: #F0A535;
  --amber-pale:  #FFF4E6;
  --green:       #1A6B47;
  --white:       #FFFFFF;
  --off-white:   #F8F9FC;
  --gray-50:     #FAFBFD;
  --gray-100:    #F0F2F7;
  --gray-200:    #E2E6EF;
  --gray-300:    #C8D0E0;
  --gray-500:    #6B7A99;
  --gray-700:    #374060;
  --dark:        #111827;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-xs: 0 1px 6px rgba(43,94,167,.08);
  --shadow-sm: 0 2px 12px rgba(43,94,167,.10);
  --shadow-md: 0 8px 32px rgba(43,94,167,.14);
  --shadow-lg: 0 24px 64px rgba(43,94,167,.18);

  --transition: .35s cubic-bezier(.25,.46,.45,.94);
  --nav-h: 72px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: var(--font-body); background: none; }
ul { list-style: none; }
input, select, textarea { font-family: var(--font-body); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43,94,167,.08);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: .88rem; font-weight: 500; color: var(--gray-700);
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-login {
  font-size: .85rem; font-weight: 500; color: var(--gray-700);
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.nav-login:hover { color: var(--blue); }

/* --- NAV USER PILL --- */
.nav-user { position: relative; }
.nav-user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: 50px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
  user-select: none;
}
.nav-user-pill:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(43,94,167,.12); }
.nav-user-pill.open { border-color: var(--blue); }
.nav-pill-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .76rem; color: white; flex-shrink: 0;
}
.nav-pill-name { font-size: .84rem; font-weight: 600; color: var(--dark); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-pill-arrow { font-size: .6rem; color: var(--gray-400); transition: transform .2s; line-height: 1; }
.nav-user-pill.open .nav-pill-arrow { transform: rotate(180deg); }
.nav-user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 190px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.10); overflow: hidden;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .15s, transform .15s; z-index: 500;
}
.nav-user-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.nav-dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
.nav-dropdown-header .dh-name { font-size: .88rem; font-weight: 700; color: var(--dark); }
.nav-dropdown-header .dh-email { font-size: .73rem; color: var(--gray-500); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: .85rem; font-weight: 500; color: var(--gray-700);
  transition: background .15s; cursor: pointer; text-decoration: none;
  background: none; border: none; width: 100%; text-align: left; font-family: inherit;
}
.nav-dropdown-item:hover { background: var(--gray-50); color: var(--dark); }
.nav-dropdown-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }
.nav-dropdown-item.danger { color: #c53030; }
.nav-dropdown-item.danger:hover { background: #FEF2F2; }
.nav-cta {
  background: var(--blue); color: var(--white);
  padding: 10px 22px; border-radius: var(--radius-xl);
  font-size: .85rem; font-weight: 600;
  transition: background var(--transition), transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--blue-dark); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43,94,167,.32);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--gray-700); display: block; border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed;
  inset: var(--nav-h) 0 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.35rem; font-weight: 500; color: var(--gray-700);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-cta {
  background: var(--blue); color: white !important;
  padding: 14px 40px; border-radius: var(--radius-xl);
  font-weight: 600 !important;
}

/* --- FOOTER --- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 72px) 28px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-brand img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: .85rem; line-height: 1.75; max-width: 260px; }
.footer-col h4 {
  color: white; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px;
  font-family: var(--font-body);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .85rem; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .78rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .78rem; transition: color .2s; }
.footer-legal a:hover { color: white; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; transition: background .2s;
}
.social-link:hover { background: var(--blue); }

/* --- SECTION UTILS --- */
.section { padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 72px); max-width: 1200px; margin: 0 auto; }
.section-full-bg { padding: clamp(56px, 9vw, 110px) 0; }
.section-full-bg > .section-inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px; background: var(--teal); border-radius: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--dark);
}
.section-title em { font-style: normal; color: var(--blue); }
.section-sub {
  margin-top: 14px; font-size: 1.02rem; color: var(--gray-500);
  line-height: 1.75; max-width: 560px; font-weight: 300;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-xl);
  font-size: .93rem; font-weight: 600; font-family: var(--font-body);
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43,94,167,.35); }
.btn-amber { background: var(--amber); color: white; }
.btn-amber:hover { background: var(--amber-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,131,10,.35); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: white; }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: white; }
.btn-sm { padding: 9px 20px; font-size: .83rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* --- CARDS --- */
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* --- BADGE --- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-xl);
  font-size: .73rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.badge-blue { background: var(--blue-pale); color: var(--blue); }
.badge-teal { background: var(--teal-pale); color: var(--teal); }
.badge-amber { background: var(--amber-pale); color: var(--amber); }
.badge-green { background: rgba(26,107,71,.1); color: var(--green); }
.badge-gray  { background: var(--gray-100); color: var(--gray-500); }

/* --- FORMS --- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 700;
  color: var(--gray-700); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .04em;
}
.form-control {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: .93rem; color: var(--dark); background: var(--white);
  outline: none; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,94,167,.11);
}
.form-control::placeholder { color: var(--gray-300); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: .78rem; color: #e53e3e; margin-top: 4px; }
.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: 4px; }

/* --- ALERTS --- */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: .88rem; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: rgba(26,107,71,.08); color: var(--green); border: 1px solid rgba(26,107,71,.2); }
.alert-error   { background: rgba(229,62,62,.07); color: #c53030; border: 1px solid rgba(229,62,62,.2); }
.alert-info    { background: var(--blue-pale); color: var(--blue); border: 1px solid rgba(43,94,167,.2); }

/* --- SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* --- AVATAR --- */
.avatar {
  border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; font-size: .85rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar-blue  { background: var(--blue); }
.avatar-teal  { background: var(--teal); }
.avatar-amber { background: var(--amber); }
.avatar-green { background: var(--green); }

/* --- DIVIDER --- */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 32px 0; }

/* --- CHECK ICON --- */
.check-icon {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; color: white;
}
.check-blue  { background: var(--blue); }
.check-teal  { background: var(--teal); }
.check-amber { background: var(--amber); }
.check-green { background: var(--green); }

/* --- ICON BOX --- */
.icon-box {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.icon-box-blue  { background: var(--blue-pale); }
.icon-box-teal  { background: var(--teal-pale); }
.icon-box-amber { background: var(--amber-pale); }
.icon-box-gray  { background: var(--gray-100); }

/* --- TRUST STRIP --- */
.trust-strip {
  background: var(--dark); padding: 18px clamp(20px, 5vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(20px, 4vw, 56px);
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 400;
}
.trust-item-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0;
}

/* --- PAGE HERO (pages internes) --- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--teal) 100%);
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../images/notre-dame.jpg') center/cover no-repeat;
  opacity: .12; mix-blend-mode: luminosity;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: 12px;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: white; }
.page-hero h1 em { font-style: normal; color: var(--amber-light); }
.page-hero-sub { margin-top: 14px; font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 560px; line-height: 1.7; }
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 24px;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,.55); transition: color .2s; }
.page-hero-breadcrumb a:hover { color: white; }
.page-hero-breadcrumb span { color: rgba(255,255,255,.35); }

/* --- SPINNER --- */
.spinner {
  width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: white; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}
