/* Polices auto-hébergées (licence SIL OFL) */
@font-face { font-family: "HB Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "HB Lora"; src: url("../fonts/lora-italic-latin.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

/* Horizon Bleu Child — parent: Kadence */
:root {
  --hb-ink: #14325C;
  --hb-sea: #2A8FD6;
  --hb-sand: #F3EBDD;
  --hb-cream: #FBF8F2;
  --hb-line: #E8E0D2;
  --hb-copy: #354657;
  --hb-action: #A14832;
  --hb-olive: #697356;
  --hb-font-display: "HB Fraunces", Georgia, serif;
  --hb-font-body: inherit;
  --hb-space-1: .5rem;
  --hb-space-2: .75rem;
  --hb-space-3: 1rem;
  --hb-space-4: 1.5rem;
  --hb-space-5: 2rem;
  --hb-space-6: clamp(3.5rem, 8vw, 7rem);
  --hb-content-width: 1180px;
  --hb-radius-card: 24px;
  --hb-radius-hero: 48px;
  --hb-shadow: 0 16px 42px rgba(20, 50, 92, .10);
  --hb-shadow-hero: 0 28px 72px rgba(10, 34, 62, .16);
  --hb-motion-fast: 220ms;
  --hb-motion-base: 720ms;
  --hb-ease-out: cubic-bezier(.2, .72, .18, 1);
  --hb-breakpoint-tablet: 1024px;
  --hb-breakpoint-mobile: 767px;
}

body { color: var(--hb-copy); }
.entry-content .wp-block-group.alignfull { margin-block: 0 !important; }
.entry-content .wp-block-group[style*="#F5F8FB"] { background-color: var(--hb-cream) !important; }
.entry-content h1,
.entry-content h2,
.entry-content h3,
.site-footer h2,
.site-footer h3 {
  color: var(--hb-ink);
  font-family: var(--hb-font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.entry-content h1 { font-size: clamp(2.25rem, 5.4vw, 4.7rem); line-height: 1.02; }
.entry-content h2 { font-size: clamp(1.9rem, 3.5vw, 3.1rem); line-height: 1.1; }
.entry-content h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; }
.entry-content p { line-height: 1.72; }
.entry-content .wp-block-buttons { flex-wrap: wrap; }
.entry-content .wp-block-button__link.has-background {
  background: var(--hb-action) !important;
  border: 1px solid var(--hb-action) !important;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(161, 72, 50, .20);
  color: #fff !important;
  font-weight: 650;
  padding: .9em 1.55em;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.entry-content .wp-block-button__link.has-background:hover {
  background: #843C2B !important;
  border-color: #843C2B !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(161, 72, 50, .25);
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #1C6B9E !important;
  outline-offset: 3px;
}
.hb-card {
  background: #fff;
  border: 1px solid var(--hb-line) !important;
  border-radius: 22px;
  box-shadow: var(--hb-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hb-card:hover {
  transform: translateY(-5px);
  border-color: rgba(42, 143, 214, .4) !important;
  box-shadow: 0 24px 48px rgba(20, 50, 92, .14);
}
.hb-card .wp-block-image { margin: 0; }
.hb-card .wp-block-image img,
.entry-content figure.wp-block-image img,
.entry-content .wp-block-gallery img { border-radius: 16px; }
.hb-faq details {
  background: #fff;
  border: 1px solid var(--hb-line);
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 18px 20px;
}
.hb-faq summary { color: var(--hb-ink); cursor: pointer; font-weight: 650; }
.kb-form .kb-field { font-size: 16px; }
.kb-form input:not([type="checkbox"]):not([type="radio"]),
.kb-form select,
.kb-form textarea {
  border: 1px solid #B7C3CA;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 14px;
}
.kb-form textarea { min-height: 150px; }
.site-header a[href^="tel:"] { border-radius: 999px; }

@media (max-width: 767px) {
  .entry-content .wp-block-buttons .wp-block-button,
  .entry-content .wp-block-buttons .wp-block-button__link { width: 100%; }
  .entry-content .wp-block-buttons .wp-block-button__link { text-align: center; }
  .hb-card { border-radius: 18px; }
  .hb-faq details { padding: 15px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hb-card:hover, .entry-content .wp-block-button__link.has-background:hover { transform: none; }
}


/* =====================================================================
   PIED DE PAGE PREMIUM (1.3.0)
   ===================================================================== */
#colophon { position: relative; background: #0F2747 !important; }
#colophon::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -54px; height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 34 C 240 2 470 2 720 28 S 1190 58 1440 18 V56 H0 Z' fill='%230F2747'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
#colophon .site-footer-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(42, 143, 214, .26), transparent 52%),
    radial-gradient(ellipse at 0% 100%, rgba(201, 162, 77, .14), transparent 46%),
    #0F2747 !important;
}
#colophon .site-footer-wrap::after {
  content: "Horizon Bleu";
  position: absolute; left: 50%; bottom: -.28em;
  transform: translateX(-50%);
  font-family: var(--hb-font-display);
  font-size: clamp(4.5rem, 15vw, 13rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .045);
  pointer-events: none;
}
#colophon .site-top-footer-wrap,
#colophon .site-bottom-footer-wrap { background: transparent !important; position: relative; z-index: 1; }
#colophon .site-top-footer-wrap .site-footer-row-container-inner { padding-top: clamp(64px, 8vw, 104px) !important; padding-bottom: clamp(40px, 5vw, 64px) !important; }
#colophon .site-top-footer-inner-wrap { grid-template-columns: 1.6fr 1fr 1fr !important; gap: clamp(32px, 5vw, 80px) !important; }
#colophon .site-footer-top-section-4:not(:has(*)) { display: none !important; }

/* Titres de colonnes */
#colophon .widget-title {
  margin-bottom: 20px !important;
  color: #C9A24D !important;
  font-family: inherit !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .24em !important;
  text-transform: uppercase !important;
}
#colophon .footer-widget1 .widget-title {
  margin-bottom: 10px !important;
  color: #fff !important;
  font-family: var(--hb-font-display) !important;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem) !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
}
#colophon .hb-f-tagline {
  margin-bottom: 14px;
  color: #E7D3A8 !important;
  font-family: "HB Lora", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
}
#colophon .widget, #colophon .widget p { color: rgba(255, 255, 255, .74) !important; font-size: .95rem; line-height: 1.7; }

