/* ==========================================================================
   QuidNote — static rebuild of the Scalia/WPBakery WordPress design
   Tokens taken from the live theme-options CSS at wp.quidnote.com
   ========================================================================== */

:root {
  --gold: #d2ad54;
  --gold-dark: #d29e22;
  --navy: #234f72;
  --teal: #58abb7;
  --heading: #4c5867;
  --text: #384554;
  --border: #d2dae1;
  --light: #f1f5f8;
  --white: #fff;
  --container: 1200px;
  --header-h: 90px;
}

/* ------------------------------ reset ----------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background-color: #8b94a5;
  color: var(--text);
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--teal); text-decoration: none; transition: color .2s linear; }
a:hover { color: var(--gold); }
ul { margin: 0; padding: 0; }
p { margin: 0 0 1.421em; }
iframe { border: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--heading);
  margin: 0 0 .5em;
  line-height: 1.15;
}
h1 { font-size: 80px; }
h2 { font-size: 48px; }
h3 { font-size: 36px; color: var(--navy); }  /* site override */
h4 { font-size: 29px; }
h5 { font-size: 24px; }
h6 { font-size: 20px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-4 { width: 33.3333%; padding: 0 15px; }
.col-12 { width: 100%; padding: 0 15px; }

.text-center { text-align: center; }
.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;
}

/* Scalia divider: a thin rule, used as a section separator under headings */
.sc-divider {
  position: relative; border-top: 1px solid transparent;
  height: 0; font-size: 0; line-height: 0;
}
.sc-divider-1 { height: 1px; border: 0; background: var(--border); margin-bottom: 27px; }

#main { background-color: var(--white); }
.block-content { background-color: var(--white); padding: 60px 0; }
.block-content:last-child { padding-bottom: 50px; }

/* ------------------------------ header ---------------------------------- */

#site-header {
  position: sticky; top: 0; z-index: 1000;
  background-color: var(--white);
  transition: background-color .3s, box-shadow .3s;
}
#site-header.shrink {
  background-color: rgba(255,255,255,.95);
  box-shadow: 0 0 2px 0 rgba(56,69,84,.2);
}

.header-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.site-title { padding: 15px 0; }
.site-title img { width: 190px; height: 55px; display: block; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
  color: var(--heading); font-size: 26px; line-height: 1;
}

#primary-menu { list-style: none; display: flex; align-items: center; }
#primary-menu > li > a {
  display: block;
  padding: 35px 20px;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--heading);
  transition: color .2s linear, padding .3s;
}
#primary-menu > li > a:hover,
#primary-menu > li.menu-item-active > a { color: var(--teal); }

#site-header.shrink #primary-menu > li > a { padding-top: 28px; padding-bottom: 28px; }

/* The "Demander une démo" item is rendered as a solid navy button */
#primary-menu > li.democlas > a,
#primary-menu > li.democlas.menu-item-active > a {
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
  padding-top: 20px;
  padding-bottom: 20px;
}
#primary-menu > li.democlas > a:hover { color: var(--white); background: #1b3e5b; }

/* ------------------------------ hero ------------------------------------ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background: url('../img/HOMEPAGE-1.jpg') center center / cover no-repeat;
}
.hero-title {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 868px;
  max-width: 90%;
  margin: 0;
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 96px;
  line-height: 1.1;
  color: var(--white);
  text-align: center;
}
.hero-cta {
  position: absolute;
  top: 66.7%;
  left: 50%;
  transform: translateX(-50%);
}

/* ------------------------------ buttons --------------------------------- */

.sc-button {
  display: inline-block;
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 34px;
  color: var(--white);
  background-color: var(--teal);
  border: 0;
  border-radius: 4px;
  padding: .4546em 1.1364em;
  cursor: pointer;
  transition: background-color .2s linear;
}
.sc-button:hover { color: var(--white); background-color: var(--teal); }

.sc-button-hero {
  padding: 20px 60px;
  font-size: 30px;
  font-weight: 400;
  color: var(--white);
  background: var(--gold);
  border-radius: 5px;
  line-height: 1.2;
}
.sc-button-hero:hover { color: var(--white); background: var(--gold-dark); }

/* ------------------------------ page title ------------------------------ */

.page-title-block {
  position: relative;
  text-align: center;
  padding: 100px 0;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--teal);
  color: var(--white);
}
.page-title-block h1 { margin: 0; line-height: 1; color: var(--white); }
/* the Témoignages page ships a 40px override */
.page-title-block.title-sm h1 { font-size: 40px; }

/* ------------------------------ tabs ------------------------------------ */

.sc-tabs { margin-bottom: 1.421em; }
.sc-tabs-nav {
  list-style: none;
  display: table;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.sc-tabs-nav li { display: table-cell; }
.sc-tabs-nav button {
  position: relative;
  display: block;
  background: none;
  border: 0;
  padding: 24px 27px;
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  color: var(--heading);
  cursor: pointer;
  transition: color .2s linear;
}
.sc-tabs-nav button:hover { color: var(--teal); }
.sc-tabs-nav li.active button { color: var(--teal); }
/* active tab carries a small caret marker, as in the theme */
.sc-tabs-nav li.active button::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  margin-left: -8px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid var(--teal);
}

