:root {
  --ink: #101827;
  --navy: #152a43;
  --navy-2: #0c1726;
  --gold: #d7902f;
  --gold-2: #f8c36a;
  --cream: #fff8ef;
  --paper: rgba(255, 255, 255, 0.86);
  --muted: #647085;
  --line: rgba(16, 24, 39, 0.12);
  --shadow: 0 28px 80px rgba(16, 24, 39, 0.16);
  --radius: 30px;
}

* { box-sizing: border-box; }

/* ===========================================================
   Accessibilité WCAG 2.1 AA (Mission FIRSTAGENCY Vague 1)
   =========================================================== */
/* Filet focus-visible global (navy 11.5:1 + halo or signature). */
:focus-visible {
  outline: 3px solid var(--navy, #152a43);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px rgba(215, 144, 47, 0.45);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--navy, #152a43);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(215, 144, 47, 0.45);
}

/* Visually-hidden utilitaire */
.visually-hidden, .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;
}



/* Touche tactile WCAG : minimum 44x44 px */
.button, .back-to-top, .footer-mini-links a {
  min-height: 44px;
}

/* prefers-reduced-motion : neutralise animations et autoplay */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .team-intro-video { animation-play-state: paused !important; }
}
/* === Fin bloc accessibilité === */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(215, 144, 47, 0.16), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(21, 42, 67, 0.12), transparent 30%),
    linear-gradient(180deg, #fff8ef 0%, #f2eadf 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  margin: 14px auto 0;
  width: min(1180px, calc(100% - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 23, 38, 0.92);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 50px rgba(12, 23, 38, 0.2);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
}

.brand img { width: 45px; height: 45px; border-radius: 13px; }
.brand span span { color: var(--gold-2); }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.84);
}

.nav a:hover { color: var(--gold-2); }

.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: grid;
  align-items: center;
  padding: 72px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #6b3f08;
  background: rgba(248, 195, 106, 0.22);
  border: 1px solid rgba(215, 144, 47, 0.22);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5.4vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  color: var(--navy-2);
}

.lead {
  max-width: 760px;
  color: #465266;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
}

