@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Inter:wght@400;700&display=swap');
@import './tokens.css';

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: underline; }
a:hover, a:focus { color: var(--color-primary); }
a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
em { font-style: italic; color: var(--color-accent); }

/* === Layout === */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
main { flex: 1; }
section { padding: 3rem 0; }

/* === Skip link === */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--color-primary); color: #fff;
  padding: 0.5rem 1rem; border-radius: 0 0 4px 4px;
  text-decoration: none; font-weight: 700; z-index: 1000;
}
.skip-link:focus { top: 0; }

/* === Header / Nav === */
.site-header {
  background: var(--color-primary);
  border-bottom: 3px solid var(--color-secondary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem; max-width: 1100px; margin: 0 auto;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link:focus-visible { outline: 3px solid var(--color-accent); border-radius: 2px; }

.site-nav { display: none; }
.site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-primary); border-top: 1px solid rgba(255,255,255,0.1); z-index: 200; }
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.nav-list a {
  display: block; padding: 0.75rem 1.25rem;
  color: rgba(255,255,255,0.85); font-family: var(--font-display);
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  letter-spacing: 0.05em; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s, color 0.2s;
}
.nav-list a:hover, .nav-list a:focus, .nav-list a[aria-current="page"] {
  background: var(--color-secondary); color: #fff;
}
.menu-btn {
  background: none; border: 2px solid rgba(255,255,255,0.5); border-radius: 4px;
  padding: 0.4rem 0.6rem; cursor: pointer; color: #fff;
  font-size: 1.3rem; line-height: 1; display: flex; align-items: center;
}
.menu-btn:focus-visible { outline: 3px solid var(--color-accent); }

