/* ==========================================================================
   OW Canvas — Main stylesheet
   --------------------------------------------------------------------------
   Architecture :
   1. Tokens & resets (déclarés en CSS critique inliné, complétés ici)
   2. Typography
   3. Layout (container, grid, prose)
   4. Header / nav
   5. Hero / featured / cards
   6. Article / page / single
   7. Sidebar / widgets
   8. Footer
   9. Comments
   10. Forms / buttons / utilities
   11. Pagination / 404 / search
   12. Block editor compat
   13. Responsive
   14. Reduced motion / print fallback
   ========================================================================== */


/* ============================================================
   1. Tokens & resets
   ============================================================ */
:root {
  /* Colors (light) */
  --owc-paper:        #fafaf9;
  --owc-paper-tint:   #ffffff;
  --owc-ink:          #0a0a0a;
  --owc-ink-soft:     #1f1f1f;
  --owc-smoke:        #525252;
  --owc-ash:          #a3a3a3;
  --owc-fog:          #e5e5e5;
  --owc-mist:         #f1f1f0;
  --owc-accent:       #f97316;
  --owc-accent-soft:  #fed7aa;

  /* Type scale (fluid via clamp) */
  --owc-fs-xs:   0.75rem;
  --owc-fs-sm:   0.875rem;
  --owc-fs-md:   1.0625rem;
  --owc-fs-lg:   clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --owc-fs-xl:   clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  --owc-fs-2xl:  clamp(1.875rem, 1.4rem + 2.5vw, 2.75rem);
  --owc-fs-3xl:  clamp(2.5rem, 1.8rem + 4vw, 4.25rem);
  --owc-fs-4xl:  clamp(3rem, 2rem + 5vw, 6rem);

  /* Spacing */
  --owc-pad:        clamp(1rem, 4vw, 2.5rem);
  --owc-gap:        clamp(1rem, 2vw, 2rem);
  --owc-gap-lg:     clamp(2rem, 4vw, 4rem);
  --owc-gap-xl:     clamp(3rem, 6vw, 6rem);

  /* Sizes */
  --owc-content:    44rem;     /* prose width */
  --owc-wide:       72rem;     /* wide content */
  --owc-radius:     12px;
  --owc-radius-sm:  8px;
  --owc-header-h:   72px;

  /* Shadows */
  --owc-shadow-sm:  0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.06);
  --owc-shadow-md:  0 4px 14px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --owc-shadow-lg:  0 18px 50px -12px rgba(0,0,0,.12), 0 8px 18px -8px rgba(0,0,0,.08);

  /* Motion */
  --owc-ease:       cubic-bezier(.2, .7, .2, 1);
  --owc-fast:       150ms;
  --owc-base:       250ms;
  --owc-slow:       450ms;

  /* Fonts */
  --owc-font-sans:  "Inter Tight", "Inter Tight Fallback", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --owc-font-serif: "Newsreader", "Iowan Old Style", "Apple Garamond", Garamond, ui-serif, Georgia, serif;
  --owc-font-mono:  ui-monospace, "Geist Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --owc-paper:       #0a0a0a;
    --owc-paper-tint:  #131313;
    --owc-ink:         #fafaf9;
    --owc-ink-soft:    #e5e5e5;
    --owc-smoke:       #a3a3a3;
    --owc-ash:         #737373;
    --owc-fog:         #262626;
    --owc-mist:        #1c1c1c;
    --owc-accent-soft: #7c2d12;
    --owc-shadow-sm:   0 1px 2px rgba(0,0,0,.4);
    --owc-shadow-md:   0 4px 14px rgba(0,0,0,.5);
    --owc-shadow-lg:   0 18px 50px -12px rgba(0,0,0,.7);
  }
}

[data-theme="dark"] {
  --owc-paper:       #0a0a0a;
  --owc-paper-tint:  #131313;
  --owc-ink:         #fafaf9;
  --owc-ink-soft:    #e5e5e5;
  --owc-smoke:       #a3a3a3;
  --owc-ash:         #737373;
  --owc-fog:         #262626;
  --owc-mist:        #1c1c1c;
  --owc-accent-soft: #7c2d12;
}

[data-theme="light"] {
  --owc-paper:       #fafaf9;
  --owc-paper-tint:  #ffffff;
  --owc-ink:         #0a0a0a;
  --owc-ink-soft:    #1f1f1f;
  --owc-smoke:       #525252;
  --owc-ash:         #a3a3a3;
  --owc-fog:         #e5e5e5;
  --owc-mist:        #f1f1f0;
  --owc-accent-soft: #fed7aa;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--owc-font-sans);
  background: var(--owc-paper);
  color: var(--owc-ink);
  font-size: var(--owc-fs-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "kern";
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img, video, svg, picture { max-width: 100%; height: auto; display: block; }
img, video { border-radius: 0; }
a { color: inherit; text-decoration: none; transition: color var(--owc-fast) var(--owc-ease); }
a:hover { color: var(--owc-accent); }
::selection { background: var(--owc-ink); color: var(--owc-paper); }
:focus-visible { outline: 2px solid var(--owc-accent); outline-offset: 3px; border-radius: 2px; }


/* ============================================================
   2. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--owc-font-sans);
  color: var(--owc-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: var(--owc-fs-3xl); letter-spacing: -0.03em; }
h2 { font-size: var(--owc-fs-2xl); }
h3 { font-size: var(--owc-fs-xl); letter-spacing: -0.015em; }
h4 { font-size: var(--owc-fs-lg); }
h5 { font-size: var(--owc-fs-md); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
h6 { font-size: var(--owc-fs-sm); text-transform: uppercase; letter-spacing: 0.1em; color: var(--owc-smoke); font-weight: 600; }

p, ul, ol, dl, blockquote, pre, figure { margin: 0 0 1em; }
p { text-wrap: pretty; }

ul, ol { padding-left: 1.25em; }
ul li, ol li { margin: .25em 0; }

blockquote {
  margin: 2em 0;
  padding: .25em 0 .25em 1.5em;
  border-left: 3px solid var(--owc-ink);
  font-family: var(--owc-font-serif);
  font-size: 1.25em;
  font-style: italic;
  line-height: 1.5;
  color: var(--owc-ink-soft);
}
blockquote cite { display: block; margin-top: .5em; font-style: normal; font-size: .8em; color: var(--owc-smoke); font-family: var(--owc-font-sans); }

code, kbd, samp {
  font-family: var(--owc-font-mono);
  font-size: 0.9em;
  background: var(--owc-mist);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
pre {
  background: var(--owc-mist);
  border: 1px solid var(--owc-fog);
  border-radius: var(--owc-radius);
  padding: 1.25em 1.5em;
  overflow-x: auto;
  font-size: .9rem;
  line-height: 1.6;
}
pre code { background: transparent; padding: 0; }

hr {
  border: none;
  height: 1px;
  background: var(--owc-fog);
  margin: 3em auto;
  max-width: 4rem;
}

mark { background: var(--owc-accent-soft); color: inherit; padding: 0 0.15em; }

dfn, em, i { font-style: italic; }
strong, b { font-weight: 700; }
small { font-size: 0.875em; }

abbr[title] { text-decoration: underline dotted; cursor: help; }

table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
th, td { padding: .75em 1em; text-align: left; border-bottom: 1px solid var(--owc-fog); }
th { font-weight: 600; background: var(--owc-mist); }


/* ============================================================
   3. Layout
   ============================================================ */
.owc-container {
  width: 100%;
  max-width: var(--owc-wide);
  margin: 0 auto;
  padding-left: var(--owc-pad);
  padding-right: var(--owc-pad);
}

.owc-main {
  flex: 1;
  display: block;
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.owc-main:focus { outline: none; }

/* Quand OW Builder gère le rendu, on retire les paddings — son contenu doit être full-bleed. */
.owc-builder-page .owc-main {
  padding-top: 0;
  padding-bottom: 0;
}

.owc-prose {
  max-width: var(--owc-content);
  margin-inline: auto;
  font-size: var(--owc-fs-lg);
  line-height: 1.75;
  color: var(--owc-ink-soft);
}
.owc-prose > * + * { margin-top: 1.25em; }
.owc-prose > h2 { margin-top: 2em; }
.owc-prose > h3 { margin-top: 1.5em; }
.owc-prose > figure { margin: 2em 0; }
.owc-prose img { border-radius: var(--owc-radius); }
.owc-prose figcaption { font-size: var(--owc-fs-sm); color: var(--owc-smoke); margin-top: .5em; text-align: center; }
.owc-prose .alignwide { width: calc(100% + 8rem); margin-left: -4rem; max-width: none; }
.owc-prose .alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; border-radius: 0; }
.owc-prose .alignleft { float: left; margin: .5em 1.5em 1em 0; max-width: 50%; }
.owc-prose .alignright { float: right; margin: .5em 0 1em 1.5em; max-width: 50%; }
.owc-prose .aligncenter { margin-left: auto; margin-right: auto; }


/* ============================================================
   4. Header / nav
   ============================================================ */
.owc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--owc-paper) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--owc-base) var(--owc-ease), background var(--owc-base) var(--owc-ease);
}
.owc-header[data-scrolled="true"] {
  border-bottom-color: var(--owc-fog);
  background: color-mix(in srgb, var(--owc-paper) 95%, transparent);
}
.owc-header__inner {
  display: grid;
  grid-template-columns: minmax(0, max-content) 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--owc-header-h);
}

.owc-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  max-width: 16rem;
}
.owc-brand__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--owc-ink);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
/* Tagline is shown only on wide screens AND truncated to one ellipsised line —
   long taglines mustn't squeeze the nav. */
.owc-brand__tagline {
  font-size: .8rem;
  color: var(--owc-smoke);
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 24ch;
}
@media (min-width: 1280px) { .owc-brand__tagline { display: inline; } }

/* Header logo : agrandi */
.custom-logo { height: 64px !important; width: auto !important; max-height: none !important; background: transparent !important; }
.owc-brand__logo { display: inline-flex; align-items: center; line-height: 0; flex-shrink: 0; background: transparent !important; }
.owc-brand__logo img { display: block; height: 64px !important; width: auto !important; max-height: none !important; max-width: none !important; background: transparent !important; }
@media (min-width: 768px) {
  .custom-logo,
  .owc-brand__logo img { height: 80px !important; }
}
/* Footer logo : meme taille que le header pour la coherence visuelle */
.owc-footer__brand .custom-logo,
.owc-footer__brand .owc-brand__logo img { height: 64px !important; }
@media (min-width: 768px) {
  .owc-footer__brand .custom-logo,
  .owc-footer__brand .owc-brand__logo img { height: 80px !important; }
}
/* ==========================================================================
   Dark mode global — adapte les sections OW Builder aux inline styles hardcodes
   Couvre prefers-color-scheme: dark (auto) ET data-theme="dark" (manuel)
   ========================================================================== */
:root {
  --owc-dark-bg-page:   #0a0a0a;
  --owc-dark-bg-card:   #171717;
  --owc-dark-bg-tint:   #1c1410;  /* fond orange tint */
  --owc-dark-bg-soft:   #0f0f0f;
  --owc-dark-ink:       #fafafa;
  --owc-dark-body:      #cbd5e1;
  --owc-dark-muted:     #94a3b8;
  --owc-dark-border:    #262626;
  --owc-dark-border-soft: #1e293b;
}

