/* ALT — Services à domicile · Static build (HTML/CSS/JS)
   Tokens: bleu confiance (--forest) + vert sauge (--sage/--terracotta)
   Typo : Fraunces (titres) + Manrope (corps) */

:root {
  --paper: #f8fafc;
  --background: #f8fafc;
  --ink: #0d1c27;
  --sage: #527c6a;
  --sage-soft: #dcece4;
  --forest: #114b75;
  --terracotta: #376954;
  --primary-foreground: #fafcfd;
  --border: #d8dfe4;
  --radius: 1rem;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html, body { background: var(--background); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--terracotta); color: var(--primary-foreground); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--forest);
  line-height: 1.05;
}
.italic { font-style: italic; }
.text-terracotta { color: var(--terracotta); }
.text-forest { color: var(--forest); }
.text-sage { color: var(--sage); }
.text-ink\/60 { color: color-mix(in oklch, var(--ink) 60%, transparent); }
.text-ink\/70, .muted { color: color-mix(in oklch, var(--ink) 70%, transparent); }
.text-ink\/75 { color: color-mix(in oklch, var(--ink) 75%, transparent); }
.text-ink\/80 { color: color-mix(in oklch, var(--ink) 80%, transparent); }
.text-paper { color: var(--paper); }
.text-paper\/50 { color: color-mix(in oklch, var(--paper) 50%, transparent); }
.text-paper\/75 { color: color-mix(in oklch, var(--paper) 75%, transparent); }

/* Layout */
.container-alt {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sage);
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in oklch, var(--paper) 85%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: none; flex-direction: column; line-height: 1.1; }
.brand-text .b1 { font-family: var(--font-display); font-size: 1.25rem; color: var(--forest); letter-spacing: -0.01em; }
.brand-text .b2 { font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sage); }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: .875rem; color: color-mix(in oklch, var(--ink) 80%, transparent); transition: color .2s; }
.nav-links a:hover { color: var(--forest); text-decoration: underline; }
.nav-links a.active { color: var(--forest); }
.nav-links a.btn-primary {
  color: white;
  text-decoration: none;
}
.nav-links a.btn-primary:hover {
  color: white;
  text-decoration: none;
}
.nav-tel { display: none; font-size: .875rem; color: color-mix(in oklch, var(--ink) 70%, transparent); }
.nav-tel:hover { color: var(--forest); }
.burger { color: var(--forest); display: flex; flex-direction: column; gap: 6px; }
.burger span { display: block; width: 24px; height: 1px; background: currentColor; }
.burger span:last-child { width: 16px; margin-left: auto; }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--paper); }
.mobile-menu.open { display: block; }
.mobile-menu .container-alt { padding-block: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a { color: var(--forest); font-size: 1.125rem; }
.mobile-menu a.btn-primary { color: white; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center; gap: 0.6rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  background: var(--forest); 
  color: white;
  font-weight: 500; font-size: 0.95rem;
  transition: background .25s ease, box-shadow .25s ease;
}
.btn-primary:hover {
  background: color-mix(in oklch, var(--forest) 86%, black);
  box-shadow: 0 8px 22px -12px color-mix(in oklch, var(--forest) 65%, transparent);
}
.btn-primary span { transition: transform .25s ease; color: white }
.btn-primary:hover span { transform: translateX(3px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 0; font-weight: 500;
  border-bottom: 1px solid currentColor;color: var(--forest);
  transition: color .2s ease;
}
.btn-ghost:hover { color: var(--terracotta); }

@media (min-width: 640px) { .brand-text { display: flex; } }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .burger { display: none; }
}
@media (min-width: 1024px) { .nav-tel { display: inline; } }

/* Hero */
.hero { padding: 2.5rem 0 6rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: end; }
.hero-copy { grid-column: 1 / -1; }
.hero-media { grid-column: 1 / -1; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 1.25rem; }
.hero p.lede { margin-top: 2rem; font-size: 1.125rem; max-width: 34rem; color: color-mix(in oklch, var(--ink) 75%, transparent); }
.hero-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.hero-card {
  position: absolute; left: -1.5rem; bottom: -1.5rem;
  display: none; align-items: center; gap: .75rem;
  background: var(--paper); border: 1px solid var(--border); border-radius: .75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.15);
}
.hero-card img { width: 40px; height: 40px; object-fit: contain; }
.hero-card .b { font-family: var(--font-display); font-size: 1.125rem; color: var(--forest); line-height: 1.1; }
@media (min-width: 768px) {
  .hero { padding-top: 4rem; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); }
  .hero-copy { grid-column: span 7; }
  .hero-media { grid-column: 8 / -1; }
  .hero-card { display: flex; }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: color-mix(in oklch, var(--sage-soft) 40%, transparent);
}
.marquee-track {
  display: flex; gap: 4rem; padding: 1.25rem 0;
  white-space: nowrap;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-track > div { display: flex; gap: 4rem; align-items: center; }
.marquee-track .dot { color: var(--terracotta); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Services block on home */
.services-home { padding: 6rem 0; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.services-lead { grid-column: 1 / -1; }
.services-list { grid-column: 1 / -1; }
.services-list a.row {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1.5rem .5rem;
  border-top: 1px solid var(--border);
  border-radius: .5rem;
  transition: background .2s;
}
.services-list li:last-child a.row { border-bottom: 1px solid var(--border); }
.services-list a.row:hover { background: color-mix(in oklch, var(--sage-soft) 30%, transparent); }
.services-list .n { font-family: ui-monospace, monospace; font-size: .75rem; color: var(--sage); width: 2rem; flex: none; }
.services-list .name {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--forest); flex: 1; transition: color .2s;
}
.services-list a.row:hover .name { color: var(--terracotta); }
.services-list .note { display: none; font-size: .875rem; color: color-mix(in oklch, var(--ink) 60%, transparent); }
.services-list .arrow { color: var(--forest); transition: transform .2s; }
.services-list a.row:hover .arrow { transform: translateX(4px); }
@media (min-width: 640px) { .services-list .note { display: block; } }
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(12, 1fr); }
  .services-lead { grid-column: span 4; }
  .services-list { grid-column: span 8; }
  .services-home { padding: 8rem 0; }
}

