/* ============================================================
   Ortho Primum — Page vitrine (landing.html)
   Styles propres à cette page uniquement. Les tokens de base
   (couleurs, polices, boutons, badges, radius) viennent tous
   d'ortho.css et ne sont jamais redéfinis ici : les quelques
   variables ajoutées ci-dessous portent des noms neufs et sont
   scopées à .op-vitrine pour ne rien changer au reste du site.
   ============================================================ */

.op-vitrine {
  /* Accents propres à la vitrine, additifs (aucun token existant touché) */
  --vit-line: rgba(24,95,165,0.15);
  --vit-surface-alt: var(--surface);
  --vit-gradient: linear-gradient(90deg, var(--blue) 0%, var(--green-dark) 100%);
  overflow-x: hidden;
}

.op-vitrine [data-reveal] { opacity: 0; }
.op-vitrine [data-reveal].anim-fade-up { opacity: 0; } /* l'animation elle-même amène à 1 */
@media (prefers-reduced-motion: reduce) {
  .op-vitrine [data-reveal] { animation: none !important; opacity: 1 !important; transform: none !important; }
  .vit-scroll-cue { animation: none !important; }
}

/* ── HEADER FLOTTANT ── */
.vit-flash-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  padding: 12px 40px; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--error-bg); border-bottom: 1px solid var(--error-border); color: var(--error-text);
}
.vit-flash-bar button { background: none; border: none; cursor: pointer; font-size: 18px; color: inherit; line-height: 1; padding: 0 4px; }

.vit-top-login {
  position: fixed; top: 16px; right: 20px; z-index: 100;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; color: var(--ink);
  text-decoration: none; transition: border-color 0.18s, background 0.18s;
}
.vit-top-login:hover { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.vit-top-login svg { width: 13px; height: 13px; }

/* ── STRUCTURE GÉNÉRALE ── */
.vit-section { padding: 88px 24px; }
.vit-section.vit-alt { background: var(--vit-surface-alt); }
.vit-wrap { max-width: 1080px; margin: 0 auto; }
.vit-wrap-narrow { max-width: 680px; margin: 0 auto; }

.vit-eyebrow-title {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2;
  color: var(--ink); text-align: center; margin: 0 auto 16px;
  max-width: 620px;
}
.vit-intro {
  text-align: center; color: var(--ink-soft); font-size: 1.05rem;
  line-height: 1.75; max-width: 620px; margin: 0 auto 56px;
}

/* ── HERO ── */
.vit-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 84px 24px 72px;
  background: radial-gradient(ellipse 120% 65% at 50% 0%, rgba(55,138,221,0.18) 0%, transparent 70%), var(--white);
  position: relative; overflow: hidden;
}
.vit-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(24,95,165,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,95,165,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 92%);
}
.vit-hero-logo { width: 280px; margin: 0 auto 24px; position: relative; }
.vit-hero h1 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.18;
  color: var(--ink); max-width: 780px; margin: 0 auto 18px;
  position: relative;
}
.vit-hero-tagline {
  position: relative;
  font-family: 'DM Serif Display', serif; font-style: italic;
  font-size: 1.15rem; color: var(--green-dark); margin: 0 auto 14px;
}
.vit-hero-sub {
  font-size: 1.15rem; color: var(--ink-soft); max-width: 620px;
  margin: 0 auto 28px; font-weight: 300; line-height: 1.6;
  position: relative;
}
.vit-hero-roles {
  position: relative;
  font-size: 0.8rem; color: var(--ink-muted); letter-spacing: 0.02em;
  margin: 0 auto 22px;
}
.vit-hero-anchor {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-size: 14px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.18s;
}
.vit-hero-anchor:hover { border-color: var(--blue); }
.vit-hero-anchor svg { width: 13px; height: 13px; transition: transform 0.18s; }
.vit-hero-anchor:hover svg { transform: translateY(2px); }

/* Repère de défilement, discret, ancré en bas du hero (indépendant du lien
   "Nous contacter" qui cible la section contact, pas "il y a du contenu
   dessous") — utile sur grand écran où le hero peut remplir tout le viewport. */
.vit-scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 22px; height: 22px; color: var(--ink-muted);
  opacity: 0.55; pointer-events: none;
  animation: vitScrollCue 1.8s ease-in-out infinite;
}
.vit-scroll-cue svg { width: 100%; height: 100%; }
@keyframes vitScrollCue {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.9; }
}

