:root {
  --bg-base: #e8e8e8;
  --bg-trans: rgba(232, 232, 232, 0.88);
  --bg-panel: rgba(255, 255, 255, 0.62);
  --bg-panel-solid: #f5f6f8;
  --border: rgba(30, 58, 95, 0.12);
  --border-strong: rgba(37, 99, 235, 0.35);
  --text: #1a2744;
  --text-muted: #5a6478;
  --blue: #2563eb;
  --blue-bright: #1d4ed8;
  --cyan: #0ea5e9;
  --navy: #0b1f4a;
  --success: #16a34a;
  --radius: 1rem;
  --font-display: "Outfit", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --shadow: 0 12px 32px rgba(26, 39, 68, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-trans);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--bg-trans), var(--bg-trans)),
    url("../images/logosite.jpeg") center 38% / min(42vw, 340px) no-repeat;
  opacity: 1;
  pointer-events: none;
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(232, 232, 232, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__brand img {
  height: 36px;
  width: auto;
  border-radius: 50%;
}

.nav__brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #0ea5e9);
  color: white !important;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--blue), #0284c7);
  color: white;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 2rem;
  overflow: hidden;
}

.hero__glow {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: riseIn 0.9s ease-out both;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-bright);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: var(--navy);
}

.hero__lead {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 32rem;
  margin: 0 0 1.35rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Stats strip */
.stats {
  padding: 0.5rem 0 2rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.stat {
  text-align: center;
  padding: 1rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  backdrop-filter: blur(10px);
  animation: riseIn 0.8s ease-out both;
}

.stat:nth-child(2) { animation-delay: 0.08s; }
.stat:nth-child(3) { animation-delay: 0.16s; }
.stat:nth-child(4) { animation-delay: 0.24s; }

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--navy);
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.28);
}

.section__head {
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.section__head.center {
  margin-inline: auto;
  text-align: center;
}

.section__label {
  color: var(--blue-bright);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
}

.section__line {
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  margin: 0 0 1rem;
}

.section__line.center {
  margin-inline: auto;
}

/* Glass panels */
.glass {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: center;
}

.about-copy ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.about-copy li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.14);
  color: var(--blue-bright);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.about-visual {
  position: relative;
  padding: 1rem;
  min-height: 200px;
  display: grid;
  place-items: center;
}

.about-visual img {
  width: 140px;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.value {
  padding: 1rem;
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}

.value p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Apps */
.apps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.app-card {
  display: flex;
  flex: 1 1 calc(50% - 0.3rem);
  min-width: min(100%, 260px);
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.app-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.app-card__logo {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.app-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card__body {
  flex: 1;
  min-width: 0;
}

.app-card__body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.15rem;
}

.app-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  color: var(--success);
  margin-bottom: 0.3rem;
}

.app-card__tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.app-card__tag.soon {
  color: var(--blue-bright);
}

.app-card__tag.soon .dot {
  background: var(--blue-bright);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

.app-card__body > p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 48rem;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.meta-pill {
  padding: 0.28rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  min-width: 72px;
}

.meta-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--navy);
}

.meta-pill span {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.store-btn:hover {
  border-color: var(--border-strong);
  background: rgba(37, 99, 235, 0.1);
}

.store-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.store-btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-strong);
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-bright);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-detail:hover {
  background: rgba(37, 99, 235, 0.18);
}

/* Modal détail */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.45);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal.open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal__body {
  padding: 1.25rem 1.25rem 1.5rem;
  overflow-y: auto;
  max-height: 85vh;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal__body h3,
.modal__body h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.45rem;
}

.modal__body h4 {
  font-size: 0.95rem;
  margin-top: 1rem;
}

.modal__body p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.modal__body ul {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
}

.modal__body li {
  margin-bottom: 0.3rem;
}

.modal__body strong {
  color: var(--text);
}

.detail-modal__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.detail-modal__head img {
  border-radius: 0.75rem;
  object-fit: cover;
}

.detail-modal__head h3 {
  font-size: 1.2rem;
  margin: 0;
}

.detail-modal__head p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}

.detail-source {
  display: none;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.team-card {
  padding: 1.1rem;
}

.team-card__role {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.team-card p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.team-card__email {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-bright);
}

.team-card__email:hover {
  text-decoration: underline;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.85rem;
}

.contact-info {
  padding: 1.25rem;
}

.contact-info img {
  width: 56px;
  border-radius: 50%;
  margin-bottom: 0.65rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.contact-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-list a:hover {
  color: var(--blue-bright);
}

.contact-form {
  padding: 1.25rem;
}

.contact-form h3 {
  font-family: var(--font-display);
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 1rem;
  background: rgba(255, 255, 255, 0.35);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer__brand img {
  width: 44px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.footer__brand h4 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
}

.footer__brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer h5 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: var(--navy);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--blue-bright);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Page entreprise hero */
.page-hero {
  padding: 5.5rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(24px); }
}

/* Responsive */
@media (max-width: 900px) {
  .stats__grid,
  .values {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid,
  .team-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    flex: 1 1 100%;
    flex-direction: row;
  }

  .nav__links {
    position: fixed;
    inset: 68px 1rem auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(232, 232, 232, 0.95);
    border: 1px solid var(--border);
    display: none;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links li {
    border-bottom: 1px solid var(--border);
  }

  .nav__links li:last-child {
    border-bottom: 0;
  }

  .nav__links a {
    display: block;
    padding: 0.85rem 0.75rem;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__brand span {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .stats__grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .app-card__logo {
    width: 48px;
    height: 48px;
  }

  .hero {
    padding-top: 5rem;
  }
}
