/* Couche de finition commune aux trois sites (www, pro, partenaires).
   La couleur d'accent vient de --lq-accent, définie par chaque site dans son <head>. */

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--lq-accent-soft, rgba(241,110,59,.18)); color: #0D1F2D; }

/* Titres : lignes équilibrées, paragraphes sans mot orphelin */
h1, h2, h3 { text-wrap: balance; }
main p { text-wrap: pretty; }

/* Titres de section (précédés d'un sur-titre) : même échelle sur les trois sites */
main section span.uppercase + h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.15rem + 1.6vw, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: #0D1F2D;
  max-width: 46rem;
}
main section[class*="from-[#0D1F2D]"] span.uppercase + h2,
main section[id="contact"] span.uppercase + h2 { color: #fff; }

/* Cartes : relief discret et survol vivant */
main a.rounded-2xl, main a.rounded-3xl, main div.rounded-2xl.border, main div.rounded-3xl.border {
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
main a.rounded-2xl:hover, main a.rounded-3xl:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -14px rgba(13,31,45,.22);
}
main div.rounded-2xl.border:hover { box-shadow: 0 10px 28px -16px rgba(13,31,45,.18); }

/* Boutons pilule : léger soulèvement, flèche qui glisse */
main a.rounded-full, main button.rounded-full { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
main a.rounded-full:hover, main button.rounded-full:hover { transform: translateY(-1px); }
main a.rounded-full:active, main button.rounded-full:active { transform: translateY(0) scale(.98); }
main a svg, main a .material-symbols-outlined { transition: transform .2s ease; }
main a:hover > svg:last-child, main a:hover > .material-symbols-outlined:last-child { transform: translateX(3px); }

/* Accessibilité : contour visible au clavier uniquement */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lq-accent, #F16E3B);
  outline-offset: 3px;
  border-radius: 6px;
}

/* En-tête : ombre plus marquée dès qu'on fait défiler */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.lq-scrolled { box-shadow: 0 6px 24px -12px rgba(13,31,45,.28); }

/* Apparition des sections au défilement (seulement si le JS tourne, et jamais si l'animation est réduite) */
.lq-js .lq-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--lq-delay, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--lq-delay, 0s); }
.lq-js .lq-reveal.lq-in { opacity: 1; transform: none; }
/* Halo qui « respire » derrière le visuel du hero (vidéo ou illustration) */
main > section:first-child .grid.items-center > div:last-child { position: relative; isolation: isolate; }
main > section:first-child .grid.items-center > div:last-child::before {
  content: ""; position: absolute; inset: -12%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, var(--lq-accent-soft, rgba(241,110,59,.18)), transparent 70%);
  filter: blur(18px); animation: lq-respire 6s ease-in-out infinite;
}
@keyframes lq-respire { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

@media (prefers-reduced-motion: reduce) {
  main > section:first-child .grid.items-center > div:last-child::before { animation: none; }
  html { scroll-behavior: auto; }
  .lq-js .lq-reveal { opacity: 1; transform: none; transition: none; }
  main a.rounded-2xl:hover, main a.rounded-3xl:hover, main a.rounded-full:hover, main button.rounded-full:hover { transform: none; }
}
