/* ==========================================================================
   MailDone Studio — Coming soon
   Identité alignée sur maildone.fr : palette cyan brand + slate,
   surlignage cyan clair sous les mots-clés, halos discrets,
   trame de points façon grille email HTML, cartes éditoriales.
   ========================================================================== */

:root {
  /* Brand cyan (Tailwind cyan, repris tel quel sur maildone.fr) */
  --brand-50:  #ecfeff;
  --brand-100: #cffafe;
  --brand-200: #a5f3fc;
  --brand-300: #67e8f9;
  --brand-500: #06b6d4;
  --brand-600: #0891b2;
  --brand-700: #0e7490;
  --brand-800: #155e75;

  /* Slate */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;

  /* Sémantique */
  --c-bg:      #ffffff;
  --c-ink:     var(--slate-900);
  --c-muted:   var(--slate-600);
  --c-rule:    var(--slate-200);
  --c-card:    #ffffff;
  --c-soft:    var(--slate-50);

  --c-success-bg:   #ecfdf5;
  --c-success-fg:   #047857;
  --c-success-line: #a7f3d0;
  --c-error-bg:     #fef2f2;
  --c-error-fg:     #b91c1c;
  --c-error-line:   #fecaca;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;

  /* Pattern de points en SVG inline (équivalent du décor du hero maildone.fr) */
  --dots: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><circle cx='1.25' cy='1.25' r='1.25' fill='%2394a3b8' fill-opacity='0.20'/></svg>");
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--c-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: var(--slate-100);
  color: var(--brand-700);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

::selection { background: var(--brand-200); color: var(--slate-900); }

/* --------------------------------------------------------------------------
   Eyebrow + surlignage (signature visuelle MailDone)
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate-500);
}
.eyebrow-rule {
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--brand-500);
}

.hl-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hl-text {
  position: relative;
  z-index: 2;
}
.hl-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: rgba(165, 243, 252, 0.7); /* brand-200 / 70 */
  z-index: 1;
  border-radius: 1px;
  pointer-events: none;
}
@media (min-width: 768px) {
  .hl-bar {
    bottom: 0.12em;
    height: 0.22em;
  }
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--slate-900);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-700);
  outline: none;
}

.btn-arrow {
  transition: transform 0.2s ease;
}
.btn-primary:hover .btn-arrow {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.top-nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.5rem 0;
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--slate-700);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.nav-logo-icon {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
}
.nav-logo-text { white-space: nowrap; }
.nav-logo-mail { font-weight: 500; }
.nav-logo-done { font-weight: 800; }
.nav-logo-studio {
  margin-left: 0.4rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--slate-300);
  font-weight: 500;
  color: var(--slate-500);
  font-size: 0.875rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.45);
  animation: nav-pulse 2.6s ease-in-out infinite;
}
@keyframes nav-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
}

.nav-contact {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: color 0.2s ease;
}
.nav-contact:hover { color: var(--brand-700); }

@media (max-width: 640px) {
  .nav-logo-studio { display: none; }
  .nav-badge { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 6rem;
  background: linear-gradient(to bottom, #ffffff 0%, var(--slate-50) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}
.hero-halo-1 {
  top: -10rem;
  right: -10rem;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(closest-side, rgba(165, 243, 252, 0.55), rgba(207, 250, 254, 0.35), transparent 70%);
}
.hero-halo-2 {
  top: 4rem;
  left: -8rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(closest-side, rgba(207, 250, 254, 0.45), rgba(236, 254, 255, 0.30), transparent 70%);
}
.hero-halo-3 {
  bottom: -5rem;
  right: 33%;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(closest-side, rgba(207, 250, 254, 0.30), transparent 70%);
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: var(--dots);
  background-repeat: repeat;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
  }
}

.hero-text-zone { max-width: 36rem; }

.hero-title {
  margin-top: 1.25rem;
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--c-muted);
}
@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.2rem; }
}

.hero-cta-group {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.cta-note {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.hero-topics {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate-500);
}
.hero-topics li[aria-hidden] { color: var(--slate-300); }

/* Mockup d'audit (composé pour faire écho aux maquettes du hero maildone.fr) */
.hero-visual-zone {
  position: relative;
}
.hero-visual-zone::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.10), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.mockup-frame {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 32px 60px -28px rgba(15, 23, 42, 0.18),
    0 8px 24px -16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}
