/* =========================================================================
   ImmoPret 2026 — système de design
   Thème enfant Divi 5. Tout est préfixé .ip- et porté par la racine .ip-root
   afin de ne jamais entrer en conflit avec les styles du Divi Builder.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Jetons de couleur
   Repli sRGB d'abord, puis passage en oklch sur les navigateurs qui savent
   le faire (gamut plus large, dégradés propres).
   ------------------------------------------------------------------------- */
:root {
  --ip-paper: #f8f5ef;
  --ip-paper-2: #f4f0e7;
  --ip-surface: #fdfcf9;
  --ip-field: #f9f6f1;
  --ip-ink: #121b14;
  --ip-ink-1: #19221b;
  --ip-ink-2: #303831;
  --ip-ink-3: #3d453e;
  --ip-ink-4: #505851;
  --ip-ink-5: #636b64;
  --ip-ink-6: #677069; /* assombri : la valeur d'origine tombait à 4.15:1, sous le seuil AA */
  --ip-line: #d5ddd7;
  --ip-line-2: #cfd7d0;
  --ip-line-3: #c8d0c9;
  --ip-line-4: #b4bdb6;
  --ip-green: #1e5a38;
  --ip-green-dk: #00381c;
  --ip-forest: #102a1a;
  --ip-forest-2: #17351f;
  --ip-forest-line: #273e2f;
  --ip-forest-line-2: #364e3e;
  --ip-night: #121b14;
  --ip-amber: #ac5326; /* assombri d'un cran : 4.49:1 sur le fond papier secondaire */
  --ip-amber-br: #d77343;
  --ip-amber-hi: #ee8f63;
  --ip-amber-pale: #f6b294;
  --ip-amber-sel: #ffbfa0;
  --ip-on-amber: #1b110c;
  --ip-on-dark: #f2eee6;
  --ip-on-dark-2: #c2d0b5;
  --ip-on-dark-3: #acbf9a;
  --ip-on-dark-4: #a0a79a;
  --ip-on-dark-5: #b7c2ae;
  --ip-on-dark-6: #9aa194;
  --ip-on-dark-7: #d1dcc7;
  --ip-on-dark-8: #c0c7ba;
  --ip-on-night: #f5f1ea;
  --ip-on-night-2: #b1bab3;
  --ip-on-green: #faf8f5;

  --ip-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ip-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ip-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ip-max: 1260px;
  --ip-gutter: 34px;
  --ip-header-h: 74px;
  --ip-shadow: 0 26px 64px -34px rgba(28, 40, 32, .3);
  --ip-shadow-sm: 0 10px 26px -18px rgba(28, 40, 32, .45);
}

@supports (color: oklch(0.5 0.1 150)) {
  :root {
    --ip-paper: oklch(0.97 0.008 85);
    --ip-paper-2: oklch(0.955 0.012 85);
    --ip-surface: oklch(0.99 0.004 85);
    --ip-field: oklch(0.975 0.008 85);
    --ip-ink: oklch(0.21 0.018 150);
    --ip-ink-1: oklch(0.24 0.018 150);
    --ip-ink-2: oklch(0.33 0.015 150);
    --ip-ink-3: oklch(0.38 0.015 150);
    --ip-ink-4: oklch(0.45 0.015 150);
    --ip-ink-5: oklch(0.52 0.015 150);
    --ip-ink-6: oklch(0.535 0.015 150);
    --ip-line: oklch(0.89 0.012 150);
    --ip-line-2: oklch(0.87 0.012 150);
    --ip-line-3: oklch(0.85 0.014 150);
    --ip-line-4: oklch(0.79 0.015 150);
    --ip-green: oklch(0.42 0.085 155);
    --ip-green-dk: oklch(0.30 0.075 155);
    --ip-forest: oklch(0.26 0.045 155);
    --ip-forest-2: oklch(0.30 0.055 150);
    --ip-forest-line: oklch(0.34 0.04 155);
    --ip-forest-line-2: oklch(0.40 0.04 155);
    --ip-night: oklch(0.21 0.018 150);
    --ip-amber: oklch(0.545 0.13 45);
    --ip-amber-br: oklch(0.66 0.14 45);
    --ip-amber-hi: oklch(0.74 0.13 45);
    --ip-amber-pale: oklch(0.82 0.09 45);
    --ip-amber-sel: oklch(0.86 0.09 45);
    --ip-on-amber: oklch(0.19 0.02 45);
    --ip-on-dark: oklch(0.95 0.012 85);
    --ip-on-dark-2: oklch(0.84 0.04 130);
    --ip-on-dark-3: oklch(0.78 0.055 130);
    --ip-on-dark-4: oklch(0.72 0.02 130);
    --ip-on-dark-5: oklch(0.80 0.03 130);
    --ip-on-dark-6: oklch(0.70 0.02 130);
    --ip-on-dark-7: oklch(0.88 0.03 130);
    --ip-on-dark-8: oklch(0.82 0.02 130);
    --ip-on-night: oklch(0.96 0.01 85);
    --ip-on-night-2: oklch(0.78 0.014 150);
    --ip-on-green: oklch(0.98 0.005 85);
  }
}

/* -------------------------------------------------------------------------
   2. Base + neutralisation de Divi
   Divi applique des styles globaux (#et-boc, .et_pb_*, marges de titres…).
   On les annule uniquement dans .ip-root, jamais ailleurs, pour que les
   pages encore construites au Divi Builder restent intactes.
   ------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }

body.ip-body {
  margin: 0;
  background: var(--ip-paper);
  color: var(--ip-ink);
  font-family: var(--ip-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.ip-body #page-container { padding-top: 0 !important; margin-top: 0 !important; }
body.ip-body.et_pb_pagebuilder_layout .ip-root { padding: 0; }

.ip-root, .ip-root * { box-sizing: border-box; }

/*
 * Spécificité du reset : (0,1,0) — la classe .ip-root compte, la liste
 * d'éléments passée à :where() ne compte pour rien. C'est le seul réglage qui
 * satisfait les deux contraintes à la fois :
 *
 *   — il l'emporte sur les sélecteurs d'élément de Divi, `h2 { color:#333 }`
 *     en (0,0,1), qui rendaient sinon les titres illisibles sur fond sombre ;
 *   — il fait jeu égal avec les classes du thème (.ip-lead, .ip-mb-4) en
 *     (0,1,0), déclarées plus bas : à égalité, c'est la dernière qui gagne,
 *     donc les composants et les utilitaires reprennent la main.
 *
 * Un reset en (0,1,1) écraserait les utilitaires ; un reset en (0,0,0) se ferait
 * écraser par Divi. Ne pas modifier sans vérifier ces deux cas.
 */
