/*
 Theme Name: Enfold Child
 Description: Child Theme for the Enfold WordPress Theme
 Version: 1.1
 Author: Kriesi / Oullins Fermetures
 Author URI: https://www.oullins-fermetures.com/
 Template: enfold
*/

/* ==========================================================================
   Oullins Fermetures — Design system "Architecture sécurisée"
   Préproduction — 2026-07-20
   ========================================================================== */

:root {
  --of-color-brand: #BBBD32;
  --of-color-brand-dark: #5A5C12;
  --of-color-ink: #151613;
  --of-color-black: #000000;
  --of-color-white: #FFFFFF;
  --of-color-surface: #F7F7F2;
  --of-color-text-muted: #5B5D56;
  --of-color-border: #DCDDCE;
  --of-color-earth: #4A4038;
  --of-color-success: #2F6B48;
  --of-color-warning: #8A5A00;
  --of-color-error: #B42318;

  --of-font-display: "Manrope", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --of-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --of-container-max: 1280px;
  --of-content-max: 760px;
  --of-gutter-desktop: 40px;
  --of-gutter-tablet: 28px;
  --of-gutter-mobile: 20px;
  --of-radius-sm: 4px;
  --of-radius-md: 6px;

  --of-space-1: 4px;
  --of-space-2: 8px;
  --of-space-3: 16px;
  --of-space-4: 24px;
  --of-space-5: 32px;
  --of-space-6: 48px;
  --of-space-7: 64px;
  --of-space-8: 80px;
  --of-space-9: 112px;
  --of-space-10: 128px;

  --of-shadow-soft: 0 18px 55px rgba(21, 22, 19, 0.08);
  --of-shadow-card: 0 12px 32px rgba(21, 22, 19, 0.10);
  --of-transition: 220ms cubic-bezier(.2,.7,.2,1);
}

/* Base */
html { scroll-behavior: smooth; }
body,
body .avia_textblock,
body input,
body textarea,
body select,
body button {
  font-family: var(--of-font-body);
  color: var(--of-color-ink);
}
body {
  font-size: 18px;
  line-height: 1.65;
  background: var(--of-color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#top h1,
#top h2,
#top h3,
#top h4,
#top h5,
#top h6,
#top .main_menu,
#top .of-stat__value {
  font-family: var(--of-font-display);
  color: var(--of-color-ink);
  font-weight: 700;
  letter-spacing: -0.025em;
}
#top h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; }
#top h2 { font-size: clamp(2rem, 3.7vw, 2.875rem); line-height: 1.12; }
#top h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.25; }
#top h4 { font-size: clamp(1.1875rem, 1.8vw, 1.3125rem); line-height: 1.3; }
#top p { margin: 0 0 var(--of-space-4); }
#top a {
  color: var(--of-color-ink);
  text-underline-offset: .2em;
  transition: color var(--of-transition), background-color var(--of-transition), border-color var(--of-transition), transform var(--of-transition);
}
#top a:hover { color: var(--of-color-brand-dark); }
#top :focus-visible {
  outline: 3px solid var(--of-color-brand);
  outline-offset: 3px;
}
#top ::selection {
  background: var(--of-color-brand);
  color: var(--of-color-black);
}

/* Enfold containers */
#top .container,
#top .av-section-cont-open > .container {
  width: min(100% - (2 * var(--of-gutter-desktop)), var(--of-container-max));
  max-width: var(--of-container-max);
  padding-left: 0;
  padding-right: 0;
}
.of-container { max-width: var(--of-container-max); margin-inline: auto; }
.of-container--narrow { max-width: var(--of-content-max); margin-inline: auto; }
.of-section .content { padding-top: var(--of-space-9); padding-bottom: var(--of-space-9); }
.of-section--compact .content { padding-top: var(--of-space-7); padding-bottom: var(--of-space-7); }
.of-section--white { background: var(--of-color-white) !important; color: var(--of-color-ink); }
.of-section--soft { background: var(--of-color-surface) !important; color: var(--of-color-ink); }
.of-section--dark { background: var(--of-color-ink) !important; color: var(--of-color-white); }
.of-section--brand { background: var(--of-color-brand) !important; color: var(--of-color-black); }
#top .of-section--dark h1,
#top .of-section--dark h2,
#top .of-section--dark h3,
#top .of-section--dark h4,
#top .of-section--dark p,
#top .of-section--dark a { color: var(--of-color-white); }

.of-grid { display: grid; gap: var(--of-space-4); }
.of-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.of-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.of-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.of-stack > * + * { margin-top: var(--of-space-4); }
.of-split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); gap: var(--of-space-7); align-items: center; }

/* Editorial */
.of-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--of-space-2);
  margin-bottom: var(--of-space-3);
  font-family: var(--of-font-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
}
.of-kicker::before { content: ""; width: 32px; height: 3px; background: var(--of-color-brand); }
.of-lead { max-width: var(--of-content-max); font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.55; }
.of-caption { font-size: .875rem; line-height: 1.45; color: var(--of-color-text-muted); }
.of-text-muted { color: var(--of-color-text-muted) !important; }
.of-link-arrow { display: inline-flex; gap: .5em; align-items: center; font-weight: 700; text-decoration: underline; text-decoration-color: var(--of-color-brand); text-decoration-thickness: 2px; }
.of-link-arrow::after { content: "→"; transition: transform var(--of-transition); }
.of-link-arrow:hover::after { transform: translateX(4px); }

