/* Alarme Finistère — mobile-first, palette sécurité bleu foncé / blanc */

:root {
  --color-bg: #0f1f33;
  --color-bg-soft: #152a45;
  --color-surface: #ffffff;
  --color-text: #1a2b3c;
  --color-text-muted: #5a6b7d;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e2e8f0;
  --color-success: #059669;
  --color-error: #dc2626;
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(15, 31, 51, 0.12);
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  color: var(--color-surface);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-surface);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-surface);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
  color: var(--color-surface);
  padding: 3rem 0 3.5rem;
}

.hero-inner {
  max-width: 40rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  opacity: 0.95;
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  opacity: 0.92;
  line-height: 1.65;
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-surface);
}

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

.btn:active {
  transform: translateY(1px);
}

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

/* Sections */
.section {
  padding: 3rem 0;
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  color: var(--color-bg);
  text-align: center;
}

.why {
  background: #f8fafc;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--color-bg);
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.coverage {
  background: var(--color-surface);
}

.coverage-lead {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  color: var(--color-text-muted);
}

.city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin-inline: auto;
}

.city-list li {
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  color: var(--color-bg-soft);
}

/* Contact */
.contact {
  background: #f8fafc;
}

.contact-intro {
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
}

.contact-form {
  max-width: 36rem;
  margin: 0 auto;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.required {
  color: var(--color-error);
}

.optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.field input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.field input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.field input.invalid {
  border-color: var(--color-error);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-radios {
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
}

.field-radios legend {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0;
}

.radio-group {
  display: grid;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.radio-option:hover {
  border-color: #cbd5e1;
}

.radio-option:has(input:checked) {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.radio-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.radio-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.4;
}

.radio-label strong {
  color: var(--color-bg);
  font-size: 0.9375rem;
}

.radio-label small {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.form-disclaimer {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-message {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.form-message.success {
  background: #ecfdf5;
  color: var(--color-success);
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fef2f2;
  color: var(--color-error);
  border: 1px solid #fecaca;
}

/* Footer */
.site-footer {
  background: var(--color-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  color: var(--color-surface);
}

.site-footer a:hover {
  color: #93c5fd;
}

/* Legal page */
.legal-page {
  padding: 2rem 0 3rem;
}

.legal-page h1 {
  font-size: 1.75rem;
  color: var(--color-bg);
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-bg-soft);
  text-align: left;
}

.legal-page p,
.legal-page ul {
  color: var(--color-text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Tablet+ */
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .city-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}
