/* ==========================================================================
   Swits brand layer — loaded after the Webflow stylesheet on every page.
   Change the look of the whole site from the tokens below.
   ========================================================================== */

:root {
  /* ---- Fonts: 2 families for the whole site ---------------------------- */
  /* Display = menu, main buttons, big hero title. To use the licensed       */
  /* Esallianz font instead, set: --font-display: 'Esallianz', sans-serif;   */
  --font-display: 'Space Grotesk', 'Open Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* ---- Brand palette ------------------------------------------------------ */
  --brand-orange: #fe360e;
  --brand-orange-dark: #d92d0a;
  --brand-orange-darker: #b02408;
  --brand-orange-tint: #fff1ed;
  --brand-orange-tint-2: #ffe1d8;
  --brand-orange-tint-3: #ffc2b0;
  --brand-black: #000000;
  --brand-surface: #141414;      /* dark cards / panels */
  --brand-white: #ffffff;
  --grey-50: #fafafa;
  --grey-100: #f4f4f4;
  --grey-200: #e8e8e8;
  --grey-300: #d4d4d4;
  --grey-400: #a3a3a3;
  --grey-500: #737373;
  --grey-700: #404040;
  --grey-800: #262626;
  --grey-900: #0f0f0f;

  /* ---- Type scale --------------------------------------------------------- */
  --size-section-title: 44px;
  --size-card-title: 24px;

  /* ---- Template palettes remapped to the brand ------------------------------
     The site was assembled from several Webflow templates (Untitled UI,
     FlowUI, Spark, Lynx) that each brought their own purple / blue / pink.  */
  --red: var(--brand-orange);
  --primary-color: var(--brand-orange);

  --untitled-ui--primary50: var(--brand-orange-tint);
  --untitled-ui--primary100: var(--brand-orange-tint);
  --untitled-ui--primary200: var(--brand-orange-tint-2);
  --untitled-ui--primary300: var(--brand-orange-tint-3);
  --untitled-ui--primary600: var(--brand-orange);
  --untitled-ui--primary700: var(--brand-orange-dark);
  --untitled-ui--primary800: var(--brand-orange-darker);
  --untitled-ui--blue50: var(--brand-orange-tint);
  --untitled-ui--blue500: var(--brand-orange);
  --untitled-ui--blue700: var(--brand-orange-dark);
  --untitled-ui--pink50: var(--brand-orange-tint);
  --untitled-ui--pink500: var(--brand-orange);
  --untitled-ui--pink700: var(--brand-orange-dark);
  --untitled-ui--gray50-2: var(--grey-50);
  --untitled-ui--gray100: var(--grey-100);
  --untitled-ui--gray200: var(--grey-200);
  --untitled-ui--gray300: var(--grey-300);
  --untitled-ui--gray400: var(--grey-400);
  --untitled-ui--gray500: var(--grey-500);
  --untitled-ui--gray700: var(--grey-700);
  --untitled-ui--gray800: var(--grey-800);

  --spark-library--foreground-interactive: var(--brand-orange);
  --spark-library--foreground-interactive-hover: var(--brand-orange-dark);
  --spark-library--light-steel-purple: var(--brand-orange-tint-3);

  --flowui-component-library--primary-base: var(--brand-orange);
  --flowui-component-library--primary-dark: var(--brand-orange-darker);
  --flowui-component-library--gray-900: var(--grey-900);
  --flowui-component-library--gray-800: var(--grey-800);
  --flowui-component-library--gray-700: var(--grey-700);
  --flowui-component-library--gray-500: var(--grey-500);
  --flowui-component-library--gray-400: var(--grey-400);
  --flowui-component-library--gray-200: var(--grey-100);

  --lynx--black: var(--grey-900);
}

/* ---- Base ------------------------------------------------------------------ */
body { font-family: var(--font-body); }
:is(h1, h2, h3, h4, h5, h6) { font-family: var(--font-body); }
/* plain links inside text (e.g. privacy policy) instead of browser blue */
:where(a:not([class])) { color: var(--brand-orange); }