/* Key motif */
.of-keyline { position: relative; overflow: hidden; }
.of-keyline::after {
  content: "";
  position: absolute;
  width: 112px;
  height: 72px;
  right: 24px;
  top: 24px;
  border-top: 8px solid var(--of-color-brand);
  border-right: 8px solid var(--of-color-brand);
  pointer-events: none;
}
.of-keyline--subtle::after { opacity: .45; border-width: 5px; }

/* Buttons */
#top .avia-button,
#top .of-btn,
#top button.of-btn,
#top input[type="submit"] {
  min-height: 50px;
  padding: 15px 24px;
  border-radius: var(--of-radius-sm);
  border: 1px solid transparent;
  font-family: var(--of-font-body);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: .015em;
  box-shadow: none;
}
#top .of-btn--primary,
#top .of-btn--primary .avia-button {
  background: var(--of-color-ink);
  color: var(--of-color-white);
  border-color: var(--of-color-ink);
}
#top .of-btn--primary:hover,
#top .of-btn--primary .avia-button:hover {
  background: var(--of-color-brand-dark);
  color: var(--of-color-white);
  border-color: var(--of-color-brand-dark);
}
#top .of-btn--secondary,
#top .of-btn--secondary .avia-button {
  background: transparent;
  color: var(--of-color-ink);
  border-color: var(--of-color-ink);
}
#top .of-btn--secondary:hover,
#top .of-btn--secondary .avia-button:hover {
  background: var(--of-color-ink);
  color: var(--of-color-white);
}
#top .of-btn--light,
#top .of-btn--light .avia-button {
  background: var(--of-color-white);
  color: var(--of-color-ink);
  border-color: var(--of-color-white);
}
.of-actions { display: flex; flex-wrap: wrap; gap: var(--of-space-3); align-items: center; }

/* Cards */
.of-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--of-space-5);
  background: var(--of-color-white);
  border: 1px solid var(--of-color-border);
  border-radius: var(--of-radius-md);
  transition: transform var(--of-transition), box-shadow var(--of-transition), border-color var(--of-transition);
}
.of-card::before {
  content: "";
  width: 44px;
  height: 4px;
  margin-bottom: var(--of-space-4);
  background: var(--of-color-brand);
}
.of-card:hover { transform: translateY(-4px); border-color: var(--of-color-brand); box-shadow: var(--of-shadow-card); }
.of-card h3, .of-card h4 { margin-top: 0; }
.of-card__meta { margin-bottom: var(--of-space-2); color: var(--of-color-text-muted); font-size: .875rem; font-weight: 600; }
.of-card__action { margin-top: auto; padding-top: var(--of-space-3); }
.of-card--product .of-media-frame { margin: calc(-1 * var(--of-space-5)) calc(-1 * var(--of-space-5)) var(--of-space-5); border-radius: var(--of-radius-md) var(--of-radius-md) 0 0; }
.of-media-frame,
.of-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(187,189,50,.16), transparent 50%),
    repeating-linear-gradient(135deg, var(--of-color-surface), var(--of-color-surface) 12px, #efefe8 12px, #efefe8 24px);
  border: 1px solid var(--of-color-border);
  color: var(--of-color-text-muted);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Proofs, stats, badges */
.of-proofs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--of-color-border); border-radius: var(--of-radius-md); overflow: hidden; }
.of-proof { padding: var(--of-space-4); background: var(--of-color-white); }
.of-proof + .of-proof { border-left: 1px solid var(--of-color-border); }
.of-proof__eyebrow { display: block; margin-bottom: var(--of-space-2); color: var(--of-color-brand-dark); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.of-stat { padding: var(--of-space-4); border-left: 4px solid var(--of-color-brand); }
.of-stat__value { display: block; font-size: clamp(2.5rem,5vw,3.5rem); line-height: 1; }
.of-stat__label { display: block; margin-top: var(--of-space-2); color: var(--of-color-text-muted); }
.of-badges { display: flex; flex-wrap: wrap; gap: var(--of-space-2); }
.of-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--of-color-border);
  border-radius: 999px;
  background: var(--of-color-white);
  color: var(--of-color-ink);
  font-size: .8125rem;
  font-weight: 700;
}
.of-badge--demo { border-style: dashed; color: var(--of-color-text-muted); }

/* Reviews */
.of-review {
  position: relative;
  padding: var(--of-space-6);
  background: var(--of-color-surface);
  border-left: 6px solid var(--of-color-brand);
  border-radius: var(--of-radius-md);
}
.of-review blockquote { margin: 0 0 var(--of-space-4); border: 0; padding: 0; font-size: clamp(1.125rem,2vw,1.375rem); line-height: 1.55; font-style: normal; }
.of-review__author { font-weight: 700; }
.of-review__source { color: var(--of-color-text-muted); font-size: .875rem; }

/* FAQ */
.of-faq details { border-top: 1px solid var(--of-color-border); }
.of-faq details:last-child { border-bottom: 1px solid var(--of-color-border); }
.of-faq summary {
  position: relative;
  cursor: pointer;
  padding: var(--of-space-4) 44px var(--of-space-4) 0;
  font-family: var(--of-font-display);
  font-weight: 700;
  list-style: none;
}
.of-faq summary::-webkit-details-marker { display: none; }
.of-faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--of-color-brand-dark); font-size: 1.5rem; }
.of-faq details[open] summary::after { content: "−"; }
.of-faq__answer { max-width: var(--of-content-max); padding: 0 44px var(--of-space-4) 0; }

