/* ================================================================
   EXPLORA INNOVATION — COMPOSANTS PARTAGES
   Tous les elements communs a toutes les pages.
   ================================================================ */

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--rose), var(--blue), var(--green));
  transition: width 0.1s linear;
}

/* ===== CUSTOM CURSOR GLOW ===== */
.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,128,62,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }
.reveal-d6 { transition-delay: .6s; }
.reveal-d7 { transition-delay: .7s; }
.reveal-d8 { transition-delay: .8s; }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===== SKETCH STYLES ===== */
.sketch-underline { position: relative; display: inline; }
.sketch-underline::after {
  content: ''; position: absolute; bottom: -4px; left: -2px; right: -2px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'%3E%3Cpath d='M2,7 C40,6 80,4 120,3.5 C160,3 185,4.5 198,4' stroke='%23FF803E' stroke-width='2.2' fill='none' opacity='0.55' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 10px;
}
.fig-label {
  font-family: 'Caveat', cursive; font-size: 20px; color: var(--orange);
  display: inline-block; margin-bottom: 12px;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 40px; display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s; background: var(--black);
}
nav.scrolled {
  background: rgba(23,24,22,0.95); backdrop-filter: blur(12px);
  padding: 10px 40px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo img { height: 54px; transition: height 0.4s; }
nav.scrolled .nav-logo img { height: 42px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.65);
  transition: color 0.4s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px;
  background: var(--orange); transition: all 0.4s; transform: translateX(-50%);
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-active { color: var(--orange); }
.nav-links a.nav-active::after { width: 100%; }

/* ===== NAV DROPDOWN (Services) ===== */
.nav-dropdown { position: relative; }
/* Chevron après le texte "Services" */
.nav-dropdown > a {
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-dropdown > a::after {
  content: ''; display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.4s; opacity: 0.7;
  background: none !important;
  position: static !important;
}
.nav-dropdown:hover > a::after {
  transform: rotate(225deg) translate(-2px, -2px);
  opacity: 1;
}
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px; padding: 14px 0;
  background: rgba(23,24,22,0.98); backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.08); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  list-style: none; margin-top: 0; z-index: 1000;
}
/* Bridge invisible pour garder le menu ouvert pendant le passage souris */
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -18px; left: 0; right: 0;
  height: 18px; background: transparent;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li { padding: 0; margin: 0; }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.75);
  transition: color 0.3s, padding-left 0.3s, background 0.3s;
  border-left: 2px solid transparent;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover {
  color: var(--orange); padding-left: 24px;
  background: rgba(255,128,62,0.06);
  border-left-color: var(--orange);
}
.nav-dropdown-sub {
  font-family: 'Caveat', cursive; font-size: 13px;
  color: rgba(255,255,255,0.4); margin-left: 6px;
}
.nav-dropdown-menu a:hover .nav-dropdown-sub { color: var(--orange); opacity: 0.7; }
.nav-cta {
  font-family: 'Caveat', cursive; font-size: 20px; font-weight: 600;
  padding: 8px 22px; border: 2px solid var(--orange); color: var(--orange);
  border-radius: 8px; transition: all 0.4s; position: relative; overflow: hidden;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--orange); transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav-cta:hover { color: var(--black); }
.nav-cta:hover::before { transform: translateX(0); }
.nav-cta span { position: relative; z-index: 1; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 8px; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1); border: none;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--orange); color: var(--black);
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::after { left: 150%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,128,62,0.35); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--orange); color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255,128,62,0.1);
}

