/*
Theme Name: Devis Piscine LU
Theme URI: https://www.devis-piscine.lu/
Author: Exoa
Description: Thème sur mesure pour devis-piscine.lu — portail de référence piscine au Luxembourg. Guides SEO, simulateur de budget, demande de devis, annuaire de piscinistes. Léger, sans jQuery, polices auto-hébergées, schema.org intégré.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devis-piscine
Tags: custom-theme, seo, blog, one-column, custom-menu
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --navy: #0F2A54;
  --navy-mid: #163B73;
  --blue-deep: #1B6FB8;
  --blue: #1B8FE3;
  --blue-light: #7CC6F5;
  --navy-footer: #0B1F3F;

  --text: #1C2733;
  --text-2: #52657A;
  --text-3: #7B8EA1;
  --text-dark-bg: #DCEBF8;
  --text-footer: #C7D8E8;
  --text-footer-meta: #8FA6BD;
  --meta-dark-bg: #9FC7E8;
  --reassurance: #BFDCF2;
  --text-lead: #445A70;
  --placeholder-label: #6C8199;

  --bg: #ffffff;
  --bg-neutral: #F5F7FA;
  --bg-blue-1: #F5F9FD;
  --bg-blue-2: #F8FBFE;
  --bg-blue-3: #EAF3FB;

  --border: #E4EBF2;
  --border-blue: #DCE8F3;
  --border-blue-2: #D8E4EF;
  --border-blue-3: #E7F0F8;
  --border-field: #C9D8E6;

  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --gutter: 18px;
  --shadow-card: 0 10px 24px rgba(15, 42, 84, 0.08);
  --ease: 160ms ease;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--navy); text-decoration: underline; }

::selection { background: #CDE8FA; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--navy); text-wrap: balance; }

button { font: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  width: auto; height: auto; clip: auto;
  background: #fff; color: var(--navy);
  padding: 12px 18px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 700;
}

/* Sur-titre / eyebrow */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

/* ==========================================================================
   3. Boutons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 24px;
  min-height: 48px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); color: #fff; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--blue); color: #fff; }

/* Primaire sur fond sombre : survol -> blanc */
.btn--on-dark { background: var(--blue); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--navy); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 13px 24px;
}
.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn--sm { font-size: 14px; padding: 12px 18px; min-height: 44px; border-radius: 8px; }

/* ==========================================================================
   4. En-tête
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-brand { display: block; flex: 0 0 auto; }
.site-brand img { height: 46px; width: auto; }
.site-brand--text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
}

.main-nav { flex: 1 1 280px; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.main-nav a { color: var(--navy); padding: 6px 0; display: inline-block; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav .current-menu-item > a,
.main-nav .current-menu-parent > a,
.main-nav .current_page_item > a { color: var(--blue); }
/* Sous-menus : repliés en liste sur mobile, flottants sur desktop */
.main-nav .sub-menu { display: none; }

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-blue-2);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* ==========================================================================
   5. Blocs génériques
   ========================================================================== */