/* CTA */
.of-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: var(--of-space-6);
  align-items: center;
  padding: var(--of-space-7);
  border-radius: var(--of-radius-md);
  background: var(--of-color-ink);
  color: var(--of-color-white);
}
#top .of-cta h2, #top .of-cta h3, #top .of-cta p { color: var(--of-color-white); }
.of-cta::after { content: ""; position: absolute; width: 140px; height: 90px; right: -24px; bottom: -24px; border-top: 10px solid var(--of-color-brand); border-right: 10px solid var(--of-color-brand); }

/* Forms */
#top .of-form label { display: block; margin-bottom: var(--of-space-2); font-weight: 700; }
#top .of-form input,
#top .of-form textarea,
#top .of-form select,
#top .avia_ajax_form input[type="text"],
#top .avia_ajax_form input[type="email"],
#top .avia_ajax_form input[type="tel"],
#top .avia_ajax_form textarea,
#top .avia_ajax_form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--of-color-white);
  color: var(--of-color-ink);
  border: 1px solid var(--of-color-border);
  border-radius: var(--of-radius-sm);
  box-shadow: none;
}
#top .of-form textarea,
#top .avia_ajax_form textarea { min-height: 140px; resize: vertical; }
#top .of-form input:focus,
#top .of-form textarea:focus,
#top .of-form select:focus,
#top .avia_ajax_form input:focus,
#top .avia_ajax_form textarea:focus,
#top .avia_ajax_form select:focus {
  border-color: var(--of-color-ink);
  outline: 3px solid rgba(187,189,50,.5);
  outline-offset: 1px;
}
.of-form__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--of-space-4); }
.of-form__field { margin-bottom: var(--of-space-4); }
.of-form__help { display: block; margin-top: var(--of-space-1); color: var(--of-color-text-muted); font-size: .8125rem; }

/* Breadcrumb */
#top .title_container { background: var(--of-color-surface); border-color: var(--of-color-border); }
#top .breadcrumb { font-size: .875rem; color: var(--of-color-text-muted); }
#top .breadcrumb a { color: var(--of-color-text-muted); text-decoration: underline; text-decoration-color: var(--of-color-brand); }

/* Header */
#header_meta {
  min-height: 36px;
  background: var(--of-color-surface);
  border-bottom: 1px solid var(--of-color-border);
}
#header_meta .container { min-height: 36px; display: flex; align-items: center; }
#top #header_meta,
#top #header_meta a { color: var(--of-color-ink); font-size: .8125rem; font-weight: 600; }
#header_main { border-bottom: 1px solid var(--of-color-border); }
#header_main .container,
#top .main_menu .av-main-nav > li > a { height: 84px; line-height: 84px; }
#top .logo { height: 84px; }
#top .logo img { max-height: 72px; width: auto; padding-block: 6px; }
#top .av-main-nav > li > a {
  padding-inline: 12px;
  font-family: var(--of-font-display);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
#top .av-main-nav > li > a:hover,
#top .av-main-nav > li.current-menu-item > a { color: var(--of-color-brand-dark); }
#top .av-main-nav > li > a .avia-menu-fx { background: var(--of-color-brand); height: 4px; }
#top .av-main-nav .sub-menu {
  padding: var(--of-space-3);
  border: 1px solid var(--of-color-border);
  border-top: 4px solid var(--of-color-brand);
  box-shadow: var(--of-shadow-soft);
}
#top .av-main-nav .sub-menu a { padding: 12px 14px; font-size: .9375rem; }
#top .of-menu-cta > a {
  height: 48px !important;
  line-height: 48px !important;
  margin-top: 18px;
  margin-left: 10px;
  padding-inline: 18px !important;
  background: var(--of-color-ink);
  color: var(--of-color-white) !important;
  border-radius: var(--of-radius-sm);
}
.of-trustbar-lockup { display: inline-flex; align-items: center; gap: 12px; }
.of-trustbar-zone { white-space: nowrap; }
.of-pff-mark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  background: var(--of-color-white);
  border: 1px solid var(--of-color-border);
  border-radius: 3px;
}
.of-pff-mark img { display: block; width: 96px; height: auto; max-height: 26px; }

/* Footer */
#footer {
  padding: var(--of-space-8) 0 var(--of-space-6);
  background: var(--of-color-ink);
  border-top: 8px solid var(--of-color-brand);
}
#footer,
#footer p,
#footer li,
#footer a { color: rgba(255,255,255,.82); }
#footer h3,
#footer h4,
#footer .widgettitle { color: var(--of-color-white); }
#footer a:hover { color: var(--of-color-brand); }
#footer .widget { margin: 0 0 var(--of-space-5); }
#socket { background: #0b0c0a; color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.12); }
.of-footer-logo { display: block; max-width: 220px; margin-bottom: var(--of-space-4); filter: none; }
.of-footer-pff { display: inline-flex; padding: 10px; background: var(--of-color-white); border-radius: var(--of-radius-sm); }
.of-footer-pff img { width: 150px; height: auto; display: block; }