.button-primary {
  /* WCAG AA : navy/blanc (>= 11:1) au lieu d'or/blanc (2.9:1 = FAIL). */
  color: #fff;
  background: linear-gradient(135deg, var(--navy, #152a43), #0c1726);
  border: 1px solid var(--navy, #152a43);
  box-shadow: 0 18px 34px rgba(16, 24, 39, 0.28), inset 0 -3px 0 #c96900;
}

.button-secondary {
  color: var(--navy);
  background: rgba(255,255,255,0.82);
  border-color: var(--line);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-card-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 28px;
  color: #fff;
  background: rgba(12, 23, 38, 0.76);
  backdrop-filter: blur(16px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 16px 44px rgba(16, 24, 39, 0.08);
}

.stat strong { display: block; color: var(--navy); font-size: 1.6rem; }
.stat span { color: var(--muted); font-weight: 700; }

section { padding: 72px 0; }

.section-head {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-bottom: 32px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  margin: 0;
  color: var(--navy-2);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.section-head p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 18px 60px rgba(16, 24, 39, 0.09);
}

.visual-card { padding: 0; }
.visual-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.visual-card .card-body { padding: 24px; }

.card h3 {
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.card p, .card li { color: #526073; line-height: 1.7; }

.role-english {
  font-size: 0.82em;
  font-weight: 500;
  color: #536170;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(215,144,47,0.13);
  color: #6b3f08;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}

.profile-photo {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text {
  display: grid;
  align-content: center;
  padding: 38px;
  border-radius: var(--radius);
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow);
}

.profile-text p { color: rgba(255,255,255,0.78); line-height: 1.8; }
.profile-text h2 { color: #fff; font-size: clamp(2rem, 4vw, 4rem); line-height: 0.96; letter-spacing: -0.05em; }

.team-card {
  min-height: 100%;
}

.avatar {
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--gold), var(--navy));
}

.process {
  counter-reset: step;
}

.process .card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.1em;
}

.legal-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
  padding: 28px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, #111827, #152a43);
}

.legal-strip p { color: rgba(255,255,255,0.76); line-height: 1.75; }
.legal-strip a { color: var(--gold-2); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

/* === First Agency 2026-05-21 : footer premium === */
.site-footer {
  margin-top: 64px;
  padding: 0 0 32px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.footer-shell {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  padding: 34px;
  background:
    radial-gradient(circle at 8% 22%, rgba(248, 195, 106, 0.22), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(247, 234, 216, 0.12), transparent 24%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #0b1422 0%, #10263d 54%, #07111d 100%);
  background-size: auto, auto, 58px 58px, 58px 58px, auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 90px rgba(12, 23, 38, 0.24);
}

.footer-shell::before {
  content: "";
  position: absolute;
  left: -90px;
  top: -120px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 1px solid rgba(248, 195, 106, 0.32);
  box-shadow:
    0 0 0 44px rgba(248, 195, 106, 0.045),
    0 0 0 96px rgba(255, 255, 255, 0.026);
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(170px, 0.62fr);
  gap: 30px;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 950;
  letter-spacing: -0.055em;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.footer-brand span span {
  color: var(--gold-2);
}

.footer-brand-block p {
  max-width: 470px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-weight: 650;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-weight: 850;
  font-size: 0.88rem;
}

.footer-column h2,
.footer-column h3 {
  margin: 8px 0 16px;
  color: var(--gold-2);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
  line-height: 1.35;
  margin: 0 0 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  text-align: center;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
  font-size: 0.94rem;
}

.footer-bottom strong {
  color: #fff;
}

.footer-copy {
  color: #fff !important;
  font-weight: 900;
  white-space: nowrap;
}

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

  .footer-copy {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .site-footer {
    padding-bottom: 20px;
  }

  .footer-shell {
    padding: 26px;
    border-radius: 30px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}
/* === Fin footer premium === */

.note-small { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 920px) {
  .site-header { position: static; border-radius: 28px; flex-direction: column; align-items: flex-start; }
  .hero-grid, .grid-2, .profile-grid, .legal-strip { grid-template-columns: 1fr; }
  .grid-3, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-photo { min-height: 380px; }
}

@media (max-width: 620px) {
  .grid-3, .stats { grid-template-columns: 1fr; }
  h1 { font-size: 3.2rem; }
  .hero { padding-top: 44px; }
  .card, .profile-text, .legal-strip { padding: 22px; }
}
.caption-humour {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
  font-style: italic;
}

/* === First Agency 2026-05-20 : mini clip pôle IA === */
.team-intro-media {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.team-intro-media p {
  margin: 0;
}

.team-intro-video {
  width: 124px;
  height: 124px;
  object-fit: cover;
  border-radius: 28px;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 18px 40px rgba(16, 24, 39, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

@media (max-width: 720px) {
  .team-intro-media {
    grid-template-columns: 1fr;
  }

  .team-intro-video-frame {
    width: 138px;
    height: 138px;
  }
}

/* === First Agency 2026-05-20 : headers cartoon équipe IA === */
.team-card {
  overflow: hidden;
}

.team-card-art-wrap {
  margin: -28px -28px 22px;
  border-radius: var(--radius) var(--radius) 24px 24px;
  overflow: hidden;
  background: #111827;
  border-bottom: 1px solid rgba(16, 24, 39, 0.08);
}

.team-card-art {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

@media (max-width: 720px) {
  .team-card-art {
    height: 205px;
  }
}
/* === First Agency 2026-05-20 : masque mini clip Team Manager === */
.team-intro-video-frame {
  position: relative;
  display: block;
  width: 124px;
  height: 124px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 18px 40px rgba(16, 24, 39, 0.14),
    0 0 0 8px rgba(255,255,255,0.55);
}

.team-intro-video-frame::after {
  content: "Team Manager";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 30px;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0), rgba(8, 14, 24, 0.96) 28%, #080e18 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  display: grid;
  place-items: end center;
  padding-bottom: 5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.75);
  pointer-events: none;
}

.team-intro-video-frame .team-intro-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 720px) {
  .team-intro-video-frame {
    width: 138px;
    height: 138px;
  }
}
/* === Fin masque mini clip Team Manager === */
/* === First Agency 2026-05-20 : portraits equipe style Isabelle === */
.team-card-art-wrap {
  border-radius: var(--radius) var(--radius) 28px 28px;
}

.team-card-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
}
/* === Fin portraits equipe style Isabelle === */
/* === First Agency 2026-05-21 : sticky nav et formulaire contact === */
html {
  scroll-padding-top: 118px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 1000;
}

.contact-section {
  padding-top: 38px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 18%, rgba(248, 195, 106, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,248,239,0.82));
  border: 1px solid rgba(16, 24, 39, 0.1);
  box-shadow: var(--shadow);
}

.contact-copy {
  display: grid;
  align-content: center;
}

.contact-copy h2 {
  margin: 0 0 14px;
  color: var(--navy-2);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background: #111827;
  color: #fff;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.82);
  font-weight: 800;
}

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

#contact-feedback.is-success { color: #76e8b9; font-weight: 700; }
#contact-feedback.is-error { color: #ff9a9a; font-weight: 700; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(248, 195, 106, 0.16);
}

.contact-form textarea {
  resize: vertical;
}

.checkline {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkline input {
  width: auto;
  margin-top: 5px;
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-2), #fff2c8);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(16, 24, 39, 0.18);
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    top: 10px;
    z-index: 1000;
  }

  .contact-panel,
  .contact-form {
    grid-template-columns: 1fr;
  }
}
/* === Fin sticky nav et formulaire contact === */




/* === First Agency 2026-05-21 : bloc horizontal méthode + équipe === */
.method-showcase {
  padding: 0;
  overflow: hidden;
}

.method-showcase-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6.4;
  object-fit: cover;
  object-position: center 42%;
}

.method-showcase-body {
  padding: 30px;
}

.method-showcase h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 10px 0 14px;
}

.method-showcase-body > p {
  max-width: 980px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.method-step {
  min-height: 158px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(13, 31, 51, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 226, 0.72)),
    #fffaf2;
  box-shadow: 0 18px 38px rgba(12, 30, 49, 0.08);
}

.method-step::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  margin-bottom: 16px;
}

.method-step strong {
  display: block;
  color: var(--navy);
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.method-step p {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .method-showcase-photo {
    aspect-ratio: 16 / 8.5;
  }

  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .method-showcase-body {
    padding: 24px;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }
}
/* === Fin bloc horizontal méthode + équipe === */

/* === First Agency 2026-05-21 : enveloppe animée contact === */
.mail-visual {
  position: relative;
  width: min(100%, 310px);
  height: 118px;
  margin: 0 0 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 50%, rgba(248, 154, 27, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 241, 220, 0.52));
  border: 1px solid rgba(13, 31, 51, 0.08);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(13, 31, 51, 0.12);
}

.mail-track {
  position: absolute;
  inset: 50% 24px auto 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 138, 0, 0.62), transparent);
  transform: translateY(-50%);
}

.mail-track::before,
.mail-track::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  animation: mailDot 2.6s ease-in-out infinite;
}

