@import "./tokens.css";

/* ── Google Fonts ── */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@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);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
  outline-offset: 2px;
}

img, svg { max-width: 100%; height: auto; display: block; }

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

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  font-family: var(--font-body);
}

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

/* ── Header / Nav ── */
.site-header {
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(30,58,138,0.08);
}

.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;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-link:hover { text-decoration: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

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

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(30,58,138,0.1);
}

.site-nav.nav-open { display: block; }

.site-nav ul {
  list-style: none;
  padding: 0.5rem 0;
}

.site-nav ul li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.site-nav ul li a:hover,
.site-nav ul li a[aria-current="page"] {
  background: #EFF6FF;
  text-decoration: none;
  color: var(--color-accent);
}

.cta-btn-header {
  display: none;
}

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

  .site-nav {
    display: flex !important;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
  }

  .site-nav ul li a {
    padding: 0.5rem 1rem;
    border-bottom: none;
    border-radius: 6px;
    font-size: 0.95rem;
  }

  .cta-btn-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-primary);
    color: #fff !important;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
  }

  .cta-btn-header:hover {
    background: var(--color-accent);
    text-decoration: none;
    color: #fff !important;
  }
}

/* ── Visual Placeholder (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-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 ── */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e4fba 100%);
  color: #fff;
  padding: 3rem 1.25rem 2.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 700px;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.1rem;
  color: #BAE6FD;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.hero .rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  color: #FEF3C7;
  margin-bottom: 1.5rem;
}

.hero .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #0284C7;
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
  color: #fff;
}

/* ── Sections ── */
section {
  padding: 3rem 0;
}

section + section {
  border-top: 1px solid #E5E7EB;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: #374151;
  max-width: 700px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ── Atouts cards ── */
.atouts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.atout-card {
  background: #F8FAFF;
  border: 1px solid #DBEAFE;
  border-radius: 10px;
  padding: 1.5rem;
}

.atout-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.atout-card p {
  font-size: 0.95rem;
  color: #374151;
}

.atout-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.atout-icon svg { width: 20px; height: 20px; }

/* ── Services list ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
}

.service-card-body {
  padding: 1.25rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #374151;
  font-size: 0.95rem;
}

.service-card ul {
  margin-top: 0.75rem;
  padding-left: 1.2rem;
  color: #374151;
  font-size: 0.9rem;
}

.service-card ul li {
  margin-bottom: 0.25rem;
}

/* ── Tarifs block ── */
.tarifs-block {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.tarifs-block h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.tarifs-block ul {
  list-style: none;
  padding: 0;
}

.tarifs-block ul li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #DBEAFE;
  font-size: 0.95rem;
  color: #1E3A8A;
}

.tarifs-block ul li:last-child {
  border-bottom: none;
}

/* ── About ── */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  color: #374151;
  margin-bottom: 1rem;
}

.blockquote-creole {
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: #F0F9FF;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ── Reviews ── */
.reviews-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.stars {
  color: #F59E0B;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.review-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 1.25rem;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.review-author {
  font-weight: 600;
  color: var(--color-primary);
}

.review-date {
  font-size: 0.85rem;
  color: #6B7280;
}

.review-text {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
}

.review-attribution {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #9CA3AF;
  text-align: center;
}

.review-placeholder {
  background: #F0F9FF;
  border: 2px dashed var(--color-accent);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  color: #374151;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 18px; height: 18px; }

.contact-detail-text strong {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.1rem;
}

.contact-detail-text a {
  color: var(--color-text);
  font-size: 1rem;
}

.contact-form-wrap {
  background: #F8FAFF;
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  padding: 1.5rem;
}

.contact-form-wrap h3 {
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

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

.rgpd-notice {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  margin-top: 1.5rem;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: #BAE6FD;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}

.cta-banner .btn-primary:hover {
  background: #F0F9FF;
  color: var(--color-primary);
}

/* ── Footer ── */
.site-footer {
  background: #111827;
  color: #D1D5DB;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-nav h4,
.footer-contact h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 0.4rem;
}

.footer-nav ul li a {
  color: #D1D5DB;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav ul li a:hover {
  color: var(--color-accent);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-contact a {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6B7280;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Page header ── */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e4fba 100%);
  color: #fff;
  padding: 2.5rem 1.25rem 2rem;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  max-width: 750px;
}

.page-header .breadcrumb {
  font-size: 0.85rem;
  color: #BAE6FD;
  margin-bottom: 0.75rem;
}

.page-header .breadcrumb a {
  color: #BAE6FD;
  text-decoration: none;
}

.page-header .breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Phone CTA floating ── */
.phone-cta-sticky {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
}

.phone-cta-sticky a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(14,165,233,0.4);
  text-decoration: none;
}

.phone-cta-sticky a:hover {
  background: #0284C7;
  text-decoration: none;
  color: #fff;
}

/* ═══════════════════════════════════════════
   ANIMATION PASS — WEB-1757
   Template D/E · Cabinet du Dr Marie Billaud
   ═══════════════════════════════════════════ */

/* Réduction de mouvement — WCAG 2.3.1 (toujours en premier) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

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

  /* 1. Hero — entrée échelonnée des éléments */
  @keyframes hero-slide-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero .rating-badge {
    animation: hero-slide-up 0.5s ease both;
    animation-delay: 0.05s;
  }

  .hero h1 {
    animation: hero-slide-up 0.55s ease both;
    animation-delay: 0.18s;
  }

  .hero .tagline {
    animation: hero-slide-up 0.55s ease both;
    animation-delay: 0.3s;
  }

  .hero .cta-group {
    animation: hero-slide-up 0.5s ease both;
    animation-delay: 0.44s;
  }

  /* 2. Atout-card — lift au survol */
  .atout-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .atout-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.14);
    border-color: var(--color-accent);
  }

  /* 3. Phone CTA sticky — anneau pulsant */
  @keyframes phone-ring {
    0%   { box-shadow: 0 4px 16px rgba(14,165,233,0.4), 0 0 0 0   rgba(14,165,233,0.5); }
    60%  { box-shadow: 0 4px 16px rgba(14,165,233,0.4), 0 0 0 14px rgba(14,165,233,0);   }
    100% { box-shadow: 0 4px 16px rgba(14,165,233,0.4), 0 0 0 0   rgba(14,165,233,0);   }
  }

  .phone-cta-sticky a {
    animation: phone-ring 2.5s ease-in-out infinite;
  }

  /* 4. Visual placeholder — shimmer glissant + lift au survol */
  @keyframes placeholder-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }

  .visual-placeholder {
    background-size: 200% 200%;
    animation: placeholder-shimmer 7s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
  }

  .visual-placeholder:hover {
    transform: translateY(-2px);
  }

  /* 5. Bouton primaire — micro-scale survol / clic */
  .btn-primary {
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .btn-primary:hover {
    transform: scale(1.03);
  }

  .btn-primary:active {
    transform: scale(0.97);
  }

}

/* 6. Nav links — soulignement animé (desktop, hors CTA header) */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .site-nav ul li a:not(.cta-btn-header) {
    position: relative;
    background-image: linear-gradient(var(--color-accent), var(--color-accent));
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: left bottom;
    transition: background-size 0.25s ease, color 0.15s ease, background-color 0.15s ease;
  }

  .site-nav ul li a:not(.cta-btn-header):hover,
  .site-nav ul li a:not(.cta-btn-header)[aria-current="page"] {
    background-size: 80% 2px;
  }
}

/* ── Tablet / Desktop ── */
@media (min-width: 640px) {
  .atouts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