/* ── ICÔNES ── */
.vit-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 16px;
}
.vit-icon svg { width: 22px; height: 22px; }
.vit-icon-warn  { background: var(--error-bg);   color: var(--error-text); }
.vit-icon-blue  { background: var(--blue-light); color: var(--blue); }
.vit-icon-green { background: #E9F7F4;           color: var(--green-dark); }

/* ── PHOTO (composant réutilisable, sections 2/4/6) ── */
.vit-photo {
  position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--vit-surface-alt); border: 1px solid var(--border);
}
.vit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vit-photo-placeholder {
  display: flex;
  position: absolute; inset: 0; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; color: var(--ink-muted); text-align: center; padding: 20px;
  background: linear-gradient(135deg, var(--surface) 0%, #eef2fa 100%);
}
.vit-photo.vit-photo-has-image .vit-photo-placeholder { display: none; }
.vit-photo-placeholder svg { width: 30px; height: 30px; opacity: 0.5; }
.vit-photo-placeholder span { font-size: 0.78rem; max-width: 220px; line-height: 1.5; }
.vit-photo-banner { aspect-ratio: 21 / 9; }
.vit-photo-banner img { object-position: center 60%; }
@media (max-width: 600px) { .vit-photo-banner { aspect-ratio: 4 / 3; } }

/* ── SECTION 2 : LE PROBLÈME (liste éditoriale, pas des cartes) ── */
.vit-problem-layout {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: stretch;
}
.vit-problem-layout .vit-photo { aspect-ratio: auto; height: 100%; min-height: 360px; }
@media (max-width: 900px) {
  .vit-problem-layout { grid-template-columns: 1fr; }
  .vit-problem-layout .vit-photo { aspect-ratio: 3 / 2; min-height: 0; }
}
.vit-issues {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--vit-line); border: 1px solid var(--vit-line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.vit-issue { background: var(--white); padding: 32px; }
.vit-issue h3 {
  font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 8px;
}
.vit-issue p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.65; }

/* ── SECTION 3 : NOS PROMESSES (cartes) ── */
.vit-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vit-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.vit-card h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.vit-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.65; }

/* ── SECTION 4 : COMMENT ÇA MARCHE (séquence, seul endroit où l'on numérote) ── */
.vit-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative; counter-reset: vit-step;
}
.vit-steps::before {
  content: ''; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 2px;
  background: var(--vit-gradient); opacity: 0.35;
}
.vit-step { position: relative; padding: 0 20px; text-align: center; }
.vit-step-num {
  counter-increment: vit-step;
  width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  background: var(--vit-gradient); color: var(--white);
}
.vit-step-num svg { width: 24px; height: 24px; }
.vit-step h3 { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.vit-step p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; }

