/* ============================================================================
   ELI TECH — ui.css v2
   Composants partagés : boutons, cartes, formulaires, navbar, footer, sections.

   Règle d'or : utilise UNIQUEMENT les tokens de tokens.css.
   Aucune valeur hardcodée hors des tokens (sauf cas exceptionnels documentés).

   Compatibilité : conserve TOUS les sélecteurs existants (.btn--primary,
   .btn-primary, .payment-option, .pf-scope, .pf-custom-*, .text-*, .fw-*,
   .lh-*, .ls-*, .gm-*, .pf-video-*, .pf-grid-*, .dur-*).

   Drop-in : tu remplaces /assets/ui.css par CE fichier.
   Aucune régression visuelle attendue.
   ============================================================================ */


/* ============================================================================
   1. RESET MINIMAL & BASE
   ============================================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: var(--ls-normal);
  font-feature-settings: "cv11", "ss01", "ss03";
}

::selection {
  background: rgba(46, 88, 122, 0.2);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}


/* ============================================================================
   2. ACCESSIBILITÉ — sr-only, skip-link, focus-visible
   ============================================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--accent-inv);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  z-index: var(--z-toast);
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--s-2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}


/* ============================================================================
   3. CONTENEUR
   ============================================================================ */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.wrap--narrow {
  max-width: var(--maxw-narrow);
}

.wrap--wide {
  max-width: var(--maxw-wide);
}


/* ============================================================================
   4. BOUTONS
   Conserve les 2 conventions présentes dans le code (.btn-primary ET .btn--primary)
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--ls-normal);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

/* Tailles */
.btn-sm {
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: var(--s-4) var(--s-6);
  font-size: var(--fs-base);
}

/* Variante primaire (les 2 conventions) */
.btn--primary,
.btn-primary {
  background: var(--ink);
  color: var(--accent-inv);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

/* Variante ghost (les 2 conventions) */
.btn--ghost,
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover,
.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}

/* Flèche animée */
.btn-arrow {
  display: inline-block;
  transition: transform var(--dur-normal) var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}


/* ============================================================================
   5. CARTES
   ============================================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-normal) var(--ease),
    box-shadow var(--dur-normal) var(--ease),
    border-color var(--dur-normal) var(--ease);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

.card--soft {
  background: var(--surface-soft);
  border-color: var(--border-soft);
  box-shadow: none;
}

.card--hover:hover,
.card--hover:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}


/* ============================================================================
   6. FORMULAIRES
   ============================================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input,
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea,
textarea {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.input::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-5);
}

.input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 88, 122, 0.12);
}

.form-group textarea,
textarea {
  resize: vertical;
  min-height: 110px;
}

/* État rempli — feedback subtil */
.form-group.has-value input,
.form-group.has-value textarea,
.form-group.has-value select,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-color: var(--border-2);
}

/* Inline (2 colonnes desktop) */
.form-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

@media (max-width: 640px) {
  .form-inline {
    grid-template-columns: 1fr;
  }
}

/* Erreur — accessible avec aria-live */
.form-error {
  margin-top: 6px;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--error);
  background: var(--error-bg);
  color: var(--error);
  font-size: var(--fs-sm);
}

.form-error[hidden] {
  display: none;
}

/* État de soumission */
.submit-state {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur-normal) var(--ease), transform var(--dur-normal) var(--ease);
}

.submit-state.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.submit-state.ok {
  color: var(--success);
}

.submit-state.error {
  color: var(--error);
}

[aria-busy="true"] {
  opacity: 0.75;
  pointer-events: none;
}

/* Consent (RGPD checkbox) */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: var(--lh-normal);
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a:hover {
  color: var(--ink);
}


/* ============================================================================
   7. SECTIONS & EYEBROW
   ============================================================================ */

.section {
  padding: var(--s-20) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--s-16) 0;
  }
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg-dark);
  color: #E2E8F0;
}

.section-dark .h2,
.section-dark .h3 {
  color: #fff;
}

.section-dark .lead {
  color: var(--ink-5);
}

.section-dark .eyebrow {
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-12);
}

.section-head .lead {
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px var(--s-3);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-4);
}


/* ============================================================================
   8. TYPOGRAPHIE — Titres & lead
   ============================================================================ */

.h1 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: 700;
  color: var(--ink);
}

.h2 {
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  font-weight: 700;
  color: var(--ink);
}

.h3 {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  font-weight: 600;
  color: var(--ink);
}