.ip-root :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd, dt, address, fieldset) {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
}

/*
 * La couleur se reprend sur une liste plus large — Divi colore aussi les
 * listes, les cellules et les légendes — mais sans toucher à la graisse,
 * pour ne pas désépaissir <strong> et <b>.
 */
.ip-root :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote,
                dl, dt, dd, address, small, strong, b, em, i, summary, label, th, td, caption) {
  color: inherit;
}

/* Divi impose line-height:1em aux titres : valeur de repli pour ceux qui
   n'ont pas de classe .ip-h* (par exemple .ip-step h3). */
.ip-root :where(h1, h2, h3, h4, h5, h6) { line-height: 1.25; }

.ip-root :where(ul, ol) { list-style: none; }
.ip-root :where(fieldset) { border: 0; }
.ip-root :where(address) { font-style: normal; }
.ip-root :where(a) { color: var(--ip-green); text-decoration: none; transition: color .16s ease; }
.ip-root :where(a):hover { color: var(--ip-green-dk); }
.ip-root img, .ip-root svg { max-width: 100%; height: auto; display: block; }

/* L'attribut hidden doit primer sur les display des composants (flex, grid…). */
.ip-root [hidden] { display: none !important; }
.ip-root sup { font-size: .62em; vertical-align: super; line-height: 0; }
.ip-root ::selection { background: var(--ip-amber-sel); color: var(--ip-ink); }
.ip-root hr { border: 0; border-top: 1px solid var(--ip-line); margin: 0; }

.ip-root :focus-visible {
  outline: 2px solid var(--ip-amber);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Lien d'évitement clavier. Il est placé AVANT .ip-root dans le document —
   le préfixer par .ip-root le priverait de tout style et le rendrait visible.
   Pour la couleur, Divi oppose .et_color_scheme_green a (0,1,1) : on repasse
   devant avec a.ip-skip:link (0,2,1), juste en dessous. */
.ip-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ip-green);
  color: var(--ip-on-green);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
.ip-skip:focus { left: 0; }
a.ip-skip:link, a.ip-skip:visited, a.ip-skip:focus { color: var(--ip-on-green); }

.ip-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
   3. Typographie
   Échelle fluide : les tailles du prototype sont les valeurs hautes.
   ------------------------------------------------------------------------- */