/* ── SECTION 5 : CE QUE ÇA CHANGE ── */
.vit-compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-grille); }
.vit-compare th, .vit-compare td { padding: 18px 24px; text-align: left; font-size: 0.94rem; border-bottom: 1px solid var(--border-grille); }
.vit-compare th { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--ink-muted); text-transform: none; }
.vit-compare tbody tr:last-child td { border-bottom: none; }
.vit-compare .vit-col-label { color: var(--ink); font-weight: 500; width: 22%; }
.vit-compare .vit-col-before { color: var(--ink-muted); }
.vit-compare .vit-col-after { color: var(--ink); font-weight: 500; }
.vit-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 9px; flex-shrink: 0; }
.vit-dot-before { background: #d9a3a3; }
.vit-dot-after { background: var(--green-light); }
.vit-tag-soon {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: var(--radius-pill);
  background: var(--blue-light); color: var(--blue); font-size: 0.68rem; font-weight: 600;
  vertical-align: middle; white-space: nowrap;
}
.vit-cell { display: flex; align-items: baseline; }

.vit-compare-cards { display: none; }
.vit-compare-card {
  background: var(--white); border: 1px solid var(--border-grille); border-radius: var(--radius-md);
  padding: 18px 20px; margin-bottom: 12px;
}
.vit-compare-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.vit-compare-card .vit-cell { margin-bottom: 6px; font-size: 0.9rem; }
.vit-compare-card .vit-compare-tag { font-size: 0.72rem; color: var(--ink-muted); width: 74px; flex-shrink: 0; }

/* ── SECTION 6 : MAIS AUSSI (ton léger) ── */
.vit-extras-layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: stretch;
}
.vit-extras-layout .vit-photo { aspect-ratio: auto; height: 100%; min-height: 320px; }
@media (max-width: 900px) {
  .vit-extras-layout { grid-template-columns: 1fr; }
  .vit-extras-layout .vit-photo { aspect-ratio: 3 / 2; min-height: 0; }
}
.vit-extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.vit-extra { text-align: left; }
.vit-extra .vit-icon { width: 36px; height: 36px; margin-bottom: 12px; }
.vit-extra .vit-icon svg { width: 18px; height: 18px; }
.vit-extra h3 { font-size: 0.92rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.vit-extra p { color: var(--ink-soft); font-size: 0.87rem; line-height: 1.6; }

/* ── SECTION 7 : APERÇU ── */
.vit-preview-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(24,95,165,0.12);
  background: var(--white);
}
.vit-preview-chrome {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: var(--vit-surface-alt); border-bottom: 1px solid var(--border);
}
.vit-preview-chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.vit-preview-body { position: relative; aspect-ratio: 1912 / 913; background: var(--vit-surface-alt); }
.vit-preview-body img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Repli illustré (grille de planning stylisée), affiché seulement si la capture réelle échoue à charger */
.vit-preview-mock {
  position: absolute; inset: 0; display: none;
  grid-template-columns: 90px repeat(6, 1fr); grid-auto-rows: 1fr;
  gap: 1px; padding: 20px; background: var(--vit-surface-alt);
}
.vit-preview-body.vit-preview-fallback { aspect-ratio: 16 / 9; }
.vit-preview-body.vit-preview-fallback .vit-preview-mock { display: grid; }
.vit-preview-mock .vit-mock-row-label {
  background: transparent; display: flex; align-items: center;
  font-size: 0.68rem; color: var(--ink-muted); font-weight: 500;
}
.vit-preview-mock .vit-mock-cell { border-radius: 4px; background: var(--white); border: 1px solid var(--border-grille); }
.vit-preview-mock .vit-mock-cell.vit-fill-blue  { background: var(--blue-light); border-color: rgba(24,95,165,0.18); }
.vit-preview-mock .vit-mock-cell.vit-fill-green { background: #E9F7F4; border-color: rgba(41,143,129,0.18); }

/* ── SECTION 8 : CONTACT ── */
.vit-contact { text-align: center; }
.vit-contact-mail {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: var(--blue);
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.18s;
}
.vit-contact-mail:hover { border-color: var(--blue); }

/* ── FOOTER ── */
.vit-footer { border-top: 1px solid var(--border); padding: 20px 24px; background: var(--white); }
.vit-footer-inner {
  max-width: 1080px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.vit-footer-copy { font-size: 14px; color: var(--ink-muted); }
.vit-footer-sinagra { display: flex; align-items: center; gap: 12px; justify-content: center; }
.vit-footer-sinagra span { font-size: 14px; color: var(--ink-muted); }
.vit-footer-sinagra img { height: 38px; display: block; }
.vit-footer-inner > :last-child { display: flex; justify-content: flex-end; }
.vit-footer-link { font-size: 13px; color: var(--ink-muted); text-decoration: none; }
.vit-footer-link:hover { color: var(--blue); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .vit-cards, .vit-extras { grid-template-columns: repeat(2, 1fr); }
  .vit-issues { grid-template-columns: 1fr; }
  .vit-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .vit-steps::before { display: none; }
}
@media (max-width: 600px) {
  .vit-section { padding: 56px 20px; }
  .vit-hero { padding: 48px 20px 40px; }
  .vit-scroll-cue { display: none; }
  .vit-flash-bar, .vit-top-login { padding: 10px 16px; }
  .vit-top-login { top: 10px; right: 12px; }
  .vit-cards, .vit-extras { grid-template-columns: 1fr; }
  .vit-compare { display: none; }
  .vit-compare-cards { display: block; }
  .vit-footer-inner { grid-template-columns: 1fr; text-align: center; }
  .vit-footer-inner > :last-child { justify-content: center; }
  .vit-preview-mock { grid-template-columns: repeat(4, 1fr); }
  .vit-preview-mock .vit-mock-row-label { display: none; }
}