/* ---- Headings: one scale for every page ---------------------------------- */
/* Section titles */
:is(.our-services-title, .about-us-heading, .blog-heading, .choose-us-heading,
    .contact-section-heading, .team-heading, .fn-heading-12, .fn-heading-9,
    .heading-11, .uui-heading-medium-2, .uui-heading-medium-6),
:is(h1, h2).heading-2,
section h2:not([class]):not(.w-richtext h2) {
  font-family: var(--font-body);
  font-size: var(--size-section-title);
  line-height: 1.15;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}
/* Card / block titles */
:is(h2, h3, h4, h5, h6):is(.bold-text, .bold-text-white, .uui-heading-xxsmall,
    .uui-heading-xxsmall-3, .uui-heading-xxsmall-5, .blog-name,
    .lynx-heading-features-small, .lynx-heading-features-small-copy),
:is(h1, h2).services-name,
h5:not([class]) {
  font-family: var(--font-body);
  font-size: var(--size-card-title);
  line-height: 1.3;
  font-weight: 700;
}

/* ---- Buttons: one shape ---------------------------------------------------- */
:is(.w-button, .primary-button, a[class*="uui-button"], input[type="submit"]) {
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
}

/* ---- Template leftovers with hard-coded colours ---------------------------- */
.w-slider-dot.w-active { background-color: var(--brand-orange) !important; }
/* Managed Services feature icon tiles (were pink / purple / green) */
[class*="lynx-block-features-"] {
  background-color: rgba(254, 54, 14, 0.14) !important;
  color: var(--brand-orange) !important;
}

/* ==========================================================================
   THEME — like the homepage: dark menu + dark title banner, then the sections
   ALTERNATE black / white (the first section is black), dark footer.
   Each section carries data-tone="dark" or "light" — set by
   tools/apply-brand.ps1 from tools/section-tones.json.
   ========================================================================== */
[data-tone="dark"] {
  --tone-bg: var(--brand-black);
  --tone-card: var(--brand-surface);
  --tone-line: #2a2a2a;
  --tone-text: #ffffff;
  --tone-body: #c4c4c4;
  --tone-field: var(--brand-surface);
  --tone-dot: #5a5a5a;
  --tone-logo: brightness(0) invert(1);
  --tone-callout: rgba(254, 54, 14, 0.14);
}
[data-tone="light"] {
  --tone-bg: var(--brand-white);
  --tone-card: var(--grey-100);
  --tone-line: var(--grey-200);
  --tone-text: #141414;
  --tone-body: #404040;
  --tone-field: var(--brand-white);
  --tone-dot: var(--grey-300);
  --tone-logo: brightness(0);
  --tone-callout: var(--brand-orange-tint);
}

/* Section background — full screen width, even when the section is a centred box */
[data-tone] {
  background-color: var(--tone-bg) !important;
  background-image: none !important;
  color: var(--tone-text);
  box-shadow: 0 0 0 100vmax var(--tone-bg);
  clip-path: inset(0 -100vmax);
}

/* Full-width wrappers inside a section: let the section colour show through */
[data-tone] :is(.section.single-services, .fn-section, .fn-section-3, .fn-section-4, .fn-section-6,
    .fn-section-white, .our-services-section, .blog-section, .choose-us-section, .externaliser,
    .partenaires, .uui-page-padding-9, .uui-section_pricing04, .team-slider, .spark-section,
    .testimonial-slider-large, .testimonial-slider-two, .testimonial-slide) {
  background-color: transparent !important;
  background-image: none !important;
}