.mac-dots { display: flex; gap: 6px; }
.mac-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-300);
}
.mockup-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding-right: 2.5rem;
}

.mockup-content { padding: 1.5rem; }

.m-score-area {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
}
.m-circle {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.circular-chart {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}
.circle-bg {
  fill: none;
  stroke: var(--slate-200);
  stroke-width: 3.4;
}
.circle {
  fill: none;
  stroke: var(--brand-500);
  stroke-width: 3.4;
  stroke-linecap: round;
}
.m-score-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}
.m-percent {
  font-size: 0.85rem;
  margin-left: 0.1rem;
  font-weight: 700;
  color: var(--slate-500);
}

.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.m-badge-success {
  background: var(--c-success-bg);
  color: var(--c-success-fg);
  border: 1px solid var(--c-success-line);
}
.m-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-success-fg);
}
.m-score-detail {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.m-report-lines {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.m-line-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
}
.m-line-error {
  background: var(--c-error-bg);
  border-color: var(--c-error-line);
}
.m-status {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.m-status-c  { background: var(--c-success-bg); color: var(--c-success-fg); border: 1px solid var(--c-success-line); }
.m-status-nc { background: var(--c-error-bg);   color: var(--c-error-fg);   border: 1px solid var(--c-error-line); }
.m-line-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-700);
}

/* --------------------------------------------------------------------------
   Conviction
   -------------------------------------------------------------------------- */
.conviction {
  padding: 5rem 0;
  border-top: 1px solid var(--slate-200);
  background: #ffffff;
}
.conviction-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .conviction-container {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: end;
  }
}
.conviction-left h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.lead-paragraph {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--slate-900);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.secondary-paragraph {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-muted);
}
.secondary-paragraph strong {
  color: var(--slate-900);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Produit
   -------------------------------------------------------------------------- */
.product {
  padding: 5rem 0;
  background: linear-gradient(to bottom, var(--slate-50), #ffffff);
  border-top: 1px solid var(--slate-200);
}
.product-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.product-header { max-width: 36rem; margin-bottom: 3rem; }
.product-header h2 {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .p-card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.p-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 0.2s ease, background-color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}
.p-card:hover {
  border-color: var(--brand-300);
  background: #ffffff;
  box-shadow: 0 14px 30px -22px rgba(6, 182, 212, 0.35);
}

.p-card-content { max-width: 32rem; }
.p-meta {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--brand-700);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.875rem;
}
.p-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
}
.p-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--c-muted);
}

.p-card-visual {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.abstract-ui-line {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.10);
}
.ui-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.ui-arrow {
  font-size: 0.85rem;
  color: var(--slate-400);
}
.ui-ratio {
  font-weight: 800;
  color: var(--c-success-fg);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Expertise
   -------------------------------------------------------------------------- */
.expertise {
  padding: 6rem 0;
  border-top: 1px solid var(--slate-200);
  background: #ffffff;
}
.expertise-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.expertise-header { max-width: 38rem; margin-bottom: 3rem; }
.expertise-header h2 {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}
.expertise-lede {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-muted);
}

.e-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .e-stats { grid-template-columns: repeat(3, 1fr); }
}
.e-stat {
  border-left: 1px solid var(--brand-200);
  padding-left: 1.25rem;
}
.e-stat dt {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.e-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  line-height: 1;
}
.e-plus {
  color: var(--brand-600);
  font-size: 1.6rem;
  margin-left: 0.05rem;
}
.e-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
}
.e-stat dd {
  margin: 0.625rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: 2.5rem 0;
}
.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-700);
  font-size: 1rem;
}
.footer-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
}
.footer-logo-mail   { font-weight: 500; }
.footer-logo-done   { font-weight: 800; }
.footer-logo-studio {
  margin-left: 0.35rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--slate-300);
  font-weight: 500;
  color: var(--slate-500);
  font-size: 0.85rem;
}
.footer-mission {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}
.footer-right a {
  color: var(--slate-700);
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-right a:hover { color: var(--brand-700); }
.footer-separator { color: var(--slate-300); }
.footer-mention { color: var(--slate-500); }

/* --------------------------------------------------------------------------
   Préférences de mouvement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .nav-badge-dot { animation: none !important; }
}
