/* Fonaqo shared — pages secondaires */
:root {
  --fq-orange: #ff6b00;
  --fq-teal: #006874;
  --fq-ink: #0b1326;
  --fq-muted: #5a6578;
}

.page-hero {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 0;
  padding-top: 7rem;
}
@media (min-width: 768px) {
  .page-hero { padding-top: 5.5rem; }
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: pageHeroZoom 18s ease-in-out infinite alternate;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 19, 38, 0.88) 0%, rgba(0, 104, 116, 0.55) 55%, rgba(255, 107, 0, 0.45) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
  color: #fff;
}
@media (min-width: 768px) {
  .page-hero__content { padding: 3rem 2rem 3.25rem; }
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: Sora, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.45; }
.breadcrumb .current { color: #ff6b00; }
.page-hero h1 {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.75s ease 0.2s forwards;
}
.page-hero .lead {
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 0.75s ease 0.35s forwards;
}

@keyframes pageHeroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.soft-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(11, 19, 38, 0.06);
  background: #fff;
  box-shadow: 0 18px 40px rgba(11, 19, 38, 0.06);
}

.gradient-text {
  background: linear-gradient(135deg, #ff6b00 0%, #006874 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 0.9rem;
  border: 0;
  cursor: pointer;
  font-family: Sora, sans-serif;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff6b00, #006874);
  box-shadow: 0 14px 30px rgba(255, 107, 0, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 104, 116, 0.28);
}

.float-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.float-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(11, 19, 38, 0.12);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff6b00;
  box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* Page ambiance */
body.fq-page {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 107, 0, 0.07), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(0, 104, 116, 0.08), transparent 50%),
    #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to top, #fff, transparent);
  z-index: 2;
  pointer-events: none;
}

.stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.19s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.26s; }

.img-zoom {
  overflow: hidden;
  border-radius: 1.25rem;
}
.img-zoom img {
  transition: transform 0.7s ease;
}
.img-zoom:hover img {
  transform: scale(1.06);
}

.stat-num {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ===== Shared header (aligné index.html) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  overflow: visible;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(225, 228, 243, 0.7);
  box-shadow: 0 1px 0 rgba(11, 19, 38, 0.04);
}
.site-topbar {
  background: #006874;
  color: #fff;
  font-size: 0.72rem;
}
.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
}
@media (min-width: 768px) {
  .site-topbar {
    font-size: 0.8rem;
  }
  .site-topbar__inner { padding: 0.5rem 2rem; }
}
.site-topbar__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex-wrap: wrap;
}
.site-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58vw;
}
@media (min-width: 768px) {
  .site-topbar__link { max-width: none; }
}
.site-topbar__link:hover { color: #fff; opacity: 0.9; }
.site-topbar__link .material-symbols-outlined {
  font-size: 0.95rem;
  flex-shrink: 0;
}
.site-topbar__phone { display: inline-flex; }
.site-topbar__socials {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.site-topbar__socials a {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.site-topbar__socials a:hover {
  background: #ff6b00;
  border-color: #ff6b00;
}
.site-header .nav-inner {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
@media (min-width: 768px) {
  .site-header .nav-inner {
    padding-top: 1.05rem;
    padding-bottom: 1.05rem;
  }
}
.site-header .nav-link {
  font-family: Sora, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #444933;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.site-header .nav-link:hover,
.site-header .nav-link.is-active {
  color: #ff6b00;
  border-bottom-color: #ff6b00;
}
.nav-item { position: relative; z-index: 1; }
.nav-item.is-open,
.nav-item:hover { z-index: 80; }
.nav-item > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  font: inherit;
}
.nav-item > .nav-link .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.2s;
}
.mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 520px;
  padding: 0.85rem 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 90;
}
.mega-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0.85rem;
}
.mega-panel .mega-grid {
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(225, 228, 243, 0.9);
  border-radius: 1rem;
  box-shadow: 0 22px 50px rgba(11, 19, 38, 0.14);
}
.mega-panel.mega-panel--offers { min-width: 480px; }
.nav-item.is-open > .mega-panel,
.nav-item:hover > .mega-panel,
.nav-item:focus-within > .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-item.is-open > .nav-link .material-symbols-outlined,
.nav-item:hover > .nav-link .material-symbols-outlined,
.nav-item:focus-within > .nav-link .material-symbols-outlined {
  transform: rotate(180deg);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.mega-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.45rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #0b1326;
  transition: background 0.2s, transform 0.2s;
}
.mega-card:hover { background: #f7fbfc; transform: translateY(-1px); }
.mega-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 0.55rem;
  display: block;
}
.mega-card span {
  font-family: Sora, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 0.15rem 0.2rem;
}
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.mobile-menu.open { max-height: 70vh; overflow-y: auto; }
.mobile-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0.65rem 0;
  font: inherit;
  color: #444933;
  cursor: pointer;
}
.mobile-acc-panel {
  display: none;
  padding: 0 0 0.5rem 0.5rem;
  gap: 0.5rem;
}
.mobile-acc.open .mobile-acc-panel { display: grid; }
.mobile-acc.open .mobile-acc-btn .material-symbols-outlined { transform: rotate(180deg); }
.mobile-mega-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: #0b1326;
  background: #f8f9ff;
}
.mobile-mega-card img {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.4rem;
  flex-shrink: 0;
}
.mobile-mega-card span {
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

/* CTA banners */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  background: linear-gradient(125deg, #0b1326 0%, #006874 48%, #ff6b00 120%);
  box-shadow: 0 28px 60px rgba(0, 104, 116, 0.22);
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -80px;
  right: -40px;
  animation: ctaFloat 8s ease-in-out infinite alternate;
}
.cta-banner::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,107,0,0.2);
  bottom: -60px;
  left: 8%;
  animation: ctaFloat 10s ease-in-out infinite alternate-reverse;
}
@keyframes ctaFloat {
  from { transform: translateY(0); }
  to { transform: translateY(18px); }
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 32rem;
  margin-bottom: 1.75rem;
  font-weight: 500;
  line-height: 1.55;
}
.cta-banner .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.cta-banner .btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1.4rem;
  border-radius: 0.9rem;
  background: #fff;
  color: #0b1326;
  font-family: Sora, sans-serif;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s;
}
.cta-banner .btn-light:hover { transform: translateY(-2px); }
.cta-banner .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1.4rem;
  border-radius: 0.9rem;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
  font-family: Sora, sans-serif;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* Stats band */