/* Liens */
#colophon .widget a {
  color: rgba(255, 255, 255, .86) !important;
  text-decoration: none !important;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease, color .2s ease;
}
#colophon .widget a:hover { color: #fff !important; background-size: 100% 1px; }
#colophon .footer-widget3 a, #colophon .footer-widget4 a { display: inline-block; padding: 4px 0; }

/* Coordonnées avec pictogrammes */
#colophon .hb-f-contact { margin: 18px 0 22px; }
#colophon .hb-f-tel, #colophon .hb-f-mail { display: inline-flex !important; align-items: center; gap: 10px; padding: 3px 0; font-weight: 600; }
#colophon .hb-f-tel::before, #colophon .hb-f-mail::before {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(201, 162, 77, .16) center / 15px 15px no-repeat;
}
#colophon .hb-f-tel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23C9A24D' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
#colophon .hb-f-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23C9A24D' d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.3 8-5.1V7H4v.2z'/%3E%3C/svg%3E"); }
#colophon .widget a.hb-f-tel, #colophon .widget a.hb-f-mail { background: none; }
#colophon .widget a.hb-f-tel:hover, #colophon .widget a.hb-f-mail:hover { color: #E7D3A8 !important; }

/* Bouton d'action */
#colophon .widget a.hb-f-cta {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: #A14832 !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  transition: transform .25s ease, background-color .25s ease;
}
#colophon .widget a.hb-f-cta:hover { background: #843C2B !important; transform: translateY(-2px); }

/* Barre du bas */
#colophon .site-bottom-footer-wrap { border-top: 1px solid rgba(255, 255, 255, .1); }
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner { padding-top: 22px !important; padding-bottom: 26px !important; }
#colophon .site-info, #colophon .site-info p { color: rgba(255, 255, 255, .55) !important; font-size: .82rem !important; }
#colophon .site-info a { color: rgba(255, 255, 255, .75) !important; text-decoration: none !important; }
#colophon .site-info a:hover { color: #fff !important; }
#colophon .site-footer-bottom-section-2:not(:has(*)) { display: none !important; }

@media (max-width: 1024px) {
  #colophon .site-top-footer-inner-wrap { grid-template-columns: 1fr 1fr !important; }
  #colophon .site-footer-top-section-1 { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  #colophon::before { top: -30px; height: 32px; }
  #colophon .site-top-footer-inner-wrap { grid-template-columns: 1fr 1fr !important; gap: 34px 20px !important; }
  #colophon .site-top-footer-wrap .site-footer-row-container-inner { padding-left: 20px !important; padding-right: 20px !important; }
  #colophon .widget a.hb-f-cta { display: block; text-align: center; }
  #colophon .site-footer-wrap::after { bottom: -.18em; }
}

/* Sélecteur de langue (GTranslate) */
.gt_float_switcher, #gt_float_wrapper { font-family: inherit !important; }
@media (min-width: 1025px) {
  body > .gtranslate_wrapper, body > [id^="gt-wrapper"], #gt_float_wrapper { display: none !important; }
}
.site-header .menu-item-gtranslate .gt_container--, .site-header .gtranslate_wrapper { font-weight: 600; }

/* 1.9.4 — logo complet (clé entière visible) : taille par hauteur pour garder un en-tête compact */
#masthead .site-branding img.custom-logo { width: auto !important; max-width: none !important; height: 108px !important; object-fit: contain; }
@media (max-width: 1024px) {
  #masthead .site-mobile-header-wrap .site-branding img.custom-logo { height: 80px !important; }
}
/* 1.9.5 — logo centré verticalement, avec de l'air */
#masthead .site-main-header-wrap .site-branding img.custom-logo { height: 100px !important; margin: 10px 0 !important; }
@media (max-width: 1024px) {
  #masthead .site-mobile-header-wrap .site-branding img.custom-logo { height: 76px !important; margin: 12px 0 !important; }
}