/* Laboratory */
.of-lab-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; background: var(--of-color-surface); border: 1px solid var(--of-color-border); border-radius: var(--of-radius-md); }
.of-swatch { overflow: hidden; border: 1px solid var(--of-color-border); border-radius: var(--of-radius-md); background: var(--of-color-white); }
.of-swatch__color {
  display: block;
  min-height: 112px;
  background: var(--of-swatch);
  border-bottom: 1px solid var(--of-color-border);
}
.of-swatch__meta { padding: 16px; font-size: .875rem; }
.of-logo-stage { display: flex; flex-wrap: wrap; align-items: center; gap: var(--of-space-6); padding: var(--of-space-6); background: var(--of-color-white); border: 1px solid var(--of-color-border); border-radius: var(--of-radius-md); }
.of-logo-stage__primary { width: min(360px,62%); height: auto; }
.of-logo-stage__divider { width: 1px; height: 64px; background: var(--of-color-border); }
.of-logo-stage__network { display: inline-flex; padding: 12px; background: var(--of-color-white); border: 1px solid var(--of-color-border); }
.of-logo-stage__network img { width: 150px; height: auto; display: block; }
.of-demo-note { padding: 12px 16px; border-left: 4px solid var(--of-color-warning); background: #fff8eb; color: var(--of-color-ink); font-size: .875rem; }

/* Motion */
.of-reveal { transition: opacity 420ms ease, transform 420ms ease; }
@media (prefers-reduced-motion: no-preference) {
  .of-reveal { opacity: 0; transform: translateY(16px); }
  .of-reveal.of-is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media only screen and (max-width: 1100px) {
  #top .container,
  #top .av-section-cont-open > .container { width: calc(100% - (2 * var(--of-gutter-tablet))); }
  #top .av-main-nav > li > a { padding-inline: 8px; font-size: .8125rem; }
  .of-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .of-section .content { padding-top: var(--of-space-8); padding-bottom: var(--of-space-8); }
}
@media only screen and (max-width: 989px) {
  #header_main .container, #top .logo { height: 72px; }
  #top .logo img { max-height: 64px; }
  .of-split { grid-template-columns: 1fr; gap: var(--of-space-5); }
  .of-proofs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .of-proof:nth-child(3) { border-left: 0; border-top: 1px solid var(--of-color-border); }
  .of-proof:nth-child(4) { border-top: 1px solid var(--of-color-border); }
}
@media only screen and (max-width: 767px) {
  body { font-size: 16px; }
  #top .container,
  #top .av-section-cont-open > .container { width: calc(100% - (2 * var(--of-gutter-mobile))); }
  .of-section .content,
  .of-section--compact .content { padding-top: var(--of-space-7); padding-bottom: var(--of-space-7); }
  .of-grid--2, .of-grid--3, .of-grid--4, .of-form__grid { grid-template-columns: 1fr; }
  .of-card { padding: var(--of-space-4); }
  .of-card--product .of-media-frame { margin: calc(-1 * var(--of-space-4)) calc(-1 * var(--of-space-4)) var(--of-space-4); }
  .of-proofs { grid-template-columns: 1fr; }
  .of-proof + .of-proof { border-left: 0; border-top: 1px solid var(--of-color-border); }
  .of-cta { grid-template-columns: 1fr; gap: var(--of-space-4); padding: var(--of-space-5); }
  .of-actions { align-items: stretch; }
  .of-actions .of-btn, .of-actions .avia-button-wrap, .of-actions .avia-button { width: 100%; text-align: center; }
  .of-logo-stage { padding: var(--of-space-4); gap: var(--of-space-4); }
  .of-logo-stage__primary { width: 100%; max-width: 300px; }
  .of-logo-stage__divider { width: 100%; height: 1px; }
  .of-keyline::after { width: 76px; height: 52px; right: 12px; top: 12px; border-width: 5px; }
  #header_meta { display: none; }
  .responsive #top #wrap_all .main_menu { top: 0; }
}

/* ==========================================================================
   Affinages laboratoire et footer — composants réutilisables
   ========================================================================== */
.of-swatch > span:first-child {
  display: block;
  min-height: 112px;
  background: var(--of-swatch);
  border-bottom: 1px solid var(--of-color-border);
}
.of-swatch > strong {
  display: block;
  padding: 16px 16px 2px;
  font-family: var(--of-font-heading);
  color: var(--of-color-ink);
}
.of-swatch > code {
  display: block;
  padding: 0 16px 16px;
  color: var(--of-color-text-muted);
  background: transparent;
  font-size: 0.8125rem;
}
#footer .widget { margin-bottom: 24px; }
#footer .widgettitle { display: none; }
#footer .of-footer-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  padding: 12px;
  background: var(--of-color-white);
  border-radius: var(--of-radius-md);
}
#footer .of-footer-nav nav,
#footer .of-footer-network nav {
  display: grid;
  gap: 8px;
}
#footer .of-footer-pff {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--of-color-ink);
  background: var(--of-color-white);
  border-radius: var(--of-radius-md);
}
#footer .of-footer-pff img {
  display: block;
  width: min(100%, 220px);
  height: auto;
}

/* ==========================================================================
   Système de logos sur fonds clairs et sombres
   ========================================================================== */
