/* Composants communs aux 22 pages, aux compositions et à l’éditeur. */
:root {
  --ipav-green: #4a7c2a; --ipav-orange: #b84500; --ipav-ink: #223021;
  --ipav-muted: #5d6759; --ipav-paper: #fff; --ipav-soft: #f4f5ef; --ipav-line: #e2e6dc;
  --ipav-font: "DM Sans", Arial, sans-serif; --ipav-width: 1160px; --ipav-reading: 760px;
  --ipav-gutter: clamp(20px,4vw,56px); --ipav-section-space: clamp(44px,6vw,88px);
  --ipav-radius: 12px; --ipav-gap: clamp(22px,3vw,40px);
}
.ipav-content, .editor-styles-wrapper { font-family: var(--ipav-font); font-size: 17px; line-height: 1.75; font-weight: 400; color: var(--ipav-ink); overflow-wrap: anywhere; }
:is(.ipav-content,.editor-styles-wrapper) *, .ipav-container { box-sizing: border-box; }
:is(.ipav-content,.editor-styles-wrapper) :is(h1,h2,h3,h4,h5,h6) { font-family: var(--ipav-font); color: inherit; font-weight: 600; line-height: 1.2; letter-spacing: -.035em; text-transform: none; text-align: center; padding: 0; margin: 0 0 1.1rem; }
:is(.ipav-content,.editor-styles-wrapper) h1 { font-size: clamp(32px,4.5vw,58px); }
:is(.ipav-content,.editor-styles-wrapper) h2 { font-size: clamp(26px,3vw,38px); }
:is(.ipav-content,.editor-styles-wrapper) h3 { font-size: clamp(21px,2vw,25px); }
:is(.ipav-content,.editor-styles-wrapper) p { margin: 0 0 1.2em; padding: 0; }
:is(.ipav-content,.editor-styles-wrapper) :where(strong,b) { font-weight: 600; }
:is(.ipav-content,.editor-styles-wrapper) a { color: var(--ipav-green); text-underline-offset: .2em; text-decoration-thickness: 1px; box-shadow: none; }
:is(.ipav-content,.editor-styles-wrapper) a:hover { text-decoration: underline; }
:is(.ipav-content,.editor-styles-wrapper) :where(ul,ol) { padding-left: 1.4em; margin: 0 0 1.5em; }
:is(.ipav-content,.editor-styles-wrapper) li + li { margin-top: .45em; }
:is(.ipav-content,.editor-styles-wrapper) img { max-width: 100%; height: auto; }
:is(.ipav-content,.editor-styles-wrapper) :where(.wp-block-group,.wp-block-image,.wp-block-buttons) { margin-top: 0; }
/* WordPress classique ajoute ce conteneur sans rôle visuel. */
.ipav-content .wp-block-group > .wp-block-group__inner-container { display: contents; }
.ipav-content .ipav-grid > .wp-block-group__inner-container > * { margin-block: 0; }
.ipav-container { width: min(var(--ipav-width),calc(100% - var(--ipav-gutter) * 2)); margin-inline: auto; }
.ipav-section { padding-block: var(--ipav-section-space); margin: 0; }
.ipav-section-soft { background: var(--ipav-soft); }
.ipav-section + .ipav-section:not(.ipav-section-soft):not(.ipav-cta) { border-top: 1px solid var(--ipav-line); }
.ipav-section h2:not(:first-child) { margin-top: 1.8em; }
.ipav-section .ipav-section { padding-block: 28px; border: 0; border-radius: var(--ipav-radius); }
.ipav-section .ipav-section .ipav-container { width: calc(100% - 40px); }
.ipav-prose { max-width: var(--ipav-reading); margin-inline: auto; }
.ipav-stack { margin-block: 1.5rem; }
:is(.ipav-prose,.ipav-card-body,.ipav-panel,.ipav-container) > :last-child,
.ipav-content :is(.ipav-prose,.ipav-card-body,.ipav-panel,.ipav-container) > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.ipav-kicker { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ipav-green); margin-bottom: 1rem; }
.ipav-lead { font-size: clamp(17px,1.7vw,20px); line-height: 1.65; }
/* Une grille pour les colonnes natives et les groupes de cartes. */
:is(.ipav-content,.editor-styles-wrapper) .ipav-grid { display: grid; }
.ipav-grid { --ipav-columns: 2; --ipav-grid-template: repeat(var(--ipav-columns),minmax(0,1fr)); grid-template-columns: var(--ipav-grid-template); gap: var(--ipav-gap); align-items: start; margin-block: 2rem; }
.ipav-grid-single { --ipav-columns: 1; }
.ipav-grid-three { --ipav-columns: 3; }
.ipav-grid-four { --ipav-columns: 4; }
:is(.ipav-content,.editor-styles-wrapper) .ipav-grid > * { min-width: 0; margin-block: 0; }
.ipav-panel { padding: clamp(20px,3vw,32px); background: var(--ipav-soft); color: var(--ipav-ink); border-radius: var(--ipav-radius); }
.ipav-panel-white { background: var(--ipav-paper); border: 1px solid var(--ipav-line); }
.ipav-card { min-width: 0; border: 1px solid var(--ipav-line); border-radius: var(--ipav-radius); background: var(--ipav-paper); color: var(--ipav-ink); overflow: hidden; }
.ipav-card-body { padding: clamp(20px,3vw,32px); }
.ipav-card h3 { font-size: 23px; }
.ipav-card p { font-size: 16px; }
.ipav-card a:not(.wp-block-button__link) { font-weight: 500; }
.ipav-card-link a { text-decoration: none; }
.ipav-card-link a::after { content: " ↗"; white-space: nowrap; }
.ipav-grid-photo { --ipav-grid-template: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(28px,5vw,70px); }
.ipav-card-featured { gap: 0; }
/* Médias de contenu, bandeaux et illustrations : seules les dimensions varient. */
.ipav-image { margin: 1.5rem 0; }
.ipav-image img { display: block; width: 100%; height: auto; border-radius: var(--ipav-radius); }
.ipav-image.ipav-map { max-width: 360px; margin-inline: auto; }
:is(.ipav-content,.editor-styles-wrapper) .wp-block-image:is(.ipav-quote-image,.ipav-small-map,.ipav-leaf-image) { display: block; float: none; width: 150px; max-width: 100%; margin-inline: auto; }
:is(.ipav-card,.ipav-grid-photo) .wp-block-image { margin: 0; }
:is(.ipav-card,.ipav-grid-photo) .wp-block-image img { display: block; width: 100%; object-fit: cover; }
.ipav-card .wp-block-image img { aspect-ratio: 16/9; }
.ipav-grid-photo:not(.ipav-card) .wp-block-image img { aspect-ratio: 4/5; border-radius: var(--ipav-radius); }
.ipav-grid-photo .ipav-map img { object-fit: contain; background: var(--ipav-soft); }
.ipav-hero, .ipav-photo-divider { position: relative; isolation: isolate; }
.ipav-hero { display: flex; align-items: center; min-height: 480px; background: var(--ipav-ink); color: var(--ipav-paper); margin: 0; padding-block: clamp(56px,7vw,96px); }
.ipav-hero-home { min-height: 600px; }
.ipav-hero::before, .ipav-photo-divider::after { content: ""; position: absolute; inset: 0; background: rgba(18,31,14,var(--ipav-overlay,.68)); pointer-events: none; }
.ipav-hero::before { z-index: -1; }
.ipav-hero .ipav-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; margin: 0; }
.ipav-hero .ipav-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ipav-hero-content { position: relative; text-align: center; }
.ipav-hero h1 { max-width: 900px; margin-inline: auto; }
.ipav-hero p { max-width: var(--ipav-reading); margin-inline: auto; }
.ipav-hero .ipav-kicker { color: #d5e5c5; }
.ipav-hero .ipav-grid { margin-block: 0; }
.ipav-hero .ipav-panel { padding: 0; border: 0; background: transparent; color: inherit; }
.ipav-photo-banner { min-height: 360px; }
.ipav-photo-divider { --ipav-overlay: .4; padding: 0; }
.ipav-photo-divider .ipav-image { margin: 0; }
.ipav-photo-divider .ipav-image img { height: clamp(230px,32vw,440px); object-fit: cover; border-radius: 0; }
.ipav-cta { background: var(--ipav-green); color: var(--ipav-paper); --ipav-nav-bg: var(--ipav-paper); --ipav-nav-text: var(--ipav-green); --ipav-nav-hover: var(--ipav-soft); }
/* Les panneaux clairs rétablissent le bouton vert, même dans une section verte. */
:is(.ipav-panel,.ipav-card,.ipav-form-slot,.ipav-section-soft):not(.ipav-cta) { --ipav-nav-bg: var(--ipav-green); --ipav-nav-text: var(--ipav-paper); --ipav-nav-hover: #365c1e; }
:is(.ipav-hero,.ipav-cta) a:not(.wp-block-button__link) { color: inherit; }
.ipav-cta .ipav-prose { max-width: 850px; }
.ipav-cta .ipav-panel-white a:not(.wp-block-button__link) { color: var(--ipav-green); }
/* Navigation verte par défaut ; seules les actions portent le modificateur CTA. */
:is(.ipav-content,.editor-styles-wrapper) .wp-block-buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.ipav-section .wp-block-buttons { margin-block: 1rem; }
:is(.ipav-hero,.ipav-cta) .wp-block-buttons { margin-top: 1.8rem; }
:is(.ipav-content,.editor-styles-wrapper) .wp-block-button { max-width: 100%; margin: 0; }
.ipav-button-cta { --ipav-button-bg: var(--ipav-orange); --ipav-button-hover: #963800; --ipav-button-text: var(--ipav-paper); }
.ipav-button, :is(.ipav-content,.editor-styles-wrapper) .wp-block-button__link { padding: 13px 22px; min-height: 48px; border: 1px solid var(--ipav-button-bg,var(--ipav-nav-bg,var(--ipav-green))); border-radius: 6px; background: var(--ipav-button-bg,var(--ipav-nav-bg,var(--ipav-green))); color: var(--ipav-button-text,var(--ipav-nav-text,var(--ipav-paper))); font-family: var(--ipav-font); font-size: 15px; line-height: 1.4; font-weight: 500; text-decoration: none; box-shadow: none; white-space: normal; text-align: center; }
.ipav-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
:is(.ipav-content,.editor-styles-wrapper) .wp-block-button__link { display: block; }
.ipav-button:hover, :is(.ipav-content,.editor-styles-wrapper) .wp-block-button__link:hover { background: var(--ipav-button-hover,var(--ipav-nav-hover,#365c1e)); border-color: var(--ipav-button-hover,var(--ipav-nav-hover,#365c1e)); color: var(--ipav-button-text,var(--ipav-nav-text,var(--ipav-paper))); text-decoration: none; }
.ipav-button-outline { color: var(--ipav-button-bg,var(--ipav-green)); background: transparent; }
.ipav-separator { width: 64px; margin: 24px auto; border: 0; border-top: 3px solid var(--ipav-green); }
.ipav-cta .ipav-separator { border-color: currentColor; }
/* Une FAQ native et les mêmes champs de formulaire sur toutes les pages. */
.ipav-faq-item { padding-block: 22px; border-bottom: 1px solid var(--ipav-line); }
.ipav-faq-item summary { cursor: pointer; font-size: 20px; line-height: 1.45; font-weight: 500; }
.ipav-faq-item[open] summary { margin-bottom: 20px; color: var(--ipav-green); }
.ipav-faq-item summary:focus-visible { outline: 2px solid var(--ipav-orange); outline-offset: 6px; }
.ipav-tariff-details { max-width: var(--ipav-reading); margin: 1.5rem auto; padding: 20px 24px; border: 1px solid var(--ipav-line); border-radius: var(--ipav-radius); }
.ipav-tariff-details summary, .ipav-tariff-details[open] summary { color: inherit; text-align: center; list-style-position: inside; }
.ipav-form-slot { padding: clamp(20px,3vw,32px); border: 2px dashed var(--ipav-line); border-radius: var(--ipav-radius); margin-block: 2rem; background: var(--ipav-paper); color: var(--ipav-ink); }
.ipav-form-slot > p { font-size: 15px; color: var(--ipav-muted); }
.ipav-rate-note { font-size: 14px; line-height: 1.6; margin-top: 2rem; }
:where(.ipav-content,.editor-styles-wrapper) :where(input,select,textarea,button) { font-family: var(--ipav-font); font-size: 16px; }
:where(.ipav-content,.editor-styles-wrapper) :where(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea) { width: 100%; max-width: 100%; padding: 12px; background: var(--ipav-paper); color: var(--ipav-ink); border: 1px solid #9da695; border-radius: 6px; }
:where(.ipav-content,.editor-styles-wrapper) :where(input[type=checkbox],input[type=radio]) { accent-color: var(--ipav-green); width: 20px; height: 20px; vertical-align: middle; }
:where(.ipav-content,.editor-styles-wrapper) :where(button,input[type=submit]) { background: var(--ipav-orange); color: var(--ipav-paper); border-radius: 6px; padding: 13px 22px; font-weight: 500; }
:where(.ipav-content,.editor-styles-wrapper) .wpcf7-list-item { margin: 0 1em .5em 0; }
:where(.ipav-content,.editor-styles-wrapper) .wpcf7-not-valid-tip { color: #a42118; }
:where(.ipav-content,.editor-styles-wrapper) .wpcf7-response-output { margin-inline: 0; }
.ipav-content .wp-block-table { overflow-x: auto; }
.ipav-content .wp-block-table table { width: 100%; border-collapse: collapse; }
.ipav-content .wp-block-table :is(td,th) { padding: 12px; border: 1px solid var(--ipav-line); }
@media (max-width: 900px) { .ipav-grid-four { --ipav-columns: 2; } }
@media (max-width: 760px) {
  .ipav-content, .editor-styles-wrapper { font-size: 16px; }
  .ipav-grid { --ipav-columns: 1; --ipav-grid-template: minmax(0,1fr); }
  .ipav-hero { --ipav-overlay: .76; min-height: 0; }
  .ipav-grid-photo:not(.ipav-card) .wp-block-image img { aspect-ratio: 16/10; }
  .ipav-faq-item summary { font-size: 18px; }
}
@media (prefers-reduced-motion: no-preference) { .ipav-button, :is(.ipav-content,.editor-styles-wrapper) .wp-block-button__link { transition: background-color .15s ease,color .15s ease; } }
