/* ============================================================
   SHARED SITE CHROME — design tokens, nav + footer
   Loaded by every page. Edit once → applies everywhere.
   ============================================================ */

:root {
  --purpl:        #6c00f7;
  --purpl-deep:   #5a00d6;
  --purpl-ink:    #5500c4;
  --ink:          #000000;
  --body:         #2b2b33;
  --body-soft:    #5f5f6b;
  --lav:          #faf7ff;
  --lav-2:        #f4effd;
  --orange:       #ff9901;
  --orange-lav:   #fff7ea;
  --jaune:        #fec600;
  --white:        #ffffff;
  --line:         #ece5f8;
  --radius:       30px;
  --radius-sm:    20px;
  --maxw:         clamp(100px, 80vw, 1500px);
  --section-spacing:    100px;
  --big-padding:        clamp(60px, 9%, 70px);
  --small-padding:      clamp(40px, 7%, 50px);
  --components-spacing: 70px;
  --modules-spacing:    40px;
  --texts-spacing:      10px;
  --grids:              20px;
  --font:         'Kumbh Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
/* emplacements d'image (anciens <image-slot>) */
img.slot { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.slot-circle { border-radius: 999px; overflow: hidden; }
.slot-empty { display: block; width: 100%; height: 100%; background: var(--lav-2); }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 0; padding-right: 0; }
/* ancres : laisser la place du menu collant au-dessus des sections ciblées (#filiales, #recrutement, #contact…) */
section[id], header[id], footer[id], article[id] { scroll-margin-top: 96px; }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--purpl);
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px;
  background: var(--orange);
}
h1, h2, h3 { color: var(--ink); line-height: 0.9; letter-spacing: 1px; font-weight: 780; }
h3 { letter-spacing: 0.5px; }
.hl { color: var(--purpl); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0;
  color: var(--purpl); font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
}
.arrow-link::before {
  content: ""; flex: none; width: 0; height: 14px; opacity: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14' viewBox='0 0 30 14' fill='none'%3E%3Cpath d='M0 7h27M22 1l6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left center / 30px 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14' viewBox='0 0 30 14' fill='none'%3E%3Cpath d='M0 7h27M22 1l6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left center / 30px 14px no-repeat;
  transition: width .28s cubic-bezier(.4,0,.2,1), opacity .2s ease, margin-right .28s cubic-bezier(.4,0,.2,1);
}
.arrow-link svg { width: 30px; height: 14px; flex: none; margin-left: 12px; transition: width .28s cubic-bezier(.4,0,.2,1), opacity .2s ease, margin-left .28s cubic-bezier(.4,0,.2,1); }
.arrow-link:hover::before { width: 30px; opacity: 1; margin-right: 12px; }
.arrow-link:hover svg { width: 0; opacity: 0; margin-left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--purpl); color: #fff; font-family: inherit; font-weight: 800; font-size: 16px; line-height: 1.2; letter-spacing: .02em; text-align: center;
  border: none; border-radius: 999px; padding: 16px 34px; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--purpl-deep); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: var(--lav-2); color: var(--purpl); }
.btn-ghost:hover { background: var(--orange-lav); color: var(--orange); }
/* light purple outline ONLY when the ghost button sits on a tinted (non-white) surface */
.btn-ghost.on-tint { border: 1.5px solid #d9c8fb; transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.btn-ghost.on-tint:hover { border-color: #ffdca8; }

/* ============ NAVBAR ============ */
#site-header { display: contents; }
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 18px 0;
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 42px; width: auto; max-width: none; object-fit: contain; display: block; }
.nav-links {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 18px; letter-spacing: 0.5px;
  color: var(--purpl); transition: background .2s ease, color .2s ease;
}
.nav-links a.spy:hover { background: none; color: var(--orange); }
.nav-links a.pill { background: var(--lav-2); }
.nav-links a.pill:hover { background: var(--orange-lav); color: var(--orange); }
.nav-links a.spy { position: relative; z-index: 0; }
.nav-links a.spy::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--lav-2); z-index: -1;
  opacity: 0; transform: translateY(-50%) scale(.3);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.nav-links a.spy.active::before { opacity: 1; transform: translateY(-50%) scale(1); }