.ip-display {
  font-family: var(--ip-serif);
  font-weight: 400;
  font-size: clamp(40px, 6.1vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.ip-h1 {
  font-family: var(--ip-serif);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.ip-h2 {
  font-family: var(--ip-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.9vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ip-h2--sm { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.12; }
.ip-h3 {
  font-family: var(--ip-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.ip-h4 { font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.ip-em { font-style: italic; color: var(--ip-green); }

.ip-lead {
  font-size: clamp(16.5px, 1.35vw, 18.5px);
  line-height: 1.62;
  color: var(--ip-ink-3);
  text-wrap: pretty;
}
.ip-body-txt { font-size: 14.5px; line-height: 1.65; color: var(--ip-ink-3); }
.ip-prose p { font-size: 15.5px; line-height: 1.7; color: var(--ip-ink-3); }
.ip-prose p + p { margin-top: 14px; }
.ip-note { font-size: 12.5px; line-height: 1.55; color: var(--ip-ink-5); }

.ip-eyebrow {
  font-family: var(--ip-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ip-ink-4);
}
.ip-eyebrow--amber { color: var(--ip-amber); letter-spacing: 0.08em; }
.ip-eyebrow--light { color: var(--ip-on-dark-3); }
.ip-num { font-family: var(--ip-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ip-mono { font-family: var(--ip-mono); }

/* -------------------------------------------------------------------------
   4. Primitives de mise en page
   ------------------------------------------------------------------------- */
.ip-wrap {
  max-width: var(--ip-max);
  margin: 0 auto;
  padding-left: var(--ip-gutter);
  padding-right: var(--ip-gutter);
  width: 100%;
}
.ip-sec { padding-top: clamp(56px, 6.4vw, 92px); padding-bottom: clamp(56px, 6.4vw, 92px); }
.ip-sec--tight { padding-top: clamp(48px, 5.2vw, 76px); padding-bottom: clamp(48px, 5.2vw, 76px); }
.ip-sec--top { padding-top: clamp(48px, 5vw, 78px); padding-bottom: 0; }
.ip-sec--bottom { padding-top: 0; padding-bottom: clamp(56px, 6.4vw, 96px); }
.ip-sec--flush-b { padding-bottom: 0; }

.ip-band--alt { background: var(--ip-paper-2); border-top: 1px solid var(--ip-line); border-bottom: 1px solid var(--ip-line); }
.ip-band--rule-t { border-top: 1px solid var(--ip-line); }
.ip-band--dark { background: var(--ip-forest); color: var(--ip-on-dark); }
.ip-band--night { background: var(--ip-night); color: var(--ip-on-night); }
.ip-band--dark a, .ip-band--night a { color: var(--ip-amber-pale); }
.ip-band--dark .ip-lead, .ip-band--night .ip-lead { color: var(--ip-on-night-2); }

/* Grille filaire : le fond du conteneur devient la ligne de 1px */
.ip-hair {
  display: grid;
  gap: 1px;
  background: var(--ip-line);
  border: 1px solid var(--ip-line);
}
.ip-hair > * { background: var(--ip-surface); }
.ip-hair--paper > * { background: var(--ip-paper); }
.ip-hair--dark { background: var(--ip-forest-line); border: 0; }
.ip-hair--dark > * { background: var(--ip-forest); }

.ip-c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ip-c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ip-c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ip-split {
  display: grid;
  gap: clamp(36px, 4.6vw, 66px);
  align-items: start;
}
.ip-split--hero { grid-template-columns: 1.02fr 0.98fr; }
.ip-split--60 { grid-template-columns: 1.1fr 0.9fr; }
.ip-split--50 { grid-template-columns: 1fr 1fr; }
.ip-split--40 { grid-template-columns: 0.85fr 1.15fr; }
.ip-split--30 { grid-template-columns: 0.7fr 1.3fr; }
.ip-split--form { grid-template-columns: 1fr 1.15fr; }
.ip-split--mid { align-items: center; }

.ip-headrow {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.ip-stack { display: flex; flex-direction: column; }
.ip-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ip-row--tight { flex-wrap: nowrap; align-items: flex-start; }
.ip-row--tight .ip-dot { margin-top: 7px; }

/* -------------------------------------------------------------------------
   5. En-tête
   ------------------------------------------------------------------------- */
.ip-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ip-paper) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ip-line);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .ip-header { background: var(--ip-paper); }
}
.admin-bar .ip-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ip-header { top: 46px; } }

.ip-header__in {
  max-width: var(--ip-max);
  margin: 0 auto;
  padding: 0 var(--ip-gutter);
  height: var(--ip-header-h);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}
.ip-root .ip-logo { display: flex; align-items: baseline; color: var(--ip-ink); flex-shrink: 0; }
.ip-root .ip-logo:hover { color: var(--ip-ink); }
.ip-logo__a, .ip-logo__b { font-family: var(--ip-serif); font-size: 28px; letter-spacing: -0.015em; line-height: 1; }
.ip-logo__b { font-style: italic; color: var(--ip-green); }
.ip-logo img { max-height: 40px; width: auto; }

.ip-nav { display: flex; gap: clamp(14px, 1.9vw, 26px); margin-left: auto; align-items: center; }
.ip-nav a { font-size: 14px; font-weight: 500; color: var(--ip-ink-2); white-space: nowrap; }
.ip-nav a:hover { color: var(--ip-green); }
.ip-nav a[aria-current="page"] { color: var(--ip-green); box-shadow: inset 0 -1px 0 var(--ip-green); }

.ip-header__end { display: flex; align-items: center; gap: 16px; }
.ip-langs { display: flex; gap: 2px; font-family: var(--ip-mono); font-size: 11.5px; letter-spacing: 0.04em; }
.ip-langs a { padding: 4px 6px; color: var(--ip-ink-6); text-transform: uppercase; }
.ip-langs a:hover { color: var(--ip-green); }
.ip-langs a[aria-current] { color: var(--ip-ink-1); border-bottom: 1px solid var(--ip-green); }

.ip-burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--ip-line-3); cursor: pointer; padding: 0;
  margin-left: auto;
}
.ip-burger span { display: block; width: 18px; height: 1.5px; background: var(--ip-ink-1); position: relative; transition: background .15s ease; }
.ip-burger span::before, .ip-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ip-ink-1);
  transition: transform .2s ease, top .2s ease;
}
.ip-burger span::before { top: -6px; }
.ip-burger span::after { top: 6px; }
.ip-burger[aria-expanded="true"] span { background: transparent; }
.ip-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.ip-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.ip-drawer { display: none; }

/* Bandeau de langue non traduite */
.ip-langnotice {
  background: var(--ip-forest);
  color: var(--ip-on-dark);
  padding: 9px var(--ip-gutter);
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}
.ip-langnotice a { color: var(--ip-amber-pale); text-decoration: underline; }

/* -------------------------------------------------------------------------
   6. Boutons
   ------------------------------------------------------------------------- */
.ip-btn {
  display: inline-block;
  font-family: var(--ip-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  padding: 16px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.ip-btn--sm { padding: 12px 20px; font-size: 14px; }
.ip-btn--lg { padding: 19px 34px; font-size: 16px; font-weight: 700; }
.ip-btn--block { display: block; width: 100%; }

/*
 * Les variantes sont préfixées par .ip-root : sans cela, la règle de base
 * `.ip-root a` (0,1,1) l'emporterait sur `.ip-btn--primary` (0,1,0) et le
 * libellé des boutons s'afficherait en vert sur fond vert.
 */
.ip-root .ip-btn--primary { background: var(--ip-green); color: var(--ip-on-green); }
.ip-root .ip-btn--primary:hover { background: var(--ip-green-dk); color: var(--ip-on-green); }

.ip-root .ip-btn--ghost { border-color: var(--ip-line-4); color: var(--ip-ink-1); background: transparent; }
.ip-root .ip-btn--ghost:hover { border-color: var(--ip-green); color: var(--ip-green); }

.ip-root .ip-btn--dark { background: var(--ip-night); color: var(--ip-paper); }
.ip-root .ip-btn--dark:hover { background: var(--ip-green); color: var(--ip-on-green); }

.ip-root .ip-btn--amber { background: var(--ip-amber-br); color: var(--ip-on-amber); }
.ip-root .ip-btn--amber:hover { background: var(--ip-amber-hi); color: var(--ip-on-amber); }

.ip-root .ip-link { font-size: 14px; font-weight: 600; color: var(--ip-green); }
.ip-root .ip-link--lg { font-size: 14.5px; }

/* -------------------------------------------------------------------------
   7. Blocs de contenu
   ------------------------------------------------------------------------- */
.ip-card { padding: clamp(24px, 2.4vw, 34px) clamp(22px, 2.2vw, 32px); }
.ip-card--pad { padding: clamp(24px, 2.6vw, 38px); }
.ip-panel { background: var(--ip-surface); border: 1px solid var(--ip-line-2); padding: clamp(24px, 2.6vw, 32px); }
.ip-panel--raised { box-shadow: var(--ip-shadow); }
.ip-panel--form { padding: clamp(24px, 2.8vw, 38px); }

/* Cartes cliquables « trois situations » */
.ip-root .ip-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 290px;
  color: var(--ip-ink);
  padding: 34px 30px 30px;
}
.ip-root .ip-tile:hover { background: var(--ip-paper-2); color: var(--ip-ink); }
.ip-tile p { flex: 1; }

/* Compteurs */
.ip-stat__val { font-family: var(--ip-mono); font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; white-space: nowrap; color: var(--ip-green); line-height: 1.05; }
.ip-stat__lbl { font-size: 13.5px; color: var(--ip-ink-4); margin-top: 6px; line-height: 1.5; }

.ip-statgrid {
  display: grid;
  gap: 34px;
  padding-top: clamp(44px, 4.4vw, 60px);
  padding-bottom: clamp(44px, 4.4vw, 60px);
}

/* Mini-compteurs du hero */
.ip-kpi { padding: 19px 17px; }
.ip-kpi__val { font-family: var(--ip-mono); font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.ip-kpi__val--green { color: var(--ip-green); }
.ip-kpi__lbl { font-size: 12.5px; color: var(--ip-ink-4); margin-top: 5px; }

/* Étapes */
.ip-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.ip-step { border-top: 2px solid var(--ip-line-3); padding-top: 20px; }
.ip-step--on { border-top-color: var(--ip-green); }
.ip-step__k { font-family: var(--ip-mono); font-size: 12.5px; color: var(--ip-ink-5); margin-bottom: 10px; }
.ip-step--on .ip-step__k { color: var(--ip-green); }
.ip-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.ip-step p { font-size: 14px; line-height: 1.6; color: var(--ip-ink-3); }

/* Témoignages */
.ip-quote { margin: 0; padding: 30px 32px; }
.ip-quote blockquote {
  font-family: var(--ip-serif);
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ip-ink-1);
}
.ip-quote figcaption { margin-top: 16px; font-size: 13px; color: var(--ip-ink-4); }
.ip-score { display: flex; align-items: baseline; gap: 10px; }
.ip-score__n { font-family: var(--ip-mono); font-size: 30px; letter-spacing: -0.03em; }
.ip-stars { display: flex; gap: 4px; margin: 12px 0 14px; color: var(--ip-amber-br); font-size: 15px; }

/* Listes à puces fléchées */
.ip-arrows { display: grid; gap: 14px 40px; font-size: 14.5px; color: var(--ip-ink-3); }
.ip-arrows--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ip-arrows li { display: flex; gap: 11px; }
.ip-arrows li::before { content: "\2192"; font-family: var(--ip-mono); color: var(--ip-green); flex-shrink: 0; }
.ip-numlist { display: grid; gap: 14px; }
.ip-numlist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; color: var(--ip-ink-3); }
.ip-numlist li::before {
  content: counter(ip-n, decimal-leading-zero);
  counter-increment: ip-n;
  font-family: var(--ip-mono);
  color: var(--ip-amber);
  flex-shrink: 0;
}
.ip-numlist { counter-reset: ip-n; }

/* Article long format (page Conseils) */
.ip-article {
  border-top: 1px solid var(--ip-line-2);
  padding: 38px 0;
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 48px;
}
.ip-article:last-child { border-bottom: 1px solid var(--ip-line-2); }

/* Tableau clé/valeur */
.ip-kv { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.ip-kv > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dotted var(--ip-line-3); padding-bottom: 12px; }
.ip-kv > div:last-child { border-bottom: 0; padding-bottom: 0; padding-top: 4px; align-items: baseline; }
.ip-kv dt, .ip-kv .ip-kv__k { color: var(--ip-ink-4); }
.ip-kv dd, .ip-kv .ip-kv__v { font-family: var(--ip-mono); margin: 0; }
.ip-kv__total { font-weight: 600; color: var(--ip-ink); }
.ip-kv__totalv { font-family: var(--ip-mono); font-size: 21px; color: var(--ip-green); }

/* Encadré filet */
.ip-callout {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ip-ink-5);
  padding-left: 11px;
  border-left: 2px solid var(--ip-amber);
}
.ip-callout--box {
  padding: 20px;
  background: var(--ip-paper-2);
  border-left: 2px solid var(--ip-green);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ip-ink-3);
}

/* -------------------------------------------------------------------------
   8. Taux
   ------------------------------------------------------------------------- */
.ip-rate { padding: 26px 24px; position: relative; }
.ip-rate__lbl { font-size: 13.5px; color: var(--ip-on-dark-5); margin-bottom: 12px; }
.ip-rate__val { font-family: var(--ip-mono); font-size: clamp(28px, 2.9vw, 36px); letter-spacing: -0.03em; line-height: 1.05; }
.ip-rate__sub { font-size: 12px; color: var(--ip-on-dark-6); margin-top: 8px; }
.ip-rate--star { background: var(--ip-forest-2) !important; }
.ip-rate--star::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ip-amber-br); }
.ip-rate--star .ip-rate__lbl { color: var(--ip-on-dark-2); }
.ip-rate__tag { font-family: var(--ip-mono); font-size: 10.5px; color: var(--ip-amber-pale); letter-spacing: 0.06em; }