/* Why block */
.why { background: var(--forest); color: var(--paper); padding: 6rem 0; }
.why h2 { color: var(--paper); font-style: italic; font-size: clamp(1.75rem, 4.5vw, 3.5rem); max-width: 48rem; line-height: 1.05; margin-bottom: 4rem; }
.why h3 { color: var(--paper); font-family: var(--font-display); font-size: 1.875rem; margin-bottom: 1rem; }
.why .eyebrow { color: color-mix(in oklch, var(--sage-soft) 100%, transparent); margin-bottom: 1rem; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.why-grid p { color: color-mix(in oklch, var(--paper) 75%, transparent); }
.why-grid .num { font-family: ui-monospace, monospace; font-size: .75rem; color: color-mix(in oklch, var(--paper) 50%, transparent); margin-bottom: 1rem; }
@media (min-width: 768px) { .why { padding: 8rem 0; } .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* Home CTA */
.home-cta { padding: 6rem 0; }
.home-cta-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end; }
.home-cta .tel-card { border-left: 2px solid var(--terracotta); padding-left: 1.5rem; }
.home-cta .tel-card a { font-family: var(--font-display); font-size: 2.25rem; color: var(--forest); }
.home-cta .tel-card a:hover { color: var(--terracotta); }
@media (min-width: 768px) {
  .home-cta { padding: 8rem 0; }
  .home-cta-grid { grid-template-columns: 2fr 1fr; }
}

/* Service rows (services page) */
.service-row {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: 4rem 0; border-top: 1px solid var(--border);
}
.service-row img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 1.25rem; }
.media-duo { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.media-duo figure { position: relative; margin: 0; }
.service-row .media-duo img { aspect-ratio: 16/10; }
.media-duo figcaption {
  position: absolute; left: .75rem; bottom: .75rem;
  background: color-mix(in oklch, var(--forest) 88%, transparent);
  color: var(--paper);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  padding: .35rem .8rem; border-radius: 999px;
}
.service-row .body { display: flex; flex-direction: column; justify-content: center; }
.service-row h2 { margin-bottom: 1.5rem; }
.service-row .desc { font-size: 1.125rem; color: color-mix(in oklch, var(--ink) 80%, transparent); max-width: 34rem; margin-bottom: 2rem; line-height: 1.6; }
.service-row ul { display: grid; grid-template-columns: 1fr; gap: .25rem 2rem; font-size: .875rem; color: color-mix(in oklch, var(--ink) 70%, transparent); }
.service-row ul li { display: flex; gap: .75rem; padding: .25rem 0; }
.service-row ul li::before { content: ""; display: inline-block; margin-top: .625rem; height: 2px; width: 1rem; background: var(--terracotta); flex: none; }
@media (min-width: 640px) { .service-row ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .service-row { grid-template-columns: 5fr 7fr; gap: 3rem; padding: 4rem 0; }
  .service-row.reverse .media { order: 2; }
}

/* Approche — steps */
.section-pad { padding: 4rem 1rem; }
.pad-lg { padding: 6rem 1rem; }
@media (min-width: 768px) { .pad-lg { padding: 8rem 0; } }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.value { border-top: 2px solid var(--forest); padding-top: 1.5rem; }
.value h2 { font-family: var(--font-display); font-size: 3rem; font-style: italic; color: var(--forest); margin-bottom: 1rem; }
.value .num { font-family: ui-monospace, monospace; font-size: .75rem; color: var(--sage); margin-bottom: .75rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.approach-bg { background: color-mix(in oklch, var(--sage-soft) 60%, transparent); }
.steps { display: grid; grid-template-columns: 1fr; gap: .5rem 4rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid color-mix(in oklch, var(--forest) 20%, transparent); }
.steps .sn { font-family: var(--font-display); font-size: 2.25rem; color: var(--terracotta); font-style: italic; }
.steps h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); margin-bottom: .5rem; }
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.chip {
  padding: .5rem 1rem; border-radius: 999px; font-size: .875rem;
  border: 1px solid var(--border); color: color-mix(in oklch, var(--ink) 75%, transparent);
  cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--forest); }