.of-logo-test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--of-space-4);
}
.of-logo-option {
  display: grid;
  align-content: center;
  gap: var(--of-space-3);
  min-height: 280px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--of-color-border);
  border-radius: var(--of-radius-md);
}
.of-logo-option img {
  display: block;
  width: min(100%, 460px);
  height: auto;
}
.of-logo-option--light {
  background: var(--of-color-white);
}
.of-logo-option--dark {
  color: var(--of-color-white);
  background: var(--of-color-ink);
  border-color: #34352F;
}
.of-logo-mono {
  filter: grayscale(1) brightness(0) invert(1);
}
#footer .of-footer-logo {
  padding: 0;
  background: transparent;
  filter: grayscale(1) brightness(0) invert(1);
}
@media (max-width: 767px) {
  .of-logo-test-grid { grid-template-columns: 1fr; }
  .of-logo-option { min-height: 220px; }
}


/* OF — renforcement du contraste des boutons clairs sur fonds sombres */
#top a.of-btn--light,
#top a.of-btn--light:visited,
#top a.of-btn--light:hover,
#top a.of-btn--light:focus-visible {
  color: var(--of-color-ink) !important;
}


/* ==========================================================================
   OULLINS FERMETURES — PROMPT 8 : CORRECTIONS STRUCTURELLES
   Polices officielles Google Fonts, hébergées localement via Enfold.
   ========================================================================== */
@font-face {
  font-family: "Inter OF";
  src: url("https://preprodnew.oullins-fermetures.com/wp-content/uploads/dynamic_avia/avia_type_fonts/inter-local/inter-variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope OF";
  src: url("https://preprodnew.oullins-fermetures.com/wp-content/uploads/dynamic_avia/avia_type_fonts/manrope-local/manrope-variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --of-container-max: 1400px;
  --of-header-max: 1480px;
  --of-content-max: 760px;
  --of-gutter-desktop: 32px;
  --of-section-space: clamp(56px, 6.6vw, 100px);
  --of-card-space: clamp(28px, 2.4vw, 36px);
  --of-font-heading: "Manrope OF", Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --of-font-body: "Inter OF", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body,
#top,
#top input,
#top select,
#top textarea,
#top button {
  font-family: var(--of-font-body);
}

#top h1,
#top h2,
#top h3,
#top h4,
#top h5,
#top h6,
#top .main_menu,
#top .of-stat__value {
  font-family: var(--of-font-heading);
  text-transform: none;
}

#top h1 {
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
#top h2 {
  font-size: clamp(2.1rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
#top h3 {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
#top h4 {
  font-size: clamp(1.18rem, 1.5vw, 1.35rem);
  line-height: 1.3;
}
#top .of-lab {
  font-size: clamp(1.0625rem, 1vw, 1.125rem);
  line-height: 1.7;
}

/* Pleine largeur contrôlée : on neutralise le conteneur Enfold imbriqué
   uniquement sur la page laboratoire. */
#top.page-id-40 .title_container {
  display: none !important;
}
#top.page-id-40 #main .container_wrap_first > .container,
#top.page-id-40 #main .template-page,
#top.page-id-40 #main .content,
#top.page-id-40 #main .post-entry,
#top.page-id-40 #main .entry-content-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
#top.page-id-40 #main .entry-content-wrapper::before,
#top.page-id-40 #main .entry-content-wrapper::after {
  display: none;
}

.of-section {
  width: 100%;
  padding-block: var(--of-section-space);
}
.of-section--compact {
  padding-block: clamp(44px, 4.6vw, 72px);
}
.of-container {
  width: min(calc(100% - 64px), var(--of-container-max));
  max-width: var(--of-container-max);
  margin-inline: auto;
  padding-inline: 0;
}
.of-container--narrow {
  width: min(calc(100% - 64px), var(--of-content-max));
  max-width: var(--of-content-max);
}
.of-stack {
  gap: clamp(18px, 2vw, 28px);
}
.of-section .of-kicker + h1,
.of-section .of-kicker + h2 {
  margin-top: 16px;
}
.of-section h1 + .of-lead,
.of-section h2 + .of-lead {
  margin-top: clamp(20px, 2vw, 28px);
}
.of-section .of-lead + .of-grid,
.of-section .of-lead + .of-logo-test-grid,
.of-section h2 + .of-grid,
.of-section h2 + .of-actions {
  margin-top: clamp(36px, 3.4vw, 48px);
}
.of-grid {
  gap: clamp(24px, 2.4vw, 32px);
  align-items: start;
}
.of-grid > * {
  min-width: 0;
}
.of-kicker {
  color: var(--of-color-brand-dark);
}
.of-section--dark .of-kicker {
  color: var(--of-color-brand);
}
.of-breadcrumb {
  margin-bottom: clamp(28px, 3vw, 44px);
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .045em;
}
.of-breadcrumb a {
  color: #fff !important;
}
.of-breadcrumb span {
  margin-inline: 10px;
  color: var(--of-color-brand);
}