.ip-ratelist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 40px;
  margin-top: 22px;
  font-family: var(--ip-mono);
  font-size: 13.5px;
  color: var(--ip-on-dark-7);
}
.ip-ratelist > div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--ip-forest-line-2); padding-bottom: 7px; }

.ip-more { margin-top: 26px; border-top: 1px solid var(--ip-forest-line); padding-top: 20px; }
.ip-more > summary { font-size: 14px; color: var(--ip-on-dark-2); display: flex; align-items: center; gap: 9px; }

/* -------------------------------------------------------------------------
   9. Accordéons (FAQ / détails)
   ------------------------------------------------------------------------- */
.ip-root summary { list-style: none; cursor: pointer; }
.ip-root summary::-webkit-details-marker { display: none; }
.ip-root summary::marker { content: ""; }

.ip-faq { display: flex; flex-direction: column; }
.ip-faq__i { border-top: 1px solid var(--ip-line-2); padding: 22px 0; }
.ip-faq__i:last-child { border-bottom: 1px solid var(--ip-line-2); }
.ip-faq__i > summary {
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.ip-faq__i > summary .ip-faq__sign { font-family: var(--ip-mono); color: var(--ip-amber); flex-shrink: 0; }
.ip-faq__i[open] > summary .ip-faq__sign { transform: rotate(45deg); }
.ip-faq__sign { display: inline-block; transition: transform .18s ease; }
.ip-faq__i > p { font-size: 14.5px; line-height: 1.65; color: var(--ip-ink-3); margin-top: 14px; max-width: 660px; }

/* -------------------------------------------------------------------------
   10. Calculateur
   ------------------------------------------------------------------------- */
.ip-calc { background: var(--ip-surface); border: 1px solid var(--ip-line-2); padding: clamp(22px, 2.4vw, 32px); }
.ip-calc--raised { box-shadow: var(--ip-shadow); }
.ip-calc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.ip-calc__head h2, .ip-calc__head .ip-calc__t {
  font-family: var(--ip-serif); font-weight: 400; font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.01em;
}
.ip-calc__badge { font-family: var(--ip-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ip-ink-6); white-space: nowrap; }
.ip-calc__fields { display: flex; flex-direction: column; gap: 24px; }

.ip-field { display: block; }
.ip-field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.ip-field__lbl { font-size: 13.5px; font-weight: 500; color: var(--ip-ink-2); flex: 1; }
.ip-field__val { font-family: var(--ip-mono); font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ip-field__hint { font-size: 12px; color: var(--ip-ink-5); margin-top: 7px; line-height: 1.5; }

.ip-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; border-radius: 2px;
  background: var(--ip-line-2); outline: none; margin: 8px 0; padding: 0; border: 0;
  cursor: pointer;
}
.ip-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ip-green); border: 3px solid var(--ip-surface);
  box-shadow: 0 1px 5px rgba(20, 35, 25, .3); cursor: pointer;
}
.ip-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ip-green); border: 3px solid var(--ip-surface); cursor: pointer;
}
.ip-range:focus-visible { outline: 2px solid var(--ip-amber); outline-offset: 6px; }