.section { padding: 48px var(--gutter); }
.section--tight { padding: 44px var(--gutter) 8px; }
.section--neutral {
  background: var(--bg-neutral);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px var(--gutter);
}
.section__inner { max-width: var(--container); margin: 0 auto; }
.section__title { font-weight: 800; font-size: clamp(24px, 4vw, 34px); margin: 0 0 8px; }
.section__lead { color: var(--text-2); margin: 0 0 26px; max-width: 44em; }
.section__head {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.section__head .section__title { margin: 0; }
.section__link { font-family: var(--font-head); font-weight: 700; font-size: 15px; }

.grid { display: grid; gap: 18px; }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid--270 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.grid--220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* Média : image réelle ou placeholder rayé */
.media {
  background: repeating-linear-gradient(135deg, var(--bg-blue-3), var(--bg-blue-3) 9px, #DCEAF6 9px, #DCEAF6 18px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__label { font-family: var(--font-mono); font-size: 11px; color: var(--placeholder-label); padding: 8px; text-align: center; }

/* ==========================================================================
   6. Accueil — hero
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, var(--blue-deep) 100%);
  color: #fff;
  padding: 56px var(--gutter) 64px;
}
.hero__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; align-items: center;
}
.hero .eyebrow { color: var(--blue-light); }
.hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
  margin: 0 0 18px;
}
.hero__lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-dark-bg);
  margin: 0 0 28px;
  max-width: 30em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__reassurance {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: 15px; color: var(--reassurance);
  list-style: none; margin: 0; padding: 0;
}
.hero__visual {
  border-radius: 16px; overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: repeating-linear-gradient(135deg, var(--blue-deep), var(--blue-deep) 10px, #2380CE 10px, #2380CE 20px);
  align-items: flex-end;
}
.hero__visual .media__label {
  background: rgba(15, 42, 84, 0.85); color: #fff;
  padding: 7px 10px; border-radius: 6px; font-size: 12px;
}

/* ==========================================================================
   7. Accueil — cartes
   ========================================================================== */
.door {
  display: block;
  background: var(--bg-blue-1);
  border: 1px solid var(--border-blue);
  border-radius: 14px;
  padding: 24px;
  color: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.door:hover { border-color: var(--blue); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; }
.door__dot { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.door__dot--blue { background: var(--blue); }
.door__dot--navy { background: var(--navy); }
.door__dot--light { background: var(--blue-light); }
.door h2, .door h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.door p { margin: 0 0 10px; color: var(--text-2); font-size: 16px; }
.door__more { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--blue); }

.silo {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.silo:hover { border-color: var(--blue); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; }
.silo__media { height: 118px; }
.silo__body { padding: 18px; }
.silo h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.silo p { margin: 0 0 8px; font-size: 15px; color: var(--text-2); }
.silo__count { font-size: 13px; color: var(--text-3); }

/* Simulateur — aperçu des étapes */
.steps-card {
  background: #fff; border: 1px solid var(--border-blue);
  border-radius: 16px; padding: 22px; display: grid; gap: 10px;
}
.steps-card__row {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 14px;
  background: var(--bg-blue-2); border: 1px solid var(--border-blue-3);
  border-radius: 10px;
}
.steps-card__n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps-card__title { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy); }
.steps-card__hint { font-size: 14px; color: var(--placeholder-label); }

/* ==========================================================================
   8. Cartes d'article
   ========================================================================== */
.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.card:hover { border-color: var(--blue); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; }
.card__media { height: 170px; flex: 0 0 auto; }
.card__media--sm { height: 160px; }
.card__body { padding: 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card__cat {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 8px;
}
.card__title { font-size: 19px; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.card__title--sm { font-size: 18px; }
.card__excerpt { margin: 0 0 14px; font-size: 16px; color: var(--text-2); }
.card__meta { margin-top: auto; font-size: 14px; color: var(--text-3); }

/* Article à la une (blog) */
.featured {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: #fff; color: inherit; margin-bottom: 28px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.featured:hover { border-color: var(--blue); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; }
.featured__media { min-height: 260px; }
.featured__body { padding: 28px; }
.featured__title { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; margin: 0 0 12px; }

/* ==========================================================================
   9. Annuaire piscinistes (section sombre)
   ========================================================================== */
.pros { background: var(--navy); color: #fff; padding: 52px var(--gutter); }
.pros h2 { color: #fff; }
.pros .section__lead { color: var(--text-dark-bg); }
.pro-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column;
}
.pro-card h3 { color: #fff; font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.pro-card__zone { font-size: 14px; color: var(--meta-dark-bg); margin: 0 0 12px; }
.pro-card p { color: var(--text-dark-bg); font-size: 16px; margin: 0 0 18px; }
.pro-card .btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   10. Newsletter
   ========================================================================== */
.newsletter { padding: 52px var(--gutter); }
.newsletter__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.newsletter__form {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin: 22px 0 12px;
}
.newsletter__form input[type="email"] {
  flex: 1 1 260px; min-height: 48px;
  padding: 12px 16px; font-size: 16px; font-family: var(--font-body);
  border: 1px solid var(--border-field); border-radius: 10px;
  color: var(--text); background: #fff;
}
.newsletter__note { font-size: 13px; color: var(--text-3); margin: 0; }

/* ==========================================================================
   11. Fil d'Ariane & bandeaux
   ========================================================================== */
.page-head { background: var(--bg-blue-1); padding: 40px var(--gutter); border-bottom: 1px solid var(--border); }
.page-head__inner { max-width: var(--container); margin: 0 auto; }
.page-head h1 { font-weight: 800; font-size: clamp(28px, 5vw, 44px); margin: 8px 0 12px; }
.page-head__lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); margin: 0; max-width: 46em; }

.breadcrumb { font-size: 14px; color: var(--text-3); margin: 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li::after { content: '›'; margin-left: 6px; color: var(--text-3); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb--on-dark, .breadcrumb--on-dark a { color: var(--meta-dark-bg); }

/* Chips catégories */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center;
  /* 44px et non 40 : la maquette indique 40px, mais le cahier des charges
     impose 44px de cible tactile (WCAG 2.1 AA). Rendu visuellement identique. */
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--border-blue-2); border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--navy); background: #fff;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.chip:hover, .chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); text-decoration: none; }

/* ==========================================================================
   12. Catégorie
   ========================================================================== */
.cat-hero {
  background: linear-gradient(150deg, var(--navy), var(--blue-deep));
  color: #fff; padding: 48px var(--gutter);
}
.cat-hero__inner { max-width: var(--container); margin: 0 auto; }
.cat-hero h1 { color: #fff; font-weight: 800; font-size: clamp(28px, 5vw, 44px); margin: 8px 0 14px; }
.cat-hero p { color: var(--text-dark-bg); margin: 0 0 14px; max-width: 46em; }
.cat-hero__meta { font-size: 14px; color: var(--meta-dark-bg); display: flex; flex-wrap: wrap; gap: 8px 20px; }

.subtopic {
  display: block; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: var(--navy); background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.subtopic:hover { border-color: var(--blue); box-shadow: var(--shadow-card); text-decoration: none; }

/* Liste d'articles en cartes horizontales */
.post-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: #fff; color: inherit; margin-bottom: 16px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.post-row:hover { border-color: var(--blue); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; }
.post-row__media { min-height: 150px; }
.post-row__body { padding: 20px 22px; grid-column: span 2; }
.post-row__title { font-size: 20px; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }

/* CTA de bas de page */
.cta-band {
  background: var(--bg-blue-1); border: 1px solid var(--border-blue);
  border-radius: 16px; padding: 28px; text-align: center;
  margin: 8px 0 0;
}
.cta-band h2 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; margin: 0 0 10px; }
.cta-band p { color: var(--text-2); margin: 0 0 20px; }

/* ==========================================================================
   13. Article
   ========================================================================== */
.article-head { background: var(--bg-blue-1); padding: 40px var(--gutter) 36px; border-bottom: 1px solid var(--border); }
.article-head__inner { max-width: var(--container); margin: 0 auto; }
.article-head h1 { font-weight: 800; font-size: clamp(28px, 5vw, 42px); line-height: 1.12; margin: 8px 0 14px; }
.article-head__lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-lead); margin: 0 0 18px; max-width: 44em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text-3); margin: 0; list-style: none; padding: 0; }

.article-visual {
  max-width: 1000px; margin: 28px auto 0; padding: 0 var(--gutter);
}
.article-visual .media {
  height: clamp(200px, 40vw, 380px);
  border-radius: 16px;
}

.entry-content {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 0 var(--gutter);
  font-size: 18px;
  line-height: 1.75;
}
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 18px; }
.entry-content h2 { font-size: clamp(23px, 3.4vw, 30px); font-weight: 800; margin: 36px 0 14px; scroll-margin-top: 90px; }
.entry-content h3 { font-size: 21px; font-weight: 700; line-height: 1.25; margin: 28px 0 10px; scroll-margin-top: 90px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px; padding-left: 22px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: 12px; margin: 24px auto; }
.entry-content figure { margin: 24px 0; }
.entry-content figcaption { font-size: 14px; color: var(--text-3); text-align: center; margin-top: 8px; }
.entry-content blockquote {
  margin: 24px 0; padding: 4px 0 4px 20px;
  border-left: 4px solid var(--blue); color: var(--text-2); font-style: italic;
}
.entry-content strong { font-weight: 600; }

/* Sommaire */
.toc {
  background: var(--bg-blue-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px; margin: 0 0 32px;
}
.toc__title {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 12px;
}
.toc ol { margin: 0; padding-left: 20px; font-size: 16px; }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--blue); }

/* Encadré « À retenir » */
.callout {
  background: var(--bg-blue-3);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 20px 22px;
  margin: 28px 0;
}
.callout__title {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 8px;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* Tableau comparatif */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 28px 0;
}
.entry-content table, .table-wrap table {
  width: 100%; border-collapse: collapse; font-size: 16px; margin: 0;
}
.entry-content table th, .table-wrap table th {
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  text-align: left; padding: 14px 16px;
}
.entry-content table td, .table-wrap table td {
  padding: 13px 16px; border-top: 1px solid var(--border); vertical-align: top;
}
.entry-content table tbody tr:nth-child(even),
.table-wrap table tbody tr:nth-child(even) { background: var(--bg-blue-2); }

/* FAQ */
.faq { margin: 32px 0; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  color: var(--navy); cursor: pointer;
  min-height: 44px; display: flex; align-items: center;
  padding: 12px 0; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 22px; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > *:not(summary) { padding-bottom: 8px; }

/* CTA inline */
.cta-inline {
  background: linear-gradient(150deg, var(--navy), var(--blue-deep));
  color: #fff; border-radius: 16px; padding: 28px; margin: 32px 0;
}
.cta-inline h2, .cta-inline h3 { color: #fff; margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.cta-inline p { color: var(--text-dark-bg); margin: 0 0 20px; }
.cta-inline .btn { background: #fff; color: var(--navy); }
.cta-inline .btn:hover { background: var(--blue-light); color: var(--navy); }

/* Encart auteur */
.author-box {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; margin: 36px 0 0;
}
.author-box__avatar {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; background: var(--bg-blue-3);
}
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--navy); margin: 0 0 4px; }
.author-box__desc { font-size: 15px; color: var(--text-2); margin: 0; }

/* À lire ensuite */
.read-next { background: var(--bg-neutral); border-top: 1px solid var(--border); padding: 48px var(--gutter); margin-top: 48px; }

/* Partage / mentions */
.affiliate-note {
  font-size: 14px; color: var(--text-3);
  border-top: 1px solid var(--border); padding-top: 16px; margin-top: 28px;
}

/* ==========================================================================
   14. Pagination
   ========================================================================== */
.pagination { margin: 36px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--border-blue-2); border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--navy); background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--blue); text-decoration: none; }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ==========================================================================
   15. Formulaires (simulateur, devis, CF7/WPForms)
   ========================================================================== */
.form-card {
  background: #fff; border: 1px solid var(--border-blue);
  border-radius: 16px; padding: clamp(20px, 4vw, 32px);
  max-width: 760px; margin: 0 auto;
}
.field { margin-bottom: 18px; }
.field > label, .field__legend {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 15px; color: var(--navy); margin-bottom: 8px;
}
.field .required { color: #C2410C; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea {
  width: 100%; min-height: 48px;
  padding: 12px 14px; font-size: 16px; font-family: var(--font-body);
  color: var(--text); background: #fff;
  border: 1px solid var(--border-field); border-radius: 10px;
}
.field textarea, .wpcf7 textarea { min-height: 130px; resize: vertical; }
.field__hint { font-size: 14px; color: var(--text-3); margin: 6px 0 0; }
.field__error { font-size: 14px; color: #C2410C; margin: 6px 0 0; }

/* Champs d'un même groupe : jamais de colonnes rigides */
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

fieldset { border: 0; margin: 0 0 18px; padding: 0; }

/* Choix en tuiles (type de piscine, forme…) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 12px 14px;
  background: var(--bg-blue-2); border: 1px solid var(--border-blue-3); border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy);
  transition: border-color var(--ease), background var(--ease);
}
.choice input:hover + span { border-color: var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Simulateur multi-étapes */
.sim__progress {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 24px; padding: 0;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--text-3);
}
.sim__progress li { display: flex; align-items: center; gap: 6px; }
.sim__progress li > b {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-blue-3); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.sim__progress li.is-done > b { background: var(--blue-light); color: var(--navy); }
.sim__progress li.is-current > b { background: var(--blue); color: #fff; }
.sim__progress li.is-current { color: var(--navy); }
.sim__step[hidden] { display: none !important; }
.sim__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sim__result {
  background: linear-gradient(150deg, var(--navy), var(--blue-deep));
  color: #fff; border-radius: 16px; padding: 28px; text-align: center;
}
.sim__result h3 { color: #fff; font-size: 20px; margin: 0 0 10px; }
.sim__amount {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(28px, 6vw, 42px); line-height: 1.1; margin: 0 0 10px;
}
.sim__result p { color: var(--text-dark-bg); margin: 0 0 18px; }
.sim__disclaimer { font-size: 14px; color: var(--meta-dark-bg); margin: 0; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-notice { border-radius: 12px; padding: 16px 18px; margin: 0 0 20px; font-size: 16px; }
.form-notice--ok { background: var(--bg-blue-3); border-left: 4px solid var(--blue); color: var(--navy); }
.form-notice--err { background: #FEF2E8; border-left: 4px solid #C2410C; color: #7C2D12; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.consent input { flex: 0 0 auto; width: 20px; height: 20px; min-height: 20px; margin-top: 3px; }

/* ==========================================================================
   16. Pied de page
   ========================================================================== */
.site-footer { background: var(--navy-footer); color: var(--text-footer); padding: 44px var(--gutter) 28px; margin-top: 0; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.site-footer h2, .site-footer h3 {
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.site-footer li { margin-bottom: 2px; }
.site-footer a {
  color: var(--text-footer);
  display: inline-flex; align-items: center;
  min-height: 32px; padding: 4px 0;
}
.site-footer a:hover { color: #fff; }
.footer-brand__mark { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 14px; }
.footer-brand p { font-size: 16px; margin: 0; color: var(--text-footer); }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 32px; padding-top: 20px;
  font-size: 13px; color: var(--text-footer-meta);
  display: grid; gap: 10px;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--text-footer-meta); text-decoration: underline; }

/* ==========================================================================
   17. 404 / recherche
   ========================================================================== */
.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.search-form input[type="search"] {
  flex: 1 1 220px; min-height: 48px; padding: 12px 16px;
  font-size: 16px; font-family: var(--font-body);
  border: 1px solid var(--border-field); border-radius: 10px;
}

/* ==========================================================================
   18. Points de rupture (320 / 768 / 1024 / 1440)
   ========================================================================== */
@media (max-width: 767px) {
  /* Menu hamburger : le CTA « Devis gratuit » reste visible en permanence */
  .nav-toggle { display: inline-flex; }
  .main-nav {
    flex: 1 1 100%;
    order: 10;
    display: none;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 10px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 0; min-height: 44px; display: flex; align-items: center; width: 100%; }
  .main-nav .sub-menu { display: block; padding-left: 16px; }

  .site-brand img { height: 38px; }

  /* Rien en colonnes : tout retourne à la ligne */
  .post-row { grid-template-columns: 1fr; }
  .post-row__body { grid-column: 1; padding: 18px; }
  .post-row__media { min-height: 190px; }
  .featured__body { padding: 20px; }
  .hero { padding: 40px var(--gutter) 48px; }
  .hero__visual { min-height: 220px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section, .section--neutral, .pros, .newsletter, .read-next { padding-left: var(--gutter); padding-right: var(--gutter); }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .entry-content { font-size: 17px; }
  .cta-inline, .cta-band, .form-card { padding: 20px; }
  .author-box { padding: 18px; }

  /* Cibles tactiles : 44px minimum dans le pied de page et la barre basse */
  .site-footer a { min-height: 44px; padding: 8px 0; }
  .site-footer li { margin-bottom: 0; }
  .site-footer__bottom a { min-height: 0; display: inline; }
}

@media (min-width: 768px) {
  /* Sous-menus flottants */
  .main-nav li { position: relative; }
  .main-nav .sub-menu {
    display: block;
    position: absolute; top: 100%; left: 0; z-index: 50;
    min-width: 220px; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-card);
    flex-direction: column; gap: 0;
    opacity: 0; visibility: hidden;
    transition: opacity var(--ease), visibility var(--ease);
  }
  .main-nav li:hover > .sub-menu,
  .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
  .main-nav .sub-menu a { padding: 10px 12px; width: 100%; border-radius: 8px; }
  .main-nav .sub-menu a:hover { background: var(--bg-blue-1); }
}

@media (min-width: 1440px) {
  body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .cta-inline, .cta-band, .newsletter, .pros, .read-next, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
}

/* ==========================================================================
   19. Utilitaires complémentaires
   ========================================================================== */
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border-blue-2);
  padding: 13px 24px;
}
.btn--outline-navy:hover { border-color: var(--navy); background: var(--bg-blue-1); color: var(--navy); }

.entry-content > .callout:first-child, .entry-content > .toc:first-child { margin-top: 0; }
.u-center { text-align: center; }
.u-mt0 { margin-top: 0; }
.u-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   20. Contenu pleine largeur
   Pour les pages qui portent leur propre mise en page (hubs, comparatifs).
   ========================================================================== */
/*
 * « Pleine largeur » ne veut pas dire « collé aux bords » : le contenu reprend
 * le conteneur du thème (1180 px centré + gouttières) au lieu du corps
 * d'article à 760 px. Sans cela, un contenu qui n'a pas de conteneur propre
 * s'étale jusqu'au bord de l'écran et devient illisible.
 */
.entry-content--full {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter);
  font-size: 17px;
}
.entry-content--full > * {
  max-width: none;
}
/* Une section qui veut réellement déborder le conteneur le demande. */
.entry-content--full > .sc-section,
.entry-content--full > .full-bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}
/* Garde-fou : rien ne doit déborder horizontalement, même en pleine largeur. */
.is-full-width { overflow-x: hidden; }
.entry-content--full img,
.entry-content--full video,
.entry-content--full iframe { max-width: 100%; }
.entry-content--full table { width: 100%; }

/* ==========================================================================
   21. Composants comparatif : note, fiche produit, podium, verdict
   ========================================================================== */

/* Note sur 5 */
.note { display: inline-flex; align-items: center; gap: 8px; }
.note__bg {
  position: relative; display: inline-block;
  width: 92px; height: 16px;
  background: var(--border-blue-2);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 18.4px);
  mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 18.4px);
  border-radius: 2px;
}
.note__fg { position: absolute; inset: 0 auto 0 0; background: #F2A33C; }
.note__val { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy); }