/* Italique serif décoratif (signature visuelle Eli Tech) */
.h1 em,
.h2 em,
.h3 em,
em.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--ink-2);
  max-width: 60ch;
}


/* ============================================================================
   9. NAVBAR
   ============================================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-normal) var(--ease), background var(--dur-normal) var(--ease);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(246, 248, 251, 0.95);
}

.navbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  flex-shrink: 0;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word strong {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-word span {
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: var(--ls-snug);
  margin-top: 2px;
}

.brand-word em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: var(--s-1);
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-md);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--surface2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}


/* ============================================================================
   10. NAV BURGER (mobile)
   ============================================================================ */

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background var(--dur-fast) var(--ease);
}

.nav-burger:hover {
  background: var(--surface2);
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: top var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.nav-burger span {
  top: 50%;
  margin-top: -1px;
}

.nav-burger span::before {
  top: -6px;
}

.nav-burger span::after {
  top: 6px;
}

.nav-burger.open span {
  background: transparent;
}

.nav-burger.open span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav-burger.open span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-burger {
    display: block;
  }
}

/* Menu mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: calc(var(--z-sticky) - 1);
  background: var(--bg);
  padding: var(--s-6) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity var(--dur-normal) var(--ease), transform var(--dur-normal) var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-md);
}

.mobile-menu a:hover {
  background: var(--surface2);
}


/* ============================================================================
   11. LANG SWITCHER
   ============================================================================ */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.lang-switcher .sep {
  opacity: 0.4;
}

.lang-btn {
  padding: 4px var(--s-2);
  font-weight: 600;
  color: var(--ink-4);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.lang-btn:hover {
  color: var(--ink-2);
}

.lang-btn.active {
  color: var(--ink);
  background: var(--surface2);
}


/* ============================================================================
   12. FOOTER
   ============================================================================ */

.site-footer {
  background: var(--bg-dark);
  color: #8EA4BC;
  padding: var(--s-16) 0 var(--s-8);
  margin-top: var(--s-20);
}

.site-footer .h2,
.site-footer h2 {
  color: #fff;
}

.footer-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--s-12);
}

.footer-cta h2 {
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  margin-bottom: var(--s-4);
}

.footer-cta h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #A5B4FC;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-8);
  padding-top: var(--s-12);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.footer-col a:hover {
  color: #fff;
}

.footer-legal {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: var(--fs-xs);
  color: #6E89A6;
}

.footer-legal-links {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.footer-legal-links a:hover {
  color: #A5B4FC;
}


/* ============================================================================
   13. REVEAL ANIMATIONS (used by IntersectionObserver in JS)
   ============================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 60ms; }
.stagger.in > *:nth-child(3) { transition-delay: 120ms; }
.stagger.in > *:nth-child(4) { transition-delay: 180ms; }
.stagger.in > *:nth-child(5) { transition-delay: 240ms; }
.stagger.in > *:nth-child(6) { transition-delay: 300ms; }
.stagger.in > *:nth-child(7) { transition-delay: 360ms; }
.stagger.in > *:nth-child(8) { transition-delay: 420ms; }


/* ============================================================================
   14. PAYMENT OPTION (a11y radio — conservé tel quel pour compat)
   ============================================================================ */

.payment-option {
  position: relative;
}

.payment-option .a11y-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.payment-option:has(.a11y-radio:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--ink);
}

.payment-option:has(.a11y-radio:checked) {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}


/* ============================================================================
   15. PORTFOLIO MODAL — scope, custom blocks (conservés tel quel)
   ============================================================================ */

.pf-scope .site-footer,
.pf-scope .back-btn,
.pf-scope .sub-title {
  all: revert;
}

@media (max-width: 768px) {
  .pf-scope .pf-contact-actions .btn {
    min-width: 100%;
  }
}

.pf-custom-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.pf-custom-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-5) var(--s-5);
}

.pf-custom-emoji {
  font-size: var(--fs-xl);
  text-align: center;
  margin-bottom: var(--s-3);
}

.pf-custom-title {
  text-align: center;
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  margin-bottom: var(--s-2);
  letter-spacing: var(--ls-snug);
}

.pf-custom-subtitle {
  text-align: center;
  color: var(--ink-3);
  max-width: 680px;
  margin: 0 auto var(--s-5);
  font-size: var(--fs-base);
}

.pf-custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
  margin: var(--s-5) 0;
}

.pf-custom-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3);
}

