/* ============================================================
   base.css — styles communs à toutes les pages du site PGA
   Mis en cache par le navigateur : téléchargé une seule fois,
   réutilisé sur l'accueil, les pages domaines et la page groupe.
   Mobile-first : styles de base = mobile, min-width pour enrichir.
   Polices système (0 requête réseau pour les fontes).
   ============================================================ */
:root {
  --pga-navy: #16235e; /* bleu marine PGA dominant */
  --pga-blue: #243a9b; /* bleu PGA vif */
  --pga-blue-soft: #3b54c4;
  --pga-teal: #2bb6c4; /* accent teal de la pochette PGA */
  --prunay-violet: #4e3d8f; /* accent groupe Prunay */
  /* couleurs par domaine (utilisées sur l'accueil et les pages domaines) */
  --d-construction: #c79a3e;
  --d-multirisque: #cf7a4a;
  --d-prevoyance: #7b5ea8;
  --d-sante: #6a9a4e;
  --d-garantie: #2b8fa0;
  /* accent générique : surchargé par page (violet par défaut) */
  --accent: var(--prunay-violet);
  --ink: #1a1d2e;
  --grey: #5c6178;
  --line: #e6e8f0;
  --paper: #ffffff;
  --paper-2: #f3f5fc;
  --paper-3: #eef1fa;
  --white: #ffffff;
  --radius: 0px;
  --maxw: 1280px;
  --display:
    "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --body:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.eyebrow {
  display: inline-block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.center {
  text-align: center;
}

/* boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: 0.25s;
}
.btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-light:hover {
  background: #fff;
  color: var(--accent);
}
.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-solid:hover {
  filter: brightness(0.88);
}

/* header + navigation (base = mobile, menu en overlay) */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 4px 24px rgba(22, 35, 94, 0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo img {
  height: 57px;
  width: auto;
  display: block;
}
.nav-links {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  flex-direction: column;
  padding: 24px 20px;
  gap: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-130%);
  transition: 0.35s;
  z-index: 90;
  display: flex;
}
.nav-links.open {
  transform: none;
}
.nav-links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--grey);
  transition: 0.2s;
}
.nav-links a:hover {
  color: var(--pga-blue);
}
.nav-cta {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  background: var(--pga-blue);
  color: #fff !important;
  border: 1.5px solid var(--pga-blue);
  text-align: center;
}
.nav-cta:hover {
  background: var(--pga-navy);
  border-color: var(--pga-navy);
}
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 26px;
  height: 2px;
  background: var(--pga-navy);
  transition: 0.3s;
}

/* titres de section */
.section {
  padding: 64px 0;
}
.sec-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.sec-head .eyebrow {
  margin: 0 auto 20px;
}
.sec-head h2 {
  font-size: clamp(1.6rem, 5vw, 2.7rem);
  font-weight: 700;
  color: var(--ink);
}
.sec-head p {
  color: var(--grey);
  font-size: 1rem;
  margin-top: 14px;
}

/* footer (commun) */
footer {
  color: #fff;
  padding: 56px 0 28px;
  background: var(--prunay-violet);
}
.ft-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.ft-brand .logo {
  margin-bottom: 16px;
}
.ft-brand p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  max-width: 280px;
}
.ft-col h4 {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.6);
}
.ft-col a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  margin-bottom: 11px;
  transition: 0.2s;
}
.ft-col a:hover {
  color: #fff;
  padding-left: 4px;
}
.ft-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 24px;
  gap: 16px;
}
.ft-bottom p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}
.ft-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
}
.ft-group b {
  font-weight: 700;
  color: #fff;
}

/* animation d'apparition */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== ENRICHISSEMENTS COMMUNS (min-width) ===== */
@media (min-width: 560px) {
  .ft-top {
    grid-template-columns: 1fr 1fr;
  }
  .ft-bottom {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
}
@media (min-width: 768px) {
  .wrap {
    padding: 0 32px;
  }
  .section {
    padding: 88px 0;
  }
  .sec-head {
    margin-bottom: 56px;
  }
  .ft-top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .nav {
    height: 84px;
  }
  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 36px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    transform: none;
    width: auto;
  }
  .nav-cta {
    padding: 11px 22px;
  }
  .burger {
    display: none;
  }
  .section {
    padding: 104px 0;
  }
  .sec-head {
    margin-bottom: 60px;
  }
}