.tel-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--color-secondary); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  padding: 0.5rem 1rem; border-radius: 4px; text-decoration: none;
  transition: background 0.2s; white-space: nowrap;
}
.tel-cta:hover, .tel-cta:focus { background: #b91c1c; color: #fff; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem; border-radius: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--color-secondary); color: #fff; border-color: var(--color-secondary);
}
.btn-primary:hover, .btn-primary:focus { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn-amber {
  background: var(--color-accent); color: #18181B; border-color: var(--color-accent);
}
.btn-amber:hover, .btn-amber:focus { background: #d97706; border-color: #d97706; color: #fff; }
.btn-outline {
  background: transparent; color: var(--color-primary); border-color: var(--color-primary);
}
.btn-outline:hover, .btn-outline:focus { background: var(--color-primary); color: #fff; }
.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover, .btn-outline-light:focus { background: rgba(255,255,255,0.12); color: #fff; }

/* === Visual Placeholder === */
.visual-placeholder {
  display: block; width: 100%; border-radius: 8px; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2d0808 0%, #18181B 55%, #4a1a00 100%);
}
.visual-placeholder[data-aspect="4:3"]  { aspect-ratio: 4 / 3; }
.visual-placeholder[data-aspect="1:1"]  { aspect-ratio: 1 / 1; }
.visual-placeholder[data-tone="secondary"] {
  background: linear-gradient(135deg, rgba(220,38,38,.18) 0%, #18181B 55%, rgba(245,158,11,.12) 100%);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #18181B 0%, #1f1f22 60%, #2d0a0a 100%);
  color: #fff; padding: 3.5rem 0 3rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -80px;
  width: 360px; height: 360px;
  background: rgba(220,38,38,0.12);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--color-secondary);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 0.75rem; }
.hero .tagline { font-size: clamp(1rem, 3vw, 1.15rem); color: var(--color-accent); margin-bottom: 0.5rem; font-style: italic; }
.hero-lead { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.hero-placeholder { margin-top: 2rem; }

/* === Rating badge === */
.rating-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.4);
  border-radius: 6px; padding: 0.5rem 1rem; margin-bottom: 1.25rem;
}
.rating-badge .stars { font-size: 1.1rem; color: var(--color-accent); }
.rating-badge span { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #fff; }

/* === Kicker === */
.section-kicker {
  display: inline-block; font-family: var(--font-display); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-secondary); margin-bottom: 0.5rem;
}

/* === Intro strip === */
.intro-strip {
  background: rgba(220,38,38,0.05); border-left: 4px solid var(--color-secondary);
  padding: 1.25rem 1.5rem; border-radius: 0 8px 8px 0; margin-bottom: 1.5rem;
}
.intro-strip p { margin: 0; font-size: 1.05rem; }

/* === Cards grid === */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.card {
  background: var(--color-bg); border: 1px solid #E5E7EB; border-radius: 8px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(220,38,38,0.12); transform: translateY(-2px); }
.card-body { padding: 1.25rem; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { margin-bottom: 0.5rem; font-size: 0.95rem; color: #374151; }
.card-body ul { font-size: 0.95rem; color: #374151; }
.card-link {
  display: inline-block; margin-top: 0.5rem; font-family: var(--font-display);
  font-weight: 700; font-size: 0.9rem; color: var(--color-secondary); text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* === Service sections === */
.service-section {
  padding: 2rem 0; border-bottom: 1px solid #E5E7EB;
}
.service-section:last-child { border-bottom: none; }
.service-section h2 { color: var(--color-primary); margin-bottom: 0.5rem; }
.service-section h3 { color: var(--color-secondary); }
.service-section ul { color: #374151; }

/* === Testimonials === */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.testimonial-card {
  background: var(--color-bg); border: 1px solid #E5E7EB;
  border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.testimonial-card .stars { color: var(--color-accent); font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-card blockquote {
  font-style: italic; color: #374151; margin-bottom: 0.75rem;
  border-left: 3px solid var(--color-accent); padding-left: 0.75rem;
}
.testimonial-card cite { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--color-primary); }
.stars { color: var(--color-accent); }

/* === CTA Band === */
.cta-band { background: var(--color-primary); color: #fff; text-align: center; padding: 3rem 1.25rem; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; font-size: 1.05rem; }
.cta-band .cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--color-primary); }
.form-group input, .form-group textarea, .form-group select {
  padding: 0.65rem 0.85rem; border: 2px solid #D1D5DB;
  border-radius: 4px; font-family: var(--font-body); font-size: 1rem;
  color: var(--color-text); background: var(--color-bg); transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.rgpd-notice {
  font-size: 0.82rem; color: #6b7280; background: #F9FAFB;
  padding: 0.75rem 1rem; border-radius: 4px;
  border-left: 3px solid #D1D5DB; margin-top: 0.5rem;
}

/* === Map === */
.map-container { border-radius: 8px; overflow: hidden; border: 2px solid #E5E7EB; margin-top: 1.5rem; }
.map-container iframe { display: block; width: 100%; height: 340px; border: none; }

/* === Info box === */
.info-box {
  background: #F9FAFB; border: 1px solid #E5E7EB;
  border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.info-box h3 { color: var(--color-primary); margin-bottom: 0.75rem; }
.info-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.95rem; }
.info-item:last-child { margin-bottom: 0; }
.info-icon { flex-shrink: 0; color: var(--color-secondary); margin-top: 0.1rem; }

/* === Quote block === */
.quote-block {
  border-left: 4px solid var(--color-accent); padding: 1rem 1.25rem;
  background: rgba(245,158,11,0.06); border-radius: 0 8px 8px 0;
  font-style: italic; font-size: 1.05rem; margin: 1.5rem 0;
  color: var(--color-primary); font-family: var(--font-display);
}

/* === Page hero (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, #18181B 0%, #2d0a0a 100%);
  color: #fff; padding: 2.5rem 0 2rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero .subtitle { color: rgba(255,255,255,0.7); font-size: 1.05rem; }
.page-hero nav.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-hero nav.breadcrumb a:hover { color: #fff; }
.page-hero nav.breadcrumb span { color: rgba(255,255,255,0.35); }
.page-hero nav.breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* === Section alt === */
.section-alt { background: #F9FAFB; }

/* === About grid === */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }

/* === Footer === */
.site-footer { background: var(--color-primary); color: #CBD5E1; padding: 2.5rem 0 1.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h3 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.site-footer p, .site-footer address { font-style: normal; font-size: 0.9rem; line-height: 1.7; }
.site-footer a { color: rgba(245,158,11,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  font-size: 0.82rem; color: #94A3B8;
}
.footer-bottom a { color: #94A3B8; }
.footer-bottom a:hover { color: #fff; }

/* === Animations === */
.animate-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* === Tablet === */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 2fr; }
}

/* === Desktop Nav === */
@media (min-width: 768px) {
  .site-nav { display: flex !important; flex-direction: row; align-items: center; position: static; background: none; border: none; }
  .nav-list { flex-direction: row; }
  .nav-list a { padding: 0.5rem 0.85rem; border-bottom: none; border-radius: 4px; }
  .menu-btn { display: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === Large desktop === */
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   ANIMATION PASS — WEB-1780 Jay Kut Shop
   Toutes les animations sont sous prefers-reduced-motion: no-preference.
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-motion: no-preference) {

  /* 1 — Hero : entrée échelonnée des blocs (keyframes, aucun JS) */
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero .rating-badge { animation: hero-rise 0.55s ease both 0.05s; }
  .hero h1            { animation: hero-rise 0.60s ease both 0.18s; }
  .hero .tagline      { animation: hero-rise 0.55s ease both 0.32s; }
  .hero .hero-lead    { animation: hero-rise 0.55s ease both 0.44s; }
  .hero .hero-cta     { animation: hero-rise 0.55s ease both 0.56s; }
  .hero-placeholder   { animation: hero-rise 0.55s ease both 0.68s; }

  /* 2 — Visual placeholder : reflet lumineux cyclique (::after, aucun DOM ajouté) */
  .visual-placeholder { position: relative; overflow: hidden; }
  .visual-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.06) 50%,
      transparent 70%
    );
    background-size: 250% 100%;
    animation: vp-sweep 5s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes vp-sweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* 3 — Testimonials : lift au survol */
  .testimonial-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.12);
  }

  /* 4 — Tel-CTA header : halo ambre pulsé */
  @keyframes tel-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    55%       { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.20); }
  }
  .tel-cta { animation: tel-pulse 3.5s ease-in-out 2s infinite; }

  /* 5 — Card-link : soulignement glissant sur « Découvrir → » */
  .card-link {
    position: relative;
    display: inline-block;
  }
  .card-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }
  .card-link:hover::after,
  .card-link:focus-visible::after { transform: scaleX(1); }

}
