/* ======================================================================
   USINE WEBPROSUISSE - PREMIUM AGENCY STYLES (5000€ TIER)
   Client: Physiothérapie à domicile - Nihed Mekhancha
====================================================================== */

/* Agent 12 (Font Optimizer) : Chargement WOFF2 Direct Local/Gstatic (LCP < 0.5s) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(https://fonts.gstatic.com/s/outfit/v11/QGYyz_MVcBeNP4NJtEtqgQ.woff2) format('woff2'); }

:root {
  --color-bg: #F8FBFA; 
  --color-white: #FFFFFF;
  --color-primary: #0A697B; 
  --color-primary-light: #159DB4;
  --color-accent: #00C6A9; 
  --color-text: #2D3748; 
  --color-text-light: #718096;
  --color-border: #E2E8F0;
  
  --shadow-soft: 0 10px 40px rgba(10, 105, 123, 0.08);
  --shadow-glow: 0 10px 25px rgba(0, 198, 169, 0.3);
  --shadow-card: 0 20px 40px rgba(0,0,0,0.06);
  --radius-lg: 24px;
  --radius-md: 16px;
  
  --space-section: 120px;
  --space-element: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--color-text); background-color: var(--color-bg); line-height: 1.7; overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; color: var(--color-primary); line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease, transform 0.3s ease; }
p { margin-bottom: 1.5rem; color: var(--color-text-light); font-size: 1.1rem; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; will-change: transform, opacity; }

.navbar {
  position: fixed; top: 0; left: 0; width: 100%; padding: 1.2rem 5%;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); z-index: 1000;
  display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s ease, padding 0.3s ease;
}

.logo { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--color-primary); display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--color-accent); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 1.05rem; color: var(--color-text); position: relative; }
.nav-links a:hover { color: var(--color-primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background-color: var(--color-accent); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }

.btn-primary { background: var(--color-primary); color: var(--color-white) !important; padding: 14px 32px; border-radius: 50px; font-weight: 600; box-shadow: 0 4px 15px rgba(10, 105, 123, 0.2); transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--color-primary-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(10, 105, 123, 0.3); }
.btn-accent { background: var(--color-accent); color: var(--color-white) !important; box-shadow: var(--shadow-glow); }
.btn-accent:hover { background: #00E0C0; box-shadow: 0 15px 35px rgba(0, 198, 169, 0.4); }

.hero { padding: 180px 5% calc(var(--space-section) / 2); display: flex; align-items: center; gap: 4rem; min-height: 100vh; position: relative; }
.hero::before { content: ''; position: absolute; top: -10%; right: -5%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 198, 169, 0.15) 0%, rgba(248, 251, 250, 0) 70%); z-index: -1; }
.hero-text { flex: 1.1; }
.hero-tag { display: inline-block; background: rgba(0, 198, 169, 0.1); color: var(--color-primary); padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; margin-bottom: 1.5rem; border: 1px solid rgba(0, 198, 169, 0.2); letter-spacing: 0.5px; }

/* SEO Optimised H1 styling */
.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--color-primary); line-height: 1.1; }
.hero h1 span { color: var(--color-accent); display: block; font-size: 4rem; margin-top: 0.2rem; }
.hero h2 { font-family: 'Inter', sans-serif; font-size: 1.3rem; font-weight: 400; color: var(--color-text-light); margin-bottom: 2.5rem; line-height: 1.6; max-width: 90%; }

.hero-img-wrapper { flex: 1; position: relative; }
.hero-img-wrapper img { width: 100%; height: auto; object-fit: cover; border-radius: 40px 140px 40px 40px; box-shadow: var(--shadow-soft); position: relative; z-index: 2; transition: transform 0.5s ease; }
.hero-img-wrapper:hover img { transform: scale(1.02); }
.hero-img-backdrop { position: absolute; top: 20px; left: -20px; width: 100%; height: 100%; background: var(--color-accent); border-radius: 40px 140px 40px 40px; z-index: 1; opacity: 0.1; }

.trust-bar { background: var(--color-white); padding: 2.5rem 5%; display: flex; justify-content: center; align-items: center; gap: 4rem; box-shadow: 0 4px 20px rgba(0,0,0,0.02); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--color-primary); font-size: 1.1rem; }
.trust-icon { width: 24px; height: 24px; fill: var(--color-accent); }

.section { padding: var(--space-section) 5%; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto var(--space-element); }
.section-title { font-size: 2.8rem; margin-bottom: 1rem; }

