/* =============================================================
   Nérée auto — Les Abymes
   Template M — "Lame" (Blade) · WebStudio Caraïbes
   Mobile-first · WCAG AA
   ============================================================= */

/* ── 1. Custom properties ─────────────────────────────────── */
:root {
  /* Brand palette — marine profond + ambre */
  --color-primary:     #0D1B2A;
  --color-accent:      #F59E0B;
  --color-accent-dark: #B45309;
  --color-bg:          #F4F6F8;
  --color-surface:     #FFFFFF;
  --color-ink:         #0D1B2A;
  --color-ink-muted:   #3D4F61;
  --color-border:      #D1D9E0;

  --color-stats-bg:    #0D1B2A;
  --color-stats-ink:   #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --container-max: 1200px;
  --container-pad: 1.25rem;

  --header-h:       72px;
  --header-h-small: 56px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.35s;
}

/* ── 2. Reset & base ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

ul { list-style: none; }

address { font-style: normal; }

/* ── 3. Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top var(--duration) var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}

/* ── 4. Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── 5. Typography helpers ────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-surface);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .btn-primary:focus-visible { transform: none; }
}

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

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

.btn-full { width: 100%; }

/* ── 7. Brand text logo ───────────────────────────────────── */
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-surface);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-text strong {
  font-weight: 900;
  color: var(--color-accent);
  margin-left: 0.15em;
}

.brand-text-footer {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.75rem;
}

.brand-text-footer strong {
  font-weight: 900;
  color: var(--color-accent);
  margin-left: 0.15em;
}

/* ── 8. Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-primary);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    height var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

.site-header.is-scrolled {
  height: var(--header-h-small);
  box-shadow: 0 2px 16px rgb(0 0 0 / 0.25);
}

.header-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand { text-decoration: none; flex-shrink: 0; }

/* ── 9. Navigation ────────────────────────────────────────── */
.main-nav { display: none; }

.main-nav.is-open {
  display: block;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background-color: var(--color-primary);
  padding: var(--space-lg) var(--container-pad);
  overflow-y: auto;
  z-index: 99;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.main-nav a {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-surface);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
}

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

.main-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  background-color: var(--color-accent) !important;
  color: var(--color-primary) !important;
  border-radius: 3px;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background-color: var(--color-accent-dark) !important;
  color: var(--color-surface) !important;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-surface);
  border-radius: 3px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-surface);
  border-radius: 2px;
  transition:
    transform var(--duration) var(--ease-out),
    opacity var(--duration) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span { transition: none; }
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .main-nav {
    display: block;
    position: static;
    background: none;
    padding: 0;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
  }

  .main-nav a { font-size: 0.875rem; }

  .nav-toggle { display: none; }
}

/* ── 10. Hero — Diagonal blade split ─────────────────────── */
.hero {
  position: relative;
  background-color: var(--color-primary);
  color: var(--color-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 520px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--container-pad) var(--space-lg);
  max-width: 640px;
}

.hero .eyebrow { color: var(--color-accent); }

.hero h1 {
  color: var(--color-surface);
  margin-bottom: var(--space-sm);
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgb(255 255 255 / 0.82);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1100px) {
  .hero {
    display: grid;
    grid-template-columns: 60fr 40fr;
    align-items: stretch;
    min-height: 640px;
  }

  .hero-content {
    padding: var(--space-2xl) var(--space-xl) var(--space-2xl)
      calc((100vw - var(--container-max)) / 2 + var(--container-pad));
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-image {
    aspect-ratio: auto;
    clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
  }

  .hero-image img {
    height: 100%;
    object-position: center center;
  }
}

/* ── 11. Stats band ───────────────────────────────────────── */
.stats-band {
  background-color: var(--color-stats-bg);
  color: var(--color-stats-ink);
  padding: var(--space-lg) var(--container-pad);
}

.stats-grid {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: var(--space-sm);
}

.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}

.stat span {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.72);
}

/* ── 12. Services ─────────────────────────────────────────── */
.services { padding-block: var(--space-xl); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 { margin-top: 0.25rem; }

.service-block {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
}

.service-block + .service-block { margin-top: 0.5rem; }

.service-block__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .service-block__image img { transition: none; }
}

.service-block:hover .service-block__image img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .service-block:hover .service-block__image img { transform: none; }
}

.service-block__content {
  padding: var(--space-lg) var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
}