/* Helper class for dark-mode overrides — used in two contexts below */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [style*="background:#fafaf9"],
  :root:not([data-theme="light"]) [style*="background: #fafaf9"] { background: var(--owc-dark-bg-page) !important; }
  :root:not([data-theme="light"]) [style*="background:#fff;"],
  :root:not([data-theme="light"]) [style*="background: #fff;"],
  :root:not([data-theme="light"]) [style*="background:#ffffff;"],
  :root:not([data-theme="light"]) [style*="background:#fff "],
  :root:not([data-theme="light"]) [style*="background: #fff "] { background: var(--owc-dark-bg-card) !important; }
  :root:not([data-theme="light"]) [style*="background:#fff7ed"],
  :root:not([data-theme="light"]) [style*="background:#ffedd5"],
  :root:not([data-theme="light"]) [style*="background:#fed7aa"] { background: var(--owc-dark-bg-tint) !important; }
  :root:not([data-theme="light"]) [style*="background:#f1f5f9"],
  :root:not([data-theme="light"]) [style*="background:#f8fafc"] { background: var(--owc-dark-bg-soft) !important; }
  :root:not([data-theme="light"]) [style*="color:#0f172a"] { color: var(--owc-dark-ink) !important; }
  :root:not([data-theme="light"]) [style*="color:#334155"] { color: var(--owc-dark-body) !important; }
  :root:not([data-theme="light"]) [style*="color:#475569"],
  :root:not([data-theme="light"]) [style*="color:#64748b"] { color: var(--owc-dark-muted) !important; }
  :root:not([data-theme="light"]) [style*="color:#9a3412"] { color: #fdba74 !important; }
  :root:not([data-theme="light"]) [style*="color:#c2410c"] { color: #fb923c !important; }
  :root:not([data-theme="light"]) [style*="border:1px solid #e7e5e4"],
  :root:not([data-theme="light"]) [style*="border: 1px solid #e7e5e4"] { border-color: var(--owc-dark-border) !important; }
  :root:not([data-theme="light"]) [style*="border-bottom:1px solid #e7e5e4"],
  :root:not([data-theme="light"]) [style*="border-top:1px solid #e7e5e4"],
  :root:not([data-theme="light"]) [style*="border-right:1px solid #f1f5f9"],
  :root:not([data-theme="light"]) [style*="border-left:1px solid #e7e5e4"] { border-color: var(--owc-dark-border) !important; }
  /* Articles : carte blanche → carte sombre */
  :root:not([data-theme="light"]) .owc-article__body { background: var(--owc-dark-bg-card) !important; color: var(--owc-dark-body) !important; }
  :root:not([data-theme="light"]) .owc-article__body h1,
  :root:not([data-theme="light"]) .owc-article__body h2,
  :root:not([data-theme="light"]) .owc-article__body h3,
  :root:not([data-theme="light"]) .owc-article__body h4,
  :root:not([data-theme="light"]) .owc-article__body strong { color: var(--owc-dark-ink) !important; }
  :root:not([data-theme="light"]) .owc-article__body p,
  :root:not([data-theme="light"]) .owc-article__body li { color: var(--owc-dark-body) !important; }
  :root:not([data-theme="light"]) .owc-article { background: var(--owc-dark-bg-page) !important; }
  :root:not([data-theme="light"]) .owc-article__footer { background: var(--owc-dark-bg-page) !important; }
  :root:not([data-theme="light"]) .owc-post-nav__link { background: var(--owc-dark-bg-card) !important; border-color: var(--owc-dark-border) !important; color: var(--owc-dark-ink) !important; }
  :root:not([data-theme="light"]) .owc-post-nav__title { color: var(--owc-dark-ink) !important; }
  /* Formulaire CF7 */
  :root:not([data-theme="light"]) .wpcf7-form { color: var(--owc-dark-body) !important; }
  :root:not([data-theme="light"]) .wpcf7-form input[type="text"],
  :root:not([data-theme="light"]) .wpcf7-form input[type="email"],
  :root:not([data-theme="light"]) .wpcf7-form input[type="tel"],
  :root:not([data-theme="light"]) .wpcf7-form textarea {
    background: #0f0f0f !important;
    color: var(--owc-dark-ink) !important;
    border-color: var(--owc-dark-border) !important;
  }
  :root:not([data-theme="light"]) .wpcf7-form label { color: var(--owc-dark-muted) !important; }
}

/* Force dark via toggle manuel — meme regles, prioritaires */
[data-theme="dark"] [style*="background:#fafaf9"],
[data-theme="dark"] [style*="background: #fafaf9"] { background: var(--owc-dark-bg-page) !important; }
[data-theme="dark"] [style*="background:#fff;"],
[data-theme="dark"] [style*="background: #fff;"],
[data-theme="dark"] [style*="background:#ffffff;"],
[data-theme="dark"] [style*="background:#fff "],
[data-theme="dark"] [style*="background: #fff "] { background: var(--owc-dark-bg-card) !important; }
[data-theme="dark"] [style*="background:#fff7ed"],
[data-theme="dark"] [style*="background:#ffedd5"],
[data-theme="dark"] [style*="background:#fed7aa"] { background: var(--owc-dark-bg-tint) !important; }
[data-theme="dark"] [style*="background:#f1f5f9"],
[data-theme="dark"] [style*="background:#f8fafc"] { background: var(--owc-dark-bg-soft) !important; }
[data-theme="dark"] [style*="color:#0f172a"] { color: var(--owc-dark-ink) !important; }
[data-theme="dark"] [style*="color:#334155"] { color: var(--owc-dark-body) !important; }
[data-theme="dark"] [style*="color:#475569"],
[data-theme="dark"] [style*="color:#64748b"] { color: var(--owc-dark-muted) !important; }
[data-theme="dark"] [style*="color:#9a3412"] { color: #fdba74 !important; }
[data-theme="dark"] [style*="color:#c2410c"] { color: #fb923c !important; }
[data-theme="dark"] [style*="border:1px solid #e7e5e4"],
[data-theme="dark"] [style*="border: 1px solid #e7e5e4"],
[data-theme="dark"] [style*="border-bottom:1px solid #e7e5e4"],
[data-theme="dark"] [style*="border-top:1px solid #e7e5e4"],
[data-theme="dark"] [style*="border-right:1px solid #f1f5f9"],
[data-theme="dark"] [style*="border-left:1px solid #e7e5e4"] { border-color: var(--owc-dark-border) !important; }
[data-theme="dark"] .owc-article__body { background: var(--owc-dark-bg-card) !important; color: var(--owc-dark-body) !important; }
[data-theme="dark"] .owc-article__body h1,
[data-theme="dark"] .owc-article__body h2,
[data-theme="dark"] .owc-article__body h3,
[data-theme="dark"] .owc-article__body h4,
[data-theme="dark"] .owc-article__body strong { color: var(--owc-dark-ink) !important; }
[data-theme="dark"] .owc-article__body p,
[data-theme="dark"] .owc-article__body li { color: var(--owc-dark-body) !important; }
[data-theme="dark"] .owc-article { background: var(--owc-dark-bg-page) !important; }
[data-theme="dark"] .owc-article__footer { background: var(--owc-dark-bg-page) !important; }
[data-theme="dark"] .owc-post-nav__link { background: var(--owc-dark-bg-card) !important; border-color: var(--owc-dark-border) !important; color: var(--owc-dark-ink) !important; }
[data-theme="dark"] .owc-post-nav__title { color: var(--owc-dark-ink) !important; }
[data-theme="dark"] .wpcf7-form { color: var(--owc-dark-body) !important; }
[data-theme="dark"] .wpcf7-form input[type="text"],
[data-theme="dark"] .wpcf7-form input[type="email"],
[data-theme="dark"] .wpcf7-form input[type="tel"],
[data-theme="dark"] .wpcf7-form textarea {
  background: #0f0f0f !important;
  color: var(--owc-dark-ink) !important;
  border-color: var(--owc-dark-border) !important;
}
[data-theme="dark"] .wpcf7-form label { color: var(--owc-dark-muted) !important; }

/* ===== Page d'accueil : sections OW Builder/Cargo legacy ===== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [style*="background-color:#f5fafd"],
  :root:not([data-theme="light"]) [style*="background-color: #f5fafd"],
  :root:not([data-theme="light"]) [style*="background:#f5fafd"],
  :root:not([data-theme="light"]) [style*="background: #f5fafd"] { background: var(--owc-dark-bg-soft) !important; background-color: var(--owc-dark-bg-soft) !important; }
  :root:not([data-theme="light"]) .owb-imported,
  :root:not([data-theme="light"]) .content-section,
  :root:not([data-theme="light"]) .owc-news-section { background: var(--owc-dark-bg-page) !important; background-color: var(--owc-dark-bg-page) !important; color: var(--owc-dark-body) !important; }
  :root:not([data-theme="light"]) .owc-news-section[style] { background-color: var(--owc-dark-bg-page) !important; }
  :root:not([data-theme="light"]) .owc-news-card { background: var(--owc-dark-bg-card) !important; color: var(--owc-dark-body) !important; }
  :root:not([data-theme="light"]) .owc-news-card * { color: inherit !important; }
  :root:not([data-theme="light"]) .owc-news-card__media { background: var(--owc-dark-bg-soft) !important; }
  :root:not([data-theme="light"]) .owc-news-card h2,
  :root:not([data-theme="light"]) .owc-news-card h3,
  :root:not([data-theme="light"]) .owc-news-card .owc-news-card__title,
  :root:not([data-theme="light"]) .owb-imported h1,
  :root:not([data-theme="light"]) .owb-imported h2,
  :root:not([data-theme="light"]) .owb-imported h3,
  :root:not([data-theme="light"]) .owb-imported h4,
  :root:not([data-theme="light"]) .owb-imported strong { color: var(--owc-dark-ink) !important; }
  :root:not([data-theme="light"]) .owb-imported p,
  :root:not([data-theme="light"]) .owb-imported li,
  :root:not([data-theme="light"]) .owb-imported span:not([style*="color:#"]):not([style*="color: #"]) { color: var(--owc-dark-body) !important; }
}

[data-theme="dark"] [style*="background-color:#f5fafd"],
[data-theme="dark"] [style*="background-color: #f5fafd"],
[data-theme="dark"] [style*="background:#f5fafd"],
[data-theme="dark"] [style*="background: #f5fafd"] { background: var(--owc-dark-bg-soft) !important; background-color: var(--owc-dark-bg-soft) !important; }
[data-theme="dark"] .owb-imported,
[data-theme="dark"] .content-section,
[data-theme="dark"] .owc-news-section { background: var(--owc-dark-bg-page) !important; background-color: var(--owc-dark-bg-page) !important; color: var(--owc-dark-body) !important; }
[data-theme="dark"] .owc-news-section[style] { background-color: var(--owc-dark-bg-page) !important; }
[data-theme="dark"] .owc-news-card { background: var(--owc-dark-bg-card) !important; color: var(--owc-dark-body) !important; }
[data-theme="dark"] .owc-news-card * { color: inherit !important; }
[data-theme="dark"] .owc-news-card__media { background: var(--owc-dark-bg-soft) !important; }
[data-theme="dark"] .owc-news-card h2,
[data-theme="dark"] .owc-news-card h3,
[data-theme="dark"] .owc-news-card .owc-news-card__title,
[data-theme="dark"] .owb-imported h1,
[data-theme="dark"] .owb-imported h2,
[data-theme="dark"] .owb-imported h3,
[data-theme="dark"] .owb-imported h4,
[data-theme="dark"] .owb-imported strong { color: var(--owc-dark-ink) !important; }
[data-theme="dark"] .owb-imported p,
[data-theme="dark"] .owb-imported li { color: var(--owc-dark-body) !important; }

/* ===== Cartes legacy Mesmerize/Cargo (form wrapper, etc.) ===== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card,
  :root:not([data-theme="light"]) .card.large-padding {
    background: var(--owc-dark-bg-card) !important;
    color: var(--owc-dark-body) !important;
    border-color: var(--owc-dark-border) !important;
  }
  :root:not([data-theme="light"]) .card * { color: inherit; }
  :root:not([data-theme="light"]) .card label { color: var(--owc-dark-muted) !important; }
}
[data-theme="dark"] .card,
[data-theme="dark"] .card.large-padding {
  background: var(--owc-dark-bg-card) !important;
  color: var(--owc-dark-body) !important;
  border-color: var(--owc-dark-border) !important;
}
[data-theme="dark"] .card * { color: inherit; }
[data-theme="dark"] .card label { color: var(--owc-dark-muted) !important; }

/* Bouton submit du formulaire : forcer la couleur de marque (override Mesmerize blue)
   Utilise #c2410c (darker brand orange) pour passer WCAG AA avec texte blanc.
   Centrage vertical via inline-flex + align-items:center + height fixe. */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit,
input.wpcf7-form-control.wpcf7-submit,
.contact-form-wrapper input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #c2410c !important;
  background-color: #c2410c !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 2rem !important;
  height: 48px !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: center !important;
  line-height: 1 !important;
  cursor: pointer !important;
  width: auto !important;
  min-width: 140px;
  vertical-align: middle !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}
.wpcf7-form input[type="submit"]:hover {
  background: #9a3412 !important;
}

/* Force light via toggle manuel : annule les regles dark auto au cas ou */
[data-theme="light"] [style*="background:#fafaf9"] { background: #fafaf9 !important; }
[data-theme="light"] [style*="background:#fff"] { background: #fff !important; }
[data-theme="light"] [style*="color:#0f172a"] { color: #0f172a !important; }
[data-theme="light"] [style*="color:#334155"] { color: #334155 !important; }

/* Article : titre + meta + cover doivent s'adapter au mode sombre */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .owc-article__title { color: var(--owc-dark-ink) !important; }
  :root:not([data-theme="light"]) .owc-article__meta,
  :root:not([data-theme="light"]) .owc-article__meta a,
  :root:not([data-theme="light"]) .owc-article__cover figcaption,
  :root:not([data-theme="light"]) .reading-time,
  :root:not([data-theme="light"]) .owc-article__header { color: var(--owc-dark-muted) !important; }
  :root:not([data-theme="light"]) .owc-article__header h1,
  :root:not([data-theme="light"]) .owc-article__header h2 { color: var(--owc-dark-ink) !important; }
}
[data-theme="dark"] .owc-article__title,
[data-theme="dark"] .owc-article__header h1,
[data-theme="dark"] .owc-article__header h2 { color: var(--owc-dark-ink) !important; }
[data-theme="dark"] .owc-article__meta,
[data-theme="dark"] .owc-article__meta a,
[data-theme="dark"] .owc-article__cover figcaption,
[data-theme="dark"] .reading-time { color: var(--owc-dark-muted) !important; }

/* Toggle des deux variantes de logo (light/dark) selon le mode courant */
.owc-logo--light { display: block !important; }
.owc-logo--dark  { display: none !important; }
@media (prefers-color-scheme: dark) {
  .owc-logo--light { display: none !important; }
  .owc-logo--dark  { display: block !important; }
}
/* L'utilisateur peut forcer manuellement via le toggle (data-theme) — prioritaire */
[data-theme="light"] .owc-logo--light { display: block !important; }
[data-theme="light"] .owc-logo--dark  { display: none  !important; }
[data-theme="dark"]  .owc-logo--light { display: none  !important; }
[data-theme="dark"]  .owc-logo--dark  { display: block !important; }
/* Masquer la tagline du site dans le header (description WP) */
.owc-header .owc-brand__tagline,
.owc-brand__tagline { display: none !important; }

.owc-nav { justify-self: center; }
.owc-nav__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.owc-nav__menu li { margin: 0; }
.owc-nav__menu a {
  position: relative;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--owc-ink-soft);
  padding: .5rem 0;
  transition: color var(--owc-fast) var(--owc-ease);
}
.owc-nav__menu a::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1.5px;
  background: var(--owc-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--owc-base) var(--owc-ease);
}
.owc-nav__menu a:hover, .owc-nav__menu .current-menu-item > a, .owc-nav__menu .current_page_item > a {
  color: var(--owc-ink);
}
.owc-nav__menu a:hover::after, .owc-nav__menu .current-menu-item > a::after, .owc-nav__menu .current_page_item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Sub-menu */
.owc-nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 220px;
  background: var(--owc-paper-tint);
  border: 1px solid var(--owc-fog);
  border-radius: var(--owc-radius);
  padding: .5rem;
  box-shadow: var(--owc-shadow-md);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(.25rem);
  transition: opacity var(--owc-fast), transform var(--owc-fast), visibility var(--owc-fast);
}
.owc-nav__menu li { position: relative; }
.owc-nav__menu li:hover > .sub-menu, .owc-nav__menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.owc-nav__menu .sub-menu a { display: block; padding: .5rem .75rem; border-radius: var(--owc-radius-sm); }
.owc-nav__menu .sub-menu a::after { display: none; }
.owc-nav__menu .sub-menu a:hover { background: var(--owc-mist); }

.owc-header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-self: end;
}
/* Search bar visible at rest with a soft fill — not aggressive enough to look
   like a "boxed card" next to the menu, but clearly identifiable as an input.
   No border at rest (the fill alone delineates the field). */
.owc-search-form {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: color-mix(in srgb, var(--owc-mist) 65%, var(--owc-paper));
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 .55rem 0 .85rem;
  height: 36px;
  width: 240px;
  transition: width var(--owc-base) var(--owc-ease),
              background var(--owc-fast) var(--owc-ease),
              border-color var(--owc-fast) var(--owc-ease),
              box-shadow var(--owc-fast) var(--owc-ease);
}
.owc-search-form:hover {
  background: color-mix(in srgb, var(--owc-mist) 90%, var(--owc-ink));
}
.owc-search-form:focus-within {
  background: var(--owc-paper);
  border-color: var(--owc-accent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--owc-accent) 25%, transparent);
}