/* New Elegant Card Grid for Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; }
.service-card { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); border: 1px solid rgba(255,255,255,0.8); position: relative; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-15px); box-shadow: 0 30px 60px rgba(10, 105, 123, 0.15); }
.service-image { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-image img { transform: scale(1.08); }
.service-content { padding: 2.5rem 2rem; flex: 1; display: flex; flex-direction: column; }
.service-content h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.service-content p { font-size: 1.05rem; margin-bottom: 1.5rem; flex: 1; }
.service-link { font-weight: 600; color: var(--color-accent); display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid transparent; padding-bottom: 2px; width: fit-content; transition: padding-left 0.3s, border-color 0.3s; }
.service-link:hover { padding-left: 10px; border-color: var(--color-accent); }

/* About Section */
.about-section { background: var(--color-primary); color: var(--color-white); border-radius: var(--radius-lg); margin: 0 5%; padding: 5rem; display: flex; align-items: center; gap: 4rem; box-shadow: 0 30px 60px rgba(10, 105, 123, 0.3); }
.about-section h2 { color: var(--color-white); }
.about-section p { color: #E2E8F0; }
.about-text { flex: 1; }
.about-badges { display: flex; gap: 15px; margin-top: 2rem; flex-wrap: wrap; }
.badge { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); padding: 10px 20px; border-radius: 50px; font-weight: 500; backdrop-filter: blur(5px); }
.about-img { flex: 1; text-align: right; }
.about-img img { width: 100%; max-width: 500px; height: auto; border-radius: var(--radius-md); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

/* Testimonials (Agent 15 - Social Proof & Stars JSON-LD) */
.testimonials-section { margin: var(--space-element) 5%; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.testimonial-card { background: var(--color-white); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border-left: 4px solid var(--color-accent); transition: transform 0.3s; }
.testimonial-card:hover { transform: translateY(-5px); }
.testimonial-stars { color: #FFD700; display: flex; gap: 4px; margin-bottom: 1rem; }
.testimonial-text { font-style: italic; color: var(--color-text-light); margin-bottom: 1.5rem; }
.testimonial-author { font-weight: 600; color: var(--color-primary); font-family: 'Outfit', sans-serif; display: flex; align-items: center; gap: 8px; }
.verified-icon { width: 18px; height: 18px; fill: #38A169; }

/* FAQ Section */
.faq-section { background: var(--color-white); }
.faq-container { max-width: 800px; margin: 0 auto; }
details { border-bottom: 1px solid var(--color-border); padding: 1.5rem 0; }
details:first-of-type { border-top: 1px solid var(--color-border); }
summary { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--color-primary); cursor: pointer; list-style: none; position: relative; padding-right: 30px; transition: color 0.3s; }
summary:hover { color: var(--color-accent); }
summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 300; transition: transform 0.3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin-top: 1rem; margin-bottom: 0; padding-right: 20px; }

/* Whatsapp Float Pulse */
.whatsapp-float { position: fixed; bottom: 40px; right: 40px; background-color: #25D366; color: white !important; padding: 16px 28px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; z-index: 1000; box-shadow: 0 10px 30px rgba(37,211,102,0.4); transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); overflow: hidden; }
.whatsapp-pulse { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50px; border: 2px solid #25D366; animation: radar 2s infinite cubic-bezier(0.165, 0.84, 0.44, 1); pointer-events: none; }
.whatsapp-float:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 15px 40px rgba(37,211,102,0.5); }
@keyframes radar { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }

/* Footer */
footer { background: #1A202C; color: var(--color-white); padding: 5rem 5% 2rem; border-top: 4px solid var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4rem; margin-bottom: 3rem; }
.footer-col h3 { color: var(--color-white); font-size: 1.5rem; margin-bottom: 1.5rem; }
.footer-col p, .footer-col a { color: #A0AEC0; line-height: 1.8; }
.footer-col a { display: block; margin-bottom: 0.8rem; }
.footer-col a:hover { color: var(--color-accent); transform: translateX(5px); }
.footer-bottom { text-align: center; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); color: #718096; }

@media (max-width: 992px) {
  .hero { flex-direction: column; text-align: center; padding-top: 140px; gap: 3rem; }
  .hero::before { display: none; }
  .hero h1 { font-size: 2.8rem; }
  .hero h1 span { font-size: 3.2rem; }
  .hero h2 { margin-left: auto; margin-right: auto; }
  .hero-img-wrapper img { border-radius: 30px 80px 30px 30px; }
  .hero-img-backdrop { border-radius: 30px 80px 30px 30px; }
  .trust-bar { gap: 2rem; padding: 2rem; flex-direction: column; align-items: flex-start; margin: 0 5%; border-radius: var(--radius-lg); }
  .about-section { flex-direction: column; padding: 4rem 2rem; text-align: center; }
  .about-badges { justify-content: center; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero h1 span { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .btn-primary { width: 100%; justify-content: center; }
  .whatsapp-float { bottom: 20px; right: 20px; padding: 14px 22px; font-size: 1rem; }
}
