/* Harguil Refonte — habillage des pages intérieures (s'appuie sur style.css de la maquette). */

body.admin-bar .header .sticky-navbar.is-sticky,
body.admin-bar .header.is-sticky .navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header .sticky-navbar.is-sticky { top: 0; } }

/* ---------- Bandeau de titre ---------- */
.harguil-page-title {
  position: relative;
  padding: 90px 0 80px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(0, 38, 120, .96) 0%, rgba(0, 38, 120, .88) 45%, rgba(33, 169, 144, .80) 100%),
    url(../images/hero-2.jpg) center / cover no-repeat;
  overflow: hidden;
}
.harguil-page-title::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: #fff;
  clip-path: ellipse(60% 100% at 50% 100%);
}
.harguil-page-kicker {
  display: inline-block;
  font: 700 13px/1.6 Lexend, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.harguil-page-heading {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.15;
  margin: 0 0 22px;
  max-width: 900px;
  text-transform: none;
}
.harguil-page-title .breadcrumb { margin: 0; padding: 0; background: none; flex-wrap: wrap; }
.harguil-page-title .breadcrumb-item,
.harguil-page-title .breadcrumb-item a { color: rgba(255, 255, 255, .8); font-size: 14px; }
.harguil-page-title .breadcrumb-item a:hover { color: var(--color-primary); }
.harguil-page-title .breadcrumb-item.active { color: #fff; }
.harguil-page-title .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); content: "›"; }

/* ---------- Corps de page ---------- */
.harguil-page-body { padding: 70px 0 110px; }
.harguil-content {
  font-size: 16px;
  line-height: 1.85;
  color: #5b6178;
}
.harguil-content > *:first-child { margin-top: 0; }
.harguil-content h1, .harguil-content h2, .harguil-content h3,
.harguil-content h4, .harguil-content h5, .harguil-content h6 {
  color: var(--color-secondary);
  font-family: Lexend, sans-serif;
  line-height: 1.3;
  margin: 1.6em 0 .6em;
  text-transform: none;
}
.harguil-content h2 { font-size: 28px; }
.harguil-content h3 { font-size: 22px; }
.harguil-content h4 { font-size: 19px; }
.harguil-content p { margin: 0 0 1.2em; }
.harguil-content a { color: #1a9f88; text-decoration: underline; text-underline-offset: 3px; }
.harguil-content a:hover { color: var(--color-secondary); }
.harguil-content strong, .harguil-content b { color: var(--color-secondary); }
.harguil-content ul, .harguil-content ol { margin: 0 0 1.4em; padding-left: 0; list-style: none; }
.harguil-content ul li, .harguil-content ol li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.harguil-content ul li::before {
  content: ""; position: absolute; left: 4px; top: .7em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-primary); box-shadow: 0 0 0 4px rgba(33, 205, 173, .18);
}
.harguil-content ol { counter-reset: hr; }
.harguil-content ol li { counter-increment: hr; }
.harguil-content ol li::before {
  content: counter(hr); position: absolute; left: 0; top: .25em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-secondary); color: #fff;
  font: 700 12px/22px Lexend, sans-serif; text-align: center;
}
.harguil-content img { max-width: 100%; height: auto; border-radius: 10px; }
.harguil-content .alignleft { float: left; margin: 6px 24px 16px 0; }
.harguil-content .alignright { float: right; margin: 6px 0 16px 24px; }
.harguil-content .aligncenter { display: block; margin: 0 auto 20px; }
.harguil-content iframe, .harguil-content video { max-width: 100%; border-radius: 10px; border: 0; }
.harguil-content blockquote {
  margin: 0 0 1.4em; padding: 24px 28px;
  background: #f3f7fa; border-left: 4px solid var(--color-primary); border-radius: 0 10px 10px 0;
  color: var(--color-secondary);
}
.harguil-content-thumb { margin: 0 0 30px; }
.harguil-content-thumb img { width: 100%; border-radius: 12px; }