/* Decorative search glyph on the left — visually anchors the input */
.owc-search-form__icon {
  flex: 0 0 auto;
  color: var(--owc-smoke);
  transition: color var(--owc-fast) var(--owc-ease);
}
.owc-search-form:hover .owc-search-form__icon,
.owc-search-form:focus-within .owc-search-form__icon { color: var(--owc-ink); }

/* Reset the input to a fully transparent text field. Every property the user
   agent or third-party CSS might paint a pill with is explicitly nuked so that
   the only thing visible is the typed character and caret. */
header.owc-header form.owc-search-form input.owc-search-form__input,
header.owc-header form.owc-search-form input.owc-search-form__input:hover,
header.owc-header form.owc-search-form input.owc-search-form__input:focus,
header.owc-header form.owc-search-form input.owc-search-form__input:focus-visible,
header.owc-header form.owc-search-form input.owc-search-form__input:active,
header.owc-header form.owc-search-form input.owc-search-form__input:not(:placeholder-shown) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  width: auto !important;
  flex: 1 1 auto;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: var(--owc-ink);
  min-width: 0;
  letter-spacing: -0.005em;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-text-fill-color: var(--owc-ink);
}
/* Chrome's autofill paints a yellow/gray pill via inset box-shadow — kill it. */
header.owc-header form.owc-search-form input.owc-search-form__input:-webkit-autofill,
header.owc-header form.owc-search-form input.owc-search-form__input:autofill {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: var(--owc-ink) !important;
  background: transparent !important;
  background-color: transparent !important;
  transition: background-color 9999s ease-out 0s;
}
.owc-search-form__input::placeholder {
  color: color-mix(in srgb, var(--owc-smoke) 85%, var(--owc-ink) 5%);
  font-weight: 400;
}

/* Right-side keyboard hint — disappears on focus to free real estate for the cursor */
.owc-search-form__hint {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 .35rem;
  font-family: inherit;
  font-size: .68rem;
  font-weight: 600;
  color: var(--owc-smoke);
  background: color-mix(in srgb, var(--owc-paper) 60%, var(--owc-fog));
  border: 1px solid color-mix(in srgb, var(--owc-fog) 80%, transparent);
  border-radius: 6px;
  transition: opacity var(--owc-fast) var(--owc-ease), transform var(--owc-fast) var(--owc-ease);
  user-select: none;
}
.owc-search-form:focus-within .owc-search-form__hint { opacity: 0; transform: translateX(4px); pointer-events: none; }
.owc-search-form__input:placeholder-shown ~ .owc-search-form__hint { opacity: 1; }
.owc-search-form__input:not(:placeholder-shown) ~ .owc-search-form__hint { opacity: 0; transform: translateX(4px); }

/* Native clear button — visible only when text is entered, restyled subtle */
.owc-search-form__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-left: .35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--owc-smoke) 70%, transparent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'><path d='M6 6 L18 18 M18 6 L6 18'/></svg>") center / 70% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'><path d='M6 6 L18 18 M18 6 L6 18'/></svg>") center / 70% no-repeat;
  cursor: pointer;
  transition: background var(--owc-fast);
}
.owc-search-form__input::-webkit-search-cancel-button:hover { background: var(--owc-ink); }

@media (max-width: 1100px) { .owc-search-form { width: 200px; } }
@media (max-width: 900px)  { .owc-search-form { display: none; } }

.owc-theme-toggle {
  width: 38px; height: 38px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--owc-ink-soft);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--owc-fast), color var(--owc-fast),
              border-color var(--owc-fast), transform var(--owc-fast),
              box-shadow var(--owc-fast);
}
.owc-theme-toggle:hover {
  background: color-mix(in srgb, var(--owc-paper) 60%, var(--owc-mist));
  border-color: color-mix(in srgb, var(--owc-fog) 70%, transparent);
  color: var(--owc-ink);
}
.owc-theme-toggle:active { transform: scale(.95); }
.owc-theme-toggle:focus-visible {
  outline: 0;
  border-color: var(--owc-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--owc-accent) 28%, transparent);
}
.owc-theme-toggle__moon { display: none; }
[data-theme="dark"] .owc-theme-toggle__sun { display: none; }
[data-theme="dark"] .owc-theme-toggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .owc-theme-toggle__sun { display: none; }
  :root:not([data-theme="light"]) .owc-theme-toggle__moon { display: block; }
}