/* état actif : disque lavande + texte en gras + petit trait orange sous le libellé (même trait que les surtitres) */
.nav-links a.spy.active { font-weight: 800; color: var(--purpl); }
.nav-links a.spy::after {
  content: ""; position: absolute; left: 22px; bottom: 5px; width: 0; height: 3px; border-radius: 3px;
  background: var(--orange); opacity: 0;
  transition: width .32s cubic-bezier(.22,.61,.36,1), opacity .2s ease;
}
.nav-links a.spy.active::after { width: 26px; opacity: 1; }
.nav-links a.spy.active:hover { color: var(--orange); }
.nav-links a.spy.active:hover::after { background: var(--purpl); }
/* Expertises : le marqueur actif s'affiche aussi pendant le survol de la zone (sous-menu ouvert) */
.nav-item:hover .nav-trigger, .nav-item:focus-within .nav-trigger { color: var(--purpl); }
.nav-item:hover .nav-trigger::before, .nav-item:focus-within .nav-trigger::before { opacity: 1; transform: translateY(-50%) scale(1); }
.nav-item:hover .nav-trigger::after, .nav-item:focus-within .nav-trigger::after { width: 26px; opacity: 1; }
.subnav a.active, .m-sub a.active { color: var(--purpl); font-weight: 800; }
.mobile-links a.active { color: var(--purpl); font-weight: 800; }
.nav-social { display: flex; gap: 10px; align-items: center; margin-left: 22px; }
.nav-social a {
  width: 51px; height: 51px; border-radius: 999px; background: var(--lav-2);
  display: grid; place-items: center; color: var(--purpl); transition: .2s;
}
.nav-social a[aria-label="LinkedIn"]:hover { background: #e7f0fa; color: #0a66c2; }
.nav-social a[aria-label="YouTube"]:hover  { background: #ffeaea; color: #ff0000; }
.nav-social a[aria-label="Webikeo"]:hover  { background: #e3f6f4; color: #00a8a3; }
.nav-social svg { width: 19px; height: 19px; }

/* Webikeo logo — raster image (no SVG): violet silhouette by default, full colour on hover */
.wbk {
  display: block; width: 26px; height: 16px; position: relative;
  background: url("../assets/webikeo-violet.png") center / contain no-repeat;
}
.wbk::after {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/webikeo.png") center / contain no-repeat;
  opacity: 0; transition: opacity .22s ease;
}
a:hover .wbk::after { opacity: 1; }
.contact-social .wbk { width: 28px; height: 17px; }
.mobile-social .wbk { width: 29px; height: 18px; }
.lang-item { position: relative; display: inline-flex; align-items: center; margin-left: 22px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; margin: 0;
  border: none; cursor: pointer; font-family: inherit;
  border-radius: 999px; background: var(--lav-2); font-weight: 600; font-size: 18px; letter-spacing: 0.5px; color: var(--purpl);
  transition: background .2s ease, color .2s ease;
}
.lang svg { transition: transform .25s ease; }
.lang:hover, .lang-item.open .lang, .lang-item:focus-within .lang { background: var(--orange-lav); color: var(--orange); }
.lang-item:hover .lang svg, .lang-item.open .lang svg, .lang-item:focus-within .lang svg { transform: rotate(180deg); }
/* menu déroulant : la langue alternative apparaît au survol (ou au clic / clavier) */
.lang-menu {
  position: absolute; top: 100%; right: 0; padding-top: 10px; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.lang-item:hover .lang-menu, .lang-item.open .lang-menu, .lang-item:focus-within .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: inline-block; padding: 11px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(40,10,90,.4);
  font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--ink); white-space: nowrap; transition: color .15s ease, background .15s ease;
}
.lang-menu a .d { display: block; font-size: 12px; font-weight: 500; color: var(--body-soft); margin-top: 2px; }
.lang-menu a:hover { color: var(--purpl); background: var(--lav); }

/* ---------- expertises dropdown ---------- */
.nav-links .nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: 7px; }
.nav-trigger .caret { transition: transform .25s ease; }
.nav-item:hover .nav-trigger .caret { transform: rotate(180deg); }
.subnav {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px); padding-top: 14px;
  opacity: 0; visibility: hidden; z-index: 70;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-item:hover .subnav, .nav-item:focus-within .subnav { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.subnav-card {
  min-width: 264px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(40,10,90,.4); padding: 10px;
  display: flex; flex-direction: column; gap: 2px; position: relative;
}
.subnav-hl {
  position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: 12px;
  background: var(--lav-2); opacity: 0; z-index: 0; pointer-events: none;
  transition: transform .26s cubic-bezier(.4,0,.2,1), height .26s cubic-bezier(.4,0,.2,1), width .26s cubic-bezier(.4,0,.2,1), opacity .18s ease;
}
.subnav-card a {
  position: relative; z-index: 1;
  padding: 11px 15px; border-radius: 12px; font-size: 16px; font-weight: 700; letter-spacing: 0;
  color: var(--ink); white-space: nowrap; transition: color .15s ease;
}
.subnav-card a:hover { color: var(--purpl); }
.subnav-card a .d { display: block; font-size: 12px; font-weight: 500; color: var(--body-soft); letter-spacing: 0; margin-top: 2px; }

/* ---------- mobile nav ---------- */
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: none; cursor: pointer;
  background: var(--lav-2); border-radius: 999px; position: relative; z-index: 60;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--purpl);
  transition: transform .3s ease, opacity .25s ease;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--lav);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 110px 8vw 60px;
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-close {
  position: absolute; top: 14px; right: 2.5vw; width: 48px; height: 48px; border: none; cursor: pointer;
  background: var(--lav-2); border-radius: 999px; display: grid; place-items: center; color: var(--purpl);
}
.mobile-close svg { width: 20px; height: 20px; }
.mobile-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-links a {
  font-size: clamp(22px, 5vw, 30px); font-weight: 800; color: var(--ink); letter-spacing: -.02em;
  padding: 6px 0; opacity: 0; transform: translateY(16px);
  transition: color .2s ease;
}
.mobile-links a.m-pill { color: var(--purpl); }
.mobile-links .m-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 8px 2px; }
.mobile-links .m-sub a { font-size: clamp(16px, 4vw, 19px); font-weight: 600; color: var(--purpl); letter-spacing: 0; padding: 3px 0; }
body.menu-open .mobile-links a { animation: mobileItemIn .5s cubic-bezier(.22,.61,.36,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes mobileItemIn { to { opacity: 1; transform: none; } }
.mobile-social { display: flex; gap: 14px; }
.mobile-social a {
  width: 52px; height: 52px; border-radius: 999px; background: #fff; color: var(--purpl);
  display: grid; place-items: center; box-shadow: 0 10px 24px -16px rgba(40,10,90,.4);
}
.mobile-social svg { width: 22px; height: 22px; }

/* ============ CONTACT FOOTER ============ */
footer.contact {
  position: relative; color: #fff; padding: var(--section-spacing) 0 0;
  background: var(--purpl);
}
footer.contact::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 1;
  background: url("../assets/flou-coin-haut.png") left -100px / 720px auto no-repeat;
}
.contact-inner { position: relative; z-index: 1; }
.contact h2 { color: #fff; font-size: clamp(50px, 6vw, 70px); margin: var(--texts-spacing) 0 30px; line-height: 0.9; }
.contact .eyebrow { color: #fff; }
.contact .eyebrow::before { background: var(--orange); }
.contact-text { max-width: 420px; font-size: 16px; color: rgba(255,255,255,.92); }
.contact-text b { font-weight: 700; color: #fff; }
.contact-social { display: flex; gap: 14px; margin: 36px 0 0; }
.contact-social a {
  width: 50px; height: 50px; border-radius: 999px; background: #fff; color: var(--purpl);
  display: grid; place-items: center; transition: .2s;
}
.contact-social a:hover { transform: translateY(-3px); }
.contact-social a[aria-label="LinkedIn"]:hover { color: #0a66c2; }
.contact-social a[aria-label="YouTube"]:hover { color: #ff0000; }
.contact-social svg { width: 21px; height: 21px; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--components-spacing); align-items: start; padding-bottom: var(--section-spacing); }
.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: var(--small-padding);
}
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 15px; font-weight: 400; letter-spacing: normal; text-transform: none;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px; padding: 14px 16px; transition: border-color .2s ease, background .2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.5); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.18); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .cap { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.contact-form .req { color: #ffc4b0; }
.contact-form .opt { opacity: .65; font-weight: 600; text-transform: none; letter-spacing: 0; }
.contact-form input.is-error, .contact-form textarea.is-error { border-color: #ff9d83; background: rgba(255,120,80,.18); }
.contact-form input.is-error::placeholder, .contact-form textarea.is-error::placeholder { color: #ffd0c2; font-weight: 700; }
.contact-form .form-ok { display: none; align-items: center; gap: 10px; margin-top: 4px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 14px 16px; color: #fff; font-size: 14.5px; font-weight: 600; }
.contact-form .form-ok.show { display: flex; }
.contact-form .form-ok svg { width: 20px; height: 20px; flex: none; }
.contact-form button {
  align-self: flex-start; margin-top: 6px;
  background: #fff; color: var(--purpl); font-family: inherit; font-weight: 800; font-size: 16px; letter-spacing: .02em;
  border: 1.5px solid transparent; border-radius: 999px; padding: 16px 38px; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.contact-form button:hover { background: var(--orange-lav); color: var(--orange); border-color: #ffdca8; transform: translateY(-2px); }
.contact-bottom {
  position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.18);
  text-align: center; padding: 26px 0; font-size: 14px; color: rgba(255,255,255,.85);
}
.contact-bottom a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.contact-bottom a:hover { color: var(--orange-lav); }

/* ---------- responsive ---------- */
@media (max-width: 1300px) {
  .nav-links, .nav-social, .lang-item { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 14px 0; }
}
@media (max-width: 1024px) {
  :root { --section-spacing: 80px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --section-spacing: 60px; --components-spacing: 44px; --big-padding: 26px; --small-padding: 26px; }
  :root { --maxw: 90vw; }
  .mobile-close { right: 4vw; }
  .logo img { height: 34px; }
  .contact h2 { font-size: clamp(40px, 13vw, 56px); }
  .contact-form { padding: 22px; }
  .contact-form button { align-self: stretch; text-align: center; }
  .mobile-links a { font-size: clamp(20px, 6vw, 26px); }
}

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); transition-delay: var(--reveal-delay, 0ms); }
  .reveal-ready [data-reveal].in { opacity: 1; transform: none; }
}