.mail-track::before { left: 18%; }
.mail-track::after { right: 18%; animation-delay: 0.7s; }

.mail-envelope {
  position: absolute;
  left: 44px;
  top: 34px;
  width: 86px;
  height: 58px;
  border-radius: 14px;
  background: #fffaf2;
  border: 4px solid var(--navy);
  box-shadow: 0 15px 26px rgba(13, 31, 51, 0.2);
  animation: mailFly 3.2s ease-in-out infinite;
}

.mail-envelope::before,
.mail-envelope::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-bottom: 4px solid var(--navy);
  transform-origin: center;
}

.mail-envelope::before {
  transform: skewY(-28deg);
}

.mail-envelope::after {
  transform: skewY(28deg);
}

.mail-envelope span {
  position: absolute;
  right: -36px;
  top: 50%;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: -18px -12px 0 rgba(240, 138, 0, 0.52), -10px 12px 0 rgba(240, 138, 0, 0.42);
  transform: translateY(-50%);
}

@keyframes mailFly {
  0%, 100% { transform: translateX(0) translateY(0) rotate(-2deg); }
  45% { transform: translateX(118px) translateY(-7px) rotate(4deg); }
  70% { transform: translateX(134px) translateY(2px) rotate(1deg); }
}

@keyframes mailDot {
  0%, 100% { opacity: 0.25; transform: translateY(-50%) scale(0.75); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.15); }
}

