@import url('tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-size: .875rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ===== TOP STRIP ===== */
.topstrip {
  background: var(--color-accent);
  color: #fff;
  font-size: .8125rem;
  padding: .45rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  text-align: center;
}
.topstrip a { color: #fff; font-weight: 600; }
.topstrip__sep { opacity: .4; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 2px 12px rgba(27,110,69,.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.logo img { height: 42px; width: auto; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.1;
}
.logo-text span { color: var(--color-primary); }

/* ===== NAV ===== */
.site-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5ede9;
  padding: 1rem 1.25rem 1.25rem;
  gap: .1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  display: block;
  padding: .65rem .5rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--color-text);
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
}
.site-nav .nav-cta {
  margin-top: .5rem;
  background: var(--color-secondary);
  color: #fff;
  padding: .7rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--color-primary); }

/* ===== HAMBURGER ===== */
.nav-toggle {
  background: none;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  padding: .45rem .6rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .2s;
}
.nav-toggle:hover { background: color-mix(in srgb, var(--color-primary) 8%, transparent); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-accent);
  padding-block: 3rem 2.5rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  opacity: .97;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--color-secondary);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: 100px;
  width: fit-content;
  letter-spacing: .04em;
}

.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.15;
  color: #fff;
}
.hero-title em {
  font-style: normal;
  color: var(--color-secondary);
}

.hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.0625rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: .25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  color: rgba(255,255,255,.8);
}
.hero-meta-item svg { flex-shrink: 0; }

.hero-visual {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.15);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9375rem;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.btn--primary:hover { background: #c46a10; border-color: #c46a10; }
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--green {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--green:hover { background: var(--color-accent); border-color: var(--color-accent); }

/* ===== SECTIONS ===== */
section { padding-block: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.section-desc {
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.service-card {
  background: #fff;
  border: 1.5px solid #e3ede8;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(27,110,69,.12);
  transform: translateY(-3px);
}

.service-card__visual { display: block; }
.service-card__body { padding: 1.35rem 1.25rem 1.5rem; }
.service-card__icon {
  width: 40px;
  height: 40px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
  flex-shrink: 0;
}
.service-card__icon svg { color: var(--color-primary); }
.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: .5rem;
  color: var(--color-text);
}
.service-card__desc {
  font-size: .9375rem;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  line-height: 1.6;
}

/* ===== DOUBLE ACTIVITE ===== */
.double-activite {
  background: linear-gradient(160deg, #f0f7f3 0%, #fff 100%);
}
.double-activite__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.activite-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  border: 2px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.activite-card:hover { border-color: var(--color-primary); box-shadow: 0 6px 24px rgba(27,110,69,.1); }
.activite-card__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.activite-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--color-text);
  margin-bottom: .75rem;
}
.activite-card__desc {
  font-size: .9375rem;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.activite-card__list { display: flex; flex-direction: column; gap: .4rem; }
.activite-card__list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9375rem;
  color: var(--color-text);
}
.activite-card__list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231B6E45'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414L8.414 15l-4.121-4.121a1 1 0 011.414-1.414L8.414 12.17l6.879-6.879a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ===== ENGAGEMENT ECO ===== */
.eco-strip {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding-block: 2.5rem;
}
.eco-strip__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: .75rem;
}
.eco-strip__desc {
  max-width: 580px;
  margin-inline: auto;
  font-size: 1rem;
  opacity: .88;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.eco-strip .btn--outline { color: #fff; }

/* ===== ATOUTS ===== */
.atouts-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.atout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #e3ede8;
}
.atout__icon {
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--color-secondary) 15%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.atout__icon svg { color: var(--color-secondary); }
.atout__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .3rem;
  color: var(--color-text);
}
.atout__desc { font-size: .875rem; color: color-mix(in srgb, var(--color-text) 65%, transparent); line-height: 1.55; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-bg));
  border-top: 2px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
  text-align: center;
}
.cta-section .section-title { margin-bottom: .75rem; }
.cta-section .section-desc { margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-display);
  text-decoration: none;
}
.cta-phone:hover { color: var(--color-accent); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,.85);
  padding-block: 2.5rem 1.5rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: var(--color-secondary); }