.chip.active { background: var(--forest); color: var(--primary-foreground); border-color: var(--forest); }
.field { display: block; margin-bottom: 2rem; }
.field label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--sage); display: block; margin-bottom: .75rem; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--border);
  padding: .75rem 0; font: inherit; color: inherit; outline: none; resize: none;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--forest); }
.field textarea::placeholder { color: color-mix(in oklch, var(--ink) 40%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; }
.form-actions .fine { font-size: .75rem; color: color-mix(in oklch, var(--ink) 50%, transparent); }
.form-sent {
  border: 1px solid var(--forest); border-radius: 1.25rem; padding: 2.5rem;
  background: color-mix(in oklch, var(--sage-soft) 40%, transparent);
}
.form-error {
  margin-top: 1rem; font-size: .875rem; color: var(--terracotta);
}

/* Legal / Mentions légales */
.legal { max-width: 46rem; }
.legal h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); margin: 2.75rem 0 .75rem; }
.legal p { color: color-mix(in oklch, var(--ink) 78%, transparent); line-height: 1.7; }
.legal p + p { margin-top: .75rem; }
.legal strong { color: var(--forest); font-weight: 600; }
.legal a { color: var(--forest); border-bottom: 1px solid var(--border); transition: color .2s; }
.legal a:hover { color: var(--terracotta); }
.legal .ph { color: var(--terracotta); font-style: italic; border-bottom: 1px dashed color-mix(in oklch, var(--terracotta) 50%, transparent); }

/* Footer */
.site-footer { margin-top: 8rem; border-top: 1px solid var(--border); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; padding: 4rem 0; }
.footer-grid img { width: 56px; height: 56px; object-fit: contain; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--forest); max-width: 22rem; line-height: 1.2; }
.footer-col p { font-size: .875rem; color: color-mix(in oklch, var(--ink) 70%, transparent); }
.footer-col p + p { margin-top: .75rem; }
.footer-col a:hover { color: var(--forest); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-legal {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.5rem 0; font-size: .75rem;
  border-top: 1px solid var(--border);
  color: color-mix(in oklch, var(--ink) 50%, transparent);
}
.footer-legal a { color: color-mix(in oklch, var(--ink) 65%, transparent); }
.footer-legal a:hover { color: var(--forest); }
@media (min-width: 768px) { .footer-legal { flex-direction: row; justify-content: space-between; } }

/* Utilities */
.mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.pt-6 { padding-top: 1.5rem; } .pb-8 { padding-bottom: 2rem; }
.max-w-md { max-width: 28rem; } .max-w-xl { max-width: 36rem; } .max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; } .max-w-4xl { max-width: 56rem; }
.center { text-align: center; }
.stack-3 > * + * { margin-top: .75rem; }
.stack-6 > * + * { margin-top: 1.5rem; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.leading-relaxed { line-height: 1.65; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
