/* Pelud Immigration — shared styles (header, footer, buttons, Marco, inner pages) */
:root {
  --night: #041a38;
  --navy: #0a2c5c;
  --navy-2: #123a70;
  --line: #284d80;
  --ivory: #f7f3ea;
  --ivory-2: #ece5d6;
  --text: #13202f;
  --muted: #5b6676;
  --muted-dark: #a9bdd8;
  --gold: #c09a5b;
  --gold-2: #dcc08e;
  --gold-ink: #8a6a34;
  --radius: 16px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--ivory); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 14px; }
html[data-lang="en"] [lang="fr"], html[data-lang="fr"] [lang="en"] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: var(--navy); text-decoration: none; font: inherit; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px; transition: transform .2s, background .2s, box-shadow .2s; white-space: nowrap; border: 0; cursor: pointer; }
.btn:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(192,154,91,.25); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); box-shadow: 0 8px 20px rgba(10,44,92,.25); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ivory-2); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.sm { padding: 9px 15px; font-size: 14px; }

/* Concept banner */
.concept { position: fixed; top: 0; left: 0; right: 0; z-index: 70; background: var(--gold); color: var(--navy); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Header */
.site-header { position: fixed; top: 30px; left: 0; right: 0; z-index: 60; transition: background .3s, box-shadow .3s; }
.site-header.solid, .inner .site-header { background: rgba(5,13,26,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ivory-2); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand svg { height: 46px; width: auto; }
.brand .word { fill: #fff; transition: fill .3s; }
.site-header.solid .brand .word, .inner .brand .word { fill: var(--ink); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: rgba(255,255,255,.82); position: relative; transition: color .2s; }
.site-header.solid .nav a, .inner .nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); }
.site-header.solid .nav a:hover, .inner .nav a:hover, .site-header.solid .nav a[aria-current="page"], .inner .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); border-radius: 2px; }
.hdr-right { display: flex; align-items: center; gap: 10px; }
.lang { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; padding: 7px 12px; transition: all .3s; }
.site-header.solid .lang, .inner .lang { color: var(--ink); border-color: var(--ivory-2); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: transparent; cursor: pointer; color: #fff; align-items: center; justify-content: center; }
.site-header.solid .burger, .inner .burger { color: var(--ink); border-color: var(--ivory-2); }
.burger svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav, .hdr-right .btn { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav { position: fixed; top: 96px; left: 12px; right: 12px; z-index: 59; background: var(--card); border-radius: 18px; box-shadow: 0 20px 50px rgba(10,44,92,.25); padding: 12px; display: grid; gap: 4px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all .2s; }
  .mobile-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 12px 14px; border-radius: 10px; }
  .mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--ivory); }
  .mobile-nav .btn { margin-top: 6px; color: var(--navy); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .brand svg { height: 38px; }
  .concept { font-size: 12px; }
}

/* Inner page hero */
.page-hero { background: var(--navy); color: #fff; padding: 168px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(192,154,91,.22), transparent); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 64px); max-width: 860px; }
.page-hero p { color: var(--muted-dark); font-size: 19px; max-width: 680px; margin: 18px 0 0; }
.page-hero .eyebrow { color: var(--gold); }
.crumbs { font-size: 14px; color: var(--muted-dark); margin-bottom: 18px; }
.crumbs a { color: var(--gold-2); text-decoration: none; }

section { padding: 90px 0; }
.head { max-width: 720px; margin-bottom: 44px; }
.head h2 { font-size: clamp(30px, 4.4vw, 50px); }
.head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }

/* Pop-in */
.pop { opacity: 0; transform: translateY(36px) scale(.96); filter: blur(5px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; }
.pop.in { opacity: 1; transform: none; filter: none; }

/* Notice */
.notice { display: block; background: #fff7e3; border: 1px solid #f1d9a0; color: #6b4a12; border-radius: 14px; padding: 14px 16px; font-size: 14.5px; }
.notice b { color: #4d350b; }

/* Footer */
.site-footer { background: var(--night); color: var(--muted-dark); font-size: 14px; padding: 56px 0 36px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: Inter, sans-serif; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .brand svg { height: 50px; }
.site-footer .brand .word { fill: #fff; }
.site-footer .bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid #12366a; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.site-footer .bottom a { display: inline; color: var(--gold); }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ===== Marco ===== */
.marco-fab { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border: 1px solid rgba(192,154,91,.6); border-radius: 999px; padding: 8px 18px 8px 8px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 14px 34px rgba(4,26,56,.35); transition: transform .2s; }
.marco-fab:hover { transform: translateY(-2px); }
.marco-fab .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); display: grid; place-items: center; font-family: "Playfair Display", serif; font-size: 19px; position: relative; }
.marco-fab .av::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #2fd27a; border: 2px solid var(--navy); }
.marco-fab.hide { transform: scale(.8); opacity: 0; pointer-events: none; }
.marco { padding: 0; position: fixed; right: 20px; bottom: 20px; z-index: 81; width: 380px; max-width: calc(100vw - 24px); height: 580px; max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); background: var(--card); border-radius: 22px; box-shadow: 0 30px 80px rgba(4,26,56,.35); display: flex; flex-direction: column; overflow: hidden; transform-origin: 100% 100%; transform: scale(.9) translateY(20px); opacity: 0; pointer-events: none; transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.marco.open { transform: none; opacity: 1; pointer-events: auto; }
.marco-top { background: var(--navy); color: #fff; padding: 16px 16px 14px; display: flex; align-items: center; gap: 12px; }
.marco-top .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); display: grid; place-items: center; font-family: "Playfair Display", serif; font-size: 21px; flex: none; }
.marco-top b { display: block; font-size: 16px; }
.marco-top small { color: var(--muted-dark); font-size: 12.5px; }
.marco-top button { margin-left: auto; background: transparent; border: 0; color: #fff; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; }
.marco-top button:hover { background: rgba(255,255,255,.1); }
.marco-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--ivory); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; animation: msgIn .25s ease; }
.msg.bot { background: var(--card); border: 1px solid var(--ivory-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg a { color: var(--gold-ink); font-weight: 600; }
.msg .disc { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--ivory-2); font-size: 12.5px; color: var(--muted); }
.msg.typing { display: inline-flex; gap: 4px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; }
.msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.marco-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; background: var(--ivory); }
.marco-chips button { font: inherit; font-size: 12.5px; background: var(--card); border: 1px solid var(--ivory-2); border-radius: 999px; padding: 6px 11px; cursor: pointer; color: var(--ink); }
.marco-chips button:hover { border-color: var(--gold); }
.marco-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--ivory-2); background: var(--card); }
.marco-form input { flex: 1; font: inherit; font-size: 15px; border: 1.5px solid var(--ivory-2); border-radius: 999px; padding: 10px 14px; outline: none; min-width: 0; }
.marco-form input:focus { border-color: var(--gold); }
.marco-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy); cursor: pointer; flex: none; display: grid; place-items: center; }
.marco-form button svg { width: 18px; height: 18px; }
.marco-foot { font-size: 11px; color: var(--muted); text-align: center; padding: 0 12px 10px; background: var(--card); }
@media (max-width: 600px) {
  .marco-fab { right: 12px; bottom: 12px; padding: 6px; }
  .marco-fab .label { display: none; }
  .marco { right: 8px; left: 8px; bottom: 8px; width: auto; max-width: none; height: calc(100svh - 110px); max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pop { opacity: 1; transform: none; filter: none; transition: none; }
}