.footer-tagline { margin-top: .5rem; font-size: .875rem; opacity: .7; line-height: 1.5; }
.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .85rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.75); transition: color .2s; font-size: .9rem; }
.footer-links a:hover { color: var(--color-secondary); }
.footer-contact p { margin-bottom: .4rem; font-size: .9rem; }
.footer-contact a { color: var(--color-secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: .8125rem;
  opacity: .5;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { opacity: .85; }

/* ===== VISUAL PLACEHOLDER ===== */
.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-secondary) 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-secondary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-secondary) 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, var(--color-primary)) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 60%,
      color-mix(in srgb, var(--color-secondary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="muted"] {
  background: color-mix(in srgb, var(--color-text) 8%, var(--color-bg));
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
  padding-block: 3rem 2.5rem;
  text-align: center;
}
.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .8125rem;
  opacity: .7;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.page-hero .breadcrumb a { color: #fff; }
.page-hero .breadcrumb span { opacity: .5; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.page-hero .lead {
  font-size: 1.0625rem;
  opacity: .88;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ===== SERVICES PAGE ===== */
.services-list { display: flex; flex-direction: column; gap: 2.5rem; }
.service-item { display: flex; flex-direction: column; gap: 1.5rem; }
.service-item__content {}
.service-item__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .5rem;
}
.service-item__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  margin-bottom: .75rem;
  color: var(--color-text);
}
.service-item__desc { font-size: 1rem; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 75%, transparent); }
.service-item + .service-item { border-top: 1px solid #e3ede8; padding-top: 2.5rem; }

/* ===== ABOUT PAGE ===== */
.about-intro { display: flex; flex-direction: column; gap: 2rem; }
.about-text { font-size: 1rem; line-height: 1.75; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.about-text p + p { margin-top: 1rem; }
.about-text strong { color: var(--color-text); font-weight: 600; }
.stats-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.stat-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-card__label { font-size: .8125rem; opacity: .85; line-height: 1.3; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-detail__icon {
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail__icon svg { color: var(--color-primary); }
.contact-detail__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-primary); margin-bottom: .2rem; }
.contact-detail__value { font-size: .9375rem; color: var(--color-text); line-height: 1.5; }
.contact-detail__value a { color: var(--color-primary); font-weight: 600; }

.map-wrapper { border-radius: 12px; overflow: hidden; border: 2px solid #e3ede8; margin-top: .5rem; }
.map-wrapper iframe { display: block; width: 100%; height: 260px; border: none; }

.contact-form {
  background: #fff;
  border: 1.5px solid #e3ede8;
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
}
.form-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  padding: .7rem .9rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--color-text);
  background: #f9fafb;
  border: 1.5px solid #d1d9d4;
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-notice { font-size: .8125rem; color: color-mix(in srgb, var(--color-text) 55%, transparent); margin-bottom: 1rem; line-height: 1.5; }

/* ===== MENTIONS LÉGALES ===== */
.legal-content { max-width: 720px; margin-inline: auto; }
.legal-content h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 2rem 0 .75rem; color: var(--color-text); }
.legal-content p, .legal-content li { font-size: .9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 75%, transparent); margin-bottom: .5rem; }

/* ===== TABLET (≥ 640px) ===== */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .atouts-grid { grid-template-columns: repeat(2, 1fr); }
  .double-activite__grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .service-item { flex-direction: row; align-items: flex-start; }
  .service-item__visual { width: 240px; flex-shrink: 0; }
}

/* ===== DESKTOP (≥ 1024px) ===== */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: .25rem;
    box-shadow: none;
  }
  .site-nav a { padding: .45rem .75rem; font-size: .9375rem; }
  .site-nav .nav-cta { margin-top: 0; padding: .5rem 1.25rem; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .hero-content { flex: 1; }
  .hero-visual { flex: 1; max-width: 480px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .atouts-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .map-wrapper iframe { height: 300px; }
}

/* ===== UTILITIES ===== */
.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;
}
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ============================================================
   ANIMATION PASS — Template MANGO — Propre Auto Sainte-Anne
   WEB-3616 · scope : style.css + main.js uniquement
   a11y : prefers-reduced-motion guarded · no new DOM
   ============================================================ */

/* Keyframes */
@keyframes mango-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes mango-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Focus ring — visible quel que soit le paramètre motion (WCAG 2.4.7) */
:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  /* 1. HERO ENTRANCE — fade-up décalé, GPU-only (opacity + transform) */
  .hero-badge   { animation: mango-fade-up .45s ease both; }
  .hero-title   { animation: mango-fade-up .55s ease both .12s; }
  .hero-desc    { animation: mango-fade-up .55s ease both .22s; }
  .hero-actions { animation: mango-fade-up .50s ease both .32s; }
  .hero-meta    { animation: mango-fade-up .50s ease both .42s; }
  .hero-visual  { animation: mango-fade-in .70s ease both .18s; }

  /* 2. VISUAL PLACEHOLDER — retour lumineux au survol via carte parente */
  .visual-placeholder {
    transition: filter .4s ease;
  }
  .service-card:hover .visual-placeholder,
  .service-item:hover .visual-placeholder {
    filter: brightness(1.09) saturate(1.06);
  }

  /* 3. SECTION HEADINGS + ECO-STRIP — scroll-driven (Chromium 115+, fallback statique) */
  @supports (animation-timeline: view()) {
    .section-label,
    .section-title {
      animation: mango-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    .eco-strip__title {
      animation: mango-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    .eco-strip__desc {
      animation: mango-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }
    .eco-strip .btn--outline {
      animation: mango-fade-in linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 45%;
    }
    /* 4. CTA PHONE — entrée douce au scroll */
    .cta-phone {
      animation: mango-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }

  /* 5. FOCUS — transition sur l'offset du ring */
  :is(a, button, input, select, textarea):focus-visible {
    transition: outline-offset .15s ease;
  }
}

/* Garde-fou accessibilité — annule tout mouvement si souhaité */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
