/*
 * Feuille de style unique du site vitrine coolcare.fr.
 *
 * Couleurs reprises de la charte de l'application (table `company_info`) :
 * primaire #1252A6, secondaire #14488C, accent #04BFBF.
 *
 * Aucune police externe n'est chargee : la pile ci-dessous utilise les
 * polices deja presentes sur la machine du visiteur. C'est plus rapide, et
 * cela evite d'envoyer l'adresse IP des visiteurs a un service tiers (Google
 * Fonts), ce qui demanderait une mention supplementaire cote RGPD.
 */

:root {
  --primary: #1252a6;
  --primary-dark: #14488c;
  --accent: #04bfbf;
  --accent-dark: #039a9a;
  --text: #0f172a;
  --text-muted: #52627a;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f4f8fc;
  --radius: 12px;
  --wrap: 1120px;
}

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

body,
h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

body {
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
}

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

/* Lien d'evitement : visible uniquement au clavier. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------------- En-tete */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand img {
  width: 190px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.spaces {
  display: flex;
  gap: 10px;
}

/* ---------------------------------------------------------------- Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
}

.btn-primary[disabled] {
  background: #94a3b8;
  cursor: progress;
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--surface-alt);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text-muted);
  background: var(--surface);
  padding: 8px 14px;
  font-size: 14px;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

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

.hero {
  background: linear-gradient(160deg, #f4f8fc 0%, #e8f1fb 55%, #e2f6f6 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding-top: 72px;
  padding-bottom: 72px;
  max-width: 780px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
}

.lede {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* --------------------------------------------------------------- Sections */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: clamp(23px, 3vw, 30px);
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

.section h2 {
  margin-bottom: 32px;
}

/* ------------------------------------------------------------ Prestations */

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #e8f6f6;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.icon {
  width: 24px;
  height: 24px;
}

.card h3,
.step h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
}

.card p,
.step p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- Approche */

.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.step {
  position: relative;
  padding-left: 52px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------- Contact */

.contact-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.coords {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.coords li {
  display: grid;
  gap: 2px;
}

.coord-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

.coords a {
  text-decoration: none;
  font-weight: 600;
}

.coords a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 10px 30px -22px rgba(15, 23, 42, 0.5);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.req {
  color: var(--accent-dark);
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}

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

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #dc2626;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #b91c1c;
}

/* Piege a robots : hors ecran plutot que display:none, que certains
   automates savent detecter pour ignorer le champ. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status.is-ok {
  color: #047857;
}

.form-status.is-error {
  color: #b91c1c;
}

.form-legal {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.site-footer {
  background: var(--primary-dark);
  color: #dbeafe;
  padding: 30px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.site-footer a:hover {
  border-bottom-color: #fff;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ------------------------------------------------------- Mentions legales */

.legal-page {
  padding: 56px 0 72px;
}

.legal-page h1 {
  margin-bottom: 28px;
}

.legal-block {
  max-width: 760px;
  margin-bottom: 30px;
}

.legal-block h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

.legal-block p,
.legal-block li {
  color: var(--text-muted);
  font-size: 15px;
}

.legal-block ul {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.legal-block li::before {
  content: "— ";
  color: var(--accent-dark);
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 820px) {
  .header-inner {
    gap: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .spaces {
    margin-left: auto;
  }

  .hero-inner,
  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