/* Mobile nav */
.owc-nav__toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.owc-nav__toggle-bars { display: inline-block; width: 22px; height: 14px; position: relative; }
.owc-nav__toggle-bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--owc-ink);
  transition: transform var(--owc-base) var(--owc-ease), opacity var(--owc-fast);
}
.owc-nav__toggle-bars span:nth-child(1) { top: 0; }
.owc-nav__toggle-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.owc-nav__toggle-bars span:nth-child(3) { bottom: 0; }
.owc-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.owc-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.owc-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========== Header mobile / tablette ========== */
@media (max-width: 900px) {
  .owc-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: .5rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .owc-brand {
    max-width: none !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    overflow: hidden;
  }
  .owc-brand__logo img,
  .custom-logo { height: 56px !important; }
  .owc-search-form { display: none !important; }
  .owc-theme-toggle { width: 36px; height: 36px; flex-shrink: 0; }
  .owc-nav {
    order: 3 !important;
    justify-self: end !important;
    flex-shrink: 0;
  }
  .owc-nav__toggle {
    display: inline-flex !important;
    flex-shrink: 0;
  }
  /* Menu : display:none/flex + hauteur explicite (top/bottom seul ne marche pas tjrs avec flex-column) */
  .owc-nav__menu {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: calc(100vh - 72px) !important;
    max-height: calc(100dvh - 72px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 1.5rem var(--owc-pad) !important;
    margin: 0 !important;
    background: var(--owc-paper) !important;
    border-top: 1px solid var(--owc-fog) !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    list-style: none !important;
    /* Cache par defaut */
    display: none !important;
  }
  /* Affiche quand ouvert */
  .owc-nav__toggle[aria-expanded="true"] + .owc-nav__menu,
  .owc-nav__menu[data-open="true"] {
    display: flex !important;
  }
  .owc-nav__menu li {
    width: 100%;
    border-bottom: 1px solid var(--owc-fog);
    margin: 0 !important;
  }
  .owc-nav__menu a {
    display: block !important;
    padding: 1rem 0 !important;
    font-size: 1.125rem !important;
    color: var(--owc-ink) !important;
  }
  .owc-nav__menu a::after { display: none !important; }
  .owc-nav__menu .sub-menu {
    position: static !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 0 1rem 1rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* ========== Responsive global pour les grilles OW Builder ========== */
@media (max-width: 900px) {
  /* Grilles 4 colonnes -> 2 sur tablette */
  .owc-features-4,
  .owc-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* News cards 3-up -> 2 sur tablette */
  .owc-news-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.25rem !important; }
  /* Image+text 2 colonnes -> 1 colonne */
  .owc-it-2col { grid-template-columns: 1fr !important; gap: 2rem !important; }
  /* Info row 3-up -> 1 colonne */
  .owc-info-row { grid-template-columns: 1fr !important; gap: 1rem !important; }
  /* Tarifs grid 3 colonnes -> 2 sur tablette */
  .owc-tarifs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Sections - reduire le padding */
  section[style*="padding:6rem"],
  section[style*="padding: 6rem"] { padding: 3.5rem 1.25rem !important; }
  section[style*="padding:7rem"],
  section[style*="padding: 7rem"] { padding: 4rem 1.25rem 3rem !important; }
  section[style*="padding:5rem 1.5rem"],
  section[style*="padding: 5rem 1.5rem"] { padding: 3rem 1.25rem !important; }
  section[style*="padding:5rem 1.5rem 2rem"] { padding: 2.5rem 1.25rem 1.5rem !important; }
  /* Hero h1 - reduire tailles */
  section h1[style*="font-size:clamp(2.25rem"],
  section h1[style*="font-size:clamp(2rem,4.5vw"] { font-size: clamp(1.6rem, 6vw, 2.25rem) !important; }
  /* Reduire les gros titres */
  h2[style*="font-size:clamp(1.75rem"] { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
  h2[style*="font-size:clamp(1.625rem"] { font-size: clamp(1.4rem, 5vw, 1.75rem) !important; }
  /* Stats bar : flex-wrap deja en place, reduire bordures */
  section[style*="border-bottom:1px solid #e7e5e4"] [style*="border-right"] { border-right: 0 !important; }
  /* Hero CTA bandeau telephone : empile */
  section[style*="padding:3rem 1.5rem"][style*="linear-gradient(135deg,#0f172a"] > div { flex-direction: column !important; text-align: center; }
}

/* Tres petits ecrans : tout sur 1 colonne */
@media (max-width: 600px) {
  .owc-features-4,
  .owc-features-grid,
  .owc-tarifs-grid,
  .owc-news-row { grid-template-columns: 1fr !important; }
  /* CTA card article : empile */
  .owc-article__cta-card { flex-direction: column !important; align-items: stretch !important; text-align: center; }
  .owc-article__cta-actions { justify-content: center !important; }
  /* Footer : centre */
  .owc-footer__bottom { flex-direction: column !important; text-align: center !important; gap: 1rem !important; }
  /* Hero 2-col passe en stack en mode mobile portrait */
  section[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
}

/* Empeche le scroll horizontal sur tout ecran */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  img, video, iframe { max-width: 100%; height: auto; }
  table { display: block; overflow-x: auto; }
}

/* ==========================================================================
   Accessibilite : corrections de contraste WCAG AA
   ========================================================================== */
/* Sections legacy Cargo (#content-2, #content-13, etc.) : forcer un texte avec
   contraste suffisant en light + dark mode */
[id^="content-"] p,
[id^="content-"] li,
[id^="content-"] h1,
[id^="content-"] h2,
[id^="content-"] h3,
[id^="content-"] h4 {
  color: #1a1a1a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [id^="content-"] p,
  :root:not([data-theme="light"]) [id^="content-"] li { color: var(--owc-dark-body) !important; }
  :root:not([data-theme="light"]) [id^="content-"] h1,
  :root:not([data-theme="light"]) [id^="content-"] h2,
  :root:not([data-theme="light"]) [id^="content-"] h3,
  :root:not([data-theme="light"]) [id^="content-"] h4 { color: var(--owc-dark-ink) !important; }
}
[data-theme="dark"] [id^="content-"] p,
[data-theme="dark"] [id^="content-"] li { color: var(--owc-dark-body) !important; }
[data-theme="dark"] [id^="content-"] h1,
[data-theme="dark"] [id^="content-"] h2,
[data-theme="dark"] [id^="content-"] h3,
[data-theme="dark"] [id^="content-"] h4 { color: var(--owc-dark-ink) !important; }

/* News cards (homepage "Dernieres News") : contrastes lisibles
   Le background est inline en rgb() — on capture les deux formats. */
.owc-news-card,
a.owc-news-card { background: #fff !important; color: #0f172a !important; text-decoration: none !important; }
.owc-news-card__date { color: #9a3412 !important; font-weight: 700; }   /* darker orange = better contrast on white */
.owc-news-card__title { color: #0f172a !important; font-weight: 700; }
.owc-news-card__excerpt { color: #334155 !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .owc-news-card,
  :root:not([data-theme="light"]) .owc-news-card[style*="background: rgb(255, 255, 255)"],
  :root:not([data-theme="light"]) .owc-news-card[style*="background:rgb(255,255,255)"] { background: var(--owc-dark-bg-card) !important; }
  :root:not([data-theme="light"]) .owc-news-card__date { color: #fed7aa !important; }   /* light orange on dark card */
  :root:not([data-theme="light"]) .owc-news-card__title { color: var(--owc-dark-ink) !important; }
  :root:not([data-theme="light"]) .owc-news-card__excerpt { color: var(--owc-dark-body) !important; }
}
[data-theme="dark"] .owc-news-card,
[data-theme="dark"] .owc-news-card[style*="background: rgb(255, 255, 255)"],
[data-theme="dark"] .owc-news-card[style*="background:rgb(255,255,255)"] { background: var(--owc-dark-bg-card) !important; }
[data-theme="dark"] .owc-news-card__date { color: #fed7aa !important; }
[data-theme="dark"] .owc-news-card__title { color: var(--owc-dark-ink) !important; }
[data-theme="dark"] .owc-news-card__excerpt { color: var(--owc-dark-body) !important; }

/* Tous les boutons orange/brand pleins : fond #c2410c (darker brand orange)
   pour garantir 5:1 avec texte blanc (vs 3.58:1 pour #ea580c qui echoue AA). */
.owc-news-cta,
a.owc-news-cta,
.button.color2,
a.button.color2,
a[style*="background:#ea580c"][href^="tel:"],
a[style*="background: #ea580c"][href^="tel:"],
a[style*="background:rgb(234, 88, 12)"][href^="tel:"],
a[style*="background:rgb(234,88,12)"][href^="tel:"],
a[style*="background: rgb(234, 88, 12)"][href^="tel:"] {
  background: #c2410c !important;
  background-color: #c2410c !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 0 !important;
}
.owc-news-cta:hover,
.button.color2:hover { background: #9a3412 !important; color: #fff !important; }

/* Override TOUT bouton avec inline style background:#ea580c et texte blanc :
   passe automatiquement a #c2410c pour le contraste. Cela couvre les CTA
   "Appelez-nous", "Voir tous nos articles", etc. */
a[style*="background:#ea580c"],
a[style*="background: #ea580c"],
a[style*="background:rgb(234, 88, 12)"],
a[style*="background:rgb(234,88,12)"],
a[style*="background: rgb(234, 88, 12)"],
button[style*="background:#ea580c"],
button[style*="background: #ea580c"] {
  background: #c2410c !important;
  background-color: #c2410c !important;
}

/* Bouton "Reserver un Box" / cta-blue-section : si encore present, forcer contraste */
.cta-blue-section,
.cta-blue-section .button { color: #fff !important; }

/* Complianz cookie banner : contraste AA garanti */
.cmplz-btn.cmplz-accept {
  background: #c2410c !important;   /* darker brand orange = 5:1 avec blanc */
  color: #fff !important;
  border: 0 !important;
  font-weight: 700 !important;
}
.cmplz-btn.cmplz-deny {
  background: #1d1d1f !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 700 !important;
}
.cmplz-btn.cmplz-deny {
  background: #1d1d1f !important;
  color: #fff !important;
}
.cmplz-btn.cmplz-view-preferences,
.cmplz-btn.cmplz-save-preferences {
  background: #fff !important;
  color: #1d1d1f !important;
  border: 1px solid #1d1d1f !important;
}
.cmplz-cookiebanner * { color: inherit; }
.cmplz-cookiebanner h2,
.cmplz-cookiebanner h3,
.cmplz-cookiebanner .cmplz-title { color: #0f172a !important; font-weight: 700; }
.cmplz-cookiebanner p,
.cmplz-cookiebanner .cmplz-message { color: #334155 !important; }

/* Petits textes orange (eyebrows, links inline, dates) : forcer un orange plus
   sombre pour passer WCAG AA sur fond clair (#9a3412 au lieu de #ea580c).
   #ea580c sur fond blanc = 3.7:1 (FAIL AA pour <18px) ; #9a3412 sur blanc = 7.2:1 (PASS). */
[style*="color:#ea580c"][style*="font-size:.7"],
[style*="color:#ea580c"][style*="font-size: .7"],
[style*="color:#ea580c"][style*="font-size:0.7"],
[style*="color:#ea580c"][style*="font-size: 0.7"],
[style*="color:#ea580c"][style*="font-size:.75"],
[style*="color:#ea580c"][style*="font-size: .75"],
[style*="color:#ea580c"][style*="font-size:0.75"],
[style*="color:#ea580c"][style*="font-size: 0.75"],
[style*="color:#ea580c"][style*="font-size:.78"],
[style*="color:#ea580c"][style*="font-size: .78"],
[style*="color:#ea580c"][style*="font-size:.8"],
[style*="color:#ea580c"][style*="font-size: .8"],
[style*="color:#ea580c"][style*="font-size:.85"],
[style*="color:#ea580c"][style*="font-size: .85"],
[style*="color:#ea580c"][style*="font-size:.9"],
[style*="color:#ea580c"][style*="font-size: .9"],
[style*="color:#ea580c"][style*="font-size:0.9"],
[style*="color:#ea580c"][style*="font-size: 0.9"],
[style*="color:#ea580c"][style*="font-size:.95"],
[style*="color:#ea580c"][style*="font-size: .95"] {
  color: #9a3412 !important;
}
/* Eyebrows specific class */
.owc-eyebrow,
[class*="eyebrow"] {
  color: #9a3412 !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .owc-eyebrow,
  :root:not([data-theme="light"]) [class*="eyebrow"] { color: #fdba74 !important; }
}
[data-theme="dark"] .owc-eyebrow,
[data-theme="dark"] [class*="eyebrow"] { color: #fdba74 !important; }

/* Generique : s'assurer que les paragraphes vides de classe ont contraste fort.
   Exclu : sections marquées comme sombres via `color:#fff` inline (CTA dark navy, gradients, etc.). */
section:not([style*="color:#fff"]):not([style*="color: #fff"]):not([style*="color:#ffffff"]):not([style*="color: #ffffff"]):not([style*="color:white"]):not([style*="color: white"]) p:not([class]):not([style*="color"]),
div[id^="content-"] p:not([class]):not([style*="color"]) {
  color: #1a1a1a;
}
/* Restaurer un texte clair sur toute section au texte blanc inline (couvre :
   background:#0f172a;color:#fff
   background:linear-gradient(...,#0f172a...);color:#fff
   etc.) */
section[style*="color:#fff"] p:not([class]),
section[style*="color: #fff"] p:not([class]),
section[style*="color:#ffffff"] p:not([class]),
section[style*="color: #ffffff"] p:not([class]),
section[style*="color:white"] p:not([class]),
section[style*="color: white"] p:not([class]) {
  color: rgba(255,255,255,.92) !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) section:not([style*="color:#fff"]):not([style*="color: #fff"]):not([style*="color:#ffffff"]):not([style*="color:white"]) p:not([class]):not([style*="color"]),
  :root:not([data-theme="light"]) div[id^="content-"] p:not([class]):not([style*="color"]) {
    color: var(--owc-dark-body) !important;
  }
}
[data-theme="dark"] section:not([style*="color:#fff"]):not([style*="color: #fff"]):not([style*="color:#ffffff"]):not([style*="color:white"]) p:not([class]):not([style*="color"]),
[data-theme="dark"] div[id^="content-"] p:not([class]):not([style*="color"]) {
  color: var(--owc-dark-body) !important;
}

/* Tres petits ecrans : compacter encore le header */
@media (max-width: 480px) {
  .owc-brand__logo img,
  .custom-logo { height: 48px !important; }
  .owc-header__inner { padding-left: .75rem; padding-right: .75rem; gap: .4rem !important; }
  .owc-theme-toggle { width: 32px; height: 32px; }
  .owc-nav__toggle { width: 36px; height: 36px; }
}


/* ============================================================
   5. Hero / featured / cards
   ============================================================ */
.owc-eyebrow {
  font-size: var(--owc-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--owc-smoke);
  margin: 0 0 1rem;
}

.owc-hero {
  padding: clamp(3rem, 9vw, 8rem) 0 clamp(2rem, 5vw, 4rem);
  position: relative;
  isolation: isolate;
}
.owc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 0%, color-mix(in srgb, var(--owc-accent) 8%, transparent) 0%, transparent 70%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--owc-accent) 6%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.owc-hero__inner { max-width: 60rem; }
.owc-hero__title {
  font-size: var(--owc-fs-4xl);
  letter-spacing: -0.04em;
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 1rem;
}
.owc-hero__lede {
  font-size: var(--owc-fs-xl);
  line-height: 1.4;
  color: var(--owc-smoke);
  max-width: 40em;
  margin: 0;
}

/* Front-page hero — rendered above OW Builder content when active */
.owc-front-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, color-mix(in srgb, var(--owc-paper-tint) 60%, transparent) 0%, transparent 100%);
}
.owc-front-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 85% 5%, color-mix(in srgb, var(--owc-accent) 10%, transparent), transparent 70%),
    radial-gradient(45% 45% at 5% 95%, color-mix(in srgb, var(--owc-accent) 7%, transparent), transparent 70%);
  pointer-events: none;
}
.owc-front-hero__inner { max-width: 75rem; }
.owc-front-hero--centered .owc-front-hero__inner {
  max-width: 60rem;
  text-align: center;
}
.owc-front-hero--centered .owc-front-hero__lede { margin-left: auto; margin-right: auto; }
.owc-front-hero--split .owc-front-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) {
  .owc-front-hero--split .owc-front-hero__inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .owc-front-hero--split .owc-front-hero__media { order: -1; max-width: 28rem; margin: 0 auto; }
  .owc-front-hero--split .owc-front-hero__lede { margin-left: auto; margin-right: auto; }
}
.owc-front-hero__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--owc-ink);
}
.owc-front-hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--owc-smoke);
  max-width: 36em;
  margin: 0 0 2.25rem;
}
.owc-front-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  background: var(--owc-ink);
  color: var(--owc-paper);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform var(--owc-fast) var(--owc-ease), background var(--owc-fast) var(--owc-ease);
}
.owc-front-hero__cta:hover { background: var(--owc-accent); color: #fff; transform: translateY(-1px); }
.owc-front-hero__cta span { transition: transform var(--owc-fast) var(--owc-ease); }
.owc-front-hero__cta:hover span { transform: translateX(3px); }
.owc-front-hero__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--owc-ink) 35%, transparent);
  aspect-ratio: 4 / 3;
}
.owc-front-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* News grid — replaces the broken [mesmerize_latest_news] shortcode. Forced to
   span the full Mesmerize `.row` width (otherwise it inherits the narrow
   .section-title-col layout that wraps it in the imported Mesmerize markup). */
