/* Caen — charte pierre de Caen : ivoire, bleu normand, or */
:root {
  --blue: #16324f;
  --blue-2: #22456b;
  --gold: #b98a2f;
  --gold-2: #d9b25f;
  --ivory: #f6f2ea;
  --ivory-2: #efe9dc;
  --ink: #23272e;
  --muted: #5f6a77;
  --border: #e3dccd;
  --shadow: 0 12px 30px rgba(22, 50, 79, .12);
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--ivory); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.15; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); text-align: center; margin-bottom: .3em; font-weight: 700; }
h2::after { content: ''; display: block; width: 70px; height: 3px; background: var(--gold); margin: 14px auto 0; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
sup { font-size: .7em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 78px 0; scroll-margin-top: 70px; }
.section-alt { background: var(--ivory-2); }
.section-lead { text-align: center; max-width: 780px; margin: 8px auto 44px; color: var(--muted); }

/* ===== topbar ===== */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(22, 50, 79, .96); backdrop-filter: blur(10px); }
.nav { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.brand span { color: var(--gold-2); font-style: italic; }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a { text-decoration: none; color: #ccd8e4; font-weight: 500; font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: var(--gold-2); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 24px; height: 3px; background: var(--gold-2); margin: 4px 0; border-radius: 3px; }

/* ===== hero ===== */
.hero { position: relative; background: var(--blue); color: #fff; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,50,79,.82) 0%, rgba(22,50,79,.62) 45%, rgba(22,50,79,.92) 100%); }
.hero .credit { position: absolute; right: 10px; bottom: 6px; z-index: 2; font-size: .74rem; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(16,28,43,.6); }
.hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 96px 24px 64px; text-align: center; }
.eyebrow { display: inline-block; border: 1px solid rgba(217,178,95,.55); color: var(--gold-2); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 18px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 3.9rem); font-weight: 700; margin-bottom: 18px; text-shadow: 0 2px 14px rgba(16,28,43,.55); }
.hero h1 em { color: var(--gold-2); font-style: italic; }
.lead { color: #c8d4e0; font-size: 1.05rem; max-width: 720px; margin: 0 auto 30px; text-shadow: 0 1px 10px rgba(16,28,43,.5); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 30px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-solid { background: var(--gold); color: #fff; }
.btn-ghost { border: 2px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.hero-stats { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 18px 20px; backdrop-filter: blur(4px); }
.stat strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; color: var(--gold-2); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: .82rem; color: #c8d4e0; }

/* ===== timeline ===== */
.timeline { position: relative; max-width: 860px; margin: 20px auto 0; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.t-item { position: relative; margin-bottom: 26px; }
.t-item::before { content: ''; position: absolute; left: -24px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ivory); box-shadow: 0 0 0 2px var(--gold); }
.t-date { display: inline-block; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.25rem; color: var(--blue); margin-bottom: 4px; }
.t-body { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 0 14px 14px 14px; padding: 18px 22px; box-shadow: var(--shadow); }
.t-body h3 { color: var(--blue); font-size: 1.25rem; }
.t-body p { color: #4a5563; font-size: .95rem; }

/* ===== cards & tabs ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 34px 0; }
.card { background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(22, 50, 79, .18); }
.card-ico { font-size: 1.9rem; margin-bottom: 8px; }
.card h3 { color: var(--blue); }
.card p { color: #4a5563; font-size: .95rem; }
.section-dark { background: var(--blue); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: #a9bbcc; }
.section-dark .card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.section-dark .card h3 { color: var(--gold-2); }
.section-dark .card p { color: #c8d4e0; }
.tabs { display: flex; justify-content: center; gap: 10px; margin: 0 0 26px; flex-wrap: wrap; }
.tab { border: 2px solid var(--border); background: #fff; color: var(--blue); font-family: 'Inter', sans-serif; font-weight: 700; font-size: .92rem; padding: 10px 26px; border-radius: 999px; cursor: pointer; transition: .2s; }
.tab:hover { border-color: var(--gold); color: var(--gold); }
.tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tab-panel { display: none; animation: fadein .35s ease; }
.tab-panel.is-active { display: block; }
.tab-panel.is-active .reveal { opacity: 1; transform: none; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-img { margin: 0 0 26px; }
.tab-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.tab-img figcaption { margin-top: 8px; font-size: .72rem; color: var(--muted); text-align: right; }
.section-dark .saviez { margin-top: 40px; }
.saviez { max-width: 860px; margin: 0 auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 22px 26px; }
.section-dark .saviez strong { color: var(--gold-2); }
.saviez strong { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--blue); display: block; margin-bottom: 6px; }
.saviez p { font-size: .95rem; color: #c8d4e0; min-height: 3.2em; transition: opacity .35s; }

/* ===== cci / cta ===== */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%); color: #fff; border-radius: 22px; padding: 44px 32px; text-align: center; box-shadow: var(--shadow); }
.cta-band p { max-width: 640px; margin: 0 auto 22px; font-size: 1.08rem; color: #dbe4ee; }
.cta-band .btn { background: var(--gold); color: #fff; }

/* ===== footer ===== */
.footer { background: #101c2b; color: #93a5b8; padding: 44px 0 48px; font-size: .85rem; }
.footer strong { color: #fff; }
.footer a { color: var(--gold-2); }
.credits { margin-top: 12px; font-size: .78rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav { flex-wrap: wrap; }
  .brand span { display: none; }
  .burger { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; gap: 4px; background: var(--blue-2); border-radius: 14px; padding: 10px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 12px; }
  .grid-3, .grid-2, .hero-stats { grid-template-columns: 1fr; }
}