@media (max-width: 920px) {
  .mail-visual {
    width: 100%;
    max-width: 360px;
  }
}
/* === Fin enveloppe animée contact === */



/* === First Agency 2026-05-21 : bouton retour haut === */
.back-to-top {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 40;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  /* WCAG AA : navy/blanc (>= 11:1) au lieu d'or pale/blanc (1.7:1 = FAIL). */
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--navy, #152a43), #0c1726 62%, #152a43);
  box-shadow: 0 18px 42px rgba(13, 31, 51, 0.32);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.92);
  transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.back-to-top span {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 1.75rem;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-1px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  box-shadow: 0 22px 52px rgba(13, 31, 51, 0.3);
  transform: translateY(-3px) scale(1.03);
}

.back-to-top.is-visible span {
  animation: backTopArrow 1.4s ease-in-out infinite;
}

@keyframes backTopArrow {
  0%, 100% { transform: translateY(1px); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 620px) {
  .back-to-top {
    width: 48px;
    height: 48px;
  }
}
/* === Fin bouton retour haut === */

/* === First Agency 2026-05-21 : ecosysteme, calendrier, langues === */
.desktop-break { display: block; }

.ecosystem-hero-card {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
}

.ecosystem-video-frame {
  overflow: hidden;
  border-radius: 26px;
  background: #0c1726;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 20px 48px rgba(16, 24, 39, 0.14);
}

.ecosystem-video-frame video,
.ecosystem-video-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ecosystem-hero-copy {
  padding: 8px 10px;
}

.ecosystem-hero-copy h3,
.calendar-title h3 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0 0 14px;
}

.open-services-block {
  margin-top: 18px;
}

.open-services-title {
  margin-bottom: 18px;
}

.open-services-list {
  display: grid;
  gap: 20px;
}

.open-service-card {
  grid-template-columns: minmax(320px, 0.92fr) minmax(300px, 1.08fr);
}

.open-service-card.is-reversed {
  grid-template-columns: minmax(300px, 1.08fr) minmax(320px, 0.92fr);
}

.open-service-card.is-reversed .open-service-visual {
  order: 2;
}

.open-service-card.is-reversed .ecosystem-hero-copy {
  order: 1;
}

.open-service-card .button {
  margin-top: 8px;
}
.calendar-block {
  margin-top: 26px;
}

.calendar-title {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.calendar-icon {
  position: relative;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--gold-2), #f08a00);
  box-shadow: 0 18px 36px rgba(240, 138, 0, 0.22);
}

.calendar-icon::before,
.calendar-icon::after {
  content: "";
  position: absolute;
  background: #fff8ef;
}

.calendar-icon::before {
  left: 16px;
  right: 16px;
  top: 18px;
  height: 6px;
  border-radius: 999px;
  box-shadow: 0 14px 0 #fff8ef, 0 28px 0 #fff8ef;
}

.calendar-icon::after {
  left: 18px;
  top: 10px;
  width: 8px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 22px 0 0 #fff8ef;
}