.owc-news-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.75rem !important;
  margin: 2rem auto 0 !important;
  width: 100% !important;
  max-width: 1200px !important;
  text-align: left !important;
  float: none !important;
}
@media (max-width: 880px) { .owc-news-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 580px) { .owc-news-grid { grid-template-columns: 1fr !important; } }
/* News card uses ABSOLUTE colours (not theme variables) so that the captured
   Mesmerize/EmpowerWP dark-mode CSS — which keeps painting `.card` and
   `.blog-section` descendants pitch-black — can't drag the card with it. */
.owc-news-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #0f172a !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  transition: transform var(--owc-base) var(--owc-ease),
              box-shadow var(--owc-base) var(--owc-ease),
              border-color var(--owc-fast);
  position: relative;
}
.owc-news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--owc-ink) 8%, transparent) 100%);
  opacity: 0;
  transition: opacity var(--owc-base) var(--owc-ease);
}
.owc-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--owc-ink) 22%, transparent);
  border-color: color-mix(in srgb, var(--owc-accent) 25%, var(--owc-fog));
}
.owc-news-card:hover::after { opacity: 1; }
.owc-news-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--owc-mist), var(--owc-fog)) center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.owc-news-card__media::before {
  content: "";
  position: absolute; inset: 0;
  background: inherit;
  background-position: center;
  background-size: cover;
  transition: transform 6s var(--owc-ease);
}
.owc-news-card:hover .owc-news-card__media::before { transform: scale(1.06); }
.owc-news-card__body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.owc-news-card__date {
  display: inline-block !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  color: #9a3412 !important; /* darker orange — passes WCAG AA on white card (7.2:1) */
  margin: 0 !important;
}
.owc-news-card__title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  color: #0f172a !important; /* ink — explicit (white text on white card otherwise) */
  letter-spacing: -0.01em !important;
  text-shadow: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}
.owc-news-card__excerpt {
  font-size: .9rem !important;
  line-height: 1.55 !important;
  color: #475569 !important; /* slate-600 — readable on white */
  margin: 0 !important;
  text-shadow: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}
/* Clean news section — replaces Mesmerize's broken latest-news block. No
   inheritance from `.row > [data-type="row"]` style traps. */
.owb-imported .owc-news-section { width: 100% !important; }
.owb-imported .owc-news-wrap { width: 100% !important; }
.owb-imported .owc-news-heading {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  text-align: center !important;
  margin: 0 0 2.5rem !important;
  color: #0f172a !important;
  position: relative;
  padding-bottom: 1rem;
}
.owb-imported .owc-news-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px; height: 3px;
  background: #ea580c;
  border-radius: 2px;
}
.owb-imported .owc-news-cta {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.8rem !important;
  background: #c2410c !important;       /* darker orange = 5.2:1 with white (passes AA) */
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  text-decoration: none !important;
  letter-spacing: .01em;
  transition: transform var(--owc-fast), background var(--owc-fast), box-shadow var(--owc-fast);
  box-shadow: 0 4px 14px rgba(194,65,12,.25);
}
.owb-imported .owc-news-cta:hover {
  background: #9a3412 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(194,65,12,.35);
}

/* Contact Form 7 inside imported content — undo the white empty card. */
.owb-imported .wpcf7,
.owb-imported .wpcf7-form {
  background: transparent;
  color: inherit;
}
.owb-imported .wpcf7 input[type="text"],
.owb-imported .wpcf7 input[type="email"],
.owb-imported .wpcf7 input[type="tel"],
.owb-imported .wpcf7 input[type="url"],
.owb-imported .wpcf7 textarea,
.owb-imported .wpcf7 select {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.94);
  color: #0f172a;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  margin-top: .35rem;
}
.owb-imported .wpcf7 textarea { min-height: 7rem; resize: vertical; }
.owb-imported .wpcf7 input:focus,
.owb-imported .wpcf7 textarea:focus {
  outline: 0;
  border-color: var(--owc-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--owc-accent) 25%, transparent);
}
.owb-imported .wpcf7 label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: rgba(255,255,255,.95);
  margin-bottom: .25rem;
}
.owb-imported .card.large-padding .wpcf7 label { color: #0f172a; }
.owb-imported .wpcf7-submit,
.owb-imported .wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: .9rem 1.8rem;
  background: var(--owc-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform var(--owc-fast), background var(--owc-fast);
}
.owb-imported .wpcf7-submit:hover,
.owb-imported .wpcf7 input[type="submit"]:hover {
  background: color-mix(in srgb, var(--owc-accent) 80%, var(--owc-ink));
  transform: translateY(-1px);
}
.owb-imported .wpcf7-spinner { display: none; }
.owb-imported .wpcf7-not-valid-tip {
  color: #b91c1c; font-size: .8rem; margin-top: .25rem; display: block;
}
.owb-imported .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.95);
  color: #0f172a;
  font-size: .9rem;
}

/* ============================================================
   Prose typography — editorial, refined, modern
   Inspired by Linear / Stripe / Apple's docs aesthetic.
   ============================================================ */
.owb-imported .owc-prose {
  font-size: 1.125rem !important;
  line-height: 1.75 !important;
  color: #334155 !important;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1 !important;
  font-weight: 400 !important;
}
.owb-imported .owc-prose > * + * { margin-top: 1.5rem !important; }
.owb-imported .owc-prose h1,
.owb-imported .owc-prose h2,
.owb-imported .owc-prose h3,
.owb-imported .owc-prose h4 {
  color: #0f172a !important;
  letter-spacing: -0.022em !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
.owb-imported .owc-prose h1 {
  font-size: clamp(1.875rem, 3.4vw, 2.375rem) !important;
  margin: 3.5rem 0 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.028em !important;
}
.owb-imported .owc-prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem) !important;
  margin: 3.25rem 0 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.024em !important;
}
.owb-imported .owc-prose h3 {
  font-size: 1.375rem !important;
  margin: 2.5rem 0 .85rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.018em !important;
  color: #0f172a !important;
}
.owb-imported .owc-prose h4 {
  font-size: 1.125rem !important;
  margin: 2rem 0 .65rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.012em !important;
}
.owb-imported .owc-prose > h1:first-child,
.owb-imported .owc-prose > h2:first-child,
.owb-imported .owc-prose > h3:first-child { margin-top: 0 !important; }
.owb-imported .owc-prose p {
  margin: 0 !important;
  color: #334155 !important;
  text-align: left !important; /* override inherited justify from legacy editor */
}
/* Lede paragraph (first one after a heading) — slightly larger, lighter */
.owb-imported .owc-prose > h1 + p,
.owb-imported .owc-prose > h2 + p {
  font-size: 1.2rem !important;
  line-height: 1.65 !important;
  color: #475569 !important;
}
.owb-imported .owc-prose a {
  color: #0f172a !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px !important;
  text-decoration-color: rgba(234,88,12,.55) !important;
  font-weight: 500 !important;
  transition: text-decoration-color .15s ease, color .15s ease;
}
.owb-imported .owc-prose a:hover {
  color: #ea580c !important;
  text-decoration-color: #ea580c !important;
  text-decoration-thickness: 2px !important;
}
.owb-imported .owc-prose ul,
.owb-imported .owc-prose ol {
  padding-left: 0 !important;
  margin: 1.5rem 0 !important;
  list-style: none !important;
}
.owb-imported .owc-prose ul li,
.owb-imported .owc-prose ol li {
  position: relative;
  padding-left: 1.5rem !important;
  margin: .65rem 0 !important;
  line-height: 1.7 !important;
  color: #334155 !important;
}
/* Subtle slate dot, not aggressive accent */
.owb-imported .owc-prose ul li::before {
  content: "";
  position: absolute;
  left: .35rem; top: .85em;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: #94a3b8;
}
.owb-imported .owc-prose ol { counter-reset: owc-li; }
.owb-imported .owc-prose ol li { counter-increment: owc-li; padding-left: 2.25rem !important; }
.owb-imported .owc-prose ol li::before {
  content: counter(owc-li) ".";
  position: absolute; left: 0; top: 0;
  font-weight: 600;
  color: #ea580c;
  font-variant-numeric: tabular-nums;
}
/* Images : full-width, dramatic shadow, slightly breaking out of prose column.
   Override Gutenberg's inline width="XXXpx" with a confident default. */
