/* =========================================================
   Solaz — feuille de style principale
   Charte épurée : papier chaud, encre presque noire, une seule
   couleur d'accent (terracotta), une teinte neutre secondaire.
   (les noms de variables navy/copper/aurora sont conservés pour
   ne pas casser les usages plus bas — seules les valeurs changent)
   ========================================================= */

:root {
  --navy-950: #17140f;
  --navy-900: #1e1b16;
  --navy-800: #2a2621;
  --navy-700: #3a352d;
  --navy-600: #57503f;
  --copper-500: #ae5330;
  --copper-400: #c1704f;
  --copper-600: #8a3f22;
  --aurora-400: #8b9184;
  --aurora-500: #6e7466;
  --sand-050: #f7f4ee;
  --sand-100: #efe8d9;
  --ink-900: #211e18;
  --ink-600: #5c5648;
  --ink-400: #8a8474;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 10px 30px -12px rgba(23, 20, 15, 0.22);
  --shadow-strong: 0 20px 45px -15px rgba(23, 20, 15, 0.3);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--sand-050);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-600); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--copper-600);
  margin: 0 0 0.7em;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy-900); color: var(--white); padding: 0.8em 1.2em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.section-inner-narrow { max-width: 780px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}
.section-heading h2 { margin-bottom: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--copper-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); background: var(--copper-400); }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Entête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(33, 30, 24, 0.08);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-height);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-950);
  margin-right: auto;
}
.brand-mark { color: var(--copper-500); display: inline-flex; }

.main-nav { position: relative; display: none; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  position: relative;
}
.nav-link {
  display: block;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-600);
  border-radius: 999px;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--navy-950); }
.nav-link.is-active { color: var(--navy-950); }
.nav-indicator {
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 999px;
  background: var(--copper-500);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), width 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
  opacity: 0;
}
.nav-cta { display: none; }

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.menu-toggle-bars span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-950);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu mobile (overlay) ---------- */
.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(23, 20, 15, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
  z-index: 600;
}
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--navy-950);
  color: var(--white);
  z-index: 601;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mobile-menu .brand-name { font-weight: 800; font-size: 1.15rem; }
.menu-close { background: none; border: none; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-nav-link { display: block; padding: 0.85rem 0.3rem; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav-cta { margin-top: auto; text-align: center; justify-content: center; }

/* ---------- Reveal au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Zoom au survol des visuels ---------- */
.img-zoom { overflow: hidden; border-radius: var(--radius-md); }
.img-zoom > * { transition: transform 0.5s ease; }
.img-zoom:hover > * { transform: scale(1.045); }

/* ---------- Héro ---------- */
.hero { background: var(--sand-100); border-bottom: 1px solid rgba(33, 30, 24,0.07); }
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 3rem;
  align-items: center;
}
.hero-subtitle { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.8rem 0 1.6rem; }
.hero-rating { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-600); font-size: 0.95rem; }
.stars { display: inline-flex; gap: 2px; color: var(--copper-500); }
.stars svg { width: 16px; height: 16px; }

.hero-visual {
  position: relative;
  min-height: 320px;
}
.mock-window {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(33, 30, 24,0.06);
}
.mock-web { width: 78%; top: 0; left: 0; }
.mock-app { width: 34%; bottom: 0; right: 4%; }
.mock-game {
  width: 46%;
  top: 30%;
  right: 0;
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
}
.mock-bar { display: flex; gap: 6px; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--sand-100); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--sand-100); }
.mock-bar span:first-child { background: var(--copper-400); }
.mock-body { padding: 1rem 1.1rem 1.3rem; }
.mock-line { height: 10px; border-radius: 6px; background: var(--sand-100); margin-bottom: 0.6rem; }
.mock-line.w70 { width: 70%; height: 16px; }
.mock-line.w40 { width: 40%; }
.mock-line.w60 { width: 60%; height: 14px; }
.mock-grid { display: flex; gap: 8px; margin-top: 0.8rem; }
.mock-grid span { flex: 1; height: 42px; border-radius: 8px; background: var(--sand-100); border: 1.5px solid rgba(33, 30, 24,0.08); }
.mock-grid span:nth-child(1) { border-color: var(--copper-400); }
.mock-grid span:nth-child(2) { border-color: var(--aurora-400); }
.mock-notch { width: 40%; height: 8px; background: var(--sand-100); border-radius: 0 0 8px 8px; margin: 0 auto; }
.mock-pill { height: 26px; border-radius: 999px; background: var(--sand-100); margin-bottom: 0.6rem; }
.mock-game-body { position: relative; height: 110px; padding: 0; }
.mock-shape { position: absolute; border-radius: 50%; opacity: 0.85; }
.mock-shape-1 { width: 46px; height: 46px; background: var(--copper-500); top: 18px; left: 24px; }
.mock-shape-2 { width: 30px; height: 30px; background: var(--aurora-400); top: 50px; left: 90px; }
.mock-shape-3 { width: 60px; height: 60px; border-radius: 14px; background: rgba(255,255,255,0.12); top: 10px; right: 20px; }