.launch-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.launch-item {
  position: relative;
  min-height: 166px;
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(16, 24, 39, 0.09);
  box-shadow: 0 16px 38px rgba(16, 24, 39, 0.08);
}

.launch-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 7px;
}

.launch-item span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #6b3f08;
  background: rgba(215, 144, 47, 0.14);
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.launch-item.is-live span {
  color: #145c42;
  background: rgba(46, 160, 116, 0.16);
}

.launch-item.is-next span {
  color: #7a4400;
  background: rgba(248, 195, 106, 0.26);
}
.launch-info-link {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #145c42;
  background: rgba(46, 160, 116, 0.16);
  border: 1px solid rgba(46, 160, 116, 0.28);
  font-weight: 950;
  font-style: italic;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 24, 39, 0.08);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.launch-info-link:hover {
  transform: translateY(-2px);
  color: #fff;
  background: #145c42;
}

.launch-item p,
.beta-callout p {
  color: var(--muted);
  line-height: 1.62;
  margin-bottom: 0;
}

.beta-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(21, 42, 67, 0.96), rgba(12, 23, 38, 0.92));
  color: #fff;
  box-shadow: var(--shadow);
}

.beta-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-2);
  font-size: 1.2rem;
}

.beta-callout p {
  color: rgba(255,255,255,0.76);
  margin: 0 0 8px;
}

.footer-legal-info p {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.76);
  line-height: 1.5;
  font-weight: 700;
}

.footer-languages {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-languages h3 {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.76);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 750;
}

.language-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.language-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff8ef;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  font-weight: 950;
}

.language-strip span.is-active {
  color: #111827;
  background: linear-gradient(135deg, var(--gold-2), #fff0c8);
}

.legal-page {
  padding: 72px 0 20px;
}

.legal-content {
  max-width: 980px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.legal-content h2 {
  color: var(--navy);
  margin-top: 30px;
  font-size: 1.55rem;
}

.legal-content p,
.legal-content li {
  color: #526073;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 1.2rem;
}

@media (max-width: 980px) {
  .ecosystem-hero-card,
  .beta-callout {
    grid-template-columns: 1fr;
  }

  .open-service-card.is-reversed .open-service-visual,
  .open-service-card.is-reversed .ecosystem-hero-copy {
    order: initial;
  }

  .launch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .desktop-break { display: none; }

  .launch-list {
    grid-template-columns: 1fr;
  }
}
/* === Fin ecosysteme, calendrier, langues === */



/* === First Agency 2026-05-21 : liens légaux discrets footer === */
.footer-mini-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.footer-mini-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.footer-mini-links a:hover {
  color: var(--gold-2);
}
/* === Fin liens légaux discrets footer === */

/* === First Agency 2026-05-21 : signature légale compacte footer === */
.footer-company-line {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.footer-bottom-legal .footer-mini-links {
  margin-bottom: 6px;
}
/* === Fin signature légale compacte footer === */

/* === First Agency 2026-05-21 : centrage footer legal et langues === */
.footer-languages {
  text-align: center;
}

.footer-languages h3 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.language-strip {
  justify-content: center;
}

.footer-bottom-legal p {
  width: 100%;
  text-align: center;
}

.footer-bottom-legal .footer-mini-links {
  width: 100%;
  justify-content: center;
}
/* === Fin centrage footer legal et langues === */









/* === FIRST AGENCY 2026-05-21 : reseaux footer === */
.footer-socials {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.footer-socials p {
  margin: 0;
  color: rgba(255,255,255,0.74);
  font-weight: 650;
  line-height: 1.55;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.footer-social-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--gold-2);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

/* === FIRST AGENCY 2026-05-21 : saut desktop reseaux footer === */
.footer-social-break {
  display: none;
}

@media (min-width: 900px) {
  .footer-social-break {
    display: block;
  }
}

/* === FIRST AGENCY 2026-05-22 : centrage phrase reseaux footer === */
.footer-socials p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* === Fin centrage phrase reseaux footer === */

