:root {
  --brand-50: #f2f6ff;
  --brand-100: #e6edff;
  --brand-500: #1a52ff;
  --brand-600: #1441d1;
  --brand-700: #0f329e;
  --brand-900: #061544;
  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --green-100: #dcfce7;
  --green-700: #15803d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(to bottom, var(--brand-50), #fff 400px);
}

a { color: var(--brand-600); }

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 96px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.badge {
  display: inline-block;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 999px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 20px 0 12px;
  letter-spacing: -0.02em;
}
.hero .subtitle {
  font-size: 20px;
  color: var(--slate-600);
  margin: 0 0 16px;
}
.hero .description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-600);
}
.benefits {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--slate-900);
}
.benefits .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 1px;
}
.cover-wrap {
  display: flex;
  justify-content: center;
}
.cover-card {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(6, 21, 68, 0.12);
  border: 1px solid var(--slate-200);
  max-width: 340px;
}
.cover-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Sommaire */
.section {
  padding: 56px 0;
}
.section h2 {
  font-size: 26px;
  margin: 0 0 24px;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
}
.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
}
.summary-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Formulaire */
.form-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.form-card h2 { margin-top: 0; }
.form-card p.lead { color: var(--slate-600); margin-bottom: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .form-row.two-cols { grid-template-columns: 1fr 1fr; }
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--slate-900);
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--slate-600);
  margin: 20px 0;
}
.checkbox-row input { margin-top: 3px; }

.honeypot { position: absolute; left: -9999px; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 82, 255, 0.25);
}
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary {
  background: var(--slate-50);
  color: var(--slate-900);
  border: 1px solid var(--slate-300);
}
.btn-block { width: 100%; }

.error {
  background: var(--red-50);
  color: var(--red-600);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-answer {
  padding: 0 20px 16px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
}

/* Commentaires */
.comment {
  border-bottom: 1px solid var(--slate-200);
  padding: 18px 0;
}
.comment:last-child { border-bottom: none; }
.comment-author {
  font-weight: 600;
  font-size: 14px;
}
.comment-date {
  font-size: 12px;
  color: var(--slate-500);
  margin-left: 8px;
}
.comment-message {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate-900);
  white-space: pre-line;
}
.comment-form {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 28px;
}

footer {
  text-align: center;
  padding: 40px 0;
  color: var(--slate-500);
  font-size: 13px;
}

/* Page merci */
.thanks-card {
  max-width: 460px;
  margin: 120px auto;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.thanks-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* Admin */
.admin-body { background: var(--slate-50); }
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-login-form {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 32px;
  width: 320px;
}
.admin-login-form h1 { font-size: 18px; margin-top: 0; }
.admin-login-form input { margin-bottom: 12px; }
.admin-panel { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--slate-200);
}
.admin-table th {
  background: var(--slate-50);
  text-transform: uppercase;
  font-size: 11px;
  color: var(--slate-500);
}
.admin-table .empty { text-align: center; color: var(--slate-500); padding: 32px; }
.admin-table form { display: inline; }
.link-danger {
  background: none;
  border: none;
  color: var(--red-600);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Pages légales */
.legal-page {
  max-width: 720px;
  padding: 80px 24px 60px;
  line-height: 1.7;
}
.legal-page h1 { font-size: 28px; margin-bottom: 24px; }
.legal-page h2 { font-size: 18px; margin-top: 32px; margin-bottom: 8px; }
.legal-page p, .legal-page ul { font-size: 14px; color: var(--slate-600); }
.legal-page a { word-break: break-word; }

/* Footer liens légaux */
.footer-links {
  margin-top: 8px;
}
.footer-links a {
  color: var(--slate-500);
  font-size: 12px;
  text-decoration: none;
  margin: 0 8px;
}
.footer-links a:hover { text-decoration: underline; }

/* Bandeau cookies */
#cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--slate-900);
  color: #fff;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-size: 13px;
  line-height: 1.5;
  z-index: 999;
  display: none;
}
#cookie-banner.visible { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
#cookie-banner a { color: #fff; text-decoration: underline; }
#cookie-banner button {
  background: #fff;
  color: var(--slate-900);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