/* Cards */
[data-tone] :is(.fn-features-card-2, .fn-logos-card, .fn-faq-dark-wrapper, .fn-classic-pricing-card,
    .fn-feature-pricing-card, .lien-services, .fn-cta-banner-dark-copy, .lynx-features-bg,
    .spark-secondary-background-card, .team-block, .cover-shape.choose-us,
    .uui-testimonial18_content[class*="background-color-"]) {
  background-color: var(--tone-card) !important;
  border-color: var(--tone-line) !important;
}
/* Cybersecurity slider cards (were purple / blue / indigo / pink) */
[data-tone] .uui-testimonial18_content[class*="background-color-"] {
  border: 1px solid var(--tone-line);
  border-top: 4px solid var(--brand-orange);
}
[data-tone] .uui-testimonial18_content-wrapper { background-color: transparent !important; }
[data-tone] .fn-pricing-line { background-color: var(--tone-line) !important; }
[data-tone] .fn-pricing-icon { background-color: rgba(254, 54, 14, 0.12) !important; color: var(--brand-orange); }
[data-tone] .w-slider-dot:not(.w-active) { background-color: var(--tone-dot) !important; }
/* "Objectif : ..." callout in the pricing cards */
[data-tone] .text-block-61 {
  background-color: var(--tone-callout) !important;
  border-left: 3px solid var(--brand-orange);
}

/* Text: headings in the tone's text colour, body text slightly softer.
   Kept as they are: orange icons / links, and anything on an orange button or badge. */
[data-tone] :not(.w-button, [class*="uui-button"], .fn-button, .primary-button, .uui-pricing04_popular-label,
     .blog-post-date-wrap, .w-slider-dot, .w-embed, [class*="code-embed"], [class*="icon"],
     .badge-dot, a:not([class]), [class*="lynx-block-features-"], input, textarea, select,
     .w-form-done, .w-form-fail,
     :is(.w-button, [class*="uui-button"], .fn-button, .primary-button, .uui-pricing04_popular-label,
         .blog-post-date-wrap, .w-embed, [class*="code-embed"], [class*="lynx-block-features-"],
         .w-form-done, .w-form-fail, svg, .footer, .footer-en, .w-nav) *) {
  color: var(--tone-text) !important;
}
[data-tone] :is(p, li, [class*="paragraph"], [class*="text-size"], [class*="details"], .w-richtext)
  :not(:is(.w-button, [class*="uui-button"], .fn-button, .primary-button, .uui-pricing04_popular-label,
         .blog-post-date-wrap, .w-embed, [class*="lynx-block-features-"], .w-form-done, .w-form-fail,
         .footer, .footer-en, .w-nav) *) {
  color: var(--tone-body) !important;
}
[data-tone] :is(p, li, [class*="paragraph"], [class*="text-size"], [class*="details"]):not(:is(
    .w-button, [class*="uui-button"], .fn-button, .primary-button, .footer, .footer-en, .w-nav) *) {
  color: var(--tone-body) !important;
}

