/* ==========================================================================
   Trackisi — feuille de style du site vitrine
   Design system : palette outdoor (vert/teal), typo Plus Jakarta + Inter.
   ========================================================================== */

:root {
  /* Marque */
  --green-900: #0f3d27;
  --green-700: #1f7a4d;
  --green-600: #2e7d32;
  --green-500: #34a05a;
  --teal-600: #0e9e8e;
  --teal-500: #16b8a6;

  /* Neutres */
  --ink: #11241c;
  --ink-soft: #3c5247;
  --muted: #6b8076;
  --line: #e3ece7;
  --bg: #ffffff;
  --bg-alt: #f3f8f5;
  --bg-dark: #0f2018;

  /* Accent secours */
  --danger: #c62828;

  /* Effets */
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(16, 49, 33, .06);
  --shadow: 0 14px 40px rgba(16, 49, 33, .12);
  --shadow-lg: 0 30px 70px rgba(16, 49, 33, .18);
  --grad: linear-gradient(135deg, var(--green-600), var(--teal-600));
  --grad-soft: linear-gradient(135deg, #eaf6ee, #e3f5f1);

  --maxw: 1140px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
picture { display: contents; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--teal-600); }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.12; color: var(--ink); letter-spacing: -.02em; }
ul { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------- a11y */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 6px; }

/* --------------------------------------------------------- layout */
.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.4rem, 760px); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-600); margin-bottom: .7rem;
}
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-subtitle { color: var(--ink-soft); font-size: 1.08rem; margin-top: 1rem; }

/* --------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(14, 158, 142, .3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(14, 158, 142, .38); }
.btn-ghost { background: #fff; color: var(--green-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-2px); }

/* --------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { border-radius: 10px; }
.brand-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.brand-accent { color: var(--teal-600); }

.primary-nav { display: flex; align-items: center; gap: 1.8rem; }
.primary-nav ul { display: flex; gap: 1.6rem; }
.primary-nav a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.primary-nav a:hover { color: var(--green-700); }
.nav-cta { padding: .6rem 1.2rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(22, 184, 166, .14), transparent 70%),
    radial-gradient(55% 45% at 0% 20%, rgba(46, 125, 50, .12), transparent 70%),
    var(--grad-soft);
}
/* Boucle décorative autour du téléphone (pas du texte) : marge généreuse pour
   ne jamais toucher ni le mockup ni le texte. */