.owb-imported .owc-prose img,
.owb-imported .owc-prose figure img,
.owb-imported .owc-prose .wp-block-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 16px !important;
  margin: 0 !important;
  display: block !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 24px 60px -16px rgba(15,23,42,.18) !important;
  object-fit: cover;
}
.owb-imported .owc-prose figure {
  margin: 3.5rem 0 !important;
  padding: 0 !important;
}
.owb-imported .owc-prose figure.wp-block-image,
.owb-imported .owc-prose .wp-block-image {
  margin: 3.5rem 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
/* Gutenberg's `is-resized` adds inline `style="width:XXXpx"` on the figure —
   override so figures fill the prose column. */
.owb-imported .owc-prose figure.is-resized,
.owb-imported .owc-prose .wp-block-image.is-resized {
  width: 100% !important;
  max-width: 100% !important;
}
.owb-imported .owc-prose figcaption {
  margin-top: .85rem !important;
  font-size: .875rem !important;
  color: #94a3b8 !important;
  text-align: center !important;
  font-style: italic !important;
  font-weight: 400 !important;
}
/* Optional asymmetric breakout when image is .alignwide (prose +4rem each side) */
@media (min-width: 1024px) {
  .owb-imported .owc-prose .alignwide,
  .owb-imported .owc-prose .alignfull {
    width: calc(100% + 6rem) !important;
    max-width: calc(100% + 6rem) !important;
    margin-left: -3rem !important;
    margin-right: -3rem !important;
  }
}
/* Full-width breakout for prominent images (.alignwide / .alignfull) */
.owb-imported .owc-prose .wp-block-image.alignwide,
.owb-imported .owc-prose .alignwide {
  width: calc(100% + 8rem) !important;
  max-width: calc(100% + 8rem) !important;
  margin-left: -4rem !important;
  margin-right: -4rem !important;
}
@media (max-width: 880px) {
  .owb-imported .owc-prose .alignwide { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
}
/* Video container — used for both [embed] iframes and HTML5 <video> */
.owb-imported .owc-prose .owc-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin: 2.75rem 0;
  background: #0f172a;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 16px 48px -10px rgba(15,23,42,.18);
}
.owb-imported .owc-prose .owc-video iframe,
.owb-imported .owc-prose .owc-video video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
  object-fit: cover;
}
.owb-imported .owc-prose figure {
  margin: 2.5rem 0 !important;
}
.owb-imported .owc-prose figcaption {
  margin-top: .75rem !important;
  font-size: .85rem !important;
  color: #64748b !important;
  text-align: center !important;
  font-style: italic;
}
/* HTML5 video / iframe wrappers (already styled inline but reinforce) */
.owb-imported .owc-prose .owc-video,
.owb-imported .owc-prose video,
.owb-imported .owc-prose iframe {
  border-radius: 16px !important;
  max-width: 100% !important;
}
/* Loose <video> outside .owc-video wrapper — same treatment for safety */
.owb-imported .owc-prose > video {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 16px 48px -10px rgba(15,23,42,.18) !important;
  margin: 2.75rem 0 !important;
  background: #0f172a !important;
}
.owb-imported .owc-prose blockquote {
  border-left: 4px solid #ea580c !important;
  padding: .5rem 0 .5rem 1.5rem !important;
  margin: 2.5rem 0 !important;
  color: #475569 !important;
  font-style: italic !important;
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  background: linear-gradient(90deg, rgba(234,88,12,.04), transparent) !important;
  padding-right: 1rem !important;
}
.owb-imported .owc-prose strong { font-weight: 700 !important; color: #0f172a !important; }
.owb-imported .owc-prose em { color: #475569 !important; }
.owb-imported .owc-prose hr {
  border: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent) !important;
  margin: 3.5rem 0 !important;
}
.owb-imported .owc-prose table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 2rem 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
  border: 1px solid #e2e8f0 !important;
}
.owb-imported .owc-prose th,
.owb-imported .owc-prose td {
  padding: .85rem 1.1rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  text-align: left !important;
}
.owb-imported .owc-prose tr:last-child td { border-bottom: 0 !important; }
.owb-imported .owc-prose th { background: #f8fafc !important; font-weight: 700 !important; color: #0f172a !important; }
.owb-imported .owc-prose code {
  background: #f1f5f9 !important;
  padding: .2rem .45rem !important;
  border-radius: 6px !important;
  font-size: .9em !important;
  font-family: ui-monospace, SF Mono, Menlo, monospace !important;
  color: #0f172a !important;
}
/* Empty paragraphs (artifacts of wpautop on stripped shortcodes) */
.owb-imported .owc-prose p:empty,
.owb-imported .owc-prose p:has(> br:only-child) { display: none !important; }

/* Auto-detected phone / email links inside prose — pill chip styling */
.owb-imported .owc-prose .owc-phone,
.owb-imported .owc-prose .owc-email {
  display: inline-block;
  padding: .15rem .55rem;
  background: rgba(234,88,12,.08);
  color: #c2410c !important;
  border-radius: 6px;
  font-weight: 500 !important;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: .95em;
}
.owb-imported .owc-prose .owc-phone:hover,
.owb-imported .owc-prose .owc-email:hover {
  background: rgba(234,88,12,.16);
  color: #9a3412 !important;
  text-decoration: none !important;
}

/* Override Gutenberg's `<em>` wrapping on headings — looks weird when ALL
   titles are italicised (as in legacy Mesmerize-imported content). */
.owb-imported .owc-prose h1 em,
.owb-imported .owc-prose h2 em,
.owb-imported .owc-prose h3 em,
.owb-imported .owc-prose h4 em {
  font-style: normal !important;
}
/* Override Gutenberg center alignment on headings inside prose — left reads better */
.owb-imported .owc-prose h1.has-text-align-center,
.owb-imported .owc-prose h2.has-text-align-center,
.owb-imported .owc-prose h3.has-text-align-center,
.owb-imported .owc-prose h4.has-text-align-center {
  text-align: left !important;
}
/* Info row (sidebar cards displayed in a 3-up grid below the prose body) */
.owb-imported .owc-info-row > div {
  display: flex;
  flex-direction: column;
}
@media (max-width: 920px) {
  .owb-imported .owc-info-row {
    grid-template-columns: 1fr !important;
  }
}

/* CRITICAL : the captured Mesmerize/Bootstrap CSS applies a universal clearfix
   `display: table; content: ""` on EVERY <div>::before / ::after inside
   `.owb-imported`. When the parent is a grid or flex container, these pseudos
   BECOME grid/flex items — pushing real children to wrong cells (cause of the
   2+3+1 layout we kept seeing on news / tarifs / info-row).

   We neutralise the pseudos on every layout container we use, plus any inline
   grid/flex container. */
.owb-imported [style*="display:grid"]::before,
.owb-imported [style*="display:grid"]::after,
.owb-imported [style*="display: grid"]::before,
.owb-imported [style*="display: grid"]::after,
.owb-imported [style*="display:flex"]::before,
.owb-imported [style*="display:flex"]::after,
.owb-imported [style*="display: flex"]::before,
.owb-imported [style*="display: flex"]::after,
.owb-imported .owc-info-row::before,
.owb-imported .owc-info-row::after,
.owb-imported .owc-info-row > *::before,
.owb-imported .owc-info-row > *::after,
.owb-imported .owc-news-grid::before,
.owb-imported .owc-news-grid::after,
.owb-imported .owc-news-section::before,
.owb-imported .owc-news-section::after,
.owb-imported .owc-news-wrap::before,
.owb-imported .owc-news-wrap::after,
.owb-imported .owc-tarifs-row::before,
.owb-imported .owc-tarifs-row::after,
.owb-imported .owc-front-hero__inner::before,
.owb-imported .owc-front-hero__inner::after,
.owb-imported .owc-prose .owc-video::before,
.owb-imported .owc-prose .owc-video::after {
  display: none !important;
  content: none !important;
}

/* Wider, more confident prose for desktop reading — 880px instead of 720px */
@media (min-width: 1100px) {
  .owb-imported .owc-prose { font-size: 1.15rem !important; }
}
/* Bigger H2 inside content for stronger visual hierarchy */
.owb-imported .owc-prose h2 {
  font-size: clamp(1.625rem, 2.8vw, 2.125rem) !important;
  margin-top: 3.5rem !important;
}
.owb-imported .owc-prose h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem) !important;
  color: #0f172a !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  position: relative;
  padding-top: 1.5rem;
}
/* Decorative accent dash above each H3 to mark a new sub-section */
.owb-imported .owc-prose h3::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 32px;
  height: 3px;
  background: #ea580c;
  border-radius: 2px;
}
/* H2 also gets a subtle eyebrow uppercase label feel via a thicker accent dash */
.owb-imported .owc-prose h2 {
  position: relative;
  padding-top: 2rem;
  margin-top: 4rem !important;
}
.owb-imported .owc-prose h2::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 48px;
  height: 4px;
  background: #ea580c;
  border-radius: 2px;
}
.owb-imported .owc-prose > h2:first-child::before,
.owb-imported .owc-prose > h3:first-child::before {
  display: none;
}
/* First paragraph of body — slightly larger lede style */
.owb-imported .owc-prose > p:first-of-type {
  font-size: 1.2rem !important;
  line-height: 1.65 !important;
  color: #1e293b !important;
  font-weight: 400 !important;
}

/* ============================================================
   Magazine body — alternating section backgrounds for visual rhythm
   ============================================================ */
