@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;600;700&display=swap');
@import './tokens.css';

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── 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); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
section { padding: 3.5rem 0; }
section:nth-child(even) { background: #F9FAFB; }

/* ─── Header / Nav ───────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-link img { height: 36px; width: auto; filter: invert(1); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--color-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

/* Hamburger */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  transition: transform 0.3s, opacity 0.3s;
}
.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 menu */
.nav-menu {
  display: none;
  flex-direction: column;
  background: var(--color-primary);
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(201,150,58,0.3);
}
.nav-menu.is-open { display: flex; }
.nav-menu a {
  color: #FFFFFF;
  padding: 0.65rem 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s;
}
.nav-menu a:last-child { border-bottom: none; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--color-accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: var(--color-secondary);
  color: #FFFFFF !important;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: none !important;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 3rem 0 0;
}
.hero-content { padding-bottom: 2.5rem; }
.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.hero h1 { color: #FFFFFF; margin-bottom: 1.25rem; }
.hero-desc { color: #D1D5DB; margin-bottom: 1.5rem; font-size: 1.05rem; }
.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.stars { color: var(--color-accent); font-size: 1.1rem; letter-spacing: 1px; }
.rating-text { font-size: 0.9rem; color: #9CA3AF; }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--color-secondary); color: #FFFFFF; }
.btn-outline { background: transparent; color: #FFFFFF; border: 2px solid rgba(255,255,255,0.5); }
.btn-accent { background: var(--color-accent); color: var(--color-primary); }

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

/* Hero placeholder override — dark gradient */
.hero .visual-placeholder {
  border-radius: 0;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2D1B2E 0%, #18181B 45%, #3B0A20 100%);
  opacity: 0.7;
}

/* ─── Section headers ────────────────────────────────────────── */
.section-header { margin-bottom: 2.5rem; }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-header h2 { color: var(--color-primary); }
.section-header p { color: #6B7280; max-width: 520px; }
.divider {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 0.75rem 0 1rem;
}

/* ─── Trust bar ──────────────────────────────────────────────── */
.trust-bar {
  background: var(--color-accent);
  padding: 0.9rem 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ─── Features grid ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.feature-card {
  padding: 1.5rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  border-top: 4px solid var(--color-accent);
  background: #FFFFFF;
}
.feature-card h3 { margin-bottom: 0.5rem; color: var(--color-primary); }
.feature-card p { color: #6B7280; font-size: 0.95rem; margin-bottom: 0; }

/* ─── Services list ──────────────────────────────────────────── */
.services-list { display: flex; flex-direction: column; gap: 3rem; }
.service-item { display: flex; flex-direction: column; gap: 1.5rem; }
.service-body h3 { color: var(--color-primary); margin-bottom: 0.75rem; }
.service-body p { color: #4B5563; margin-bottom: 1rem; }
.service-body ul { display: flex; flex-direction: column; gap: 0.4rem; }
.service-body li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #374151;
}
.service-body li::before {
  content: "✦";
  color: var(--color-accent);
  font-size: 0.7rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* ─── Reviews ────────────────────────────────────────────────── */
.reviews { background: var(--color-primary); }
.reviews .section-header h2 { color: #FFFFFF; }
.reviews .section-label { color: var(--color-accent); }
.reviews-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
}
.google-logo { font-size: 1rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,150,58,0.25);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.review-author { font-weight: 700; color: #FFFFFF; font-size: 0.95rem; }
.review-date { font-size: 0.8rem; color: #9CA3AF; }
.review-stars { color: var(--color-accent); font-size: 0.9rem; margin-bottom: 0.5rem; }
.review-text { color: #D1D5DB; font-size: 0.9rem; line-height: 1.5; }
.reviews-attribution {
  font-size: 0.75rem;
  color: #9CA3AF;
}
.reviews-attribution a { color: #9CA3AF; text-decoration: underline; }

/* ─── À-propos ───────────────────────────────────────────────── */
.about-layout { display: flex; flex-direction: column; gap: 2rem; }
.about-body h2 { margin-bottom: 1.25rem; }
.about-body p { color: #4B5563; margin-bottom: 1rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--color-primary);
  border-radius: 8px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}
.stat-label { font-size: 0.75rem; color: #D1D5DB; letter-spacing: 0.5px; }

/* ─── CTA band ───────────────────────────────────────────────── */
.cta-band {
  background: var(--color-secondary);
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 { color: #FFFFFF; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.7); }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-layout { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #E5E7EB;
}
.contact-detail:last-child { border-bottom: none; }
.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail-content strong { display: block; color: var(--color-primary); font-size: 0.85rem; margin-bottom: 0.1rem; }
.contact-detail-content a { color: var(--color-secondary); font-weight: 600; }

/* Map */
.map-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
}
.map-wrap iframe { width: 100%; height: 280px; border: none; display: block; }

/* Form */
.contact-form h3 { margin-bottom: 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color 0.2s;
  background: #FFFFFF;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(24,24,27,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { margin-top: 0.5rem; }
.form-submit .btn { width: 100%; justify-content: center; }
.rgpd-note {
  font-size: 0.78rem;
  color: #9CA3AF;
  margin-top: 0.75rem;
  line-height: 1.4;
}

/* ─── Cookie banner ──────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-primary);
  color: #D1D5DB;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  border-top: 3px solid var(--color-accent);
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--color-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
#cookie-banner .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
#cookie-banner[hidden] { display: none; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--color-primary);
  color: #D1D5DB;
  padding: 2.5rem 0 1.5rem;
  border-top: 3px solid var(--color-accent);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-brand .logo-text { color: #FFFFFF; }
.footer-brand p { color: #9CA3AF; font-size: 0.9rem; margin-top: 0.5rem; }
.footer-links h4 { color: var(--color-accent); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: #9CA3AF; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #FFFFFF; }
.footer-contact p { color: #9CA3AF; font-size: 0.9rem; line-height: 1.7; }
.footer-contact a { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #6B7280;
}
.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: #FFFFFF; }

/* ─── Tablet ─────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats .stat-num { font-size: 2.5rem; }
  .form-row { flex-direction: row; }
  .footer-inner { flex-direction: row; flex-wrap: wrap; gap: 2rem; }
  .footer-brand { flex: 1 1 200px; }
  .footer-links, .footer-contact { flex: 0 0 auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .cookie-actions { flex-direction: row; }
  #cookie-banner { flex-direction: row; align-items: center; }
  #cookie-banner p { flex: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATION PASS — WEB-1234 · Ticky & David
   Toutes les animations sont encapsulées dans prefers-reduced-motion: no-preference
   ════════════════════════════════════════════════════════════ */

/* ─── Focus visible élégant ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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

  /* ── Keyframes ─────────────────────────────────────────────── */
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes slide-in {
    from { transform: translateY(20px); }
    to   { transform: none; }
  }
  @keyframes shimmer-sweep {
    from { background-position: 200% center; }
    to   { background-position: -200% center; }
  }
  @keyframes divider-draw {
    from { width: 0; opacity: 0; }
    to   { width: 48px; opacity: 1; }
  }

  /* ── 1. Hero entrance — stagger page load ──────────────────── */
  .hero-tagline { animation: fade-up 0.55s ease both 0.05s; }
  .hero h1      { animation: fade-up 0.60s ease both 0.18s; }
  .hero-desc    { animation: fade-up 0.60s ease both 0.30s; }
  .hero-rating  { animation: fade-up 0.55s ease both 0.42s; }
  .hero-actions { animation: fade-up 0.55s ease both 0.52s; }
  /* Placeholder — transform seul pour respecter l'opacité CSS existante */
  .hero .visual-placeholder { animation: slide-in 0.70s ease both 0.38s; }

  /* ── 2. Trust bar — stagger items ──────────────────────────── */
  .trust-item                { animation: fade-up 0.50s ease both 0.00s; }
  .trust-item:nth-child(2)   { animation-delay: 0.10s; }
  .trust-item:nth-child(3)   { animation-delay: 0.20s; }
  .trust-item:nth-child(4)   { animation-delay: 0.30s; }

  /* ── 3. Visual placeholder shimmer (::after) ───────────────── */
  .visual-placeholder {
    position: relative;
    overflow: hidden;
  }
  .visual-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      transparent 30%,
      rgba(201, 150, 58, 0.07) 50%,
      transparent 70%
    );
    background-size: 200% 100%;
    animation: shimmer-sweep 4s ease-in-out infinite;
    pointer-events: none;
  }

  /* ── 4. Reveal stagger — feature & review cards ────────────── */
  .features-grid .feature-card.reveal:nth-child(2) { transition-delay: 0.12s; }
  .features-grid .feature-card.reveal:nth-child(3) { transition-delay: 0.24s; }
  .reviews-grid  .review-card.reveal:nth-child(2)  { transition-delay: 0.10s; }
  .reviews-grid  .review-card.reveal:nth-child(3)  { transition-delay: 0.20s; }
  .services-list .service-item.reveal:nth-child(2) { transition-delay: 0.08s; }
  .services-list .service-item.reveal:nth-child(3) { transition-delay: 0.16s; }

  /* ── 5. Hover — feature cards ──────────────────────────────── */
  .feature-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(24, 24, 27, 0.10);
  }

  /* ── 6. Hover — review cards ────────────────────────────────── */
  .review-card {
    transition: border-color 0.30s ease;
  }
  .review-card:hover {
    border-color: rgba(201, 150, 58, 0.55);
  }

  /* ── 7. Divider draw — scroll-driven (Chromium 115+) ─────────
     Fallback silencieux : sur anciens navigateurs, le divider
     apparaît simplement à largeur pleine sans animation.         */
  @supports (animation-timeline: view()) {
    .divider {
      animation: divider-draw linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
  }

  /* ── 8. Btn — lift hover amélioré ──────────────────────────── */
  .btn {
    transition: opacity 0.20s ease, transform 0.20s ease, box-shadow 0.20s ease;
  }
  .btn:hover {
    opacity: 0.90;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }

} /* end @media (prefers-reduced-motion: no-preference) */

/* ─── Reduced motion — filet de sécurité ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Desktop ────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    background: none;
    padding: 0;
    border-top: none;
    align-items: center;
    gap: 0.25rem;
  }
  .nav-menu a {
    padding: 0.4rem 0.75rem;
    border-bottom: none;
    font-size: 0.9rem;
    border-radius: 4px;
  }
  .nav-cta { margin-top: 0; }
  .hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 4rem 0; }
  .hero { padding: 0; }
  .hero-content { padding-bottom: 0; }
  .hero .visual-placeholder { border-radius: 8px; opacity: 1; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .service-item { flex-direction: row; gap: 2.5rem; align-items: flex-start; }
  .service-item .visual-placeholder { width: 320px; flex-shrink: 0; }
  .service-item:nth-child(even) { flex-direction: row-reverse; }
  .service-item:nth-child(even) .visual-placeholder { }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .about-layout { flex-direction: row; gap: 3rem; align-items: flex-start; }
  .about-layout .visual-placeholder { width: 340px; flex-shrink: 0; }
  .contact-layout { flex-direction: row; gap: 3rem; }
  .contact-info { flex: 0 0 320px; }
  .contact-form { flex: 1; }
}
