/*
Theme Name: Astra Child — Implantation Pologne
Theme URI: https://implantation-pologne.com
Description: Thème enfant Astra personnalisé pour Implantation Pologne — style « private banking » : anthracite, blanc, or riche. En-tête double barre (logo + coordonnées + drapeaux, menu sombre), titres serif.
Author: Implantation Pologne
Template: astra
Version: 3.1.0
Text Domain: astra-child-implantation
*/

:root {
  --ip-black: #141619;
  --ip-anthracite: #23262b;
  --ip-graphite: #34383f;
  --ip-amber: #c9a227;
  --ip-amber-soft: #e0c35a;
  --ip-bg-soft: #f6f6f4;
  --ip-text: #33373d;
  --ip-serif: Georgia, "Times New Roman", serif;
}

/* ---- Typographie générale ---- */
body { color: var(--ip-text); }
h1, h2, h3, h4 {
  font-family: var(--ip-serif);
  color: var(--ip-anthracite);
  font-weight: 700;
  letter-spacing: .01em;
}
h2 { margin-top: 1.7em; padding-bottom: .35em; position: relative; }
h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; background: var(--ip-amber);
}

/* ---- Liens ---- */
.entry-content a {
  color: var(--ip-anthracite);
  text-decoration: underline;
  text-decoration-color: var(--ip-amber);
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--ip-amber); }