.owb-imported .owc-magazine-body { background: #fff; }
.owb-imported .owc-content-section {
  padding: 5rem 1.5rem !important;
  position: relative;
}
.owb-imported .owc-section-light { background: #ffffff; }
.owb-imported .owc-section-cream {
  background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
}
.owb-imported .owc-section-inner {
  max-width: 720px;
  margin: 0 auto;
  /* Apply prose typography here directly */
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #334155;
}
.owb-imported .owc-section-inner > * + * { margin-top: 1.4rem; }
.owb-imported .owc-section-inner h2,
.owb-imported .owc-section-inner h3,
.owb-imported .owc-section-inner h4 {
  color: #0f172a;
  letter-spacing: -0.022em;
  line-height: 1.2;
  font-weight: 700;
}
.owb-imported .owc-section-inner > h2:first-child {
  margin-top: 0 !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 1.5rem;
  position: relative;
  padding-top: 0;
}
.owb-imported .owc-section-inner > h2:first-child::before { display: none; }
.owb-imported .owc-section-inner h3 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: .85rem;
  position: relative;
  padding-top: 1.25rem;
}
.owb-imported .owc-section-inner h3::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 3px;
  background: #ea580c;
  border-radius: 2px;
}
.owb-imported .owc-section-inner p { margin: 0; line-height: 1.75; }
.owb-imported .owc-section-inner > h2:first-child + p {
  font-size: 1.18rem;
  line-height: 1.65;
  color: #475569;
  margin-top: 1rem;
}
.owb-imported .owc-section-inner figure,
.owb-imported .owc-section-inner .wp-block-image {
  margin: 2.5rem 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.owb-imported .owc-section-inner figure img,
.owb-imported .owc-section-inner .wp-block-image img,
.owb-imported .owc-section-inner img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px !important;
  display: block !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 18px 48px -16px rgba(15,23,42,.16) !important;
  margin: 0 !important;
}
.owb-imported .owc-section-inner ul,
.owb-imported .owc-section-inner ol {
  padding-left: 0 !important;
  margin: 1.5rem 0 !important;
  list-style: none !important;
}
.owb-imported .owc-section-inner ul li,
.owb-imported .owc-section-inner ol li {
  position: relative;
  padding-left: 1.5rem !important;
  margin: .65rem 0 !important;
  line-height: 1.7 !important;
}
.owb-imported .owc-section-inner ul li::before {
  content: "";
  position: absolute;
  left: .35rem; top: .85em;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: #94a3b8;
}
.owb-imported .owc-section-inner a:not(.owc-phone):not(.owc-email) {
  color: #0f172a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(234,88,12,.55);
  font-weight: 500;
  transition: text-decoration-color .15s, color .15s;
}
.owb-imported .owc-section-inner a:not(.owc-phone):not(.owc-email):hover {
  color: #ea580c;
  text-decoration-color: #ea580c;
}
.owb-imported .owc-section-inner strong { color: #0f172a; font-weight: 700; }
/* Auto-detected phone / email pills inside section content */
.owb-imported .owc-section-inner .owc-phone,
.owb-imported .owc-section-inner .owc-email {
  display: inline-block;
  padding: .15rem .55rem;
  background: rgba(234,88,12,.08);
  color: #c2410c !important;
  border-radius: 6px;
  font-weight: 500 !important;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: .95em;
}
.owb-imported .owc-section-inner .owc-phone:hover,
.owb-imported .owc-section-inner .owc-email:hover {
  background: rgba(234,88,12,.16);
}
/* Neutralize the captured Mesmerize clearfix on every section-inner div */
.owb-imported .owc-section-inner::before,
.owb-imported .owc-section-inner::after,
.owb-imported .owc-content-section::before,
.owb-imported .owc-content-section::after { display: none !important; content: none !important; }

.owc-section-title {
  font-size: var(--owc-fs-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--owc-fog);
}

.owc-archive__header { margin-bottom: var(--owc-gap-lg); }
.owc-archive__title { font-size: var(--owc-fs-3xl); margin: 0 0 .5rem; }
.owc-archive__description { color: var(--owc-smoke); max-width: var(--owc-content); }
.owc-archive__sub-header { margin: var(--owc-gap-lg) 0 var(--owc-gap); }

.owc-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--owc-gap-lg);
  align-items: center;
  margin-bottom: var(--owc-gap-xl);
  padding-bottom: var(--owc-gap-lg);
  border-bottom: 1px solid var(--owc-fog);
}
.owc-feature__media {
  overflow: hidden;
  border-radius: var(--owc-radius);
  background: var(--owc-mist);
  aspect-ratio: 16 / 11;
}
.owc-feature__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--owc-slow) var(--owc-ease);
}
.owc-feature:hover .owc-feature__media img { transform: scale(1.03); }
.owc-feature__title { font-size: var(--owc-fs-2xl); line-height: 1.1; margin: .5rem 0 1rem; }
.owc-feature__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--owc-base) var(--owc-ease); }
.owc-feature__title a:hover { background-size: 100% 1.5px; }
.owc-feature__excerpt { color: var(--owc-smoke); font-size: var(--owc-fs-lg); line-height: 1.55; margin-bottom: 1.5rem; }
@media (max-width: 768px) {
  .owc-feature { grid-template-columns: 1fr; }
}

/* Grid */
.owc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: var(--owc-gap-lg) var(--owc-gap);
}

/* Card */
.owc-card { display: flex; flex-direction: column; gap: 1rem; }
.owc-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--owc-radius);
  background: var(--owc-mist);
  aspect-ratio: 4 / 3;
}
.owc-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--owc-slow) var(--owc-ease), filter var(--owc-base);
}
.owc-card:hover .owc-card__media img { transform: scale(1.04); }
.owc-card__body { display: flex; flex-direction: column; gap: .65rem; }
.owc-card__title {
  font-size: var(--owc-fs-xl);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}
.owc-card__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--owc-base) var(--owc-ease);
  padding-bottom: 2px;
}
.owc-card__title a:hover { background-size: 100% 1.5px; }
.owc-card__excerpt { color: var(--owc-smoke); margin: 0; font-size: var(--owc-fs-md); }

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: var(--owc-fs-xs);
  color: var(--owc-smoke);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.entry-meta a { color: inherit; }
.entry-meta a:hover { color: var(--owc-ink); }
.entry-meta .meta-sep { opacity: .5; }
.entry-cat { color: var(--owc-accent) !important; }


/* ============================================================
   6. Article / single
   ============================================================ */
.owc-article__header { padding-top: clamp(1rem, 4vw, 3rem); margin-bottom: 2rem; max-width: var(--owc-content); }
.owc-article__title {
  font-size: clamp(2rem, 1.5rem + 3vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: .25em 0 .75em;
}
.owc-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: var(--owc-fs-sm);
  color: var(--owc-smoke);
}
.owc-article__meta a { color: var(--owc-ink-soft); font-weight: 500; }
.owc-article__cover {
  margin: 2rem auto;
  max-width: var(--owc-wide);
  padding-inline: var(--owc-pad);
}
.owc-article__cover img { border-radius: var(--owc-radius); width: 100%; }
.owc-article__cover figcaption { font-size: var(--owc-fs-sm); color: var(--owc-smoke); margin-top: .5em; text-align: center; }

.owc-prose > p:first-of-type::first-letter {
  font-family: var(--owc-font-serif);
  font-size: 4em;
  line-height: 0.9;
  float: left;
  padding: 0.05em 0.1em 0 0;
  color: var(--owc-ink);
  font-weight: 600;
}
@media (max-width: 600px) {
  .owc-prose > p:first-of-type::first-letter { font-size: 3em; }
}

.owc-tags {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.owc-tags li a {
  display: inline-block;
  padding: .35rem .75rem;
  background: var(--owc-mist);
  border-radius: 999px;
  font-size: var(--owc-fs-xs);
  letter-spacing: 0.05em;
  color: var(--owc-ink-soft);
  transition: background var(--owc-fast);
}
.owc-tags li a:hover { background: var(--owc-fog); color: var(--owc-ink); }

.owc-article__footer { padding-top: 2rem; max-width: var(--owc-content); }

.owc-author-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--owc-mist);
  border-radius: var(--owc-radius);
  margin: 2rem 0 3rem;
}
.owc-author-card__avatar { border-radius: 999px; flex-shrink: 0; }
.owc-author-card__name { font-weight: 600; margin: 0 0 .25rem; }
.owc-author-card__bio { font-size: var(--owc-fs-sm); color: var(--owc-smoke); margin: 0; }

.owc-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--owc-fog);
}
.owc-post-nav__link {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.25rem;
  border: 1px solid var(--owc-fog);
  border-radius: var(--owc-radius);
  transition: border-color var(--owc-fast), background var(--owc-fast);
}
.owc-post-nav__link:hover { border-color: var(--owc-ink); background: var(--owc-mist); }
.owc-post-nav__link--next { text-align: right; }
.owc-post-nav__label { font-size: var(--owc-fs-xs); color: var(--owc-smoke); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.owc-post-nav__title { font-weight: 600; line-height: 1.3; }
@media (max-width: 600px) {
  .owc-post-nav { grid-template-columns: 1fr; }
}


/* ============================================================
   7. Page
   ============================================================ */
.owc-page__header { padding-top: clamp(1rem, 4vw, 3rem); margin-bottom: 2rem; max-width: var(--owc-content); }
.owc-page__title { font-size: var(--owc-fs-3xl); letter-spacing: -0.03em; margin: .25em 0; }
.owc-page__cover { margin: 2rem auto; max-width: var(--owc-wide); padding-inline: var(--owc-pad); }
.owc-page__cover img { border-radius: var(--owc-radius); width: 100%; }


/* ============================================================
   8. Breadcrumb
   ============================================================ */
.owc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: var(--owc-fs-xs);
  color: var(--owc-smoke);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0 1rem;
}
.owc-breadcrumb a { color: inherit; }
.owc-breadcrumb a:hover { color: var(--owc-ink); }
.owc-breadcrumb [aria-current="page"] { color: var(--owc-ink); }


/* ============================================================
   9. Footer
   ============================================================ */
.owc-footer {
  margin-top: 0;
  background: transparent;
  border-top: 0;
}
.owc-footer__widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--owc-gap-lg);
  padding: clamp(3rem, 5vw, 5rem) var(--owc-pad);
}
.owc-footer__col .widget-title { font-size: var(--owc-fs-sm); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; margin: 0 0 1rem; color: var(--owc-ink); }
.owc-footer__col .widget { margin-bottom: 0; }
.owc-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.owc-footer__col a { color: var(--owc-smoke); }
.owc-footer__col a:hover { color: var(--owc-ink); }

.owc-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: var(--owc-fs-sm);
  color: var(--owc-smoke);
}
/* Border separator only when widgets are present above (otherwise we'd stack
   .owc-footer's own border-top with __bottom's, producing the double line). */
.owc-footer__widgets + .owc-footer__bottom {
  border-top: 1px solid var(--owc-fog);
}
/* footer logo size handled above with !important rules */
.owc-footer__name { font-weight: 600; color: var(--owc-ink); font-size: 1rem; }
.owc-footer__nav .owc-footer__menu, .owc-footer__social-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.owc-footer__copy { margin: 0; }
.owc-footer__credit {
  margin: .25rem 0 0;
  font-size: .8rem;
  color: var(--owc-smoke);
}
.owc-footer__credit-link {
  color: var(--owc-ink-soft);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--owc-ink) 18%, transparent);
  transition: color var(--owc-fast), border-color var(--owc-fast);
}
.owc-footer__credit-link:hover { color: var(--owc-accent); border-bottom-color: var(--owc-accent); }


/* ============================================================
   10. Forms / buttons / utilities
   ============================================================ */
.owc-btn, button.owc-btn, a.owc-btn, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  background: var(--owc-ink);
  color: var(--owc-paper);
  font-weight: 600;
  font-size: var(--owc-fs-sm);
  letter-spacing: 0.01em;
  border-radius: var(--owc-radius-sm);
  border: 0;
  cursor: pointer;
  transition: background var(--owc-base) var(--owc-ease), transform var(--owc-fast), color var(--owc-base);
  text-decoration: none;
}
.owc-btn:hover, button.owc-btn:hover, a.owc-btn:hover, .wp-block-button__link:hover {
  background: var(--owc-accent);
  color: var(--owc-paper-tint);
  transform: translateY(-1px);
}
.owc-btn:active { transform: translateY(0); }

.owc-more-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--owc-fs-sm);
  font-weight: 600;
  color: var(--owc-ink);
  margin-top: .25rem;
}
.owc-more-link span { transition: transform var(--owc-fast) var(--owc-ease); }
.owc-more-link:hover span { transform: translateX(4px); }

.owc-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--owc-ink);
  color: var(--owc-paper);
  padding: .5rem 1rem;
  z-index: 1000;
  text-decoration: none;
}
.owc-skip-link:focus-visible { top: 8px; left: 8px; }

.owc-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Generic form-control styling — excludes the header search input which has its
   own ghost styling (otherwise `input[type="search"]` paints a stray paper-tint
   pill in the header). */
input[type="text"]:not(.owc-search-form__input),
input[type="email"],
input[type="url"],
input[type="search"]:not(.owc-search-form__input),
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100%;
  font-family: inherit;
  font-size: var(--owc-fs-md);
  padding: .75rem 1rem;
  background: var(--owc-paper-tint);
  color: var(--owc-ink);
  border: 1px solid var(--owc-fog);
  border-radius: var(--owc-radius-sm);
  transition: border-color var(--owc-fast), box-shadow var(--owc-fast);
}
textarea { min-height: 8em; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--owc-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--owc-accent) 25%, transparent);
}


/* ============================================================
   11. Pagination / 404 / search
   ============================================================ */