/* Small tags / badges (e.g. job categories): orange text on a soft orange tint */
[data-tone] [class*="badge"]:not(.badge-dot) { background-color: var(--tone-callout) !important; border-color: transparent !important; }
[data-tone] [class*="badge"]:not(.badge-dot),
[data-tone] [class*="badge"]:not(.badge-dot) * { color: var(--tone-badge-text) !important; }
[data-tone="dark"]  { --tone-badge-text: #ff7a5c; }
[data-tone="light"] { --tone-badge-text: var(--brand-orange-darker); }

/* Text on orange buttons / badges stays white */
:is(.fn-button, .primary-button, .uui-pricing04_popular-label, .blog-post-date-wrap,
    .uui-button-4, .uui-button-5, .uui-button-7, .uui-button-7-copy, .uui-button-7-copy1)
  :is(div, span, strong) {
  color: #fff !important;
}
.fn-button:not(.footer *, .footer-en *) { border-color: var(--brand-orange) !important; }

/* Secondary buttons: outlined in the tone's text colour */
[data-tone] :is(.secondary-button, .fn-button-copy, [class*="uui-button-secondary"]):not(.footer *, .footer-en *) {
  background-color: transparent !important;
  border: 1px solid var(--tone-text) !important;
}
[data-tone] :is(.secondary-button, .fn-button-copy, [class*="uui-button-secondary"]):not(.footer *, .footer-en *),
[data-tone] :is(.secondary-button, .fn-button-copy, [class*="uui-button-secondary"]):not(.footer *, .footer-en *) :is(div, span, strong) {
  color: var(--tone-text) !important;
}
/* the button arrow icon is white: hide it on white sections */
[data-tone="light"] .secondary-button { background-image: none !important; }

/* Form fields */
[data-tone] :is(input:not([type="submit"]), textarea, select) {
  background-color: var(--tone-field) !important;
  color: var(--tone-text) !important;
  border-color: var(--tone-line) !important;
}

/* Partner logos (some are white files, some dark): one colour per section tone */
.fn-logos-card, .fn-logos-card * { opacity: 1 !important; }
[data-tone] .fn-logos-card img { filter: var(--tone-logo); opacity: 0.75 !important; transition: opacity .2s; }
[data-tone] .fn-logos-card:hover img { opacity: 1 !important; }

/* News article pages (blog/<slug>/) */
[data-tone] .article-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--brand-orange) !important;
  font-weight: 600;
  text-decoration: none;
}
[data-tone] .article-back:hover { text-decoration: underline; }
.single-blog-img { width: 100%; border-radius: 16px; }
[data-tone] .article-byline { margin: 8px 0 28px; font-size: 15px; color: var(--tone-body) !important; }
[data-tone] .single-blog-details-wrapper .article-byline a { color: var(--brand-orange) !important; font-weight: 600; text-decoration: none; }
[data-tone] .single-blog-details-wrapper .article-byline a:hover { text-decoration: underline; }
[data-tone] .single-blog-details-wrapper a.article-back { color: var(--brand-orange) !important; }
.rich_text_in_blog :is(h2, h3) { margin-top: 32px; }

/* Photos made for dark pages: frame them as cards */
.choose-us-banner { border-radius: 16px; }

/* ==========================================================================
   DROPDOWN MENUS — black panel, icon tile + title + one-line description
   (icons and descriptions are added to the HTML by tools/nav.ps1)
   ========================================================================== */
nav.w-dropdown-list {
  background-color: #0a0a0a !important;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
nav.w-dropdown-list.w--open {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 4px;
  min-width: 540px;
  margin-top: 10px;
  z-index: 1000;
}
nav.w-dropdown-list:not(:has(a)) { display: none !important; }
/* invisible hover bridge over the 10px gap between the menu title and the panel,
   so the menu (opened on hover) doesn't close while the pointer moves down to it */
@media screen and (min-width: 992px) {
  nav.w-dropdown-list.w--open::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
    background: transparent;
  }
}
a.dropdownlinkred.w-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  padding: 10px 12px;
  margin: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff !important;
  white-space: normal;
  text-decoration: none;
  transition: background-color .15s;
}
a.dropdownlinkred.w-dropdown-link:hover { background-color: #171717 !important; }
.nav-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #141414;
  color: #d4d4d4;
  transition: color .15s, border-color .15s;
}
.nav-ico svg { width: 18px; height: 18px; }
a.dropdownlinkred:hover .nav-ico,
a.dropdownlinkred.w--current .nav-ico { color: var(--brand-orange); border-color: rgba(254, 54, 14, 0.45); }
.nav-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-title { font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.3; color: #fff; }
a.dropdownlinkred.w--current .nav-title { color: var(--brand-orange); }
.nav-desc { font-family: var(--font-body); font-size: 12px; font-weight: 400; line-height: 1.35; color: #8c8c8c; }
@media screen and (max-width: 991px) {
  nav.w-dropdown-list.w--open { grid-template-columns: 1fr; min-width: 0; width: 100%; margin-top: 4px; box-shadow: none; }
}

/* ---- Responsive scale ----------------------------------------------------- */
@media screen and (max-width: 991px) {
  :root { --size-section-title: 38px; --size-card-title: 22px; }
}
@media screen and (max-width: 767px) {
  :root { --size-section-title: 32px; --size-card-title: 20px; }
}