/* ---- Boutons ---- */
.wp-block-button__link, .ast-button {
  background-color: var(--ip-amber);
  color: var(--ip-black) !important;
  border-radius: 2px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; font-size: .82em; padding: 15px 30px;
  transition: all .2s ease;
}
.wp-block-button__link:hover { background-color: var(--ip-black); color: #fff !important; }
.is-style-outline .wp-block-button__link {
  background: transparent; border: 1px solid var(--ip-anthracite);
  color: var(--ip-anthracite) !important;
}
.is-style-outline .wp-block-button__link:hover { background: var(--ip-anthracite); color: #fff !important; }

/* ---- Bloc héros (accueil) ---- */
.ip-hero {
  background: linear-gradient(115deg, var(--ip-black) 0%, var(--ip-anthracite) 55%, #2c3037 100%);
  color: #fff; padding: 72px 48px; border-radius: 2px;
  border-bottom: 3px solid var(--ip-amber); margin-bottom: 44px;
}
.ip-hero h1 { color: #fff; font-size: 2.5em; line-height: 1.25; margin-bottom: .45em; }
.ip-hero .ip-hero-sub { color: #c8cbcf; font-size: 1.18em; max-width: 46em; }
.ip-hero strong { color: var(--ip-amber-soft); }
.ip-hero .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.65); color: #fff !important; }
.ip-hero .is-style-outline .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--ip-black) !important; }

/* ---- Bloc appel à l'action ---- */
.ip-cta {
  background: var(--ip-anthracite); color: #d6d8db;
  border-left: 3px solid var(--ip-amber); border-radius: 2px;
  padding: 36px 40px; margin-top: 52px;
}
.ip-cta h3 { color: #fff; margin-top: 0; }
.ip-cta p { color: #c8cbcf; }
.ip-cta .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.65); color: #fff !important; }
.ip-cta .is-style-outline .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--ip-black) !important; }

/* ---- Tableaux (tarifs) ---- */
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content table th {
  background: var(--ip-anthracite); color: #fff; padding: 13px 15px;
  text-align: left; font-weight: 600; letter-spacing: .03em;
}
.entry-content table td { padding: 11px 15px; border: 1px solid #e6e6e2; }
.entry-content table tbody tr:nth-child(even) { background: var(--ip-bg-soft); }
.ip-pricing td:nth-child(n+2), .ip-pricing th:nth-child(n+2) { text-align: center; }
.ip-pricing tbody tr:first-child { background: #faf3e3 !important; font-size: 1.05em; }
.ip-pricing tbody tr:first-child td { border-bottom: 2px solid var(--ip-amber); }

/* ---- Colonnes services (accueil) ---- */
.wp-block-columns { gap: 22px; }
.wp-block-columns .wp-block-column {
  background: #fff; border: 1px solid #e6e6e2; border-top: 3px solid var(--ip-amber);
  border-radius: 2px; padding: 26px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.wp-block-columns .wp-block-column:hover { box-shadow: 0 10px 26px rgba(20, 22, 25, .14); transform: translateY(-2px); }
.wp-block-columns .wp-block-column h3 { margin-top: 0; font-size: 1.08em; }

/* ---- Listes ---- */
.entry-content ul li, .entry-content ol li { margin-bottom: .5em; }
.entry-content ul li::marker { color: var(--ip-amber); }

/* ---- En-tête double barre (modèle private banking / Pekao) ---- */
.ip-header { background: #fff; }
.ip-topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; padding: 14px 24px; gap: 20px; flex-wrap: wrap;
}
.ip-topbar .ip-logo img, .ip-topbar img.logo, .ip-topbar .custom-logo { height: 84px !important; width: auto !important; display: block; }
.ip-topbar .coords { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ip-topbar .coords a { color: var(--ip-anthracite); text-decoration: none; font-size: 15px; font-weight: 600; }
.ip-topbar .coords a:hover { color: var(--ip-amber); }
.ip-topbar .coords .ic { color: var(--ip-amber); margin-right: 7px; }
.ip-flags { display: flex; gap: 10px; align-items: center; border-left: 1px solid #e6e6e2; padding-left: 22px; }
.ip-flags svg { display: block; border: 1px solid #d8d8d4; border-radius: 2px; cursor: pointer; opacity: .55; }
.ip-flags svg.active { opacity: 1; outline: 2px solid var(--ip-amber); }
.ip-flags svg:hover { opacity: 1; }
.ip-navbar { background: var(--ip-black); border-bottom: 3px solid var(--ip-amber); }
.ip-navbar .inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: center; }
.ip-navbar ul.ip-menu, .ip-navbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.ip-navbar ul li { position: relative; }
.ip-navbar ul li > a {
  display: block; color: #fff; text-decoration: none; font-weight: 600;
  font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 17px 22px; border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.ip-navbar ul li > a:hover { color: var(--ip-amber-soft); border-bottom-color: var(--ip-amber); }
.ip-navbar ul li ul.sub-menu {
  display: none; position: absolute; top: 100%; left: 0; background: #1c1f24;
  min-width: 290px; z-index: 50; box-shadow: 0 12px 28px rgba(0,0,0,.35);
  border-top: 3px solid var(--ip-amber); list-style: none; margin: 0; padding: 0;
}
.ip-navbar ul li:hover > ul.sub-menu { display: block; }
.ip-navbar ul.sub-menu li { width: 100%; }
.ip-navbar ul.sub-menu a {
  display: block; color: #d6d8db; text-decoration: none; font-size: 14px;
  padding: 12px 20px; border-bottom: 1px solid #2a2e34; text-transform: none; letter-spacing: 0;
}
.ip-navbar ul.sub-menu a:hover { background: var(--ip-anthracite); color: var(--ip-amber-soft); }
.ip-nav-toggle, .ip-nav-burger { display: none; }
@media (max-width: 820px) {
  .ip-topbar { justify-content: center; padding: 10px 16px; gap: 8px 18px; }
  .ip-topbar .ip-logo img, .ip-topbar img.logo, .ip-topbar .custom-logo { height: 56px !important; }
  .ip-topbar .coords { justify-content: center; gap: 8px 18px; }
  .ip-topbar .coords a { font-size: 13px; }
  .ip-flags { border-left: none; padding-left: 0; }
  .ip-nav-burger {
    display: block; background: var(--ip-black); color: #fff; text-align: center;
    padding: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    font-size: 14px; cursor: pointer; border-bottom: 3px solid var(--ip-amber);
  }
  .ip-navbar { border-bottom: none; }
  .ip-navbar .inner { display: none; }
  .ip-nav-toggle:checked ~ .ip-navbar .inner { display: block; }
  .ip-navbar ul.ip-menu, .ip-navbar ul { flex-direction: column; }
  .ip-navbar ul li { width: 100%; }
  .ip-navbar ul li > a { padding: 13px 20px; border-bottom: 1px solid #2a2e34; margin-bottom: 0; }
  .ip-navbar ul li ul.sub-menu { display: block; position: static; min-width: 0; box-shadow: none; border-top: none; background: #101215; }
  .ip-navbar ul.sub-menu a { padding-left: 38px; font-size: 13px; }
}

/* ---- Pied de page ---- */
.site-footer {
  background: var(--ip-black);
  color: #b8bbbf;
  border-top: 3px solid var(--ip-amber);
}
.site-footer a { color: #d6d8db; }

/* ---- Accueil : masquer le titre de page (le héros a déjà son H1) ---- */
.home .entry-header { display: none; }

/* ---- Hiérarchie des titres : H1 dominant, H2/H3 raisonnables ---- */
h1.entry-title, .entry-header h1 { font-size: 2.4em !important; line-height: 1.2; }
.entry-content h2 { font-size: 1.5em; }
.entry-content h3 { font-size: 1.18em; }
