/* CoPro16 — shared styles, loaded by every page.
   Page-specific rules stay in each page's inline <style>. */

:root {
  --primary: #1F4E79;
  --accent: #2E75B6;
  --light: #D5E8F0;
  --pale: #F2F7FB;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --text: #1A1A1A;
  --muted: #595959;
  --border: #E5E7EB;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --max: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header / nav */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.brand-mark { width: 34px; height: 34px; background: var(--primary); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 21px; height: 21px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 38px; background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; color: var(--primary); }
.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lang-btn { display: inline-block; box-sizing: border-box; text-align: center; text-decoration: none; padding: 6px 12px; background: transparent; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.lang-btn:hover { border-color: var(--primary); background: var(--primary); color: white; }
.btn { display: inline-block; padding: 10px 20px; background: var(--primary); color: white; text-decoration: none; border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: background 0.15s; border: none; cursor: pointer; }
.btn:hover { background: #163D5F; color: white; }
.btn-secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); padding: 8.5px 18.5px; }
.btn-secondary:hover { background: var(--primary); color: white; }
.phone-link { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 6px; transition: background 0.15s; }
.phone-link:hover { background: var(--pale); }
.phone-link::before { content: "\260E  "; opacity: 0.7; margin-right: 2px; }

/* Footer */
footer { background: var(--primary); color: white; padding: 48px 0 24px; margin-top: 32px; }
footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
footer h5 { font-size: 14px; font-weight: 600; margin-bottom: 16px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }
footer a { color: white; text-decoration: none; opacity: 0.85; font-size: 14px; }
footer a:hover { opacity: 1; text-decoration: underline; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 8px; }
footer .footer-brand { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
footer .tagline { font-size: 14px; opacity: 0.7; line-height: 1.5; }
footer .copyright { max-width: 1100px; margin: 32px auto 0; padding: 24px 24px 0; border-top: 1px solid rgba(255,255,255,0.15); font-size: 13px; opacity: 0.6; text-align: center; }

/* Scroll reveal */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.will-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .will-reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Skip to content (accessibility, WCAG 2.4.1) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--primary); color: #fff; padding: 10px 18px; font-weight: 600; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }

/* Shared mobile nav */
@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 4px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 11px 4px; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-links .phone-link { padding: 11px 4px; }
  .nav-links .lang-btn { width: 100%; margin-top: 8px; padding: 10px; }
  .nav-links .btn { width: 100%; text-align: center; margin-top: 6px; }
  footer .footer-grid { grid-template-columns: 1fr; }
}

/* Article pages (guide / étude / privacy) */
.article-hero { padding: 56px 0 32px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-hero h1 { font-size: 40px; font-weight: 700; color: var(--primary); line-height: 1.15; letter-spacing: -1px; margin-bottom: 16px; }
.article-hero .lead { font-size: 19px; color: var(--muted); line-height: 1.5; }
.meta { font-size: 13px; color: var(--muted); margin-top: 16px; }
article { padding: 48px 0 80px; }
article h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin: 48px 0 16px; letter-spacing: -0.5px; }
article h3 { font-size: 20px; font-weight: 600; color: var(--text); margin: 32px 0 12px; }
article p { margin-bottom: 16px; font-size: 16px; line-height: 1.7; color: var(--text); }
article ul, article ol { margin: 16px 0 24px 24px; }
article li { margin-bottom: 8px; font-size: 16px; line-height: 1.6; }
article a { color: var(--accent); text-decoration: underline; }
article a:hover { color: var(--primary); }
.callout { background: var(--pale); border-left: 4px solid var(--accent); padding: 20px 24px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; margin: 24px 0; }
.callout p { margin: 0; font-size: 15px; color: var(--text); }
.callout strong { color: var(--primary); }
.next-steps { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin: 48px 0 0; }
.next-steps h3 { color: var(--primary); margin-top: 0; }
.next-steps p { margin-bottom: 12px; font-size: 15px; }
.next-steps .btn { margin-top: 12px; }

/* Article mobile */
@media (max-width: 800px) {
  .article-hero h1 { font-size: 28px; }
  article h2 { font-size: 22px; }
}