/* Header */
#header_meta {
  min-height: 35px;
  background: var(--of-color-ink);
  border: 0;
}
#header_meta .container,
#header_main .container.av-logo-container {
  width: min(calc(100% - 64px), var(--of-header-max));
  max-width: var(--of-header-max);
  padding-inline: 0;
}
#header_meta .container {
  min-height: 35px;
}
#header_meta,
#header_meta a {
  color: rgba(255,255,255,.86);
  font-size: 12.5px;
  line-height: 35px;
}
#header_meta a:hover,
#header_meta a:focus-visible {
  color: #fff;
}
#header_main {
  background: #fff;
  border-bottom: 1px solid rgba(21,22,19,.09);
}
#header_main .container,
#header_main .main_menu ul:first-child > li > a {
  height: 84px;
  line-height: 84px;
}
#header_main .logo,
#header_main .logo a {
  height: 84px;
}
#header_main .logo img {
  width: 205px;
  max-width: 205px;
  height: 84px;
  object-fit: contain;
  object-position: left center;
}
#top #header .av-main-nav > li > a {
  padding-inline: clamp(11px, 1.05vw, 18px);
  color: var(--of-color-ink);
  font-family: var(--of-font-heading);
  font-size: 14.5px;
  font-weight: 600;
}
#top #header .av-main-nav > li.current-menu-item > a,
#top #header .av-main-nav > li.current-menu-ancestor > a {
  color: var(--of-color-ink);
}
#top #header .av-main-nav > li.current-menu-item > a::after,
#top #header .av-main-nav > li.current-menu-ancestor > a::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 19px;
  left: 16px;
  height: 3px;
  background: var(--of-color-brand);
}
#top #header .av-main-nav > li.of-menu-cta > a {
  margin-block: 16px;
  height: 52px;
  padding-inline: 22px;
  color: #fff;
  line-height: 52px;
  background: var(--of-color-ink);
  border-radius: var(--of-radius-sm);
}
#top #header .av-main-nav > li.of-menu-cta > a::after {
  display: none;
}
#header.header-scrolled #header_main .container,
#header.header-scrolled #header_main .main_menu ul:first-child > li > a,
#header.header-scrolled #header_main .logo,
#header.header-scrolled #header_main .logo a,
#header.header-scrolled #header_main .logo img {
  height: 68px;
  line-height: 68px;
}
#header.header-scrolled #header_main .logo img {
  width: 180px;
  max-width: 180px;
}
#header.header-scrolled .av-main-nav > li.of-menu-cta > a {
  margin-block: 9px;
  height: 50px;
  line-height: 50px;
}

/* Cartes */
.of-card {
  min-height: 0;
  padding: var(--of-card-space);
}
.of-card--service {
  display: grid;
  align-content: start;
}
.of-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--of-color-ink);
  font-family: var(--of-font-heading);
  font-size: .82rem;
  font-weight: 700;
  background: var(--of-color-brand);
  border-radius: 50%;
}
.of-card p {
  margin-block: 14px 22px;
}
.of-card__action {
  margin-top: 0;
}
.of-card--product {
  padding: 0;
  overflow: hidden;
}
.of-card--product .of-media-frame {
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}
.of-card--product .of-card__body {
  padding: var(--of-card-space);
}
.of-media-frame {
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(187,189,50,.10), transparent 65%),
    repeating-linear-gradient(-45deg, #f7f7f2, #f7f7f2 12px, #f1f1e9 12px, #f1f1e9 24px);
}
.of-placeholder {
  max-width: 260px;
  color: var(--of-color-text-muted);
  font-size: .84rem;
  line-height: 1.45;
  text-align: center;
}

/* Réassurance et chiffres */
.of-proofs {
  gap: 1px;
  margin-top: clamp(36px, 3.4vw, 48px);
  background: rgba(255,255,255,.14);
}
.of-proof {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 2.5vw, 34px);
  background: var(--of-color-ink);
}
.of-proof__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--of-color-ink);
  font-family: var(--of-font-heading);
  font-size: .78rem;
  font-weight: 700;
  background: var(--of-color-brand);
  border-radius: 50%;
}
.of-proof strong {
  display: block;
  margin: 0;
  font-size: 1.08rem;
}
.of-proof p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  line-height: 1.55;
}
.of-stats {
  margin-top: clamp(28px, 3vw, 40px);
}
.of-stat {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: clamp(26px, 2.8vw, 38px);
}
.of-stat__value {
  display: block;
  color: var(--of-color-brand);
  font-size: clamp(2.75rem, 4vw, 4.5rem);
  font-weight: 700;
  line-height: .95;
}
.of-stat__label {
  display: block;
  max-width: 22ch;
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  line-height: 1.5;
}

/* Formulaire */
.of-form {
  max-width: 620px;
  gap: 20px;
  padding: clamp(28px, 3vw, 38px);
}
.of-form label {
  gap: 9px;
}
#top .of-form input,
#top .of-form select,
#top .of-form textarea {
  min-height: 54px;
  padding: 13px 15px;
  font-family: var(--of-font-body);
  font-size: 1rem;
  line-height: 1.35;
}
#top .of-form button {
  min-height: 54px;
  margin-top: 4px;
  white-space: normal;
}

/* Logo Point Fort Fichet : version blanche fidèle, sans cartouche. */
.of-pff-mark--light,
#footer .of-footer-pff {
  padding: 0;
  background: transparent;
  border: 0;
}
.of-pff-mark--light img,
#footer .of-footer-pff img {
  filter: grayscale(1) brightness(0) invert(1);
}
.of-pff-identity {
  display: grid;
  gap: 12px;
}
.of-pff-identity strong {
  color: #fff;
  font-family: var(--of-font-heading);
  font-size: 1rem;
  line-height: 1.4;
}