.ip-calc__out { border-top: 1px solid var(--ip-line); margin-top: 28px; padding-top: 24px; }
.ip-calc__outlbl { font-size: 13px; color: var(--ip-ink-4); margin-bottom: 4px; }
.ip-calc__big {
  font-family: var(--ip-mono);
  font-size: clamp(32px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ip-green);
  font-variant-numeric: tabular-nums;
}
.ip-calc__big--md { font-size: clamp(30px, 3.1vw, 40px); }
.ip-calc__cells { margin-top: 20px; }
.ip-calc__cell { padding: 14px 15px; }
.ip-calc__cell dt, .ip-calc__cellk {
  font-size: 11.5px; color: var(--ip-ink-5); text-transform: uppercase;
  letter-spacing: 0.06em; font-family: var(--ip-mono);
}
.ip-calc__cell dd, .ip-calc__cellv { font-family: var(--ip-mono); font-size: 17px; margin: 4px 0 0; font-variant-numeric: tabular-nums; }

.ip-calc__flag {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 16px; padding: 12px 14px;
  background: var(--ip-paper-2); border-left: 2px solid var(--ip-green);
  font-size: 12.5px; line-height: 1.55; color: var(--ip-ink-3);
}
.ip-calc__flag--warn { border-left-color: var(--ip-amber); }

/* Calculateur complet : deux colonnes */
.ip-calcfull { display: grid; grid-template-columns: 1fr 0.92fr; gap: 1px; background: var(--ip-line); border: 1px solid var(--ip-line); }
.ip-calcfull > * { background: var(--ip-surface); padding: clamp(24px, 2.8vw, 38px); }
.ip-calcfull__res { background: var(--ip-paper-2); position: sticky; top: calc(var(--ip-header-h) + 20px); align-self: start; }
.ip-fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.ip-fieldset:last-of-type { margin-bottom: 0; }
.ip-fieldset__lgd {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ip-green); margin-bottom: 18px; padding: 0; display: block; width: 100%;
}
.ip-bars { display: grid; gap: 1px; background: var(--ip-line); border: 1px solid var(--ip-line); margin-top: 18px; }
.ip-bars > div { background: var(--ip-surface); padding: 12px 14px; display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.ip-bars b { font-family: var(--ip-mono); font-weight: 400; font-variant-numeric: tabular-nums; }
.ip-meter { height: 8px; background: var(--ip-line-2); margin-top: 12px; overflow: hidden; }
.ip-meter__fill { height: 100%; background: var(--ip-green); transition: width .25s ease; }
.ip-meter__fill--over { background: var(--ip-amber); }

/* Montages de financement */
.ip-profiles { display: grid; gap: 1px; background: var(--ip-line); border: 1px solid var(--ip-line); }
.ip-profile { background: var(--ip-surface); padding: 14px 15px; }
.ip-profile__top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.ip-profile__label { font-size: 13px; font-weight: 600; color: var(--ip-ink-2); }
.ip-profile__price { font-family: var(--ip-mono); font-weight: 400; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ip-profile__meta { font-family: var(--ip-mono); font-size: 11.5px; color: var(--ip-ink-5); margin-top: 3px; }
.ip-profile__note { font-size: 12px; line-height: 1.5; color: var(--ip-ink-5); margin-top: 7px; }
.ip-profile--best { box-shadow: inset 3px 0 0 var(--ip-green); }
.ip-profile--best .ip-profile__price { color: var(--ip-green); }
.ip-profile--none .ip-profile__price { font-size: 12.5px; color: var(--ip-ink-5); font-family: var(--ip-sans); }
.ip-profile--none .ip-profile__label { color: var(--ip-ink-4); }

/* -------------------------------------------------------------------------
   11. Formulaires
   ------------------------------------------------------------------------- */
.ip-form__step { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ip-green); margin-bottom: 18px; }
.ip-grid-f { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.ip-grid-f--1 { grid-template-columns: 1fr; }

.ip-lab { display: flex; flex-direction: column; gap: 7px; }
.ip-lab > span { font-size: 13px; font-weight: 500; color: var(--ip-ink-2); }
.ip-lab .ip-opt { color: var(--ip-ink-6); font-weight: 400; }

/* Divi habille les champs par type, en ligne dans la page :
     input.text, input[type="email"], input[type="password"], input[type="tel"],
     input[type="text"], select, textarea { background:#fff; border:1px solid #bbb;
     padding:2px; color:#4e4e4e }
   soit (0,1,1), qui bat un simple .ip-input (0,1,0). Énumérer les types de notre
   côté laissait passer ceux qu'on oubliait — password, date, url. On passe donc
   par .ip-root input.ip-input, (0,2,1) : tous les types d'un coup, ceux
   d'aujourd'hui comme ceux de demain. */
.ip-input,
.ip-root input.ip-input,
.ip-root select.ip-input,
.ip-root textarea.ip-input {
  border: 1px solid var(--ip-line-3);
  padding: 12px 13px;
  font-size: 14.5px;
  font-family: var(--ip-sans);
  background: var(--ip-field);
  color: var(--ip-ink);
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.4;
}
.ip-root input.ip-input:focus,
.ip-root select.ip-input:focus,
.ip-root textarea.ip-input:focus {
  border-color: var(--ip-green);
  outline: none;
  box-shadow: 0 0 0 1px var(--ip-green);
  color: var(--ip-ink);
}
.ip-root textarea.ip-input { resize: vertical; min-height: 92px; }
.ip-root select.ip-input {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23636b64' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.ip-root .ip-input.ip-input--err { border-color: var(--ip-amber); }
.ip-err { font-size: 12.5px; color: var(--ip-amber); margin-top: 6px; }

.ip-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 26px; }
.ip-choice {
  border: 1px solid var(--ip-line-3);
  padding: 13px 12px;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--ip-field);
  transition: border-color .14s ease, background .14s ease;
}
.ip-choice input { accent-color: var(--ip-green); margin: 0; }
.ip-choice span { font-weight: 600; }
.ip-choice:has(input:checked) { border-color: var(--ip-green); background: var(--ip-surface); box-shadow: inset 0 0 0 1px var(--ip-green); }
.ip-choice:hover { border-color: var(--ip-line-4); }

.ip-consent { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 24px; }
.ip-consent input { margin-top: 3px; accent-color: var(--ip-green); flex-shrink: 0; }
.ip-consent span { font-size: 12.5px; line-height: 1.55; color: var(--ip-ink-4); }

.ip-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

.ip-alert { padding: 16px 18px; font-size: 14px; line-height: 1.55; margin-bottom: 24px; border-left: 2px solid var(--ip-amber); background: var(--ip-paper-2); color: var(--ip-ink-2); }
.ip-alert--ok { border-left-color: var(--ip-green); }

.ip-done { padding: 40px 0; text-align: center; }
.ip-done__k { font-family: var(--ip-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ip-green); margin-bottom: 16px; }

.ip-contactlist { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--ip-line-2); padding-top: 26px; }
.ip-contactlist > div { display: flex; gap: 14px; align-items: flex-start; }
.ip-contactlist dt, .ip-contactlist .ip-ck { font-family: var(--ip-mono); font-size: 12px; color: var(--ip-amber); padding-top: 3px; width: 44px; flex-shrink: 0; }
.ip-contactlist dd { margin: 0; }
.ip-contactlist strong { font-size: 15.5px; font-weight: 600; display: block; color: var(--ip-ink); }
.ip-contactlist small { font-size: 13px; color: var(--ip-ink-5); margin-top: 3px; display: block; }