.sc-tab-panel { display: none; padding-top: 45px; }
.sc-tab-panel.active { display: block; }
.sc-tab-panel .row { align-items: center; }

/* ------------------------------ fade gallery ---------------------------- */

/* All slides share one grid cell so they cross-fade without a height jump. */
.fade-gallery { position: relative; display: grid; overflow: hidden; }
.fade-gallery .slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .6s ease-in-out;
}
.fade-gallery .slide.active { opacity: 1; z-index: 1; }
.fade-gallery img { width: 100%; display: block; }

.fade-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  text-align: center; list-style: none; z-index: 2;
}
.fade-dots li { display: inline-block; margin: 0 4px; }
.fade-dots button {
  width: 11px; height: 11px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.6);
  cursor: pointer; text-indent: -9999px; overflow: hidden;
}
.fade-dots li.active button { background: var(--gold); }

/* ------------------------------ about ----------------------------------- */

.fullwidth-block { position: relative; }
.fullwidth-block.styled-marker-top::after {
  content: '';
  position: absolute; top: 0; left: 50%; margin-left: -40px;
  width: 0; height: 0;
  border: 40px solid transparent;
  border-top-color: var(--white);
}
.block-about { padding: 25px 25px 55px; }
.block-about .lead-gold { color: var(--gold); text-align: center; }

/* ------------------------------ testimonial slider ---------------------- */

.tslider { position: relative; overflow: hidden; display: grid; }
.tslide {
  grid-area: 1 / 1;
  position: relative;
  height: 650px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease-in-out, visibility 0s linear .6s;
}
.tslide.active { opacity: 1; visibility: visible; z-index: 1; transition-delay: 0s; }
.tslide > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.tslide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.tslide-content {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  width: 80%;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  z-index: 2;
  padding: 0 15px;
}
.tslide-content h3,
.tslide-content h4 { color: var(--white); text-align: center; }
.tslide-content h3 { font-size: 36px; line-height: 40px; }
.tslide-content h4 { font-size: 29px; margin: 0 0 .2em; }
.quote { color: inherit; }

.customer__content__watch {
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 70px;
  display: block;
  height: 70px; width: 70px;
  margin: 24px auto;
  position: relative;
  transition: background .2s ease, border-color .2s ease;
}
.customer__content__watch:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.customer__content__watch svg {
  position: absolute; top: 28px; left: 31px;
  height: 14px; width: 10px; fill: #fff;
}

.tslider-dots {
  position: absolute; left: 15px; right: 15px; bottom: 8px;
  text-align: center; list-style: none; z-index: 3;
}
.tslider-dots li { display: inline-block; margin: 0 5px; }
.tslider-dots button {
  width: 12px; height: 12px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer; text-indent: -9999px; overflow: hidden;
}
.tslider-dots li.active button { background: var(--gold); }

.tslider-arrow {
  position: absolute; top: 45%; z-index: 3;
  background: none; border: 0; cursor: pointer;
  color: #fff; font-size: 40px; line-height: 1;
  padding: 10px 16px;
  opacity: .7;
}
.tslider-arrow:hover { opacity: 1; }
.tslider-prev { left: 0; }
.tslider-next { right: 0; }

/* ------------------------------ clients --------------------------------- */

.block-clients { padding: 75px 25px; background: var(--white); }
.client-carousel { overflow: hidden; }
.client-track {
  display: flex;
  align-items: center;
  gap: 8px;
  will-change: transform;
}
.client-track.animating { transition: transform .6s ease; }
.client-item { flex: 0 0 auto; width: calc((100% - 32px) / 5); }
.client-item img { width: 100%; opacity: .5; transition: opacity .3s linear; }
.client-item:hover img { opacity: 1; }

/* ------------------------------ map ------------------------------------- */

.sc-map-with-text { position: relative; }
.sc-map-with-text-map { overflow: hidden; }
.sc-map-with-text-map.grayscale iframe { filter: grayscale(100%); }
.sc-map-with-text-map iframe { width: 100%; height: 446px; display: block; }
.map-locker {
  position: absolute; inset: 0;
  display: block;
  background: transparent;
}

/* ------------------------------ forms ----------------------------------- */

.wpcf7 p { margin: 0 0 1em; }
label, .field-label { display: block; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: 4px;
  box-shadow: none;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-dark); }
textarea { height: 165px; resize: vertical; }