/* Grille de fiches produit */
.produits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 28px 0; }

.produit {
  display: flex; flex-direction: column;
  position: relative;
  background: #fff;
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.produit:hover { border-color: var(--blue); box-shadow: var(--shadow-card); }

.produit__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  margin: 0; padding: 6px 12px;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px;
}
.produit__media {
  height: 200px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-blue-2); border-bottom: 1px solid var(--border);
  padding: 14px;
}
.produit__media img { max-height: 100%; width: auto; object-fit: contain; }
.produit__body { padding: 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.produit__nom { font-size: 19px; font-weight: 700; margin: 0 0 10px; line-height: 1.25; }
.produit__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.produit__prix {
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: var(--navy); background: var(--bg-blue-3);
  padding: 4px 12px; border-radius: 999px;
}
.produit__accroche { margin: 0 0 12px; color: var(--text-2); font-size: 16px; }
.produit__texte { font-size: 16px; color: var(--text-2); }
.produit__texte p { margin: 0 0 10px; }

.produit__pm { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.pm { border-radius: 10px; padding: 12px 14px; }
.pm--plus { background: #EAF6EF; }
.pm--moins { background: #FDF1EA; }
.pm__title {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px;
}
.pm--plus .pm__title { color: #1F6B43; }
.pm--moins .pm__title { color: #A4451F; }
.pm ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--text); }
.pm li { margin-bottom: 4px; }

.produit__cta { margin: auto 0 0; padding-top: 14px; }
.produit__cta .btn { width: 100%; }
.produit__note-prix { margin: 8px 0 0; font-size: 13px; color: var(--text-3); text-align: center; }

/* Podium : 3 recommandations */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 28px 0; }
.podium__item {
  display: flex; flex-direction: column;
  background: var(--bg-blue-1); border: 1px solid var(--border-blue);
  border-radius: 14px; overflow: hidden;
}
.podium__label {
  margin: 0; padding: 10px 16px;
  background: var(--blue); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
}
.podium__item:nth-child(2) .podium__label { background: var(--navy); }
.podium__item:nth-child(3) .podium__label { background: var(--blue-light); color: var(--navy); }
.podium__media {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 12px;
}
.podium__media img { max-height: 100%; width: auto; object-fit: contain; }
.podium__body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.podium__body h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.podium__why { font-size: 15px; color: var(--text-2); margin: 0 0 14px; }
.podium__body .btn { margin-top: auto; }

/* Verdict */
.verdict {
  background: var(--bg-blue-2);
  border: 1px solid var(--border-blue);
  border-left: 4px solid var(--navy);
  border-radius: 0 14px 14px 0;
  padding: 22px 24px; margin: 32px 0;
}
.verdict__title {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 10px;
}
.verdict p:last-child { margin-bottom: 0; }

/* Pour qui ? */
.pour-qui { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 28px 0; }
.cas { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.cas__profil {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--navy); margin: 0 0 6px;
}
.cas__reco { margin: 0; font-size: 15px; color: var(--text-2); }

/* Section pleine largeur utilisable depuis l'éditeur */
.sc-section { padding: 44px var(--gutter); }
.sc-section--clair { background: var(--bg-neutral); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sc-section__inner { max-width: var(--container); margin: 0 auto; }
.sc-section__inner > p { color: var(--text-2); max-width: 46em; }

/* Dans un corps d'article à 760px, les composants peuvent respirer un peu plus */
.entry-content:not(.entry-content--full) .produits,
.entry-content:not(.entry-content--full) .podium { margin-left: 0; margin-right: 0; }

@media (max-width: 767px) {
  .produit__media { height: 170px; }
  .produit__pm { grid-template-columns: 1fr; }
  .sc-section { padding: 32px var(--gutter); }
}

/* ==========================================================================
   22. Simulateur de budget (page-simulateur.php)
   ========================================================================== */
.sim2-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, var(--blue-deep) 100%);
  color: #fff;
  padding: 36px var(--gutter) 30px;
}
.sim2-hero__inner { max-width: 860px; margin: 0 auto; }
.sim2-hero h1 {
  color: #fff; font-weight: 800;
  font-size: clamp(26px, 5vw, 40px); line-height: 1.1; margin: 0 0 10px;
}
.sim2-hero__lead { margin: 0 0 24px; color: var(--text-dark-bg); }

.sim2-progress { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sim2-progress li { flex: 1 1 0; min-width: 0; display: grid; gap: 6px; }
.sim2-progress__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.sim2-progress li.is-reached .sim2-progress__bar { background: var(--blue-light); }
.sim2-progress__label {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--meta-dark-bg);
}
.sim2-progress li.is-current .sim2-progress__label { color: #fff; }

.sim2-body { max-width: 860px; margin: 0 auto; padding: 32px var(--gutter) 56px; }
.sim2-step[hidden] { display: none !important; }
/* Le legend porte le sur-titre, le titre et l'indice : un legend se place
   toujours en haut de son fieldset, l'ordre visuel est donc garanti. */
.sim2-step { border: 0; margin: 0; padding: 0; }
.sim2-step__legend { display: block; width: 100%; padding: 0; margin: 0; float: left; }
.sim2-step__legend + * { clear: both; }
.sim2-step__eyebrow {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin: 0 0 6px;
}
.sim2-step__title {
  display: block;
  font-family: var(--font-head); color: var(--navy);
  font-weight: 800; font-size: clamp(22px, 3.6vw, 30px); line-height: 1.2; margin: 0 0 6px;
}
.sim2-step__hint { display: block; color: var(--text-2); margin: 0 0 22px; }

.sim2-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.sim2-opt { position: relative; }
.sim2-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sim2-opt__box {
  text-align: left; cursor: pointer;
  padding: 16px; border-radius: 12px; min-height: 88px;
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 2px solid var(--border);
  transition: border-color var(--ease), background var(--ease);
}
.sim2-opt__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.sim2-opt__label { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--navy); }
.sim2-opt__hint { font-size: 14px; color: var(--text-2); }
.sim2-opt__dot {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border-field); background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}
.sim2-opt--multi .sim2-opt__dot { border-radius: 6px; }
.sim2-opt input:hover + .sim2-opt__box { border-color: var(--blue-light); }
.sim2-opt input:focus-visible + .sim2-opt__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.sim2-opt input:checked + .sim2-opt__box { background: var(--bg-blue-3); border-color: var(--blue); }
.sim2-opt input:checked + .sim2-opt__box .sim2-opt__dot {
  border-color: var(--blue); background: var(--blue);
  box-shadow: inset 0 0 0 3px var(--bg-blue-3);
}

.sim2-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border);
}
/* Un display explicite écrase l'attribut hidden : on le rétablit partout où
   le JS s'appuie sur `el.hidden` pour masquer un bloc. */