.service-block__content h3 { margin-bottom: var(--space-sm); }

.service-block__content p {
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
}

.service-block__content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-block__content ul li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-ink-muted);
}

.service-block__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

@media (min-width: 1100px) {
  .service-block {
    flex-direction: row;
    min-height: 480px;
  }

  .service-block__image {
    width: 50%;
    aspect-ratio: auto;
    flex-shrink: 0;
  }

  .service-block__content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    margin-inline: 0;
  }

  .service-block--reverse {
    flex-direction: row-reverse;
    background-color: var(--color-bg);
  }
}

/* ── 13. About ────────────────────────────────────────────── */
.about {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding-block: var(--space-2xl);
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .about-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.about .eyebrow { color: var(--color-accent); }

.about-text h2 {
  color: var(--color-surface);
  margin-bottom: var(--space-md);
}

.about-text p {
  color: rgb(255 255 255 / 0.8);
  margin-bottom: var(--space-sm);
  max-width: 65ch;
}

.about-text .btn-primary { margin-top: var(--space-md); }

.about-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-primary);
  text-align: center;
  align-self: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .about-badge { width: 220px; height: 220px; }
}

.badge-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 768px) {
  .badge-number { font-size: 3rem; }
}

.badge-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ── 14. Réalisations ─────────────────────────────────────── */
.realisations {
  padding-block: var(--space-2xl);
  background-color: var(--color-bg);
}

.realisations .eyebrow { margin-bottom: 0.5rem; }

.realisations h2 { margin-bottom: var(--space-lg); }

.realisations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .realisations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .realisations-grid { grid-template-columns: repeat(4, 1fr); }
}

.realisations-grid figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.08);
}

.realisations-grid figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .realisations-grid figure img { transition: none; }
}

.realisations-grid figure:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .realisations-grid figure:hover img { transform: none; }
}

.realisations-grid figcaption {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-ink);
}

/* ── 15. Reviews ──────────────────────────────────────────── */
.reviews {
  background-color: var(--color-surface);
  padding-block: var(--space-2xl);
}

.reviews-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-inline: var(--container-pad);
}

.reviews-header h2 { margin-top: 0.25rem; }

.reviews-grid {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background-color: var(--color-bg);
  border-radius: 8px;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border: 1px solid var(--color-border);
}

.review-stars {
  font-size: 1.25rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
  line-height: 1.7;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
  margin-top: auto;
}

.review-author strong { color: var(--color-ink); }

/* ── 16. Contact ──────────────────────────────────────────── */
.contact {
  background-color: var(--color-bg);
  padding-block: var(--space-2xl);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 1100px) {
  .contact-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .contact-info { flex: 1; max-width: 520px; }
  .contact-form { flex: 1; max-width: 540px; }
}

.contact-info .eyebrow { color: var(--color-accent); }
.contact-info h2 { margin-bottom: var(--space-sm); }

.contact-info > p {
  color: var(--color-ink-muted);
  margin-bottom: var(--space-md);
  max-width: 55ch;
}

.contact-info address p {
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
}

.contact-info address a {
  color: var(--color-accent-dark);
  font-weight: 700;
}

.map-wrapper {
  margin-top: var(--space-md);
  border-radius: 8px;
  overflow: hidden;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background-color: var(--color-surface);
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.07);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.field label span {
  color: var(--color-accent-dark);
  margin-left: 2px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background-color: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 4px;
  transition:
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
  appearance: none;
}

@media (prefers-reduced-motion: reduce) {
  .field input,
  .field textarea { transition: none; }
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(245 158 11 / 0.22);
}

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