.wp-pagenavi, .nav-links, .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: var(--owc-gap-lg) 0 0;
  padding-top: var(--owc-gap-lg);
  border-top: 1px solid var(--owc-fog);
}
.nav-links > a, .nav-links > span, .page-numbers, .pagination > a, .pagination > .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .85rem;
  border: 1px solid var(--owc-fog);
  border-radius: var(--owc-radius-sm);
  font-size: var(--owc-fs-sm);
  font-weight: 600;
  color: var(--owc-ink-soft);
  background: var(--owc-paper-tint);
  transition: background var(--owc-fast), border-color var(--owc-fast), color var(--owc-fast);
}
/* Span internes (meta-nav, screen-reader) ne doivent pas etre encadres */
.nav-links a span,
.nav-links .meta-nav,
.page-numbers .meta-nav,
.pagination .meta-nav {
  display: inline;
  background: transparent;
  border: 0;
  padding: 0;
  min-width: 0;
  height: auto;
  border-radius: 0;
}
.page-numbers.current, .pagination .current { background: var(--owc-ink); color: var(--owc-paper); border-color: var(--owc-ink); }
.page-numbers:hover, .pagination a:hover { background: var(--owc-mist); border-color: var(--owc-ink); color: var(--owc-ink); }
.page-numbers.dots { border: 0; background: transparent; }

.owc-404 {
  max-width: 50rem;
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) var(--owc-pad);
}
.owc-404__code {
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin: 0;
  background: linear-gradient(180deg, var(--owc-ink) 0%, var(--owc-fog) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.owc-404__title { font-size: var(--owc-fs-2xl); margin: .5rem 0 1rem; letter-spacing: -0.025em; }
.owc-404__lede { color: var(--owc-smoke); font-size: var(--owc-fs-lg); max-width: 36em; margin: 0 auto 2rem; }
.owc-404__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin: 0 0 4rem; }
.owc-404__actions .owc-search-form { display: flex; }
.owc-404__recent { text-align: left; max-width: 32em; margin: 0 auto; }
.owc-404__recent ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.owc-404__recent a { display: block; padding: 1rem 1.25rem; background: var(--owc-mist); border-radius: var(--owc-radius-sm); transition: background var(--owc-fast); }
.owc-404__recent a:hover { background: var(--owc-fog); }

.owc-search-results {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.owc-search-result { border-bottom: 1px solid var(--owc-fog); }
.owc-search-result:last-child { border-bottom: 0; }
.owc-search-result__link {
  display: block;
  padding: 1.5rem 0;
  transition: padding var(--owc-base) var(--owc-ease);
}
.owc-search-result__link:hover { padding-left: 1rem; color: var(--owc-ink); }
.owc-search-result__title { font-size: var(--owc-fs-xl); margin: .35rem 0 .5rem; letter-spacing: -0.015em; }
.owc-search-result__excerpt { color: var(--owc-smoke); margin: 0; }

.owc-no-results {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) var(--owc-pad);
}
.owc-no-results__title { font-size: var(--owc-fs-2xl); margin: .25em 0 1em; }


/* ============================================================
   12. Comments
   ============================================================ */
.owc-comments { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--owc-fog); }
.owc-comments__title { font-size: var(--owc-fs-xl); margin: 0 0 2rem; }
.owc-comments__list { list-style: none; padding: 0; margin: 0 0 3rem; }
.owc-comments__list .comment, .owc-comments__list .pingback { padding: 1.5rem 0; border-bottom: 1px solid var(--owc-fog); }
.owc-comments__list .comment-author { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; font-weight: 600; }
.owc-comments__list .comment-author img { border-radius: 999px; }
.owc-comments__list .comment-meta { font-size: var(--owc-fs-sm); color: var(--owc-smoke); margin-bottom: .75rem; }
.owc-comments__list .children { list-style: none; padding-left: 1.5rem; margin-top: 1rem; border-left: 2px solid var(--owc-fog); }
.owc-comment-form { display: grid; gap: 1rem; max-width: var(--owc-content); }
.owc-comment-form label { font-weight: 600; font-size: var(--owc-fs-sm); }
.owc-comment-form .form-submit { margin: 0; }


/* ============================================================
   13. Sidebar / widgets
   ============================================================ */
.has-sidebar .owc-prose { margin-inline: 0; }
.owc-sidebar { padding-top: 2rem; }
.owc-sidebar .widget { margin-bottom: 2rem; }
.owc-sidebar .widget-title { font-size: var(--owc-fs-sm); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 1rem; }
.owc-sidebar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }


/* ============================================================
   14. Block editor compatibility
   ============================================================ */
.wp-block-image figcaption { font-size: var(--owc-fs-sm); color: var(--owc-smoke); text-align: center; }
.wp-block-quote, .wp-block-pullquote { border-left: 3px solid var(--owc-ink); padding-left: 1.5em; font-family: var(--owc-font-serif); font-size: 1.25em; font-style: italic; }
.wp-block-pullquote { border: 0; text-align: center; font-size: 1.5em; padding: 2em 0; border-top: 1px solid var(--owc-fog); border-bottom: 1px solid var(--owc-fog); }
.wp-block-separator { border: 0; height: 1px; background: var(--owc-fog); max-width: 4rem; margin: 3em auto; }
.wp-block-separator.is-style-wide { max-width: 100%; }
.wp-block-cover { border-radius: var(--owc-radius); overflow: hidden; }
.wp-block-button__link { transition: all var(--owc-base) var(--owc-ease); }
.wp-block-gallery { gap: var(--owc-gap-sm, 1rem); }


/* ============================================================
   15. OW Builder integration
   ============================================================ */
/* Si OW Builder est actif, ne pas générer de double padding sur ses widgets */
.owc-builder-page > .owc-main { padding: 0; }
[data-owb-header] + .owc-main { /* le header OW Builder a déjà été rendu */ }
[data-owb-footer] { /* footer OW Builder rendu, le notre est inhibé */ }

/* Ne pas appliquer le drop cap au contenu rendu par OW Builder */
.owc-builder-page .owc-prose > p:first-of-type::first-letter { all: unset; }

/* ==========================================================================
   Contact Form 7 — styles globaux (label visible, inputs lisibles)
   ========================================================================== */
.wpcf7-form,
.wpcf7-form p {
  color: #0f172a !important;
}
.wpcf7-form label {
  display: block;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #475569 !important;
  margin-bottom: .35rem;
}
.wpcf7-form p { margin: 0 0 1.25rem; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: .85rem 1rem;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.wpcf7-form textarea { min-height: 8rem; resize: vertical; }
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: 0;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234,88,12,.18);
}
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  padding: .95rem 2rem;
  background: #ea580c;
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  width: auto;
  transition: background .2s, transform .2s;
}
.wpcf7-form input[type="submit"]:hover {
  background: #c2410c;
  transform: translateY(-1px);
}
.wpcf7-not-valid-tip { color: #b91c1c; font-size: .82rem; margin-top: .35rem; display: block; }
.wpcf7-response-output {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: .92rem;
}

/* ==========================================================================
   Article single — mise en forme editoriale page-like
   ========================================================================== */
.owc-article {
  background: #fafaf9;
  padding-bottom: 0;
}
.owc-article__header {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) var(--owc-pad) 1.5rem;
  max-width: 60rem;
  margin: 0 auto;
}
.owc-article__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #ea580c;
  background: rgba(234,88,12,.08);
  padding: .4rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.owc-article__eyebrow:hover { background: rgba(234,88,12,.14); }
.owc-article__title {
  font-size: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #0f172a;
}
.owc-article__meta {
  justify-content: center;
  font-size: .9rem;
  color: #64748b;
}

.owc-article__cover {
  margin: 1rem auto 0;
  max-width: 1100px;
  padding: 0 var(--owc-pad);
}
.owc-article__cover img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(0,0,0,.04);
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 24px 60px -16px rgba(15,23,42,.18);
}
.owc-article__cover figcaption {
  font-size: .85rem;
  color: #64748b;
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
}

/* Body — carte blanche centree, look "page section" */
.owc-article__body {
  max-width: 800px !important;
  margin: 3rem auto !important;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem) !important;
  background: #fff !important;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 24px 60px -16px rgba(15,23,42,.10);
  font-size: 1.075rem;
  line-height: 1.75;
  color: #334155 !important;
}
.owc-article__body h1,
.owc-article__body h2,
.owc-article__body h3,
.owc-article__body h4,
.owc-article__body h5,
.owc-article__body h6 { color: #0f172a !important; }
.owc-article__body p,
.owc-article__body li,
.owc-article__body span { color: #334155 !important; }
.owc-article__body strong { color: #0f172a !important; }
.owc-article__body a { color: #ea580c !important; }
.owc-article__body a:hover { color: #c2410c !important; }

/* Post nav (Precedent / Suivant) — fix dark-mode invisibility + style cards */
.owc-article__footer { background: #fafaf9; padding-top: 2rem; padding-bottom: 3rem; }
.owc-post-nav {
  border-top: 1px solid #e7e5e4;
  margin-top: 2rem;
  padding-top: 2rem;
  gap: 1rem;
}
.owc-post-nav__link {
  background: #fff !important;
  border: 1px solid #e7e5e4 !important;
  border-radius: 14px !important;
  padding: 1.25rem 1.5rem !important;
  text-decoration: none;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.owc-post-nav__link:hover {
  border-color: #ea580c !important;
  background: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(234,88,12,.25);
}
.owc-post-nav__label {
  color: #ea580c !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
}
.owc-post-nav__title {
  color: #0f172a !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  font-size: 1rem !important;
  margin-top: .25rem;
}
.owc-author-card { background: #fff !important; border: 1px solid #e7e5e4; }
.owc-author-card__name a { color: #0f172a !important; }
.owc-author-card__bio { color: #475569 !important; }
/* H2 = section title style (comme sur les pages) */
.owc-article__body h2 {
  position: relative;
  margin: 3rem 0 1.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e7e5e4;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #0f172a;
}
.owc-article__body h2:first-child,
.owc-article__body > *:first-child h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.owc-article__body h2::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 3px;
  background: #ea580c;
  border-radius: 2px;
  margin-bottom: .85rem;
  margin-right: .65rem;
  vertical-align: middle;
  transform: translateY(-4px);
}
/* Premier h2 = traite comme un eyebrow + titre lead */
.owc-article__body > h2:first-child {
  font-size: clamp(1.7rem, 1.5vw + 1rem, 2.15rem);
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.owc-article__body > h2:first-child + p,
.owc-article__body > h2:first-child + h3 + p {
  font-size: 1.15rem;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.65;
}
/* H3 = sous-titre de section */
.owc-article__body h3 {
  margin: 2rem 0 .75rem;
  font-size: clamp(1.15rem, .8vw + 1rem, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: #0f172a;
}
.owc-article__body p { margin: 0 0 1.1rem; }
.owc-article__body p:last-child { margin-bottom: 0; }
.owc-article__body strong { color: #0f172a; font-weight: 700; }
.owc-article__body a {
  color: #ea580c;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.owc-article__body a:hover { color: #c2410c; }
.owc-article__body ul,
.owc-article__body ol { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.owc-article__body li { margin-bottom: .4rem; }
.owc-article__body img {
  border-radius: 12px;
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}
.owc-article__body blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-left: 3px solid #ea580c;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #1e293b;
}

/* CTA card after content */
.owc-article__cta {
  max-width: 1200px;
  padding-inline: var(--owc-pad);
  margin: 2rem auto 3rem;
}
.owc-article__cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 2rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 24px 60px -16px rgba(15,23,42,.25);
}
.owc-article__cta-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fdba74;
  margin-bottom: .35rem;
}
.owc-article__cta-title {
  margin: 0 0 .35rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.owc-article__cta-text {
  margin: 0;
  font-size: .95rem;
  color: rgba(255,255,255,.78);
}
.owc-article__cta-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.owc-article__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  transition: background .2s, transform .2s;
}
.owc-article__cta-btn:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.owc-article__cta-btn--primary {
  background: #ea580c;
  border-color: transparent;
}
.owc-article__cta-btn--primary:hover { background: #c2410c; }

/* No drop cap on articles */
.owc-article .owc-prose > p:first-of-type::first-letter { all: unset; }