/* -------------------------------------------------------------------------
   11 bis. Espace partenaire
   ------------------------------------------------------------------------- */

.ip-kpi__val--green { color: var(--ip-green); }
.ip-kpi__val--warn { color: var(--ip-amber); }

.ip-leads { display: grid; gap: 1px; background: var(--ip-line); border: 1px solid var(--ip-line); }

.ip-leadrow {
  background: var(--ip-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  color: var(--ip-ink);
  border-left: 3px solid var(--ip-amber);
}
.ip-leadrow:hover { background: var(--ip-paper-2); color: var(--ip-ink); }
.ip-leadrow--done { border-left-color: var(--ip-green); }
.ip-leadrow__name { font-size: 16px; font-weight: 600; }
.ip-leadrow__meta { font-size: 13px; color: var(--ip-ink-4); margin-top: 3px; }
.ip-leadrow__side { text-align: right; flex-shrink: 0; }
.ip-leadrow__sub { display: block; font-size: 12px; color: var(--ip-ink-5); margin-top: 5px; }

.ip-tag {
  display: inline-block;
  font-family: var(--ip-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  white-space: nowrap;
}
.ip-tag--ok { background: var(--ip-green); color: var(--ip-on-green); }
.ip-tag--wait { background: var(--ip-paper-2); color: var(--ip-ink-3); border: 1px solid var(--ip-line-3); }
.ip-tag--late { background: var(--ip-amber); color: var(--ip-on-amber); }

/* Formulaire de retour */
.ip-field-wrap[hidden] { display: none !important; }
.ip-lab__q { font-size: 13px; font-weight: 500; color: var(--ip-ink-2); margin-bottom: 8px; }
.ip-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ip-checks { display: grid; gap: 8px; margin-bottom: 22px; }
.ip-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ip-ink-3);
  cursor: pointer;
}
.ip-check input { accent-color: var(--ip-green); margin-top: 2px; flex-shrink: 0; }

.ip-inputwrap { position: relative; display: block; }
.ip-root .ip-inputwrap--suffix .ip-input { padding-right: 52px; }
.ip-inputwrap em {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-family: var(--ip-mono);
  font-size: 12px;
  color: var(--ip-ink-5);
  pointer-events: none;
}

.ip-leadrow__main { min-width: 0; }

/* Onglets de l'espace ------------------------------------------------- */

.ip-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--ip-line);
  margin-bottom: 30px;
}
.ip-root .ip-tab {
  position: relative;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ip-ink-4);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ip-root .ip-tab:hover { color: var(--ip-ink-1); }
.ip-root .ip-tab--on { color: var(--ip-green); border-bottom-color: var(--ip-green); }

.ip-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ip-root .ip-subtab {
  padding: 7px 14px;
  font-size: 13px;
  color: var(--ip-ink-4);
  border: 1px solid var(--ip-line-3);
  background: var(--ip-surface);
}
.ip-root .ip-subtab:hover { border-color: var(--ip-line-4); color: var(--ip-ink-1); }
.ip-root .ip-subtab--on {
  background: var(--ip-green);
  border-color: var(--ip-green);
  color: var(--ip-on-green);
}

/* Pastille « pas encore consulté » : un point, jamais seul porteur de sens,
   il accompagne toujours une mention textuelle dans la ligne. */
.ip-dot-new {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ip-amber-br);
  margin-right: 7px;
  vertical-align: middle;
}