.sim2-actions[hidden],
.sim2-gate[hidden],
.sim2-result[hidden],
.sim2-error[hidden] { display: none !important; }
.sim2-actions .btn--back { visibility: hidden; }
.sim2-actions .btn--back.is-shown { visibility: visible; }
.btn[disabled], .btn[aria-disabled="true"] { background: #B9CCDD; cursor: not-allowed; }
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover { background: #B9CCDD; color: #fff; }

/* Résultat verrouillé : la carte et le formulaire se superposent */
.sim2-result-stack { display: grid; }
.sim2-result {
  grid-area: 1 / 1;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.sim2-result.is-locked {
  filter: blur(7px); opacity: 0.55;
  pointer-events: none; user-select: none;
}
.sim2-card { border: 1px solid var(--border-blue); border-radius: 16px; overflow: hidden; background: #fff; }
.sim2-card__head { background: var(--bg-blue-1); padding: 26px; border-bottom: 1px solid var(--border); }
.sim2-card__eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px;
}
.sim2-card__range {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(30px, 6vw, 46px); color: var(--navy); line-height: 1.1;
}
.sim2-card__summary { margin: 8px 0 0; color: var(--text-2); }
.sim2-card__rows { padding: 10px 26px 4px; margin: 0; }
.sim2-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid #EEF3F8; flex-wrap: wrap;
}
.sim2-row dt { color: var(--text-lead); margin: 0; }
.sim2-row dd { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin: 0; }
.sim2-card__foot { padding: 22px 26px 26px; display: grid; gap: 14px; }
.sim2-card__legal { margin: 0; font-size: 15px; color: var(--placeholder-label); }
.sim2-card__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.sim2-gate {
  grid-area: 1 / 1; align-self: center; justify-self: center;
  width: 100%; max-width: 520px; padding: 12px 0; z-index: 2;
}
.sim2-gate form {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 42, 84, 0.22);
  border: 1px solid var(--border-blue);
  display: grid; gap: 14px;
}
.sim2-gate h2 { font-weight: 800; font-size: 23px; margin: 0 0 6px; line-height: 1.2; }
.sim2-gate__lead { margin: 0; font-size: 15px; color: var(--text-2); }
.sim2-gate__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sim2-gate__grid--3 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.sim2-gate label.field-label {
  display: grid; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy);
}
.sim2-gate input[type="text"], .sim2-gate input[type="email"],
.sim2-gate input[type="tel"], .sim2-gate select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--border-field); border-radius: 10px;
  font-family: var(--font-body); font-size: 16px; color: var(--text); background: #fff;
}
.sim2-gate__consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--text-lead); line-height: 1.45; cursor: pointer;
}
.sim2-gate__consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.sim2-gate button[type="submit"] {
  min-height: 52px; border: 0; border-radius: 10px;
  background: var(--blue); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; cursor: pointer;
}
.sim2-gate button[type="submit"]:hover { background: var(--navy); }
.sim2-gate__note { margin: 0; font-size: 13px; color: var(--text-3); text-align: center; }
.sim2-error {
  margin: 0; padding: 10px 12px; border-radius: 8px;
  background: #FDECEC; color: #A32020; font-size: 15px;
}

