/* ═══════════════════════════════════════════════════════════════════════
   TP Nav + Footer CSS — extrait de index.html pour être inclus partout
   À linker sur les 12 pages avec les partials.
   ═══════════════════════════════════════════════════════════════════════ */

/* === NAV === */
nav.tp-nav .wrap, footer.tp-footer .wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { nav.tp-nav .wrap, footer.tp-footer .wrap { padding: 0 20px; } }

nav.tp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(248, 246, 243, 0.72); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid rgba(224, 220, 216, 0.4); transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
nav.tp-nav.invert { background: rgba(15, 31, 45, 0.55); border-bottom-color: rgba(255, 255, 255, 0.08); }
nav.tp-nav.invert .tp-brand, nav.tp-nav.invert .tp-links > li > a { color: #fff; }
nav.tp-nav.invert .tp-brand em { color: #d4b56a; }
nav.tp-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.tp-brand { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 22px; letter-spacing: -0.02em; color: #1a1f2e; transition: color 0.4s; white-space: nowrap; text-decoration: none; }
.tp-brand em { font-style: italic; color: #1a8a7d; font-weight: 400; }

.tp-links { display: flex; gap: 28px; font-size: 14px; list-style: none; align-items: center; margin: 0; padding: 0; }
.tp-links > li { position: relative; }
.tp-links > li > a { color: #5a6275; font-weight: 500; transition: color 0.4s; display: inline-flex; align-items: center; gap: 4px; padding: 10px 0; cursor: pointer; text-decoration: none; }
.tp-links > li > a.current { color: #1a8a7d; }
nav.tp-nav.invert .tp-links > li > a.current { color: #d4b56a; }

.tp-caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; transition: transform 0.3s; }
.tp-links > li:hover .tp-caret { transform: rotate(-135deg) translateY(-1px); }

.tp-dropdown { position: absolute; top: 100%; left: -16px; min-width: 280px; background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid #e0dcd8; border-radius: 16px; box-shadow: 0 24px 48px rgba(0,0,0,0.08); padding: 14px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); list-style: none; margin: 0; }
.tp-links > li:hover .tp-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.tp-dropdown li a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; transition: background 0.3s; text-decoration: none; }
.tp-dropdown li a:hover { background: #f1eee9; opacity: 1; }
.tp-dd-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: #f1eee9; display: flex; align-items: center; justify-content: center; }
.tp-dd-icon img { width: 26px; height: 26px; object-fit: contain; }
.tp-dd-title { font-size: 13px; font-weight: 600; color: #1a1f2e; letter-spacing: 0.02em; display: block; }
.tp-dd-sub { font-size: 11px; color: #5a6275; margin-top: 2px; letter-spacing: 0.02em; display: block; }
.tp-account { color: #5a6275; font-size: 13px; letter-spacing: 0.04em; text-decoration: none; }
nav.tp-nav.invert .tp-account { color: rgba(255,255,255,0.7); }

.tp-cta { padding: 10px 22px; background: #1a8a7d; color: #fff !important; border-radius: 28px; font-size: 13px; font-weight: 500; transition: all 0.3s; white-space: nowrap; text-decoration: none; }
nav.tp-nav.invert .tp-cta { background: #fff; color: #1a1f2e !important; }
.tp-cta:hover { opacity: 1 !important; background: #0f5c53; transform: translateY(-1px); }
nav.tp-nav.invert .tp-cta:hover { background: #4ecdc4; }

.tp-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #1a1f2e; }
nav.tp-nav.invert .tp-burger { color: #fff; }
.tp-burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 1px; transition: all 0.3s; }

.tp-mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: #f8f6f3; z-index: 99; padding: 32px; overflow-y: auto; }
.tp-mobile.open { display: block; }
.tp-mobile-group { margin-bottom: 28px; }
.tp-mobile-group-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #1a8a7d; margin-bottom: 14px; }
.tp-mobile a { display: block; padding: 14px 0; border-bottom: 1px solid #e0dcd8; font-size: 17px; color: #1a1f2e; text-decoration: none; }

@media (max-width: 980px) {
  .tp-links { display: none; }
  .tp-burger { display: block; }
  .tp-account { display: none; }
}

/* === FOOTER === */
footer.tp-footer { background: #0a1521; padding: 72px 0 32px; color: rgba(255,255,255,0.5); }
.tp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 960px) { .tp-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; } .tp-footer-brand-col { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tp-footer-grid { grid-template-columns: 1fr; } }
.tp-footer-brand { font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; color: #fff; margin-bottom: 14px; letter-spacing: -0.01em; }
.tp-footer-brand em { color: #4ecdc4; font-style: italic; }
.tp-footer-desc { font-size: 13px; line-height: 1.6; max-width: 320px; margin-bottom: 20px; }
.tp-footer-socials { display: flex; gap: 12px; }
.tp-footer-socials a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; color: rgba(255,255,255,0.6); font-size: 13px; transition: all 0.3s; text-decoration: none; }
.tp-footer-socials a:hover { background: #1a8a7d; color: #fff; border-color: #1a8a7d; opacity: 1; }
.tp-footer-col h4 { color: rgba(255,255,255,0.78); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; font-family: 'JetBrains Mono', monospace; font-weight: 500; margin-top: 0; }
.tp-footer-col a { display: block; color: rgba(255,255,255,0.5); font-size: 14px; padding: 5px 0; transition: color 0.3s; text-decoration: none; }
.tp-footer-col a:hover { color: #4ecdc4; opacity: 1; }
.tp-footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.tp-footer-bottom p { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.15em; color: rgba(255,255,255,0.3); }
.tp-footer-legal { display: flex; gap: 20px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; }
.tp-footer-legal a { color: rgba(255,255,255,0.4); text-decoration: none; }
.tp-footer-legal a:hover { color: #4ecdc4; opacity: 1; }
