@import url('tokens.css');

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 1rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-primary);
}
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1rem; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── HEADER / NAV ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.logo-link img, .logo-link svg { height: 38px; width: auto; }

/* Desktop nav */
.nav-list {
  display: none;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}
.nav-list a {
  color: rgba(255,255,255,.88);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--color-secondary); }

/* CTA pill in nav */
.nav-cta {
  background: var(--color-secondary);
  color: var(--color-primary) !important;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  transition: opacity .2s !important;
}
.nav-cta:hover { opacity: .85; text-decoration: none !important; }

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  aria-label: "Menu";
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.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; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--color-primary);
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.88);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .nav-cta { margin-top: .75rem; text-align: center; border-bottom: none; }

@media (min-width: 768px) {
  .nav-list { display: flex; }
  .nav-toggle { display: none; }
}

/* ── HERO ── */
.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--color-primary) 96%, transparent) 0%,
    color-mix(in srgb, var(--color-primary) 88%, var(--color-accent)) 100%);
  color: #fff;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 2.5rem;
}
.hero-creole {
  font-style: italic;
  color: var(--color-secondary);
  font-size: .93rem;
  margin-top: 1.25rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { border-color: #fff; }
.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

/* ── SECTION DEFAULTS ── */
section { padding: 3.5rem 0; }
.section-title {
  text-align: center;
  margin-bottom: .6rem;
}
.section-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-alt { background: #f9fafb; }

/* ── 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));
}

/* ── ICON BADGE ── */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg));
  color: var(--color-accent);
  margin-bottom: .85rem;
  flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.amber {
  background: color-mix(in srgb, var(--color-secondary) 14%, var(--color-bg));
  color: var(--color-secondary);
}
.icon-badge.slate {
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg));
  color: var(--color-primary);
}

/* ── ATOUT CARDS ── */
.atouts-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .atouts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .atouts-grid { grid-template-columns: repeat(3, 1fr); } }

.atout-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.atout-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.atout-card h3 { margin-bottom: .5rem; }
.atout-card p { color: #6b7280; font-size: .97rem; margin-bottom: 0; }

/* ── SERVICE CARDS ── */
.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.service-card-body { padding: 1.5rem; }
.service-card h3 { margin-bottom: .6rem; }
.service-card p { color: #6b7280; font-size: .97rem; margin-bottom: 1rem; }
.service-card ul { padding-left: 1.2rem; }
.service-card ul li { color: #6b7280; font-size: .93rem; margin-bottom: .3rem; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── TEL HIGHLIGHT ── */
.tel-highlight {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: color-mix(in srgb, var(--color-secondary) 15%, var(--color-bg));
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--color-secondary);
  transition: background .2s;
}
.tel-highlight:hover { background: color-mix(in srgb, var(--color-secondary) 28%, var(--color-bg)); text-decoration: none; }
.tel-highlight svg { width: 22px; height: 22px; color: var(--color-secondary); }

/* ── ZONE INTERVENTION ── */
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.zone-tag {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-bg));
  color: var(--color-accent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  padding: .35rem .85rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
}

/* ── ABOUT LAYOUT ── */
.about-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.about-values { list-style: none; padding: 0; margin: 1.5rem 0; }
.about-values li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.about-values li:last-child { border-bottom: none; }
.about-values li .check { color: var(--color-secondary); font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  font-size: .93rem;
  color: var(--color-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-item .icon-badge { flex-shrink: 0; }
.contact-info-item strong { display: block; font-weight: 600; color: var(--color-primary); margin-bottom: .2rem; }
.contact-info-item a { color: var(--color-accent); }

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

/* ── FOOTER ── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 1.5rem;
  font-size: .9rem;
}
.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand h3 { color: #fff; font-size: 1.1rem; margin-bottom: .5rem; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .9rem; }

.footer-nav h4 { color: #fff; font-size: .95rem; margin-bottom: .75rem; }
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: .4rem; }
.footer-nav ul a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-nav ul a:hover { color: var(--color-secondary); }

.footer-contact h4 { color: #fff; font-size: .95rem; margin-bottom: .75rem; }
.footer-contact p { margin-bottom: .5rem; }
.footer-contact a { color: var(--color-secondary); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  font-size: .83rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--color-primary) 96%, transparent) 0%,
    color-mix(in srgb, var(--color-primary) 88%, var(--color-accent)) 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.page-header h1 { color: #fff; margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 .4rem; }

/* ── MENTIONS LÉGALES ── */
.legal-content h2 { margin-top: 2.5rem; margin-bottom: .75rem; font-size: 1.2rem; }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: .5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.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;
}

/* ── ANIMATIONS — WEB-3081 ── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }

  /* 1. Hero entrance — stagger h1 → lead → actions → visuel */
  .hero h1                   { animation: fade-up .55s ease both; }
  .hero .hero-lead           { animation: fade-up .55s .10s ease both; }
  .hero .hero-actions        { animation: fade-up .55s .20s ease both; }
  .hero .visual-placeholder  { animation: fade-up .65s .32s ease both; }

  /* 2. Page-header entrance (pages internes) */
  .page-header h1 { animation: fade-up .50s ease both; }
  .page-header p  { animation: fade-up .50s .08s ease both; }

  /* 3. Atout cards — stagger de révélation (IO ajoute .reveal / .visible) */
  .atout-card:nth-child(2).reveal { transition-delay: .10s; }
  .atout-card:nth-child(3).reveal { transition-delay: .20s; }

  /* 4. Service cards — stagger de révélation */
  .service-card:nth-child(2).reveal { transition-delay: .10s; }
  .service-card:nth-child(3).reveal { transition-delay: .18s; }
  .service-card:nth-child(4).reveal { transition-delay: .26s; }

  /* 5. Visual placeholder — zoom doux au survol de la service-card */
  .visual-placeholder { transition: transform .35s ease; }
  .service-card:hover .visual-placeholder { transform: scale(1.03); }

  /* 6. Tel-highlight — élévation + halo ambre au survol */
  .tel-highlight { transition: background .2s, transform .2s, box-shadow .2s; }
  .tel-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, .22);
  }
}

/* Kill-switch accessibilité — aucune animation si reduced-motion préféré */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