.pf-custom-box p {
  margin-top: var(--s-1);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.pf-custom-highlight {
  background: var(--ink);
  color: var(--accent-inv);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  text-align: center;
}


/* ============================================================================
   16. UTILITAIRES TYPO (conservés tel quel)
   ============================================================================ */

.text-xs    { font-size: var(--fs-xs); }
.text-sm    { font-size: var(--fs-sm); }
.text-base  { font-size: var(--fs-base); }
.text-md    { font-size: var(--fs-md); }
.text-xl    { font-size: var(--fs-xl); }
.text-center { text-align: center; }
.text-ink-3 { color: var(--ink-3); }
.text-accent-inv { color: var(--accent-inv); }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.lh-tight   { line-height: var(--lh-tight); }
.lh-relaxed { line-height: var(--lh-relaxed); }
.ls-tight   { letter-spacing: var(--ls-snug); }


/* ============================================================================
   17. BLOCS DURABLE PORTFOLIO (conservés tel quel)
   ============================================================================ */

.dur-card-empty {
  background: var(--bg-soft);
  border: none;
}

.dur-sec-alt {
  background: var(--surface-soft);
}

.dur-cta-copy {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: var(--s-2);
}


/* ============================================================================
   18. PORTFOLIO TAB INTRO / EMPTY STATE
   ============================================================================ */

.pf-tab-intro {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-bottom: var(--s-4);
  text-align: center;
}

.pf-empty-state {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  text-align: center;
}


/* ============================================================================
   19. GOOGLE BUSINESS PROFILE MOCKUP (UI portfolio)
   ============================================================================ */

.gm-stars-base {
  color: var(--star-base);
}

.gm-photos-short {
  height: 70px;
}

.gm-main-img-muted {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.3) blur(1px);
}

.gm-thumb-plus {
  background: var(--gm-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--gm-muted);
}

.gm-photo-cover {
  background-size: cover;
  background-position: center;
  background-color: var(--gm-surface);
}


/* ============================================================================
   20. PORTFOLIO VIDEO (Reel mockup)
   ============================================================================ */

.pf-video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.pf-video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.7) 0%,
    transparent 40%,
    transparent 80%,
    rgba(0, 0, 0, 0.3) 100%);
  border-radius: 25px;
}

.pf-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-media-float);
}

.pf-video-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fe2c55;
  color: var(--accent-inv);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
}

.pf-video-caption-wrap {
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 12px;
}

.pf-video-caption {
  color: var(--accent-inv);
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: var(--lh-snug);
  margin-bottom: 3px;
}

.pf-video-author {
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  font-weight: 600;
}


/* ============================================================================
   21. PORTFOLIO GRID RESPONSIVE
   ============================================================================ */

.pf-grid-360-1 {
  display: grid;
  grid-template-columns: 1fr;
}

.pf-grid-360-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

@media (min-width: 768px) {
  .pf-grid-768-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pf-grid-1024-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ============================================================================
   22. FAQ ACCORDION
   ============================================================================ */

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q::after {
  content: "+";
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1;
  color: var(--ink-3);
  transition: transform var(--dur-normal) var(--ease);
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--ink-2);
  line-height: var(--lh-relaxed);
  transition: max-height var(--dur-normal) var(--ease), padding var(--dur-normal) var(--ease);
}

.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 0 var(--s-5);
}


/* ============================================================================
   23. INTERACTIONS GLOBALES (focus, hover) — conservé pour compat
   ============================================================================ */

.service-card:hover,
.service-card:focus-visible,
.card-link:hover,
.card-link:focus-visible,
.faq-item summary:hover,
.faq-item summary:focus-visible {
  text-decoration: none;
  outline-offset: 3px;
}


/* ============================================================================
   24. TRUST SIGNALS (4 garanties concrètes — section approche sélective)
   ============================================================================ */

.trust-signals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin: var(--s-5) 0 var(--s-5);
  width: 100%;
}

@media (max-width: 900px) {
  .trust-signals { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .trust-signals { grid-template-columns: 1fr; }
}

.trust-signal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: left;
  transition: transform var(--dur-normal) var(--ease), box-shadow var(--dur-normal) var(--ease);
}

.trust-signal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.trust-signal .trust-icon {
  color: var(--accent, var(--ink));
  margin-bottom: var(--s-2);
  display: inline-flex;
}

.trust-signal h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin: 0 0 var(--s-1);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.trust-signal p {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}