/* Footer et socket */
#footer {
  padding-block: 52px 44px;
  border-top: 4px solid var(--of-color-brand);
}
#footer .container {
  width: min(calc(100% - 64px), var(--of-container-max));
  max-width: var(--of-container-max);
  padding-inline: 0;
}
#footer .widget {
  margin: 0;
}
#footer .widgettitle {
  margin-bottom: 18px;
  font-size: 1.05rem;
}
#footer p,
#footer li,
#footer a {
  font-size: .94rem;
  line-height: 1.65;
}
#footer .of-footer-logo {
  width: min(220px, 100%);
  margin-bottom: 22px;
}
#footer .of-footer-pff {
  width: min(220px, 100%);
  margin-bottom: 16px;
}
#footer .of-footer-contact {
  display: grid;
  gap: 14px;
}
#footer .of-footer-contact p {
  margin: 0;
}
#socket {
  color: rgba(255,255,255,.72);
  background: #0b0c0a;
  border-top: 1px solid rgba(255,255,255,.10);
}
#socket .container {
  width: min(calc(100% - 64px), var(--of-container-max));
  max-width: var(--of-container-max);
  min-height: 58px;
  padding: 16px 0;
}
#socket .copyright {
  float: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  width: 100%;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  line-height: 1.5;
}
#socket a {
  color: #fff;
}
.of-socket-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

@media (max-width: 1180px) {
  #top #header .av-main-nav > li:not(.av-burger-menu-main) {
    display: none !important;
  }
  #top #header .av-burger-menu-main {
    display: block !important;
  }
  #header_main .container.av-logo-container,
  #header_meta .container {
    width: min(calc(100% - 56px), var(--of-header-max));
  }
  .of-section {
    padding-block: clamp(68px, 8vw, 80px);
  }
}
@media (max-width: 767px) {
  :root {
    --of-section-space: clamp(52px, 15vw, 64px);
  }
  .of-container,
  .of-container--narrow,
  #footer .container,
  #socket .container {
    width: calc(100% - 40px);
  }
  #header_main .container.av-logo-container,
  #header_meta .container {
    width: calc(100% - 40px);
  }
  #header_meta .container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
  }
  #header_main .logo img {
    width: 170px;
    max-width: 170px;
  }
  .of-grid {
    gap: 24px;
  }
  .of-card {
    padding: 28px;
  }
  .of-card--product {
    padding: 0;
  }
  .of-card--product .of-card__body {
    padding: 28px;
  }
  .of-proof {
    padding: 26px;
  }
  #footer {
    padding-block: 44px 34px;
  }
  #socket .copyright,
  .of-socket-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}


/* Prompt 8 — compléments de composants */
.of-type-specimens {
  gap: 22px;
}
.of-type-sample {
  color: var(--of-color-ink);
  font-family: var(--of-font-heading);
  font-weight: 700;
}
.of-type-sample--h1 {
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.of-type-sample--h2 {
  font-size: clamp(2.1rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.of-type-sample--h3 {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  line-height: 1.2;
}
.of-type-sample--h4 {
  font-size: clamp(1.18rem, 1.5vw, 1.35rem);
  line-height: 1.3;
}
.of-section-heading {
  margin-top: clamp(64px, 6vw, 92px);
  margin-bottom: clamp(32px, 3vw, 44px);
}
.of-trustbar-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 34px;
  width: 100%;
}
.of-trustbar-lockup > * {
  display: inline-flex;
  align-items: center;
}
.of-trustbar-phone {
  color: #fff !important;
  font-weight: 600;
}
.of-trustbar-pff {
  color: rgba(255,255,255,.68);
}
#footer .of-footer-network {
  max-width: 240px;
}
#footer .of-footer-network p {
  margin: 0;
}
@media (max-width: 767px) {
  .of-trustbar-lockup {
    justify-content: center;
  }
  .of-trustbar-address,
  .of-trustbar-pff {
    display: none;
  }
}


/* Prompt 8 — top bar 35 px, sans compression des trois informations */
#header_meta,
#header_meta .container,
#header_meta .phone-info,
#header_meta .phone-info > div,
#header_meta .of-trustbar-lockup {
  height: 35px;
  min-height: 35px;
}
#header_meta .phone-info {
  float: none;
  width: 100%;
  padding: 0;
  line-height: 35px;
}
#header_meta .phone-info > div {
  width: 100%;
}


/* Prompt 8 — bascule anticipée du menu pour éviter tout chevauchement */
@media (min-width: 1181px) and (max-width: 1380px) {
  #top #header .av-main-nav > li:not(.av-burger-menu-main) {
    display: none !important;
  }
  #top #header .av-burger-menu-main {
    display: block !important;
  }
}


/* Prompt 8 — le bandeau supérieur sort du sticky, navigation à 68 px */
#header.header-scrolled #header_meta,
#header.header-scrolled #header_meta .container,
#header.header-scrolled #header_meta .phone-info,
#header.header-scrolled #header_meta .phone-info > div,
#header.header-scrolled #header_meta .of-trustbar-lockup {
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
  opacity: 0;
}


/* Prompt 8 — footer fluide et mobile réellement travaillé */
#footer .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 56px);
}
#footer .flex_column {
  float: none;
  width: auto;
  margin: 0;
}
@media (max-width: 1100px) {
  #footer .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .of-grid--2,
  .of-grid--3,
  .of-grid--4,
  .of-proofs {
    grid-template-columns: 1fr;
  }
  #footer .container {
    grid-template-columns: 1fr;
  }
  #socket .copyright,
  .of-socket-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 767px) {
  #header_meta {
    display: block !important;
  }
  #header_main .container,
  #header_main .logo,
  #header_main .logo a,
  #header_main .logo img {
    height: 72px;
    line-height: 72px;
  }
}