/* ==========================================================================
   23. Demande de devis (page-devis.php)
   ========================================================================== */
.devis-form { max-width: 800px; margin: 0 auto; display: grid; gap: 20px; }
.devis-fs {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; margin: 0;
}
.devis-fs > legend {
  font-family: var(--font-head); font-weight: 800; font-size: 19px;
  color: var(--navy); padding: 0 8px;
}
.devis-fs > legend b { color: var(--blue); margin-right: 6px; }
.devis-group { margin-bottom: 20px; }
.devis-group:last-child { margin-bottom: 0; }
.devis-group__label {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--navy); margin-bottom: 10px;
}
.devis-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.devis-chip { position: relative; }
.devis-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.devis-chip span {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--border-blue-2); border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--navy); background: #fff;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.devis-chip input:hover + span { border-color: var(--blue); }
.devis-chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.devis-chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }

.devis-dropzone {
  border: 2px dashed var(--border-field); border-radius: 12px;
  padding: 22px; text-align: center; background: var(--bg-blue-2);
}
.devis-dropzone__title { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.devis-dropzone__hint { margin: 0; font-size: 15px; color: var(--text-2); }

.devis-submit { width: 100%; min-height: 56px; font-size: 17px; }
.devis-note { margin: 0; font-size: 14px; color: var(--text-3); text-align: center; }

/* Confirmation */
.devis-done { max-width: 620px; margin: 0 auto; text-align: center; }
.devis-done__tick {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 18px;
}
.devis-done h2 { font-weight: 800; font-size: clamp(24px, 4vw, 32px); margin: 0 0 10px; }
.devis-done > p { color: var(--text-2); margin: 0 0 26px; }
.devis-steps { display: grid; gap: 12px; text-align: left; margin: 0 0 26px; }
.devis-steps__item {
  display: flex; gap: 14px; align-items: center;
  background: var(--bg-blue-2); border: 1px solid var(--border-blue-3);
  border-radius: 12px; padding: 14px 16px;
}
.devis-steps__n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   24. Annuaire des piscinistes
   ========================================================================== */
.dir-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, var(--blue-deep) 100%);
  color: #fff; padding: 40px var(--gutter) 36px;
}
.dir-hero__inner { max-width: var(--container); margin: 0 auto; }
.dir-hero h1 { color: #fff; font-weight: 800; font-size: clamp(28px, 5vw, 44px); margin: 8px 0 12px; }
.dir-hero p { color: var(--text-dark-bg); margin: 0 0 20px; max-width: 46em; }
.dir-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.dir-search input[type="search"] {
  flex: 1 1 240px; min-height: 48px; padding: 12px 16px;
  border: 1px solid transparent; border-radius: 10px;
  font-family: var(--font-body); font-size: 16px; color: var(--text); background: #fff;
}
.dir-hero__pro { margin: 18px 0 0; font-size: 15px; color: var(--meta-dark-bg); }
.dir-hero__pro a { color: var(--blue-light); }

.dir-filters { padding: 24px var(--gutter) 0; }
.dir-filters__inner { max-width: var(--container); margin: 0 auto; }
.dir-filters__row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.dir-count { font-size: 15px; color: var(--text-3); margin: 6px 0 0; }

.dir-list { padding: 24px var(--gutter) 48px; }
.dir-list__inner { max-width: var(--container); margin: 0 auto; display: grid; gap: 16px; }

.pro-item {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.pro-item:hover { border-color: var(--blue); box-shadow: var(--shadow-card); }
.pro-item__mark {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 14px;
  background: var(--bg-blue-3); color: var(--navy);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--font-head); font-weight: 800; font-size: 20px;
}
.pro-item__mark img { width: 100%; height: 100%; object-fit: contain; }
.pro-item__body { flex: 1 1 260px; min-width: 0; }
.pro-item__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 4px; }
.pro-item__head h2, .pro-item__head h3 { font-size: 20px; font-weight: 700; margin: 0; }
.pro-item__cc {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; color: #fff; background: var(--navy);
  padding: 4px 10px; border-radius: 999px;
}
.pro-item__verified { font-size: 13px; color: #1F6B43; font-weight: 600; }
.pro-item__where { font-size: 15px; color: var(--text-3); margin: 0 0 10px; }
.pro-item__desc { margin: 0 0 12px; color: var(--text-2); font-size: 16px; }
.pro-item__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-tag {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  background: #F0F6FC; color: #1B5E9C; padding: 5px 12px; border-radius: 999px;
}
.pro-item__actions { flex: 0 0 auto; display: grid; gap: 10px; align-content: start; }

.dir-empty {
  background: var(--bg-blue-1); border: 1px solid var(--border-blue);
  border-radius: 14px; padding: 24px; text-align: center; color: var(--text-2);
}

.dir-pro-block { background: var(--navy); color: #fff; padding: 48px var(--gutter); }
.dir-pro-block__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: center;
}
.dir-pro-block h2 { color: #fff; font-weight: 800; font-size: clamp(24px, 4vw, 32px); margin: 0 0 12px; }
.dir-pro-block p { color: var(--text-dark-bg); margin: 0 0 22px; }
.dir-pro-block__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dir-pro-block .btn--white { background: #fff; color: var(--navy); }
.dir-pro-block .btn--white:hover { background: var(--blue-light); color: var(--navy); }
.dir-args { display: grid; gap: 12px; }
.dir-arg {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px; padding: 16px 18px;
}
.dir-arg strong { display: block; font-family: var(--font-head); font-size: 16px; color: #fff; margin-bottom: 4px; }
.dir-arg span { font-size: 15px; color: var(--text-dark-bg); }

@media (max-width: 767px) {
  .sim2-progress__label { font-size: 11px; }
  .sim2-options { grid-template-columns: 1fr; }
  .sim2-gate form { padding: 18px; }
  .sim2-card__head, .sim2-card__rows, .sim2-card__foot { padding-left: 18px; padding-right: 18px; }
  .devis-fs { padding: 18px; }
  .pro-item { padding: 18px; }
  .pro-item__actions { flex: 1 1 100%; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
