/* ==========================================================================
   TIPPIS PRO (pro.tippis.fr) - FEUILLE DE STYLE COMMUNE
   Charte Graphique : Deep Navy #0F2C59 | Teal Émeraude #0D9488 | Slate #F1F5F9
   Typographie : Poppins
=========================================================================== */

:root {
  --tp-navy: #0F2C59;
  --tp-navy-dark: #0A1E3F;
  --tp-teal: #0D9488;
  --tp-teal-hover: #0B7A70;
  --tp-teal-light: #E6F6F4;
  --tp-slate: #F1F5F9;
  --tp-white: #FFFFFF;
  --tp-muted: #475569;
  --tp-border: #CBD5E1;
  --tp-radius-lg: 24px;
  --tp-radius-md: 16px;
  --tp-shadow: 0 14px 34px rgba(15, 44, 89, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--tp-navy);
  background-color: var(--tp-white);
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, .tp-h1, .tp-h2 {
  text-wrap: balance;
}

p, li, .tp-lead {
  text-wrap: pretty;
}

.tp-container {
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- BARRE SUPÉRIEURE & EN-TÊTE --- */
.tp-topbar {
  background-color: var(--tp-slate);
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.8rem;
  color: var(--tp-muted);
}

.tp-topbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tp-topbar-tagline {
  font-weight: 600;
  color: var(--tp-navy);
}

.tp-topbar-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tp-navy);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.tp-topbar-social:hover {
  color: var(--tp-teal);
}

.tp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E2E8F0;
}

.tp-header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tp-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.tp-brand-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.tp-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.tp-nav-link {
  text-decoration: none;
  color: var(--tp-navy);
  font-weight: 600;
  font-size: 0.91rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.tp-nav-link:hover,
.tp-nav-link.active {
  color: var(--tp-teal);
}

.tp-burger {
  display: none;
  background: var(--tp-slate);
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tp-navy);
  font-size: 1.3rem;
}

/* --- TYPOGRAPHIE & BADGES --- */
.tp-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--tp-teal-light);
  color: var(--tp-teal);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tp-h1 {
  font-size: clamp(1.75rem, 4vw, 2.95rem);
  font-weight: 800;
  color: var(--tp-navy);
  line-height: 1.2;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
  max-width: 960px;
}

.tp-h1 span {
  color: var(--tp-teal);
}

.tp-h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  font-weight: 700;
  color: var(--tp-navy);
  text-align: center;
  margin: 0 auto 14px;
  line-height: 1.26;
}

.tp-lead {
  font-size: clamp(0.96rem, 2vw, 1.06rem);
  color: var(--tp-muted);
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

/* --- BOUTONS --- */
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.35;
}

.tp-btn-sm {
  padding: 10px 16px;
  font-size: 0.86rem;
}

.tp-btn-full {
  width: 100%;
}

.tp-btn-teal {
  background-color: var(--tp-teal);
  color: var(--tp-white);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

.tp-btn-teal:hover {
  background-color: var(--tp-teal-hover);
  transform: translateY(-2px);
}

.tp-btn-navy {
  background-color: var(--tp-navy);
  color: var(--tp-white);
  box-shadow: 0 8px 20px rgba(15, 44, 89, 0.2);
}

.tp-btn-navy:hover {
  background-color: var(--tp-navy-dark);
  transform: translateY(-2px);
}

.tp-btn-outline {
  background-color: var(--tp-white);
  color: var(--tp-navy);
  border-color: var(--tp-navy);
}

.tp-btn-outline:hover {
  background-color: var(--tp-navy);
  color: var(--tp-white);
}

/* --- GRILLES & CARTES COMMUNES --- */
.tp-section {
  padding: 46px 0;
}

.tp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.tp-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  padding: 28px 24px;
  box-shadow: var(--tp-shadow);
}

.tp-card-top-teal {
  border-top: 4px solid var(--tp-teal);
}

.tp-card-top-navy {
  border-top: 4px solid var(--tp-navy);
}

.tp-card-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tp-teal);
  margin-bottom: 8px;
}

.tp-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--tp-navy);
}

.tp-card p {
  font-size: 0.91rem;
  color: var(--tp-muted);
  margin: 0;
}

.tp-cta-banner {
  background: linear-gradient(135deg, var(--tp-navy) 0%, #163C75 100%);
  color: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-top: 32px;
}

.tp-cta-banner h2 {
  color: var(--tp-white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 auto 14px;
}

.tp-cta-banner p {
  color: #E2E8F0;
  max-width: 700px;
  margin: 0 auto 28px;
}

/* --- PAGES INSTITUTIONNELLES & JURIDIQUES --- */
.tp-legal-wrap {
  max-width: 920px;
  margin: 36px auto 64px;
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  padding: 44px 40px;
  box-shadow: var(--tp-shadow);
}

.tp-legal-meta {
  font-size: 0.82rem;
  color: var(--tp-muted);
  background: var(--tp-slate);
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 28px;
  display: inline-block;
}

.tp-legal-wrap h2 {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--tp-navy);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tp-slate);
  text-align: left;
}

.tp-legal-wrap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tp-teal);
  margin: 20px 0 8px;
}

.tp-legal-wrap p,
.tp-legal-wrap li {
  font-size: 0.93rem;
  color: #334155;
  line-height: 1.68;
}

.tp-legal-wrap ul {
  padding-left: 20px;
  margin: 10px 0 18px;
}

.tp-legal-wrap li {
  margin-bottom: 8px;
}

.tp-legal-box {
  background: var(--tp-slate);
  border-left: 4px solid var(--tp-teal);
  padding: 16px 20px;
  border-radius: 12px;
  margin: 18px 0;
  font-size: 0.9rem;
}

/* --- PIED DE PAGE --- */
.tp-footer {
  background-color: var(--tp-navy-dark);
  color: #CBD5E1;
  padding: 52px 0 28px;
  margin-top: 72px;
}

.tp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tp-footer-brand {
  color: var(--tp-white);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.tp-footer-brand span {
  color: #5EEAD4;
}

.tp-footer-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  margin: 0 0 14px;
  max-width: 380px;
}

.tp-footer-title {
  color: var(--tp-white);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}

.tp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.tp-footer-links a:hover {
  color: #5EEAD4;
}

.tp-footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #94A3B8;
}

@media (max-width: 960px) {
  .tp-burger {
    display: inline-flex;
  }

  .tp-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tp-white);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 24px;
    border-bottom: 2px solid var(--tp-border);
    box-shadow: var(--tp-shadow);
    gap: 14px;
  }

  .tp-nav.open {
    display: flex;
  }

  .tp-grid-3,
  .tp-grid-2,
  .tp-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tp-topbar-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .tp-brand-logo {
    height: 46px;
  }

  .tp-legal-wrap {
    padding: 26px 18px;
    border-radius: 18px;
  }

  .tp-cta-banner {
    padding: 32px 18px;
    border-radius: 18px;
  }
}
