/* --------- PALETTE ROCKSO (V1) --------- */
:root {
  /* Fond & texte */
  --color-bg: #f6eee4;        /* beige clair global */
  --color-bg-alt: #fdf7f0;    /* beige un peu plus clair pour certaines sections */
  --color-card: #ffffff;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --color-border: #e2d5c6;

  /* Accents Rockso */
  --accent-green: #1f9d6a;
  --accent-orange: #f97316;
  --accent-pink: #ec4899;
  --accent-yellow: #facc15;

  /* Couleur principale = vert Rockso (peut être ajustée) */
  --color-primary: var(--accent-green);
  --color-primary-soft: rgba(31, 157, 106, 0.08);

  --radius-lg: 1rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* --------- RESET SIMPLE --------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

/* --------- BASE --------- */

body {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #f7efe7 0, #f3e7d8 40%, #f0e0cf 100%);
  color: var(--color-text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------- HEADER --------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 247, 239, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 196, 172, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(
    from 180deg,
    var(--accent-green),
    var(--accent-yellow),
    var(--accent-orange),
    var(--accent-pink),
    var(--accent-green)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #111827;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: #4b5563;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transition: width 140ms ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

/* --------- HERO --------- */

.hero {
  background: var(--color-bg-alt);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(216, 196, 172, 0.6);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 2.7vw, 2.6rem);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.2rem;
  color: var(--color-muted);
  max-width: 34rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 157, 106, 0.3);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

/* on donne une petite variété de couleurs aux badges selon leur ordre */
.hero-badges .badge:nth-child(2) {
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.08);
}
.hero-badges .badge:nth-child(3) {
  border-color: rgba(236, 72, 153, 0.3);
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.08);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--color-muted);
  max-width: 32rem;
}

/* --------- BUTTONS --------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 120ms ease-out,
    box-shadow 120ms ease-out,
    background 120ms ease-out,
    border-color 120ms ease-out,
    color 120ms ease-out;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(31, 157, 106, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(31, 157, 106, 0.4);
  text-decoration: none;
}

.btn-ghost {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #374151;
}

.btn-ghost:hover {
  background: #fdf2e9;
  text-decoration: none;
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary-soft);
  text-decoration: none;
}

/* --------- HERO CARD (FAUX ÉCRANS) --------- */

.hero-card {
  background: var(--color-card);
  border-radius: 1.3rem;
  border: 1px solid rgba(216, 196, 172, 0.8);
  padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.hero-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
}

.pill-soft {
  background: #fee2e2;
  color: #b91c1c;
}

/* grille interne : “desktop” + “mobile” */

.hero-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1rem;
}

/* grand écran “desktop” */

.fake-screen {
  border-radius: 0.9rem;
  background: #fdf7f2;
  border: 1px solid #e5d7c7;
  overflow: hidden;
}

.fake-screen-main {
  padding: 0.75rem 0.8rem 0.9rem;
}

.fake-screen-header {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.fake-screen-header .dot:nth-child(1) {
  background: var(--accent-green);
}
.fake-screen-header .dot:nth-child(2) {
  background: var(--accent-orange);
}
.fake-screen-header .dot:nth-child(3) {
  background: var(--accent-pink);
}

.fake-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
}

.fake-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.fake-number {
  font-size: 1.2rem;
  font-weight: 600;
}

.fake-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.fake-chip.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.fake-chart-bar {
  display: flex;
  gap: 0.25rem;
  align-items: flex-end;
  margin-bottom: 0.6rem;
}

.bar {
  flex: 1;
  border-radius: 999px;
  opacity: 0.95;
}

.bar-low {
  height: 18px;
}

.bar-med {
  height: 32px;
}

.bar-high {
  height: 48px;
}

/* on distribue les accents sur les barres */

.fake-chart-bar .bar:nth-child(1) {
  background: var(--accent-green);
}
.fake-chart-bar .bar:nth-child(2) {
  background: var(--accent-yellow);
}
.fake-chart-bar .bar:nth-child(3) {
  background: var(--accent-orange);
}
.fake-chart-bar .bar:nth-child(4) {
  background: var(--accent-pink);
}
.fake-chart-bar .bar:nth-child(5) {
  background: var(--accent-green);
}

.fake-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fake-list-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  background: #ffffff;
  border: 1px solid #eedfce;
}

/* petit écran “mobile” */

.fake-screen-phone {
  padding: 0.7rem;
  border-radius: 0.9rem;
  background: #fffaf4;
  border: 1px solid #eedfce;
}

.fake-phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #111827;
}

.fake-phone-title {
  font-weight: 600;
}

.fake-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-green);
}

.fake-phone-block {
  padding: 0.4rem 0.45rem;
  border-radius: 0.6rem;
  background: #ffffff;
  border: 1px solid #eedfce;
  margin-bottom: 0.3rem;
}

.fake-phone-label {
  font-size: 0.8rem;
  font-weight: 500;
}

.fake-phone-meta {
  font-size: 0.75rem;
  color: #4b5563;
}

.hero-card-note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* --------- SECTIONS --------- */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(216, 196, 172, 0.6);
  border-bottom: 1px solid rgba(216, 196, 172, 0.6);
}

.section-title {
  margin: 0 0 1.8rem;
  font-size: 1.5rem;
}

/* --------- GRID / LAYOUT --------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

/* --------- CARDS --------- */

.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid #ead9c7;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.card-soft {
  background: #fff7ec;
}