/* ===== HERO SERVICE (partage: services, mission-inventive, prototype-express, go-to-market) ===== */
.hero-svc {
  position: relative; display: flex; align-items: flex-end;
  overflow: hidden; margin-top: 74px; margin-bottom: 60px;
  height: calc(100vh - 134px);
}
.hs-wrap { position: absolute; inset: 0; margin: 0 40px; overflow: hidden; border-radius: 12px; }
.hs-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform 8s ease; filter: brightness(1.2) contrast(1.1); }
.hero-svc:hover .hs-img { transform: scale(1.03); }
.hs-ov {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(23,24,22,0.95) 0%, rgba(23,24,22,0.5) 35%, rgba(23,24,22,0.05) 60%, transparent 100%),
    linear-gradient(to right, rgba(23,24,22,0.88) 0%, rgba(23,24,22,0.55) 35%, transparent 60%);
}
.hs-ct { position: absolute; bottom: 0; left: 0; z-index: 2; max-width: 660px; padding: 0 80px 40px; }
.hero-svc .pretitle {
  font-family: 'Caveat', cursive; font-size: 24px; color: var(--orange);
  margin-bottom: 6px; transform: rotate(-0.8deg); display: inline-block;
  opacity: 0; animation: fu 0.7s 0.2s forwards;
}
.hero-svc h1 {
  font-size: clamp(38px,5vw,62px); font-weight: 700; line-height: 1.0;
  letter-spacing: -2px; margin-bottom: 14px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
  opacity: 0; animation: fu 0.7s 0.4s forwards;
}
.hero-svc h1 .accent { color: var(--orange); }
.hs-desc {
  font-size: 16px; color: rgba(255,255,255,0.95); max-width: 520px;
  opacity: 0; animation: fu 0.7s 0.55s forwards;
}
.hs-quote {
  font-family: 'Caveat', cursive; font-size: 20px; color: var(--green);
  transform: rotate(-0.5deg); margin: 12px 0 18px;
  opacity: 0; animation: fu 0.7s 0.65s forwards;
}
.hs-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: fu 0.7s 0.8s forwards;
}
.hs-fig {
  position: absolute; bottom: 12px; right: 60px; z-index: 2;
  font-family: 'Caveat', cursive; font-size: 16px; color: rgba(255,255,255,0.18);
}

/* ===== POLAROID FRAME (meme style que fg-frame Services — pas de tilt) ===== */
.tilt-frame {
  overflow: hidden; position: relative;
  background: var(--black-light);
  padding: 12px 12px 32px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: box-shadow 0.4s, border-color 0.4s, filter 0.4s;
}
.tilt-frame:hover {
  box-shadow: 0 8px 24px rgba(255,128,62,0.12), 0 0 30px rgba(255,128,62,0.08);
  border-color: rgba(255,128,62,0.35);
  filter: brightness(1.06);
}
.tilt-frame img { width: 100%; object-fit: cover; border-radius: 6px; transition: transform 0.5s, filter 0.4s; }
.tilt-frame:hover img { transform: scale(1.02); filter: brightness(1.05); }
.tilt-caption {
  font-family: 'Caveat', cursive; font-size: 16px; color: rgba(255,255,255,0.22);
  text-align: center; margin-top: 6px;
}

/* ===== FAQ ===== */
.faq { padding: 100px 0; }
.faq h2 { font-size: clamp(28px,3vw,38px); font-weight: 700; line-height: 1.3; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.faq-items { display: flex; flex-direction: column; gap: 6px; }
.fi {
  border-radius: 12px; overflow: hidden; position: relative;
  border: 2px solid rgba(255,255,255,0.06);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.fi::before {
  content: ''; position: absolute; inset: -2px; border-radius: 14px;
  background: conic-gradient(from var(--cta-angle, 0deg), var(--orange), var(--rose), var(--blue), var(--green), var(--orange));
  opacity: 0; transition: opacity 0.4s; z-index: 0;
  filter: blur(20px); pointer-events: none;
}
.fi.open::before { opacity: 0.15; animation: ctaRotate 8s linear infinite; }
.fi.open { border-color: rgba(255,128,62,0.4); box-shadow: 0 4px 28px rgba(255,128,62,0.1); }
.fq {
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-family: 'Ubuntu', sans-serif; font-weight: 600; font-size: 16px;
  background: var(--black-light); transition: background 0.4s, padding-left 0.4s, color 0.4s;
  color: var(--gray); position: relative; z-index: 1;
}
.fq:hover { background: rgba(255,255,255,0.03); padding-left: 24px; color: rgba(255,255,255,0.85); }
.fi.open .fq { background: transparent; color: var(--white); }
.ft {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); flex-shrink: 0;
}
.fi.open .ft { background: var(--orange); color: var(--black); transform: rotate(45deg); }
.fa {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1);
  background: var(--black-light); position: relative; z-index: 1;
}
.fi.open .fa { max-height: 600px; background: transparent; }
.fa-inner { padding: 0 20px 16px; font-size: 16px; color: var(--gray); line-height: 1.7; }
.fi.open .fa-inner { color: rgba(255,255,255,0.9); }