/* Tableaux (tarifs, catalogue, horaires) */
.harguil-content table {
  width: 100%; margin: 0 0 1.6em; border-collapse: separate; border-spacing: 0;
  border: 1px solid #e3eaf2; border-radius: 10px; overflow: hidden; font-size: 15px;
}
.harguil-content table th, .harguil-content table td {
  padding: 12px 16px; border-bottom: 1px solid #e3eaf2; vertical-align: top; text-align: left;
}
.harguil-content table th, .harguil-content table thead td {
  background: var(--color-secondary); color: #fff; font-family: Lexend, sans-serif; font-weight: 700;
}
.harguil-content table tbody tr:nth-child(even) td { background: #f7fafc; }
.harguil-content table tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) {
  .harguil-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Anciens shortcodes du thème ([row], [one_third], [fblock]…) */
.harguil-content .row, .harguil-content [class*="row_"] { margin-bottom: 20px; }
.harguil-content .one_half, .harguil-content .one_third, .harguil-content .two_third,
.harguil-content .one_fourth, .harguil-content .three_fourth, .harguil-content .five_sixth,
.harguil-content .one_sixth {
  float: left; margin-right: 4%; margin-bottom: 20px;
}
.harguil-content .one_half { width: 48%; }
.harguil-content .one_third { width: 30.66%; }
.harguil-content .two_third { width: 65.33%; }
.harguil-content .one_fourth { width: 22%; }
.harguil-content .three_fourth { width: 74%; }
.harguil-content .five_sixth { width: 100%; }
.harguil-content .last, .harguil-content .column-last { margin-right: 0; }
.harguil-content::after { content: ""; display: table; clear: both; }
@media (max-width: 767px) {
  .harguil-content .one_half, .harguil-content .one_third, .harguil-content .two_third,
  .harguil-content .one_fourth, .harguil-content .three_fourth { width: 100%; float: none; margin-right: 0; }
}

/* Formulaires (Contact Form 7) */
.harguil-content .wpcf7 { background: #f3f7fa; padding: 34px; border-radius: 12px; }
.harguil-content .wpcf7 label { display: block; font-weight: 700; color: var(--color-secondary); font-size: 14px; margin-bottom: 14px; }
.harguil-content .wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.harguil-content .wpcf7 select, .harguil-content .wpcf7 textarea {
  width: 100%; height: 54px; margin-top: 6px; padding: 0 18px;
  background: #fff; border: 1px solid #dce5ef; border-radius: 6px; font-weight: 400; color: #23284a;
}
.harguil-content .wpcf7 textarea { height: 140px; padding-top: 14px; }
.harguil-content .wpcf7 input:focus, .harguil-content .wpcf7 textarea:focus, .harguil-content .wpcf7 select:focus {
  border-color: var(--color-primary); outline: 0; box-shadow: 0 0 0 3px rgba(33, 205, 173, .2);
}
.harguil-content .wpcf7 input[type=submit] {
  height: 58px; padding: 0 34px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--color-primary); color: #fff; font: 700 15px Lexend, sans-serif; transition: background .3s;
}
.harguil-content .wpcf7 input[type=submit]:hover { background: var(--color-secondary); }

/* ---------- Colonne latérale ---------- */
.harguil-sidebar { position: sticky; top: 120px; display: grid; gap: 26px; }
.harguil-side-card {
  background: #fff; border: 1px solid #e6edf4; border-radius: 12px;
  padding: 30px; box-shadow: 0 12px 40px rgba(0, 38, 120, .06);
}
.harguil-side-title { font-size: 19px; color: var(--color-secondary); margin: 0 0 18px; text-transform: none; }
.harguil-side-nav li + li { border-top: 1px solid #edf2f7; }
.harguil-side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; color: #4b5270; font-size: 15px; font-weight: 500; transition: color .2s, padding .2s;
}
.harguil-side-nav a i { font-size: 11px; color: var(--color-primary); }
.harguil-side-nav a:hover { color: var(--color-secondary); padding-left: 6px; }
.harguil-side-nav a.is-current { color: var(--color-secondary); font-weight: 700; }
.harguil-side-results {
  background: linear-gradient(140deg, var(--color-secondary), #0b3a9c);
  border: 0; color: rgba(255, 255, 255, .82);
}
.harguil-side-results .harguil-side-title { color: #fff; }
.harguil-side-results p { color: rgba(255, 255, 255, .82); font-size: 15px; margin-bottom: 22px; }
.harguil-side-icon { display: block; font-size: 42px; color: var(--color-primary); margin-bottom: 16px; }
.harguil-side-results .btn { width: 100%; min-width: 0; justify-content: space-between; }
.harguil-side-contact li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: #4b5270; margin-bottom: 14px; }
.harguil-side-contact li:last-child { margin-bottom: 0; }
.harguil-side-contact i { color: var(--color-primary); font-size: 18px; margin-top: 4px; flex: 0 0 18px; }
.harguil-side-contact a { color: var(--color-secondary); font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 991px) {
  .harguil-sidebar { position: static; margin-top: 50px; }
  .harguil-page-title { padding: 60px 0 70px; }
  .harguil-page-body { padding: 50px 0 80px; }
}

/* ---------- Blog ---------- */
.harguil-post-card { margin-bottom: 30px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 12px 40px rgba(0, 38, 120, .07); }
.harguil-post-card .post-img img { width: 100%; height: 230px; object-fit: cover; }
.harguil-post-card .post-body { padding: 26px 28px 30px; }
.harguil-post-card .post-title { font-size: 20px; line-height: 1.4; margin: 10px 0 12px; }
.harguil-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.harguil-pagination .page-numbers {
  min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px;
  border-radius: 6px; background: #f3f7fa; color: var(--color-secondary); font-weight: 700;
}
.harguil-pagination .page-numbers.current, .harguil-pagination .page-numbers:hover { background: var(--color-primary); color: #fff; }
.harguil-404 p { font-size: 18px; margin-bottom: 30px; }

/* Ajustements contenus existants */
.harguil-content li { list-style: none; }
.harguil-content table h1, .harguil-content table h2, .harguil-content table h3,
.harguil-content table h4, .harguil-content table h5, .harguil-content table h6 {
  font-size: 16px; margin: 0; line-height: 1.5;
}
.harguil-content table a { text-transform: none; }
.harguil-content table tr:first-child td { background: var(--color-secondary); color: #fff; }
.harguil-content table tr:first-child td * { color: #fff; }
.harguil-content table tr:has(> td:only-child:empty), .harguil-content table tr:not(:has(td :not(br), td:not(:empty))) { display: none; }
.harguil-map { margin-top: 30px; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 38, 120, .08); }
.harguil-map iframe { display: block; width: 100%; height: 380px; border: 0; }