/* ---------- Grilles de cartes ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.service-card, .testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(33, 30, 24,0.05);
}
.service-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--navy-950);
  color: var(--copper-400);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; }
.service-details { font-size: 0.92rem; }
.service-price { font-weight: 700; color: var(--navy-900); margin-top: 0.8rem; margin-bottom: 0; }

/* ---------- Avis ---------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
}
.testimonial-card { display: flex; flex-direction: column; gap: 0.8rem; }
.testimonial-card p { color: var(--ink-900); font-size: 1.02rem; margin: 0; }
.testimonial-card footer { display: flex; flex-direction: column; font-size: 0.88rem; color: var(--ink-400); }
.testimonial-card footer strong { color: var(--navy-950); }

/* ---------- À propos ---------- */
.apropos { background: var(--navy-950); color: var(--white); }
.apropos .eyebrow { color: var(--copper-400); }
.apropos .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.55); }
.apropos .btn-ghost:hover { background: var(--white); color: var(--navy-950); border-color: var(--white); }
.apropos-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3.2rem;
  align-items: center;
}
.apropos-copy p { color: rgba(255,255,255,0.78); }
.apropos-visual { aspect-ratio: 4 / 5; }
.apropos-shape {
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apropos-shape svg { width: 62%; height: auto; }
.apropos-dot { position: absolute; border-radius: 50%; }
.apropos-dot-1 { width: 90px; height: 90px; background: var(--copper-500); top: -30px; left: -30px; }
.apropos-dot-2 { width: 46px; height: 46px; background: var(--aurora-400); bottom: 32px; right: 28px; }
.apropos-dot-3 { width: 18px; height: 18px; background: var(--aurora-400); top: 40px; right: 60px; }
.stat-row { display: flex; gap: 2.4rem; margin: 1.8rem 0 2rem; flex-wrap: wrap; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--copper-400); }
.stat-label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
  gap: 2.6rem;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--navy-900); }
.form-row input, .form-row textarea, .form-row select {
  font: inherit;
  padding: 0.75em 0.9em;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(33, 30, 24,0.14);
  background: var(--sand-050);
  color: var(--ink-900);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--copper-500);
  background: var(--white);
}
.form-alert { padding: 0.9em 1.1em; border-radius: var(--radius-sm); font-size: 0.92rem; }
.form-alert-success { background: rgba(74, 124, 94, 0.15); color: #2f6b4b; }
.form-alert-error { background: rgba(220, 90, 90, 0.14); color: #a13636; }

.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item h3 { margin-bottom: 0.2rem; font-size: 1rem; }
.contact-info-item p { margin: 0; }
.contact-info-item .service-icon { width: 40px; height: 40px; margin-bottom: 0; }
.contact-info-item .service-icon svg { width: 20px; height: 20px; }

.footer-hours { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; max-width: 260px; }

/* ---------- Blogue ---------- */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(33, 30, 24,0.05);
  display: flex;
  flex-direction: column;
}
.blog-card-image {
  aspect-ratio: 16 / 10;
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
}
.blog-card-body { padding: 1.4rem 1.5rem 1.7rem; }
.blog-card-body time { font-size: 0.8rem; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card-body h2, .blog-card-body h3 { margin: 0.4rem 0 0.5rem; font-size: 1.15rem; }
.blog-card-body p { margin: 0; font-size: 0.94rem; }

.page-hero { padding-top: 1rem; background: var(--sand-100); }
.blog-listing { padding-top: 1rem; }

.breadcrumbs { margin-bottom: 1.6rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; font-size: 0.86rem; color: var(--ink-400); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; }
.breadcrumbs a { color: var(--ink-600); font-weight: 600; }
.breadcrumbs a:hover { color: var(--copper-600); }

.article { padding-bottom: 1rem; }
.article-date { display: block; color: var(--ink-400); font-size: 0.9rem; margin-bottom: 1.6rem; }
.article-image { aspect-ratio: 16/9; background-size: cover; background-position: center; margin-bottom: 2rem; background-color: var(--sand-100); }
.article-content h2 { margin-top: 1.6em; }
.article-content ul { padding-left: 1.3em; }
.article-content a { color: var(--copper-600); text-decoration: underline; }
.article-footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(33, 30, 24,0.08); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.82); }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}
.footer-brand .brand-name { font-weight: 800; font-size: 1.3rem; color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 0.6rem; }
.footer-social { list-style: none; display: flex; gap: 0.9rem; padding: 0; margin: 1.2rem 0 0; }
.footer-social a { color: rgba(255,255,255,0.75); font-weight: 600; font-size: 0.88rem; }
.footer-social a:hover { color: var(--copper-400); }
.footer-col h3 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.7); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a:hover { color: var(--copper-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.3rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-credit a { color: var(--copper-400); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (min-width: 860px) {
  .main-nav { display: block; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 859px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; order: -1; }
  .apropos-grid { grid-template-columns: 1fr; }
  .apropos-visual { aspect-ratio: 16/9; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .section-inner { padding: 3.5rem 1.2rem; }
  .hero-inner { padding: 3rem 1.2rem 3.5rem; }
  .section-heading { flex-direction: column; align-items: flex-start; }
}
