/* ==========================================================
   6840 En Forme — Landing page Kamen
   Palette placeholder (bleu marine / cyan) — à affiner dans
   Claude Design avec l'identité hexagonale du logo.
   ========================================================== */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --cyan: #2ec4d6;
  --cyan-dark: #1a9ead;
  --ink: #1a1f2b;
  --grey: #5c6470;
  --grey-light: #f2f4f6;
  --white: #ffffff;
  --success: #1f9d55;
  --error: #c0392b;
  --radius: 10px;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background: var(--white);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2 {
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.4rem;
  color: var(--navy);
}

p {
  margin: 0 0 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 14px 24px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
}

.btn:active {
  opacity: 0.85;
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy-dark);
  font-size: 1.05rem;
  width: 100%;
}

.btn-small {
  background: var(--white);
  color: var(--navy);
  padding: 8px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 48px 0 40px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
}

.hero-subtitle {
  color: #cfe4ea;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero .btn-primary {
  width: auto;
  padding: 16px 32px;
}

/* ---------- Generic sections ---------- */

.section {
  padding: 40px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 24px;
}

.section-problem {
  background: var(--grey-light);
}

.section-reframe p {
  font-size: 1.05rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Lists ---------- */

.check-list,
.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li,
.offer-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid #e2e6ea;
  font-size: 1rem;
}

.check-list li:last-child,
.offer-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  color: var(--cyan-dark);
}

.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ---------- Social proof ---------- */

.testimonial-grid {
  display: grid;
  gap: 16px;
}

.testimonial-card {
  background: var(--grey-light);
  border: 1px dashed #c6ccd3;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--grey);
  font-style: italic;
}

/* ---------- Form section ---------- */

.section-form {
  background: var(--navy);
  color: var(--white);
}

.section-form h2 {
  color: var(--white);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

#lead-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--ink);
}

.form-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c6ccd3;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}

.form-group input:focus,
.form-group select:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.form-group input:invalid.touched,
.form-group select:invalid.touched {
  border-color: var(--error);
}

.form-group-consent {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 14px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.btn-submit {
  margin-top: 8px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-feedback {
  margin-top: 14px;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.2em;
}

.form-feedback.success {
  color: var(--success);
  font-weight: 600;
}

.form-feedback.error {
  color: var(--error);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #9fb0c3;
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

.site-footer a {
  color: #cfe4ea;
}

.footer-credit {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #6b7d92;
}

/* ---------- Desktop widening ---------- */

@media (min-width: 900px) {
  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

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