.phone-halo { position: relative; width: min(300px, 78%); }
.phone-halo-svg { position: absolute; top: -18%; right: -34%; bottom: -18%; left: -34%; z-index: 1; pointer-events: none; overflow: visible; }
.phone-halo-svg svg { width: 100%; height: 100%; display: block; }
.phone-halo-svg path {
  fill: none; stroke: var(--green-600, #2E7D32); stroke-width: .9;
  stroke-linecap: round; stroke-linejoin: round; opacity: .55;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: heroTrailDraw 6.5s linear .2s forwards, heroTrailFade .9s ease-in 6.7s forwards;
}
.phone-halo-dot {
  fill: #2b6cf6;
  filter: drop-shadow(0 0 2px rgba(43,108,246,.95)) drop-shadow(0 0 5px rgba(43,108,246,.6));
  animation: heroTrailFade .6s ease-in 6.7s forwards;
}
/* 3 groupes de lacets serrés (montée gauche, descente droite, petite zone basse)
   qui ralentissent le point, séparés par 2 portions plus fluides et rapides —
   pourcentages calculés sur la longueur réelle du tracé pour que le point bleu
   reste toujours exactement à la pointe du trait dessiné. */
@keyframes heroTrailDraw {
  0%     { stroke-dashoffset: 1; }
  37.76% { stroke-dashoffset: .6612; }  /* fin lacets 1 (gauche) */
  40.65% { stroke-dashoffset: .5648; }  /* fin portion fluide (haut) */
  78.42% { stroke-dashoffset: .226; }   /* fin lacets 2 (droite) */
  79.75% { stroke-dashoffset: .1817; }  /* fin portion fluide (bas) */
  100%   { stroke-dashoffset: 0; }      /* fin lacets 3 (retour) */
}
@keyframes heroTrailFade { to { opacity: 0; } }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-title { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
.hero-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); margin-top: 1.2rem; max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-note { display: flex; align-items: center; gap: .45rem; margin-top: 1.3rem; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero-note svg { width: 18px; height: 18px; color: var(--green-500); flex: none; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-phone {
  width: 100%; border-radius: 30px; box-shadow: var(--shadow-lg);
  border: 8px solid #14241c; position: relative; z-index: 2; rotate: 3deg;
  transition: rotate .5s var(--ease), transform .5s var(--ease);
}
.hero-visual:hover .hero-phone { rotate: 0deg; transform: translateY(-6px); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 1; }
.hero-blob-1 { width: 180px; height: 180px; background: var(--teal-500); top: -10%; right: 6%; }
.hero-blob-2 { width: 150px; height: 150px; background: var(--green-500); bottom: 0; left: 8%; }

/* --------------------------------------------------------- stats */
.stats { margin-top: -1px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow); transform: translateY(-40px); margin-bottom: -40px;
}
.stat { text-align: center; color: #fff; padding: .4rem; }
.stat-k { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.25rem; }
.stat-v { display: block; color: #9fc9b4; font-size: .86rem; margin-top: .25rem; }

/* --------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--green-700); margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.pill { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-600); background: #def3ef; padding: .2rem .55rem; border-radius: 999px; }

/* --------------------------------------------------------- split (sécurité) */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media { display: flex; justify-content: center; }
.phone-frame { width: min(290px, 80%); border-radius: 28px; border: 8px solid #14241c; box-shadow: var(--shadow-lg); }
.feature-list { display: grid; gap: 1.3rem; margin-top: 1.8rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.feature-list-icon svg { width: 22px; height: 22px; }
.feature-list strong { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--ink); }
.feature-list span span, .feature-list li > span:last-child { color: var(--ink-soft); }

/* --------------------------------------------------------- shots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.shot { text-align: center; }
.shot img {
  border-radius: 22px; border: 7px solid #14241c; box-shadow: var(--shadow);
  margin: 0 auto; transition: transform .3s var(--ease);
}
.shot:hover img { transform: translateY(-6px); }
.shot figcaption { margin-top: .9rem; font-size: .9rem; color: var(--ink-soft); }

/* --------------------------------------------------------- pricing */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: 1.4rem; justify-content: center; align-items: stretch; }
.promo-banner {
  display: flex; align-items: center; justify-content: center; gap: .6rem; text-align: center;
  max-width: 820px; margin: 0 auto 2rem; padding: 1rem 1.4rem;
  background: var(--grad); color: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); font-weight: 600; line-height: 1.4;
}
.pricing-notes { max-width: 820px; margin: 1.8rem auto 0; text-align: center; color: var(--muted); font-size: .9rem; }
.pricing-notes p { margin: .5rem 0; }
.price-soon { display: block; text-align: center; padding: .6rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.price-card-featured { border: 2px solid var(--teal-500); box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .35rem .9rem; border-radius: 999px;
}
.price-card h3 { font-size: 1.4rem; }
.price { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2.4rem; margin: .4rem 0 1.4rem; color: var(--green-700); }
.price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-card ul { display: grid; gap: .8rem; margin-bottom: 1.8rem; flex: 1; }
.price-card li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); }
.price-card li svg { width: 20px; height: 20px; color: var(--green-500); flex: none; margin-top: 3px; }

/* --------------------------------------------------------- FAQ */
.faq { display: grid; gap: .9rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1.15rem 1.4rem; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--teal-600); transition: transform .25s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* --------------------------------------------------------- CTA */
.cta { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta-inner {
  background: var(--grad); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(60% 120% at 50% -20%, rgba(255, 255, 255, .25), transparent 60%);
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-inner p { margin-top: 1rem; font-size: 1.1rem; opacity: .95; max-width: 50ch; margin-inline: auto; }
.cta-inner .btn-primary { background: #fff; color: var(--green-700); margin-top: 1.8rem; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.cta-inner .btn-primary:hover { color: var(--green-900); }
.cta-beta-note { font-size: 1rem; opacity: .92; }
/* Boutons magasins (Google Play + App Store) côte à côte, empilés sur mobile.
   La marge haute passe du bouton au conteneur pour éviter un décalage entre
   les deux quand ils reviennent à la ligne. */
.cta-stores { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.8rem; }
.cta-inner .cta-stores .btn-primary { margin-top: 0; }

/* --------------------------------------------------------- footer */
.site-footer { background: var(--bg-dark); color: #c7d8cf; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand-name { color: #fff; }
.footer-tagline { margin-top: 1rem; max-width: 38ch; color: #9fb6aa; font-size: .95rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.2rem; }
.footer-social a { color: #9fb6aa; font-size: .9rem; }
.footer-social a:hover { color: var(--teal-500); }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #7e988b; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { color: #c7d8cf; font-size: .95rem; }
.footer-col a:hover { color: var(--teal-500); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem; color: #7e988b;
}
.lang-switcher { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.lang-switcher a { color: #7e988b; text-decoration: none; font-size: .82rem; padding: .15rem .35rem; border-radius: 4px; }
.lang-switcher a:hover { color: #fff; background: rgba(255,255,255,.1); }
.lang-switcher .lang-cur { color: #4ade80; font-weight: 700; font-size: .82rem; }

/* --------------------------------------------------------- cookie banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 900px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; gap: 1.3rem; padding: 1rem 1.3rem; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 240px; margin: 0; font-size: .92rem; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-actions .btn { padding: .55rem 1.3rem; font-size: .92rem; }
@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* --------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------- page « bientôt » */
.soon-hero { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--grad-soft); }
.soon-hero .badge { display: inline-block; background: var(--grad); color: #fff; padding: .4rem 1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: 1.2rem; }
.soon-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.soon-hero p { color: var(--ink-soft); max-width: 60ch; margin: 1.2rem auto 2rem; font-size: 1.1rem; }

/* --------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-visual { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split-copy { text-align: center; }
  .feature-list li { text-align: left; }
  .cards, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: 72px; right: 0; left: 0; flex-direction: column; gap: 1rem;
    background: #fff; padding: 1.5rem 1.4rem 2rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 72px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateY(calc(-100% - 80px));
    visibility: hidden; opacity: 0;
    transition: transform .35s var(--ease), opacity .25s, visibility 0s .35s;
    align-items: stretch;
  }
  .primary-nav.open {
    transform: translateY(0); visibility: visible; opacity: 1;
    transition: transform .35s var(--ease), opacity .25s;
  }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: .8rem 0; }
  .nav-cta { text-align: center; margin-top: .5rem; }
}

@media (max-width: 560px) {
  .cards, .cards-3, .shots, .pricing { grid-template-columns: 1fr; }
  .pricing { max-width: 380px; margin-inline: auto; }
  .footer-bottom { flex-direction: column; }
}

/* ── Grille de tuiles fonctionnalités ── */
.ftiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
  margin-top: 2.5rem;
}
.ftile {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem 1rem 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.ftile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.09);
  border-color: var(--green-500, #2E7D32);
}
.ftile-icon { font-size: 1.75rem; line-height: 1; }
.ftile h3 { font-size: .95rem; font-weight: 700; margin: 0; color: var(--text-dark, #111); }
.ftile p  { font-size: .82rem; color: var(--text-muted, #6b7280); margin: 0; line-height: 1.45; }
.ftile-badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(135deg,#f59e0b,#ef4444);
  color: #fff; padding: 2px 7px; border-radius: 20px;
  align-self: flex-start; margin-top: auto;
}
@media (max-width: 900px)  { .ftiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .ftiles { grid-template-columns: repeat(2, 1fr); } }

/* ── Hero diaporama ── */
.hero-diapo {
  overflow: hidden;
  position: relative;
  padding-top: calc(19.5 / 9 * 100%); /* fallback iOS Safari < 15 */
}
@supports (aspect-ratio: 1) {
  .hero-diapo { padding-top: 0; aspect-ratio: 9/19.5; }
}
.hero-diapo .hdslide {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .6s ease;
}
.hero-diapo .hdslide.on { opacity: 1; }
.hero-cam {
  position: absolute; top: 13px; left: 50%;
  transform: translateX(-50%);
  width: 11px; height: 11px;
  background: #0d0d0d; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
  z-index: 3; pointer-events: none;
}
.hero-dots {
  display: flex; gap: 6px; justify-content: center;
  margin-top: 14px; position: relative; z-index: 2;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.3);
  transition: background .2s, transform .2s;
}
.hero-dot.on { background: #fff; transform: scale(1.5); }

/* ── Forum responsive ── */
.forum-cat-card {
  background: white;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 5px rgba(0,0,0,.02);
  display: grid;
  grid-template-columns: 1fr 120px 240px;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: center;
  transition: transform .2s, box-shadow .2s;
}
.forum-cat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.forum-cat-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  padding: 0 .5rem;
}
.forum-cat-last { font-size: .85rem; color: #4b5563; display: flex; flex-direction: column; justify-content: center; }
.forum-topic-header {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
  display: grid;
  grid-template-columns: 1fr 100px 200px;
  padding: .75rem 1.5rem;
  font-size: .8rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.forum-topic-row {
  display: grid;
  grid-template-columns: 1fr 100px 200px;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
  transition: background-color .1s;
}
.forum-topic-row:hover { background-color: #f9fafb; }
.forum-topic-replies { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.forum-topic-last { font-size: .8rem; color: #4b5563; display: flex; flex-direction: column; }
.forum-cat-search-wrap { flex-shrink: 0; width: min(280px, 100%); }

@media (max-width: 640px) {
  .forum-cat-card { grid-template-columns: 1fr; gap: .75rem; }
  .forum-cat-stats {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.5rem;
    border-left: none;
    border-right: none;
    border-top: 1px solid #e5e7eb;
    padding: .75rem 0 0;
  }
  .forum-topic-header { display: none; }
  .forum-topic-row { grid-template-columns: 1fr; padding: 1rem; gap: .35rem; }
  .forum-topic-replies, .forum-topic-last { display: none; }
}

.forum-post-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,.01);
  display: grid;
  grid-template-columns: 140px 1fr;
  overflow: hidden;
}

@media (max-width: 560px) {
  .forum-post-card { grid-template-columns: 1fr; }
  .forum-post-author {
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: row !important;
    padding: 1rem !important;
    gap: 1rem !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
}