/* Prompt 9 — finition définitive du header uniquement */
#header_meta {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

#header_main,
#header_main .container,
#header_main .main_menu ul:first-child > li > a,
#header_main .logo,
#header_main .logo a {
  height: 90px !important;
  line-height: 90px !important;
}

#header_main .logo a {
  display: flex;
  align-items: center;
  max-height: 90px !important;
}

#header_main .logo svg {
  display: block;
  width: auto !important;
  height: 80px !important;
  max-width: none !important;
  max-height: 80px !important;
  flex: 0 0 auto;
}

#top #header .av-main-nav > li > a {
  display: flex;
  align-items: center;
  height: 90px !important;
  line-height: 1.2 !important;
}

#top #header .av-main-nav > li.current-menu-item > a::after,
#top #header .av-main-nav > li.current-menu-ancestor > a::after {
  bottom: 17px;
}

#top #header .av-main-nav > li.of-menu-cta > a {
  display: flex;
  align-items: center;
  height: 52px !important;
  margin-block: 19px !important;
  line-height: 1.2 !important;
}

#header.header-scrolled #header_main,
#header.header-scrolled #header_main .container,
#header.header-scrolled #header_main .main_menu ul:first-child > li > a,
#header.header-scrolled #header_main .logo,
#header.header-scrolled #header_main .logo a {
  height: 70px !important;
  line-height: 70px !important;
}

#header.header-scrolled #header_main .logo a {
  max-height: 70px !important;
}

#header.header-scrolled #header_main .logo svg {
  width: auto !important;
  height: 62px !important;
  max-height: 62px !important;
}

#header.header-scrolled #header_main .av-main-nav > li > a {
  height: 70px !important;
  line-height: 1.2 !important;
}

#header.header-scrolled .av-main-nav > li.current-menu-item > a::after,
#header.header-scrolled .av-main-nav > li.current-menu-ancestor > a::after {
  bottom: 12px;
}

#header.header-scrolled .av-main-nav > li.of-menu-cta > a {
  height: 50px !important;
  margin-block: 10px !important;
  line-height: 1.2 !important;
}

/* L’accès téléphonique reste réservé au menu mobile pour ne pas comprimer la navigation. */
#top #header .av-main-nav > li.of-mobile-call {
  display: none !important;
}

@media (max-width: 1380px) {
  #top #header .av-main-nav > li:not(.av-burger-menu-main) {
    display: none !important;
  }
  #top #header .av-burger-menu-main {
    display: block !important;
  }
}

@media (max-width: 767px) {
  #header_main,
  #header_main .container,
  #header_main .main_menu ul:first-child > li > a,
  #header_main .logo,
  #header_main .logo a {
    height: 76px !important;
    line-height: 76px !important;
  }

  #header_main .logo a {
    max-height: 76px !important;
  }

  #header_main .logo svg {
    width: auto !important;
    height: 68px !important;
    max-height: 68px !important;
  }

  #header.header-scrolled #header_main,
  #header.header-scrolled #header_main .container,
  #header.header-scrolled #header_main .main_menu ul:first-child > li > a,
  #header.header-scrolled #header_main .logo,
  #header.header-scrolled #header_main .logo a {
    height: 70px !important;
    line-height: 70px !important;
  }

  #header.header-scrolled #header_main .logo svg {
    height: 62px !important;
    max-height: 62px !important;
  }

  #top .av-burger-overlay li.of-mobile-call {
    display: block !important;
  }

  #top .av-burger-overlay li.of-mobile-call > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    margin: 16px 28px 24px;
    padding: 14px 20px;
    color: var(--of-color-ink) !important;
    font-family: var(--of-font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    background: var(--of-color-brand);
    border-radius: var(--of-radius-sm);
  }

  #top .av-burger-overlay li.of-mobile-call > a::before {
    content: "☎";
    font-size: 1.1em;
    line-height: 1;
  }
}


/* Prompt 9 — accès Appeler dans toute navigation burger */
#top .av-burger-overlay li.of-mobile-call {
  display: block !important;
}
#top .av-burger-overlay li.of-mobile-call > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin: 16px 28px 24px;
  padding: 14px 20px;
  color: var(--of-color-ink) !important;
  font-family: var(--of-font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: var(--of-color-brand);
  border-radius: var(--of-radius-sm);
}
#top .av-burger-overlay li.of-mobile-call > a::before {
  content: "☎";
  font-size: 1.1em;
  line-height: 1;
}


/* Prompt 9 — respiration contrôlée du menu aux largeurs ordinateur intermédiaires */
@media (min-width: 1381px) and (max-width: 1500px) {
  #top #header .av-main-nav > li > a {
    padding-inline: 8px;
    font-size: 13.5px;
  }
  #top #header .av-main-nav > li.of-menu-cta > a {
    padding-inline: 16px;
  }
  #top #header .av-main-nav > li.current-menu-item > a::after,
  #top #header .av-main-nav > li.current-menu-ancestor > a::after {
    right: 8px;
    left: 8px;
  }
}