/* Le repli « mot de passe oublié » : un déclencheur discret sous le formulaire.
   Surtout pas de barré — le nom de la classe dit « oublié », pas « annulé ». */
.ip-lost { border-top: 1px solid var(--ip-line); padding-top: 14px; }
.ip-root .ip-lost > summary {
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ip-green);
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ip-root .ip-lost > summary::-webkit-details-marker { display: none; }
.ip-root .ip-lost > summary:hover { color: var(--ip-green-dk); }
.ip-lost[open] > summary { margin-bottom: 4px; }

/* Deux champs par ligne quand la place le permet : prénom et nom, NPA et
   localité. Sur mobile la grille retombe sur une colonne. */
.ip-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.ip-pair__half { grid-column: span 1; }
.ip-pair__full { grid-column: 1 / -1; }

@media (max-width: 560px) {
  .ip-pair { grid-template-columns: 1fr; }
  .ip-pair__half { grid-column: 1 / -1; }
}

/* Tableaux ------------------------------------------------------------- */

.ip-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.ip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--ip-surface);
}
.ip-table th,
.ip-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ip-line);
  vertical-align: top;
}
.ip-table thead th {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ip-ink-5);
  font-weight: 600;
  white-space: nowrap;
}
.ip-table tfoot th { border-bottom: 0; border-top: 2px solid var(--ip-line-4); font-weight: 700; }
.ip-table .ip-num { font-family: var(--ip-mono); text-align: right; white-space: nowrap; }
.ip-table .ip-row--muted td { color: var(--ip-ink-5); text-decoration: line-through; }

/* Barres de répartition ------------------------------------------------ */

.ip-bar { display: grid; grid-template-columns: 1fr 2fr auto; gap: 12px; align-items: center; margin-bottom: 9px; }
.ip-bar__label { font-size: 13px; color: var(--ip-ink-3); }
.ip-bar__track { height: 8px; background: var(--ip-paper-2); border: 1px solid var(--ip-line); }
.ip-bar__fill { display: block; height: 100%; background: var(--ip-green); }
.ip-bar__value { font-family: var(--ip-mono); font-size: 12.5px; color: var(--ip-ink-4); }

/* Équipe --------------------------------------------------------------- */

.ip-team { display: grid; gap: 1px; background: var(--ip-line); border: 1px solid var(--ip-line); margin-bottom: 26px; }
.ip-teamrow {
  background: var(--ip-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  flex-wrap: wrap;
}
.ip-teamrow--off { background: var(--ip-paper-2); }
.ip-teamrow--off .ip-teamrow__name { color: var(--ip-ink-5); }
.ip-teamrow__name { font-size: 15px; font-weight: 600; color: var(--ip-ink-1); }
.ip-teamrow__meta { font-size: 12.5px; color: var(--ip-ink-5); margin-top: 3px; }
.ip-teamrow__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ip-teamrow__actions form { margin: 0; }

/* Un bouton d'action qui n'a pas à ressembler à un bouton : les actions
   secondaires d'une ligne restent des liens, sans quoi la ligne devient une
   barre d'outils illisible. */
.ip-root .ip-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--ip-green);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ip-root .ip-linkbtn:hover { color: var(--ip-green-dk); }
.ip-root .ip-linkbtn--danger { color: var(--ip-amber); }
.ip-root .ip-linkbtn--danger:hover { color: var(--ip-on-amber); }

/* Sélecteur de période -------------------------------------------------- */

.ip-period { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.ip-period .ip-lab { margin-bottom: 0; }
.ip-root .ip-period .ip-input { width: auto; }

.ip-root .ip-input.ip-input--err { border-color: var(--ip-amber); }

@media (max-width: 700px) {
  .ip-leadrow { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ip-leadrow__side { text-align: left; }
}

/* -------------------------------------------------------------------------
   12. Pied de page
   ------------------------------------------------------------------------- */
.ip-footer { border-top: 1px solid var(--ip-line); background: var(--ip-paper-2); }
.ip-footer__top {
  max-width: var(--ip-max); margin: 0 auto;
  padding: 56px var(--ip-gutter) 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px;
}
.ip-footer__h { font-family: var(--ip-mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ip-ink-5); margin-bottom: 14px; }
.ip-footer__links { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.ip-footer__links a, .ip-footer__links span { color: var(--ip-ink-2); }
.ip-footer__links a:hover { color: var(--ip-green); }
.ip-footer__bar {
  max-width: var(--ip-max); margin: 0 auto;
  padding: 20px var(--ip-gutter) 40px;
  border-top: 1px solid var(--ip-line);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ip-ink-5);
}
.ip-footer__bar a { color: var(--ip-ink-5); }
.ip-footer__bar a:hover { color: var(--ip-green); }
.ip-footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.ip-social { display: flex; gap: 12px; margin-top: 16px; }
.ip-social a { width: 32px; height: 32px; border: 1px solid var(--ip-line); display: flex; align-items: center; justify-content: center; color: var(--ip-ink-3); }
.ip-social a:hover { border-color: var(--ip-green); color: var(--ip-green); }
.ip-social svg { width: 15px; height: 15px; fill: currentColor; }

/* -------------------------------------------------------------------------
   12 bis. Contenu rédigé dans WordPress
   Pages légales, articles, et tout contenu passé par l'éditeur. Le reset de
   la section 2 y est neutralisé pour retrouver un rythme de lecture normal.
   ------------------------------------------------------------------------- */
.ip-legal > * + * { margin-top: 14px; }
.ip-legal h2 {
  font-family: var(--ip-serif);
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--ip-line);
}
.ip-legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ip-legal h3 { font-size: 17px; font-weight: 600; margin-top: 24px; margin-bottom: 8px; }
.ip-legal p, .ip-legal li { font-size: 15.5px; line-height: 1.7; color: var(--ip-ink-3); }
.ip-legal ul, .ip-legal ol { list-style: revert; padding-left: 22px; }
.ip-legal ul { list-style: disc; }
.ip-legal li + li { margin-top: 6px; }
.ip-legal a { text-decoration: underline; text-underline-offset: 2px; }
.ip-legal strong { font-weight: 600; color: var(--ip-ink); }
.ip-legal em { font-style: italic; }
.ip-legal table { width: 100%; border-collapse: collapse; }
.ip-legal td, .ip-legal th { border-bottom: 1px solid var(--ip-line); padding: 10px 0; text-align: left; font-size: 14.5px; }

/*
 * Pages encore construites au Divi Builder : elles arrivent dans <main> via
 * #main-content. On leur rend les styles par défaut plutôt que de leur
 * imposer le reset du thème.
 */
.ip-root #main-content h1, .ip-root #main-content h2, .ip-root #main-content h3,
.ip-root #main-content h4, .ip-root #main-content h5, .ip-root #main-content h6,
.ip-root #main-content p, .ip-root #main-content ul, .ip-root #main-content ol,
.ip-root #main-content figure, .ip-root #main-content blockquote {
  margin: revert;
  padding: revert;
  font-weight: revert;
}
.ip-root #main-content ul, .ip-root #main-content ol { list-style: revert; }
.ip-root #main-content p { padding-bottom: 1em; }