/* ── 17. Footer ───────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-primary);
  color: rgb(255 255 255 / 0.72);
  padding-block: var(--space-xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .footer-brand { flex: 1 1 220px; }
  .footer-nav   { flex: 1 1 180px; }
  .footer-legal { flex: 1 1 220px; text-align: right; }
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-brand a {
  color: var(--color-accent);
  font-weight: 700;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.72);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.footer-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.footer-legal {
  font-size: 0.8125rem;
  line-height: 1.7;
}

.footer-legal a { color: var(--color-accent); }
.footer-legal strong { color: var(--color-surface); }

/* ── 18. Animation hooks ──────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  [data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.7s var(--ease-out),
      transform 0.7s var(--ease-out);
  }

  [data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  [data-animate="slide-in"] {
    opacity: 0;
    transform: translateX(-40px);
    transition:
      opacity 0.7s var(--ease-out),
      transform 0.7s var(--ease-out);
  }

  .service-block--reverse[data-animate="slide-in"] {
    transform: translateX(40px);
  }

  [data-animate="slide-in"].is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger sur les 3 blocs prestations */
  .services .service-block[data-animate="slide-in"]:nth-of-type(1) { transition-delay: 0s; }
  .services .service-block[data-animate="slide-in"]:nth-of-type(2) { transition-delay: 0.08s; }
  .services .service-block[data-animate="slide-in"]:nth-of-type(3) { transition-delay: 0.16s; }

  /* Stagger sur la grille réalisations */
  .realisations-grid figure[data-animate="fade-up"]:nth-child(1) { transition-delay: 0s; }
  .realisations-grid figure[data-animate="fade-up"]:nth-child(2) { transition-delay: 0.09s; }
  .realisations-grid figure[data-animate="fade-up"]:nth-child(3) { transition-delay: 0.18s; }
  .realisations-grid figure[data-animate="fade-up"]:nth-child(4) { transition-delay: 0.27s; }

  /* Stagger sur les avis clients */
  .reviews-grid .review-card[data-animate="fade-up"]:nth-child(1) { transition-delay: 0s; }
  .reviews-grid .review-card[data-animate="fade-up"]:nth-child(2) { transition-delay: 0.1s; }
  .reviews-grid .review-card[data-animate="fade-up"]:nth-child(3) { transition-delay: 0.2s; }

  [data-animate="count-up"] {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 0.55s var(--ease-out),
      transform 0.55s var(--ease-out);
  }

  [data-animate="count-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .stats-grid .stat[data-animate="count-up"]:nth-child(1) { transition-delay: 0s; }
  .stats-grid .stat[data-animate="count-up"]:nth-child(2) { transition-delay: 0.1s; }
  .stats-grid .stat[data-animate="count-up"]:nth-child(3) { transition-delay: 0.2s; }
  .stats-grid .stat[data-animate="count-up"]:nth-child(4) { transition-delay: 0.3s; }

  /* ── Blade shimmer sur le hero (une passe unique au load) ── */
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      100deg,
      transparent 30%,
      rgba(245, 158, 11, 0.14) 48%,
      rgba(255, 255, 255, 0.08) 52%,
      transparent 70%
    );
    transform: translateX(-120%);
    animation: blade-sweep 1.6s cubic-bezier(0.5, 0, 0.2, 1) 0.4s 1 forwards;
    z-index: 3;
  }

  @keyframes blade-sweep {
    to { transform: translateX(120%); }
  }

  /* ── Blade underline sur les liens de navigation desktop ── */
  @media (min-width: 768px) {
    .main-nav ul li:not(:last-child) a {
      position: relative;
      padding-bottom: 4px;
    }

    .main-nav ul li:not(:last-child) a::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2px;
      background: var(--color-accent);
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 0.35s var(--ease-out);
    }

    .main-nav ul li:not(:last-child) a:hover::after,
    .main-nav ul li:not(:last-child) a:focus-visible::after {
      transform: scaleX(1);
    }
  }

  /* ── Blade shine sur bouton primaire au hover ── */
  .btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      110deg,
      transparent 40%,
      rgba(255, 255, 255, 0.35) 50%,
      transparent 60%
    );
    transform: translateX(-120%);
    transition: transform 0.6s var(--ease-out);
    pointer-events: none;
    z-index: -1;
  }

  .btn-primary:hover::before,
  .btn-primary:focus-visible::before {
    transform: translateX(120%);
  }

  /* ── Card lift : réalisations + avis ── */
  .realisations-grid figure {
    transition:
      transform 0.35s var(--ease-out),
      box-shadow 0.35s var(--ease-out);
  }

  .realisations-grid figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgb(13 27 42 / 0.16);
  }

  .review-card {
    transition:
      transform 0.35s var(--ease-out),
      border-color 0.35s var(--ease-out),
      box-shadow 0.35s var(--ease-out);
  }

  .review-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--color-accent) 60%, var(--color-border));
    box-shadow: 0 6px 24px rgb(13 27 42 / 0.1);
  }

  /* ── Badge Google : rotation douce au hover ── */
  .about-badge {
    transition: transform 0.5s var(--ease-out);
  }

  .about-inner:hover .about-badge {
    transform: rotate(-4deg) scale(1.03);
  }

  /* ── Placeholder shimmer discret au hover ── */
  .service-block__image .visual-placeholder,
  .realisations-grid figure .visual-placeholder,
  .hero-image .visual-placeholder {
    background-size: 200% 200%;
    background-position: 0% 0%;
    transition: background-position 0.9s var(--ease-out);
  }

  .service-block:hover .visual-placeholder,
  .realisations-grid figure:hover .visual-placeholder,
  .hero:hover .hero-image .visual-placeholder {
    background-position: 100% 100%;
  }
}

