/* ============================================================
   BLOKKUS — Feuille de style globale partagée
   ============================================================ */

/* ---- Variables de marque ---- */
:root {
  --blokkus-ink:       #181a1e;
  --blokkus-deep:      #1c285c;
  --blokkus-deep-soft: #263455;
  --blokkus-accent:    #d61742;
  --blokkus-mint:      #50c8a0;
  --blokkus-orange:    #f0a24b;
  --blokkus-fog:       #f8f8fa;
  --blokkus-line:      #e1e1e4;
  --blokkus-text:      #232321;
  --blokkus-muted:     #3f4f74;
}

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

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--blokkus-text);
  background: radial-gradient(circle at 20% 0%, #ffffff 0, #f8f8fa 30%, #f0f2f7 100%);
  margin: 0;
}

/* ---- Typographie ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--blokkus-deep);
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 { font-size: clamp(32px, 4.5vw, 58px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 40px);   font-weight: 700; }
h3 { font-size: clamp(18px, 2vw, 28px);   font-weight: 700; }

p {
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--blokkus-muted);
  margin: 0 0 14px;
}

/* ---- Filet décoratif sous titre ---- */
.title-underline {
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--blokkus-mint), var(--blokkus-deep));
  border-radius: 2px;
  margin: 12px 0 24px;
}

/* ---- Wrapper de contenu centré ---- */
.bk-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* ---- Bouton principal (rouge dégradé) ---- */
.btn-main {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: linear-gradient(90deg, var(--blokkus-accent), #ef315f);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(214, 23, 66, .18);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(214, 23, 66, .28);
}
/* Effet de scan lumineux sur btn-main */
.btn-main::after {
  content: "";
  position: absolute;
  top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, rgba(80,200,160,.12) 0%, rgba(80,200,160,.38) 60%, rgba(80,200,160,0) 100%);
  filter: blur(2px);
  animation: scanlight 2.8s infinite linear;
  z-index: 2;
}
@keyframes scanlight {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: .7; }
  40%  { left: 110%; opacity: .2; }
  100% { left: 110%; opacity: 0; }
}

/* ---- Bouton fantôme (outline vert-blanc) ---- */
.btn-ghost {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #ffffff;
  color: var(--blokkus-deep);
  border: 1px solid rgba(80, 200, 160, .6);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: #ecfbf5;
}

/* ---- Section générique ---- */
.bk-section {
  padding: 58px 0;
}

