/* Base styles */
:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0A223A; /* #02223A COACH ME UP blue */
  --primary-strong: #071a2d;
  --accent: #F19031; /* #F29331 COACH ME UP orange */
  --border: #e2e8f0;
  --ring: rgba(10, 34, 58, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 64px; /* offset for fixed header */
}

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

.container {
  width: min(1024px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: saturate(1.2) blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.75) 70%, rgba(255,255,255,0));
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
}
.logo { font-weight: 700; letter-spacing: 0.2px; display: inline-flex; align-items: center; gap: 0.5rem; }
.logo img { height: 28px; width: auto; display: block; }
.nav-toggle { display: none; }
.nav-menu { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--muted); }
.nav-menu a:hover, .nav-menu a:focus { color: var(--text); }

/* Sections */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: none; }
.section.alt { background: var(--panel); }
.section-hero { padding: 3rem 0 5rem; text-align: center; }
.section-cta { text-align: center; }
.section-cta .actions { margin-top: 0.75rem; }
.section-form { padding: 2rem 0; }
.section-form iframe { max-width: 100%; }
.hidden { display: none !important; }
.hero-logo { width: 50%; height: auto; margin: 0 auto 0.75rem; display: block; }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 0.5rem; }
.hero-media { margin-top: 1.25rem; }
.hero-image { width: min(100%, 960px); height: auto; border-radius: 1rem; border: 1px solid var(--border); box-shadow: 0 4px 24px rgba(2, 34, 58, 0.08); margin: 0 auto; display: block; }
.hero-subtext {
  width: min(880px, 100%);
  margin: 0.75rem auto 0;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
  text-align: left;
}
.hero-subtext p { margin: 0.25rem 0; }
.picto-inline { width: 18px; height: 18px; vertical-align: -3px; margin-right: 0.35rem; display: inline-block; }
.hero-subtext p:first-child {
  margin-top: 0.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--text);
  font-weight: 700;
}
.hero-subtext p:first-child {
  position: relative;
  padding-left: 1.7rem;
}
.hero-subtext p:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-size: 22px 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230A223A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6'/><path d='M10 22h4'/><path d='M2 9a10 10 0 0 1 20 0c0 3-1.5 5.5-4 7H6c-2.5-1.5-4-4-4-7z'/></svg>");
}
.section-media { margin-top: 1rem; }
.section-image { width: min(100%, 880px); height: auto; border-radius: 0.8rem; border: 1px solid var(--border); box-shadow: 0 2px 16px rgba(2, 34, 58, 0.06); display: block; }
/* Testimonials: place picto left of quotes */
#testimonials .container {
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: start;
}
#testimonials #testimonials-title { grid-column: 1 / -1; grid-row: 1; margin: 0 0 0.5rem; text-align: center; justify-self: center; }
#testimonials .section-media { grid-column: 1; grid-row: 2; }
#testimonials .stack { grid-column: 2; grid-row: 2; }

.actions { display: inline-flex; gap: 0.75rem; margin-top: 1.25rem; }
.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--text);
  background: transparent;
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
/* CTA variant */
.btn.primary.cta {
  background: linear-gradient(135deg, var(--accent), #ffb257);
  border-color: transparent;
  color: #0f172a;
  font-weight: 700;
  transform: translateZ(0);
}
.btn.primary.cta:hover,
.btn.primary.cta:focus {
  filter: saturate(1.05) brightness(1.02);
}
.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn:hover, .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Cards/Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
/* About benefits: 4 blocks in a single row on wide screens */
#about .grid { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem;
}
.card-image { width: 100%; height: auto; border-radius: 0.6rem; border: 1px solid var(--border); margin-bottom: 0.75rem; }
/* Small orange pictos for benefit cards */
.card > .picto { width: 40px; height: 40px; }

/* Align pictos to the left of headings inside cards */
.card {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 0.75rem;
  align-items: start;
}
.card > .picto { grid-column: 1; grid-row: 1 / span 2; margin: 0.15rem 0 0; }
.card > h3 { grid-column: 2; margin: 0; }
.card > p { grid-column: 2; margin-top: 0.4rem; }

/* Soft accent background for cards in benefits and features */
#about .card,
#features .card {
  background: rgba(241, 144, 49, 0.08);
  border-color: rgba(241, 144, 49, 0.25);
}

#about .card-alt,
#features .card-alt{
  background: rgba(52, 241, 49, 0.08);
  border-color: rgba(49, 241, 100, 0.506);
}

/* Stack */
.stack { display: grid; gap: 1rem; margin-top: 1rem; }
blockquote { margin: 0; padding: 1rem; border-left: 3px solid var(--primary); background: #f8fafc; }
cite { color: var(--muted); font-style: normal; }

/* Form */
.contact-form { display: grid; gap: 1rem; margin-top: 0.5rem; }
.field { display: grid; gap: 0.4rem; }
label { color: var(--muted); }
input, textarea {
  padding: 0.7rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.form-note { margin-top: 0.25rem; font-size: 0.95rem; }
.form-note.error { color: #b91c1c; }
.form-note.success { color: #166534; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); }

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

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.35rem 0.6rem; }
  .nav-menu { display: none; position: absolute; right: 4%; top: 54px; background: var(--panel); border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.5rem; }
  .nav-menu.open { display: grid; gap: 0.25rem; }
  .grid { grid-template-columns: 1fr; }
  #about .grid { grid-template-columns: 1fr; }
  .section-hero { padding: 2.5rem 0 3.5rem; }
  /* Stronger CTA on mobile */
  .section-cta .btn.primary { padding: 1rem 1.35rem; font-size: 1.08rem; border-radius: 0.7rem; box-shadow: 0 10px 28px rgba(241, 144, 49, 0.4); }
}