input[type="submit"], .submit-btn {
  width: auto;
  margin-top: 23px;
  padding: .4546em 1.1364em;
  font-family: 'Roboto Condensed', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 34px;
  color: var(--white);
  background-color: var(--gold);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .2s linear;
}
input[type="submit"]:hover, .submit-btn:hover { background-color: var(--gold-dark); }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 1em;
  font-size: 16px;
  padding: 12px 15px;
  border-radius: 4px;
  display: none;
}
.form-note.ok { display: block; background: #eef7ee; border: 1px solid #b6d9b6; color: #2c6b2c; }
.form-note.err { display: block; background: #fdf0f0; border: 1px solid #f0b6b6; color: #a33; }

/* ------------------------------ icon + text ----------------------------- */

.sc-icon-with-text { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 10px; }
.sc-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  background-color: var(--gold);
  border: 2px solid var(--gold);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.sc-icon-with-text h5 { margin: 0 0 .2em; }
.sc-icon-with-text p { margin: 0; }

/* ------------------------------ testimonials page ----------------------- */

.testimonial-block {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  padding: 80px 25px 45px;
}
.testimonial-block:first-of-type { padding-top: 25px; }
.testimonial-block .row { align-items: center; }
.testcontent1 { text-align: left; font-style: italic; font-size: 36px; line-height: 40px; }
.testauthor1 { text-align: left; font-weight: bold; }
.testcompany1 { text-align: left; font-style: italic; }
.testimonial-divider { border-top: 1px solid var(--gold); height: 0; }

.video-thumb { position: relative; display: block; }
.video-thumb img { width: 100%; display: block; }
.video-thumb .play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
.justmob { height: 72px; }

/* ------------------------------ video modal ----------------------------- */

.video-modal {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.video-modal.open { display: flex; }
.video-modal video { max-width: 960px; width: 100%; max-height: 85vh; outline: none; }
.video-modal-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: 0; color: #fff;
  font-size: 40px; line-height: 1; cursor: pointer;
}

/* ------------------------------ footer ---------------------------------- */

#colophon {
  position: relative;
  padding: 45px 0;
  background-image: url('../img/footer-bg.png');
  background-position: 50% 0;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--light);
}
#footer-socials { text-align: center; padding-bottom: 0; }
.footer-socials-item { display: inline-block; margin: 0 10px; }
.footer-socials-item a { color: #fff; font-size: 24px; }
.footer-socials-item a:hover { color: var(--gold); }

#footer-menu {
  display: table;
  margin: 20px auto 0;
  list-style: none;
}
#footer-menu li { display: inline-block; position: relative; padding: 0 14px; }
#footer-menu li::before { content: '\00b7'; color: var(--gold); position: absolute; left: -2px; }
#footer-menu li:first-child::before { content: none; }
#footer-menu a { color: #fff; font-size: 17px; }
#footer-menu a:hover { color: var(--gold); }

.footer-site-info {
  margin-top: 24px;
  text-align: center;
  color: #fff;
  font-size: 16px;
}

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 1199px) {
  .hero-title { font-size: 72px; }
  #primary-menu > li > a { padding: 30px 12px; font-size: 15px; }
}

@media (max-width: 991px) {
  body { font-size: 17px; }
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  h3 { font-size: 30px; }
  h4 { font-size: 25px; }
  .hero-title { font-size: 52px; }
  .sc-button-hero { font-size: 22px; padding: 16px 36px; }
  .tslide-content h3 { font-size: 28px; line-height: 34px; }
  .testcontent1 { font-size: 28px; line-height: 34px; }
  .client-item { width: calc((100% - 16px) / 3); }

  .menu-toggle { display: block; }
  #primary-navigation { position: static; }
  #primary-menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(56,69,84,.15);
    padding: 8px 0;
  }
  #primary-menu.open { display: flex; }
  #primary-menu > li > a,
  #site-header.shrink #primary-menu > li > a { padding: 14px 20px; }
  #primary-menu > li.democlas > a { margin: 8px 20px; text-align: center; }
  .header-main { position: relative; }
}

@media (max-width: 767px) {
  h1 { font-size: 40px; }
  .page-title-block { padding: 60px 0; }
  .col-6, .col-4 { width: 100%; }
  .col-6 + .col-6 { margin-top: 30px; }
  .hero { min-height: 480px; }
  .hero-title { font-size: 36px; top: 22%; }
  .hero-cta { top: 62%; }
  .tslide { height: 520px; }
  .tslide-content h3 { font-size: 22px; line-height: 28px; }
  .tslide-content h4 { font-size: 20px; }
  .testcontent1 { font-size: 22px; line-height: 28px; }
  .testauthor1, .testcompany1 { font-size: 18px; }
  .justmob { display: none; }
  .client-item { width: calc((100% - 8px) / 2); }
  .sc-tabs-nav { display: flex; flex-wrap: wrap; justify-content: center; border: 0; }
  .sc-tabs-nav li { display: block; }
  .sc-tabs-nav button { padding: 14px 16px; font-size: 20px; }
  .block-content { padding: 40px 0; }
  .testimonial-block { padding: 40px 15px; }
}