/* ---- Carte générique ---- */
.bk-card {
  background: #ffffff;
  border: 1px solid var(--blokkus-line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(28, 40, 92, .07);
}

/* ---- Bloc "Entrons en contact" (partagé) ---- */
.bk-contact-block {
  margin: 44px auto 0 auto;
  text-align: center;
  max-width: 700px;
  padding-bottom: 48px;
}
.bk-contact-block h2 {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.bk-contact-block p {
  font-size: 1.18em;
  line-height: 1.4;
  font-weight: 400;
  color: var(--blokkus-muted);
  margin-bottom: 28px;
}

/* ---- Animations communes ---- */
@keyframes slideUp {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Footer ---- */
.bk-footer {
  padding: 48px 5vw 24px;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
}
.bk-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bk-footer-links {
  flex: 1 1 auto;
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}
.bk-footer-links a {
  text-decoration: none;
  color: #000000;
  font-size: 1.05em;
  font-weight: 300;
  transition: color .15s;
}
.bk-footer-links a:hover { color: var(--blokkus-accent); }
.bk-footer-img {
  flex: 0 0 auto;
  margin-left: auto;
}
.bk-footer-img img { height: 54px; width: auto; display: block; }
.bk-footer-tags {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
}

/* ---- Header / nav ---- */
.bk-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--blokkus-line);
  box-shadow: 0 2px 12px rgba(28, 40, 92, .06);
}
.bk-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.bk-nav-logo { flex: 0 0 auto; }
.bk-nav-logo img { height: 38px; width: auto; }
.bk-nav-links {
  flex: 1 1 auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}
.bk-nav-links a {
  text-decoration: none;
  color: var(--blokkus-deep);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: color .15s;
}
.bk-nav-links a:hover,
.bk-nav-links a.active { color: var(--blokkus-accent); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  h1 { font-size: clamp(26px, 7vw, 38px); }
  .bk-footer-inner { flex-direction: column; align-items: center; }
  .bk-footer-img { margin-left: 0; }
}
@media (max-width: 600px) {
  .bk-nav-links { gap: 10px; }
  .btn-main, .btn-ghost { width: 100%; max-width: 340px; text-align: center; }
}

/* ---- Header public actuel : responsive + menu burger mobile ---- */
.bk-desktop-menu-cell {
  text-align: right;
  vertical-align: middle;
  padding-right: 12px;
}

.bk-header-pill {
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  color: var(--blokkus-deep);
  border: 1.5px solid var(--blokkus-deep);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}

.bk-header-pill:hover {
  color: #ffffff;
  background-color: var(--blokkus-deep);
}

.bk-language-switch {
  display: inline-block;
  border: 1.5px solid var(--blokkus-deep);
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
}

.bk-language-switch a {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.bk-flag-fr,
.bk-flag-en {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 12px;
  border: 1px solid #cbd3e1;
  border-radius: 2px;
  margin-right: 6px;
}

.bk-flag-fr {
  background: linear-gradient(to right,#1f4db7 0%,#1f4db7 33.33%,#ffffff 33.33%,#ffffff 66.66%,#d81f26 66.66%,#d81f26 100%);
}

.bk-flag-en {
  background-image: url(/images/flag-en.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bk-mobile-menu-cell {
  display: none;
  text-align: right;
  vertical-align: middle;
  padding-right: 14px;
}

.bk-burger-button {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--blokkus-deep);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.bk-burger-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blokkus-deep);
  border-radius: 2px;
}

.bk-mobile-menu-panel {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 1199;
  background: #ffffff;
  border-bottom: 1px solid var(--blokkus-line);
  box-shadow: 0 12px 28px rgba(28,40,92,.12);
  padding: 14px 18px 18px;
}

.bk-mobile-menu-panel.is-open {
  display: block;
}

.bk-mobile-menu-panel a {
  display: block;
  text-decoration: none;
  color: var(--blokkus-deep);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 8px;
  border-bottom: 1px solid var(--blokkus-line);
}

.bk-mobile-language-switch {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.bk-mobile-language-switch a {
  flex: 1;
  border: 1.5px solid var(--blokkus-deep);
  border-radius: 999px;
  text-align: center;
  padding: 11px 8px;
}

@media (max-width: 760px) {
  .bk-desktop-menu-cell { display: none !important; }
  .bk-mobile-menu-cell { display: table-cell !important; }
}

/* ---- Ajustements mobiles pages publiques ---- */
@media (max-width: 600px) {
  #div_padding_contenu {
    padding: 12px !important;
    font-size: 1rem !important;
  }

  #div_padding_contenu h1,
  #div_padding_contenu h2 {
    font-size: 2rem !important;
    line-height: 1.08 !important;
    margin-top: 14px !important;
    margin-bottom: 18px !important;
  }

  #div_padding_contenu > br,
  #div_padding_contenu h1 + br,
  #div_padding_contenu h2 + br {
    display: none !important;
  }

  .blokkus-contact-form {
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    margin: 18px auto 0 auto !important;
    padding: 26px 22px !important;
    border-radius: 14px !important;
  }

  .blokkus-contact-form label {
    font-size: 1.02rem !important;
  }

  .blokkus-contact-form input,
  .blokkus-contact-form textarea {
    font-size: 1rem !important;
    padding: 14px !important;
    margin-bottom: 18px !important;
  }

  .blokkus-contact-form textarea {
    min-height: 130px !important;
  }

  .blokkus-contact-form .consent-row {
    gap: 12px !important;
  }

  .blokkus-contact-form .consent-row label {
    font-size: .94rem !important;
  }

  .bk-container,
  .bk-card,
  article,
  .blog-card,
  .post-card,
  .article-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  table {
    max-width: 100% !important;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* ============================================================
   Correctifs responsive header public + pages mobiles
   ============================================================ */
.bk-public-header {
  width: 100%;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  box-shadow: 0 6px 18px rgba(28,40,92,.08);
  border-bottom: 1px solid #d9deea;
  border-collapse: collapse;
}

.bk-public-logo-cell {
  text-align: left;
  vertical-align: middle;
  padding-right: 50px;
  white-space: nowrap;
}

.bk-public-logo {
  vertical-align: middle;
  height: 90px;
  width: auto;
  max-width: none;
  padding-left: 30px;
  padding-top: 14px;
  padding-bottom: 14px;
  display: block;
}

.bk-header-fill-cell {
  width: 100%;
}

.bk-public-header-spacer {
  height: 114px;
}

.bk-desktop-menu-cell {
  text-align: right;
  vertical-align: middle;
  padding-right: 12px;
  white-space: nowrap;
}

.bk-header-pill {
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  color: var(--blokkus-deep);
  border: 1.5px solid var(--blokkus-deep);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}

.bk-header-pill:hover {
  color: #ffffff;
  background-color: var(--blokkus-deep);
}

.bk-language-switch {
  display: inline-block;
  border: 1.5px solid var(--blokkus-deep);
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
}

.bk-language-switch a {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.bk-flag-fr,
.bk-flag-en {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 12px;
  border: 1px solid #cbd3e1;
  border-radius: 2px;
  margin-right: 6px;
}

.bk-flag-fr {
  background: linear-gradient(to right,#1f4db7 0%,#1f4db7 33.33%,#ffffff 33.33%,#ffffff 66.66%,#d81f26 66.66%,#d81f26 100%);
}

.bk-flag-en {
  background-image: url(/images/flag-en.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bk-mobile-menu-cell {
  display: none;
  text-align: right;
  vertical-align: middle;
  padding-right: 14px;
  white-space: nowrap;
}

.bk-burger-button {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--blokkus-deep);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.bk-burger-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blokkus-deep);
  border-radius: 2px;
}

.bk-mobile-menu-panel {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  z-index: 1199;
  background: #ffffff;
  border-bottom: 1px solid var(--blokkus-line);
  box-shadow: 0 12px 28px rgba(28,40,92,.12);
  padding: 14px 18px 18px;
}

.bk-mobile-menu-panel.is-open {
  display: block;
}

.bk-mobile-menu-panel a {
  display: block;
  text-decoration: none;
  color: var(--blokkus-deep);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 8px;
  border-bottom: 1px solid var(--blokkus-line);
}

.bk-mobile-language-switch {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.bk-mobile-language-switch a {
  flex: 1;
  border: 1.5px solid var(--blokkus-deep);
  border-radius: 999px;
  text-align: center;
  padding: 11px 8px;
}

@media (max-width: 760px) {
  .bk-desktop-menu-cell { display: none !important; }
  .bk-mobile-menu-cell { display: table-cell !important; }
  .bk-public-logo-cell { padding-right: 0 !important; }
  .bk-public-logo {
    height: 62px !important;
    max-width: 185px !important;
    padding-left: 18px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    object-fit: contain;
  }
  .bk-public-header-spacer { height: 72px !important; }
  .bk-mobile-menu-panel { top: 72px !important; }
}

@media (max-width: 600px) {
  #div_padding_contenu {
    padding: 12px !important;
    font-size: 1rem !important;
  }

  #div_padding_contenu h1,
  #div_padding_contenu h2 {
    font-size: 2rem !important;
    line-height: 1.08 !important;
    margin-top: 14px !important;
    margin-bottom: 18px !important;
  }

  #div_padding_contenu > br,
  #div_padding_contenu h1 + br,
  #div_padding_contenu h2 + br {
    display: none !important;
  }

  .blokkus-contact-form {
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    margin: 18px auto 0 auto !important;
    padding: 26px 22px !important;
    border-radius: 14px !important;
  }

  .blokkus-contact-form label {
    font-size: 1.02rem !important;
  }

  .blokkus-contact-form input,
  .blokkus-contact-form textarea {
    font-size: 1rem !important;
    padding: 14px !important;
    margin-bottom: 18px !important;
  }

  .blokkus-contact-form textarea {
    min-height: 130px !important;
  }

  .blokkus-contact-form .consent-row {
    gap: 12px !important;
  }

  .blokkus-contact-form .consent-row label {
    font-size: .94rem !important;
  }

  .bk-container,
  .bk-card,
  article,
  .blog-card,
  .post-card,
  .article-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  table {
    max-width: 100% !important;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}