.stats-band {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  background: #0b1326;
  color: #fff;
  padding: clamp(2rem, 4vw, 3rem);
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(255,107,0,0.35), transparent 60%),
    radial-gradient(480px 220px at 100% 100%, rgba(0,104,116,0.45), transparent 55%);
  pointer-events: none;
}
.stats-band .stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .stats-band .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.stats-band .stat-item {
  padding: 1.25rem 1rem;
  border-radius: 1.15rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}
.stats-band .stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
}
.stats-band .stat-num {
  background: linear-gradient(135deg, #ff6b00, #7fd8e4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}
.stats-band .stat-label {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 1rem;
}
.stats-band .stat-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* Contact form redesign */
.contact-form-card {
  border-radius: 1.75rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11,19,38,0.06);
  box-shadow: 0 28px 60px rgba(11,19,38,0.1);
}
.contact-form-card .form-top {
  background: linear-gradient(125deg, #ff6b00 0%, #006874 100%);
  color: #fff;
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-form-card .form-top img {
  width: 52px;
  height: 52px;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.15);
  padding: 0.35rem;
}
.contact-form-card .form-body { padding: 1.75rem; }
@media (min-width: 768px) {
  .contact-form-card .form-body { padding: 2rem 2.25rem 2.25rem; }
}
.contact-form-card .field-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .contact-form-card .field-row.two { grid-template-columns: 1fr 1fr; }
}
.contact-form-card label {
  display: block;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  color: #0b1326;
}
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(11,19,38,0.1);
  background: #f8f9ff;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: #ff6b00;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}

/* Footer & social */
.footer-teal {
  background: linear-gradient(165deg, #004e5a 0%, #006874 45%, #0a3d48 100%);
}
.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.social-btn:hover {
  background: #ff6b00;
  border-color: #ff6b00;
  transform: translateY(-2px);
}

/* Prose (legal & article body) */
.prose-fq h2 {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: #0b1326;
}
.prose-fq p {
  color: #5a6578;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.prose-fq ul {
  margin: 1rem 0 1.25rem 1.25rem;
  color: #5a6578;
}
.prose-fq li {
  margin-bottom: 0.4rem;
}

/* Article detail */
.article-layout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
  }
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #5a6578;
}
.article-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 19, 38, 0.08);
  color: #0b1326;
}
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card-link .blog-card {
  height: 100%;
}

/* Case study */
.case-stat-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(11, 19, 38, 0.06);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.case-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(11, 19, 38, 0.1);
}
.tech-chip {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: Sora, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 104, 116, 0.1);
  color: #006874;
}

/* Mobile horizontal slides */
@media (max-width: 767px) {
  .mq-slide {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0.25rem 1.25rem 0.85rem;
    scrollbar-width: none;
  }
  .mq-slide::-webkit-scrollbar { display: none; }
  .mq-slide > * {
    flex: 0 0 min(86vw, 300px);
    scroll-snap-align: start;
  }
}

/* Image before text on mobile */
@media (max-width: 1023px) {
  .media-first { display: flex; flex-direction: column; }
  .media-first__media { order: -1; }
  .media-first__copy { order: 1; }
}