/* -------------------------------------------------------------------------
   13. Utilitaires
   ------------------------------------------------------------------------- */
.ip-mb-0 { margin-bottom: 0; }
.ip-mb-1 { margin-bottom: 10px; }
.ip-mb-2 { margin-bottom: 16px; }
.ip-mb-3 { margin-bottom: 22px; }
.ip-mb-4 { margin-bottom: 28px; }
.ip-mb-5 { margin-bottom: 40px; }
.ip-mb-6 { margin-bottom: 48px; }
.ip-mt-1 { margin-top: 10px; }
.ip-mt-2 { margin-top: 16px; }
.ip-mt-3 { margin-top: 22px; }
.ip-mt-4 { margin-top: 30px; }
.ip-mw-sm { max-width: 420px; }
.ip-mw-md { max-width: 560px; }
.ip-mw-lg { max-width: 680px; }
.ip-mw-xl { max-width: 820px; }
.ip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ip-amber); display: inline-block; flex-shrink: 0; }
.ip-green { color: var(--ip-green); }
.ip-amber { color: var(--ip-amber); }
.ip-tabnum { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   14. Adaptation aux écrans
   ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --ip-gutter: 26px; }
  .ip-split--hero, .ip-split--60, .ip-split--40, .ip-split--30, .ip-split--form { grid-template-columns: 1fr; }
  /*
   * On garde l'ordre du source : le titre de la page doit rester au-dessus du
   * calculateur ou du formulaire, sur mobile comme ailleurs.
   */
  .ip-c4, .ip-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-ratelist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ip-footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .ip-calcfull { grid-template-columns: 1fr; }
  .ip-calcfull__res { position: static; }
}

@media (max-width: 980px) {
  .ip-nav, .ip-header__end { display: none; }
  .ip-burger { display: flex; }
  .ip-drawer {
    display: block;
    position: fixed;
    inset: var(--ip-header-h) 0 0;
    background: var(--ip-paper);
    z-index: 55;
    padding: 24px var(--ip-gutter) 48px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .admin-bar .ip-drawer { top: calc(var(--ip-header-h) + 32px); }
  .ip-drawer[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .ip-drawer nav { display: flex; flex-direction: column; }
  .ip-drawer nav a {
    font-family: var(--ip-serif); font-size: 26px; letter-spacing: -0.015em;
    color: var(--ip-ink); padding: 16px 0; border-bottom: 1px solid var(--ip-line);
  }
  .ip-drawer nav a:hover, .ip-drawer nav a[aria-current="page"] { color: var(--ip-green); }
  .ip-drawer .ip-btn { margin-top: 26px; }
  .ip-drawer .ip-langs { margin-top: 26px; font-size: 13px; }
  body.ip-navopen { overflow: hidden; }
  .ip-split--50, .ip-split--hero, .ip-split { grid-template-columns: 1fr; }
  .ip-split--50 > :first-child, .ip-split--mid > :first-child { order: 0; }
  .ip-c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-c3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ip-article { grid-template-columns: 1fr; gap: 18px; }
  .ip-tile { min-height: 0; }
}

@media (max-width: 700px) {
  :root { --ip-gutter: 20px; --ip-header-h: 64px; }
  .ip-logo__a, .ip-logo__b { font-size: 24px; }
  .ip-c2, .ip-c3, .ip-c4, .ip-steps, .ip-arrows--2, .ip-grid-f { grid-template-columns: 1fr; }
  .ip-c3 > :last-child:nth-child(odd) { grid-column: auto; }
  .ip-ratelist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-choices { grid-template-columns: 1fr; }
  .ip-choice { flex-direction: row; align-items: center; gap: 10px; }
  .ip-footer__top { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .ip-footer__bar { padding-bottom: 32px; }
  .ip-headrow { align-items: flex-start; gap: 20px; }
  .ip-quote { padding: 24px 22px; }
  .ip-calc__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ip-step { border-top-width: 2px; }
  .ip-kv > div { flex-direction: column; gap: 2px; }
  .ip-kv > div:last-child { flex-direction: row; }
  .ip-contactlist dt, .ip-contactlist .ip-ck { width: 38px; }
  .ip-btn { width: 100%; }
  .ip-row .ip-btn { width: auto; flex: 1 1 200px; }
}

@media (max-width: 420px) {
  .ip-ratelist { grid-template-columns: 1fr; }
  .ip-btn { padding: 15px 20px; }
}

/* Grands écrans : on laisse respirer sans casser la mesure de lecture */
@media (min-width: 1500px) { :root { --ip-max: 1320px; } }

/* -------------------------------------------------------------------------
   15. Préférences utilisateur & impression
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ip-root *, .ip-root *::before, .ip-root *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media (prefers-contrast: more) {
  :root { --ip-ink-4: #3d453e; --ip-ink-5: #3d453e; --ip-line: #a8b2aa; --ip-line-2: #a8b2aa; }
}

@media print {
  .ip-header, .ip-footer, .ip-drawer, .ip-burger, .ip-skip, .ip-btn { display: none !important; }
  .ip-root { color: #000; background: #fff; }
  .ip-band--dark, .ip-band--night { background: #fff !important; color: #000 !important; }
  .ip-calc__big, .ip-stat__val { color: #000; }
}