/* --------- LISTES / HIGHLIGHT --------- */

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.35rem;
}

.checklist li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.6rem;
  color: var(--accent-green);
}

.highlight-box {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid #ead9c7;
  box-shadow: var(--shadow-soft);
}

.info-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  border: 1px dashed #ead9c7;
}

/* --------- PAGE LEGAL / PRIVACY --------- */

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

.legal h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.legal h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.legal h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.legal p {
  margin: 0.2rem 0 0.6rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.legal ul {
  margin: 0.2rem 0 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.legal li {
  margin-bottom: 0.25rem;
}

.legal-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* --------- FOOTER --------- */

.site-footer {
  border-top: 1px solid rgba(216, 196, 172, 0.7);
  padding: 1.2rem 0 1.4rem;
  background: #f9f3ea;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

/* --------- RESPONSIVE --------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .hero-card-body {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-nav {
    display: none; /* nav simple pour l’instant sur mobile */
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3rem;
  }

  .header-inner {
    padding: 0.7rem 0;
  }
}

/* ---- Formulaires Rockso (champs demo-login) ---- */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2e3a2f; /* texte un peu assombri */
}

.field input,
.field select {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.95rem;
  border-radius: 999px; /* effet "pill" comme les boutons */
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.field input::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

/* petit confort sur le select */
.field select {
  color: #2e3a2f;
  background-color: rgba(255, 255, 255, 0.9);
}

/* état focus cohérent avec le vert Rockso */
.field input:focus,
.field select:focus {
  border-color: #2f7f5f;
  box-shadow: 0 0 0 2px rgba(47, 127, 95, 0.18);
  background-color: #ffffff;
}
/* ==== SECTION SCREENS (PHONES + WATCH) ==== */

.section-screens {
  background: #f3ebdd;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.screens-header {
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.screens-lead {
  margin-top: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.75);
}

.screens-devices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

/* Generic device container */
.device {
  position: relative;
}

/* Phones */

.device-phone .device-frame {
  position: relative;
  width: 220px;
  max-width: 46vw;
  height: 420px;
  border-radius: 32px;
  padding: 10px;
  background: radial-gradient(circle at 10% 0%, #111827, #020617);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(148, 163, 184, 0.15);
}

.device-phone .device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, #0f172a, #020617);
}

.device-phone .device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  padding: 1.1rem 1rem 1rem 1rem;
  background: #f5ecdd;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
}

/* Placement for a slight overlap feeling */

.device-phone-left {
  transform: translateY(12px) translateX(-4px);
}

.device-phone-center {
  transform: translateY(-8px);
}

/* Screen content */

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.screen-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #f0e3cf;
  font-size: 0.78rem;
  font-weight: 600;
  color: #145f3b;
}

.screen-pill.pill-soft {
  background: #e0f2e9;
}

.screen-meta {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.6);
}

/* Card inside screen */

.screen-card {
  border-radius: 20px;
  padding: 0.9rem 0.9rem 0.85rem;
  background: #fbf6ec;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.screen-card.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.metric-label {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.6);
}

.metric-value {
  margin-top: 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

/* Bars under card */

.screen-subtitle {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.7);
}

.screen-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.22rem;
  margin-top: 0.25rem;
}

.screen-bars .bar {
  width: 10px;
  border-radius: 999px;
  background: #d8c7aa;
}

.bar-small {
  height: 14px;
}

.bar-med {
  height: 22px;
}

.bar-high {
  height: 30px;
}

.bar-current {
  height: 34px;
  background: #2f7f5f;
}

/* Badges list on second phone */

.screen-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ede4d5;
  color: #374151;
}

.chip-low {
  background: #e0f2e9;
  color: #166534;
}

.chip-neutral {
  background: #fef3c7;
  color: #92400e;
}

.chip-alt {
  background: #fee2e2;
  color: #b91c1c;
}

.screen-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.8);
}

.screen-list li + li {
  margin-top: 0.25rem;
}

/* Footer CTA in phone */

.screen-footer-cta {
  margin-top: auto;
  padding-top: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.75);
}

.btn-mini {
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
  border-radius: 999px;
}

/* Watch */

.device-watch {
  transform: translateY(6px);
}

.watch-frame {
  width: 180px;
  max-width: 40vw;
  aspect-ratio: 1 / 1.2;
  border-radius: 36px;
  padding: 12px;
  background: radial-gradient(circle at 0% 0%, #020617, #111827);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: #f5ecdd;
  padding: 0.7rem 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.watch-label {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.7);
}

.watch-main {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.watch-km {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.watch-km-unit {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.7);
}

.watch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.watch-pill {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #ede4d5;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

.watch-pill-good {
  background: #e0f2e9;
  color: #166534;
}

/* Simple progress ring suggestion */

.watch-ring {
  margin-top: 0.25rem;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e4d4b8;
  overflow: hidden;
}

.watch-ring-fill {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #2f7f5f);
}

/* Note text under devices */

.screens-note {
  margin: 0 auto;
  margin-top: 0.75rem;
  max-width: 720px;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(15, 23, 42, 0.7);
}

/* Responsive tweaks */

@media (max-width: 900px) {
  .device-phone-left,
  .device-phone-center,
  .device-watch {
    transform: none;
  }

  .screens-devices {
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .device-phone .device-frame {
    height: 380px;
  }

  .watch-frame {
    width: 160px;
  }
}