/* ===== CTA (dégradé texturé, overlay sombre → clair au hover) ===== */
.cta-section { padding: 100px 0; }
.cta-box {
  background: url('../assets/images/shared/cta-gradient.jpg') center/140% no-repeat, var(--black-light);
  background-clip: padding-box;
  border-radius: 20px; padding: 64px;
  text-align: center; position: relative; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
/* Overlay sombre qui s'efface au hover (opacity transitionnable) */
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(23,24,22,1);
  opacity: 0.85;
  transition: opacity 0.5s ease;
  z-index: 0; pointer-events: none;
  border-radius: inherit;
  animation: none;
  filter: none;
}
.cta-box:hover::before { opacity: 0.38; }
.cta-box:hover {
  border-color: rgba(255,128,62,0.35);
  box-shadow: 0 0 40px rgba(255,128,62,0.12), 0 6px 24px rgba(0,0,0,0.3);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
  font-size: clamp(28px,3vw,38px); font-weight: 700; line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  transition: text-shadow 0.5s ease;
}
.cta-box:hover h2 { text-shadow: 0 2px 20px rgba(0,0,0,0.8); }
.cta-hand {
  font-family: 'Caveat', cursive; font-size: 24px; color: var(--orange);
  margin-bottom: 28px; transform: rotate(-0.5deg); display: inline-block;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  transition: color 0.5s ease, text-shadow 0.5s ease;
}
/* Textes blancs éclatants au hover pour lisibilité sur le dégradé */
.cta-box:hover .cta-hand {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.85), 0 0 6px rgba(0,0,0,0.6);
}
.cta-box p {
  font-size: 17px; color: var(--gray); max-width: 500px; margin: 0 auto 32px; line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  transition: color 0.5s ease, text-shadow 0.5s ease;
}
.cta-box:hover p {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.85), 0 0 6px rgba(0,0,0,0.6);
}
/* Boutons outline dans la CTA : liseré s'éclaircit au hover du bloc pour rester visible */
.cta-box .btn-outline {
  transition: border-color 0.5s ease, color 0.5s ease, background 0.4s, transform 0.4s, box-shadow 0.4s;
}
.cta-box:hover .btn-outline {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}
.cta-box:hover .btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ===== FOOTER ===== */
footer { padding: 60px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 36px; margin-bottom: 48px; }
.footer-logo { height: 84px; width: auto; margin-bottom: 14px; display: block; object-fit: contain; margin-left: 0; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand p { font-size: 14px; color: var(--gray); line-height: 1.7; max-width: 300px; text-align: left; }
.footer-col h5 {
  font-family: 'Ubuntu', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 14px; font-weight: 300; color: var(--gray); transition: color 0.4s, padding-left 0.4s; white-space: nowrap; }
.footer-col a:hover { color: var(--orange); padding-left: 6px; }
.footer-legal {
  text-align: center; padding: 16px 0 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 24px; font-size: 13px;
}
.footer-legal a {
  color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.3s;
}
.footer-legal a:hover { color: var(--orange); }
.footer-legal-sep { color: rgba(255,255,255,0.25); margin: 0 12px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px; color: rgba(255,255,255,0.25);
}
.footer-hand { font-family: 'Caveat', cursive; font-size: 16px; color: rgba(255,255,255,0.2); }

/* ===== RESPONSIVE PARTAGE ===== */
@media (max-width: 900px) {
  .hs-wrap { margin: 0 20px; }
  .hs-ct { padding: 0 40px 32px; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cursor-glow { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-svc h1 { font-size: 34px; }
  .hs-wrap { margin: 0 12px; }
  .hs-ct { padding: 0 24px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .cta-box { padding: 36px 20px; }
}