/* ── 19. Focus ring ───────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── 20. Print ────────────────────────────────────────────── */
@media print {
  .site-header,
  .nav-toggle,
  .hero-image,
  .map-wrapper,
  .contact-form { display: none; }

  body { color: #000; background: #fff; }
}

/* ── 21. Inner-page shared styles ────────────────────────── */
.page-hero {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding-block: var(--space-xl) var(--space-lg);
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-lg);
}

.page-hero .eyebrow { color: var(--color-accent); }

.page-hero h1 {
  color: var(--color-surface);
  margin-bottom: var(--space-sm);
}

.page-hero__sub {
  font-size: 1.0625rem;
  color: rgb(255 255 255 / 0.78);
  max-width: 60ch;
}

.page-hero .visual-placeholder {
  aspect-ratio: 21 / 9;
  border-radius: 0;
  opacity: 0.6;
}

/* About page */
.about-page { padding-block: var(--space-2xl); background-color: var(--color-bg); }

.about-page__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .about-page__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2xl);
  }
  .about-page__text { flex: 1; }
  .about-page__visual { flex: 0 0 300px; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.about-page__text h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.about-page__text h2:first-child { margin-top: 0; }

.about-page__text p {
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
  max-width: 65ch;
}

.about-page__visual .about-badge {
  margin-top: var(--space-md);
  width: 140px;
  height: 140px;
  font-size: 1.5rem;
}

.values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.values-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-ink-muted);
}

.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* CTA band */
.cta-band {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding-block: var(--space-xl);
}

.cta-band__inner {
  text-align: center;
}

.cta-band .eyebrow { color: var(--color-accent); }

.cta-band h2 {
  color: var(--color-surface);
  margin-bottom: var(--space-sm);
}

.cta-band > .container > p,
.cta-band__inner > p {
  color: rgb(255 255 255 / 0.78);
  margin-bottom: var(--space-lg);
  max-width: 55ch;
  margin-inline: auto;
}

.cta-band .hero-actions { justify-content: center; }

/* Contact page */
.contact--page { padding-top: var(--space-xl); }

/* Legal page */
.legal-page {
  padding-block: var(--space-xl) var(--space-2xl);
}

.legal-page h1 {
  margin-bottom: var(--space-xl);
}

.legal-section {
  margin-bottom: var(--space-lg);
}

.legal-section h2 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.legal-section p {
  color: var(--color-ink-muted);
  margin-bottom: 0.5rem;
  max-width: 72ch;
}

.legal-section a { color: var(--color-accent-dark); font-weight: 700; }

.legal-date {
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
  margin-top: var(--space-xl);
}

/* Screen-reader only utility */
.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;
}

/* ── 22. Visual placeholders (WEB-715) ───────────────────── */
.visual-placeholder {
  display: block;
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-accent)  18%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-aspect="4:3"]  { aspect-ratio: 4 / 3; }
.visual-placeholder[data-aspect="1:1"]  { aspect-ratio: 1 / 1; }
.visual-placeholder[data-aspect="3:4"]  { aspect-ratio: 3 / 4; }
.visual-placeholder[data-aspect="21:9"] { aspect-ratio: 21 / 9; }

.visual-placeholder[data-tone="secondary"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-accent)  22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-accent)  10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-primary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="accent"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-accent)  22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 60%,
      color-mix(in srgb, var(--color-accent)  16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="muted"] {
  background: color-mix(in srgb, var(--color-ink) 8%, var(--color-bg));
}

/* Placeholders inside image-container wrappers: fill the container */
.hero-image .visual-placeholder,
.service-block__image .visual-placeholder {
  height: 100%;
  border-radius: 0;
  aspect-ratio: auto;
}

.realisations-grid figure .visual-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}
