/* =====================================
   GARAGE CASSIOPÉE — Démo Agence IA Web
   Professionnel · Local · Responsive
===================================== */

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

html {
  scroll-behavior: smooth;
}

:root {
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fff7ed;
  --dark: #1c1917;
  --dark-soft: #292524;
  --anthracite: #44403c;
  --bg: #fafaf9;
  --surface: #ffffff;
  --border: #e7e5e4;
  --text: #1c1917;
  --text-body: #44403c;
  --text-muted: #78716c;
  --radius: 12px;
  --shadow: 0 10px 36px rgba(28, 25, 23, 0.08);
  --container: 1120px;
  --transition: 0.22s ease;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10000;
}
.skip-link:focus {
  top: 16px;
}

.section-inner,
.nav-inner,
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

section {
  padding: clamp(48px, 7vw, 88px) 0;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

p {
  margin-bottom: 12px;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head .lead {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: var(--dark-soft);
}
.btn-outline {
  background: var(--surface);
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--anthracite);
}
.btn-full {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.logo span {
  color: var(--accent);
}
.menu {
  display: none;
  gap: 4px;
}
.menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
}
.menu a:hover,
.menu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.header-cta {
  display: none;
  gap: 10px;
}
.header-cta .btn {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.88rem;
}
.header-cta .btn-outline {
  color: var(--dark);
}
.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dark);
}
.menu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }
  .menu {
    display: flex;
    flex-direction: row;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  .header-cta {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-kicker {
  margin: 10px 0 0;
  max-width: 36ch;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 25, 23, 0.35) 0%,
    rgba(28, 25, 23, 0.72) 55%,
    rgba(28, 25, 23, 0.9) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 20px 56px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
}
.hero-lead {
  margin: 14px 0 28px;
  max-width: 40ch;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.benefits {
  margin-top: -28px;
  position: relative;
  z-index: 2;
  padding-bottom: 8px;
}
.benefits-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.benefit-card strong {
  display: block;
  color: var(--dark);
  margin-bottom: 4px;
}
.benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}

@media (min-width: 700px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards / grids */
.cards-3 {
  display: grid;
  gap: 18px;
}
.cards-2 {
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-2 {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

.service-card,
.advice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover,
.advice-card:hover {
  border-color: #d6d3d1;
  box-shadow: var(--shadow);
}
.service-card p,
.advice-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.media-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.media-frame picture {
  display: block;
}
.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
}
.page-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-hero .breadcrumbs a:hover {
  color: #fff;
}
.breadcrumbs [aria-current="page"] {
  color: #fff;
  font-weight: 600;
}
.breadcrumbs li:not(:last-child)::after {
  content: "→";
  margin-left: 10px;
  opacity: 0.55;
}

.prose {
  max-width: 68ch;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.prose p {
  color: var(--text-muted);
  line-height: 1.7;
}
.prose a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
}
.service-card h3 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.service-card h3 a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}

.topic-toc {
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--accent-soft);
}
.topic-toc-title {
  font-size: 0.95rem;
  margin: 0 0 10px;
  text-align: left;
  color: var(--dark);
}
.topic-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topic-toc a {
  color: var(--accent-hover);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.advice-card h2 a,
.advice-card h3 a {
  color: inherit;
}

.entity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}
.entity-card dl {
  display: grid;
  gap: 12px 20px;
  margin-top: 16px;
}
@media (min-width: 700px) {
  .entity-card dl {
    grid-template-columns: 11rem 1fr;
  }
}
.entity-card dt {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
}
.entity-card .answer-lead {
  max-width: 62ch;
}

.geo-answers {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}
.geo-answer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.geo-answer h2,
.geo-answer h3 {
  font-size: 1.15rem;
  text-align: left;
  margin: 0 0 8px;
  color: var(--dark);
}
.geo-answer p {
  color: var(--text-muted);
  margin: 0;
}
.geo-answer ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}
.geo-answer li {
  margin: 4px 0;
}

.answer-lead {
  color: var(--dark) !important;
  font-weight: 600;
  margin-bottom: 8px !important;
}

.source-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0 auto 20px;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.faq-item h3 {
  font-size: 1.05rem;
  text-align: left;
  margin: 0 0 8px;
  color: var(--dark);
}
.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

.bg-white {
  background: var(--surface);
}
.bg-soft {
  background: var(--accent-soft);
}

.split {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
  }
  .split.reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .split.reverse .split-media {
    order: -1;
  }
}

.values {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.value-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.value-row:last-child {
  border-bottom: 1px solid var(--border);
}
.value-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* CTA agency */
.agency-cta {
  background: var(--dark);
  color: #fff;
}
.agency-cta h2 {
  color: #fff;
}
.agency-cta .lead {
  color: rgba(255, 255, 255, 0.78);
}
.agency-cta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.agency-cta .btn-primary {
  background: #fff;
  color: var(--dark);
}
.agency-cta .btn-primary:hover {
  background: #f5f5f4;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.contact-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child {
  border-bottom: 0;
}
.contact-list strong {
  display: block;
  color: var(--dark);
  margin-bottom: 2px;
}
.contact-list span,
.contact-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.demo-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  gap: 14px;
}
.form-row {
  display: grid;
  gap: 6px;
}
.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.form-row textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: var(--accent);
}
.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
}
.form-status.ok {
  color: #15803d;
}
.form-status.err {
  color: #b91c1c;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}
.footer-logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.footer-col h3 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.footer-col a:hover {
  color: #fff;
}
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  font-size: 0.85rem;
}
.footer-demo {
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-demo a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-demo a:hover {
  color: #fff;
}

.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 56px 0 48px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  margin-top: 10px;
}

.services-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
