/* ================================================================
   PurifyPro — design system partagé
   Utilisé par : qui-sommes-nous.html + les 8 pages service.
   NE PAS dupliquer ces règles dans le <style> d'une page.
   Chaque page garde dans son propre <style> uniquement ce qui lui
   est spécifique (sections avantages/prestations propres, widgets
   interactifs, galerie photo, etc.)
================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy:      #0A0F2C;
  --navy-mid:  #111638;
  --gold:      #C9A84C;
  --gold-light:#E2C97E;
  --fresh:     #5EEAD4;
  --offwhite:  #F8F8F5;
  --white:     #FFFFFF;
  --text-dark: #1A1A2E;
  --text-mid:  #4B5563;
  --text-light:#6B7280;
  --radius-md: 16px;
  --radius-lg: 28px;
  --transition: all 0.38s cubic-bezier(0.25,0.8,0.25,1);
  --shadow-gold: 0 8px 40px rgba(201,168,76,0.18);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: var(--offwhite); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── PAGE-IN : rideau qui se retire vers le haut ── */
#pp-page-in {
  position: fixed; inset: 0;
  background: linear-gradient(160deg,#07091F 0%,#0A0F2C 55%,#111638 100%);
  z-index: 99999; pointer-events: none;
  transform: translateY(0);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
#pp-page-in .pi-line {
  width: 100px; height: 1px;
  background: linear-gradient(90deg,transparent,#C9A84C,transparent);
  margin-bottom: 12px;
}
#pp-page-in .pi-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem,5vw,3.5rem);
  font-weight: 900; color: #FAFAF8; letter-spacing: -0.5px;
}
#pp-page-in .pi-logo span { color: #C9A84C; }
#pp-page-in .pi-svc {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(201,168,76,0.65);
}

/* ── NAV ── */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: padding 0.5s cubic-bezier(0.65,0,0.35,1); }
#navbar.scrolled { padding: 14px 0; }
.navbar-pill { max-width: 1180px; margin: 0 auto; padding: 0 24px; border-radius: 26px; background-color: rgba(10,15,44,0); box-shadow: 0 0 0 rgba(0,0,0,0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); transition: background-color 0.5s cubic-bezier(0.65,0,0.35,1), box-shadow 0.5s cubic-bezier(0.65,0,0.35,1), backdrop-filter 0.5s cubic-bezier(0.65,0,0.35,1), padding 0.5s cubic-bezier(0.65,0,0.35,1); }
#navbar.scrolled .navbar-pill { background-color: rgba(10,15,44,0.92); box-shadow: 0 12px 40px rgba(0,0,0,0.35); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 12px 24px 8px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; color: var(--white); letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  line-height: 1; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.78); letter-spacing: 0.3px; transition: color 0.25s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--navy) !important; font-weight: 700 !important; padding: 10px 24px !important; border-radius: 50px !important; font-size: 13px !important; transition: var(--transition) !important; }
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }
.service-switcher { position: relative; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
#navbar.scrolled .service-switcher { margin-top: 10px; padding-top: 10px; }
.switcher-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.switcher-track::-webkit-scrollbar { display: none; }
.switcher-pill { display: flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.65); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.switcher-pill:hover { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.35); color: var(--white); }
.switcher-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.switcher-pill--active, .switcher-pill--active:hover { background: rgba(201,168,76,0.16); border-color: rgba(201,168,76,0.5); color: var(--gold); cursor: default; }
.mobile-menu { position: fixed; inset: 0; background: rgba(7,9,31,1); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.mobile-menu.open { transform: none; }
.mobile-menu a { font-size: 1.4rem; font-weight: 700; color: var(--white); font-family: 'Playfair Display', serif; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-close { position: absolute; top: 24px; right: 24px; font-size: 2rem; color: var(--white); background: none; border: none; cursor: pointer; }

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--navy); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; padding: 16px 36px; border-radius: 50px; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,0.35); }
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--white); font-weight: 600; font-size: 15px; padding: 15px 35px; border-radius: 50px; border: 1.5px solid rgba(94,234,212,0.45); transition: var(--transition); }
.btn-secondary:hover { border-color: #5EEAD4; color: #5EEAD4; transform: translateY(-2px); }

/* ── FORMULAIRE DE DEVIS ── */
.contact-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 44px 40px; box-shadow: 0 24px 64px rgba(0,0,0,0.25); }
.contact-form-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-mid); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 16px; border: 1.5px solid rgba(0,0,0,0.1); border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-dark); background: var(--offwhite); transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--text-light); line-height: 1.5; margin-bottom: 22px; }
.form-consent input { width: auto; margin-top: 3px; }
.form-submit { width: 100%; justify-content: center; }
.form-submit:disabled { opacity: 0.7; cursor: default; transform: none !important; }
.form-feedback { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--text-mid); text-align: center; display: none; }
.form-feedback.is-visible { display: block; }
.form-feedback.is-error { color: #B23B2E; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .contact-form-card { padding: 32px 24px; } }

/* ── HERO (structure commune ; le fond/l'icône restent définis par page) ── */
#service-hero { background: var(--navy); min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 176px 0 100px; }
.hero-bg-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 50% at 75% 40%, rgba(201,168,76,0.10) 0%, transparent 60%), radial-gradient(ellipse 50% 70% at 10% 80%, rgba(15,25,80,0.9) 0%, transparent 60%), linear-gradient(135deg, #07091F 0%, #0A0F2C 40%, #111638 100%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: orbPulse 8s ease-in-out infinite alternate; }
@keyframes orbPulse { from { transform: scale(1) translateY(0); opacity: 0.8; } to { transform: scale(1.15) translateY(-30px); opacity: 1; } }
.hero-orb--1 { width: min(450px,70vw); height: min(450px,70vw); background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%); right: -5%; top: 5%; }
.hero-orb--2 { width: min(280px,50vw); height: min(280px,50vw); background: radial-gradient(circle, rgba(15,25,80,0.8) 0%, transparent 70%); left: -5%; bottom: 20%; animation-delay: -3s; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 24px; font-weight: 500; }
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3); border-radius: 50px; padding: 6px 16px; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 24px; }
.hero-icon { line-height: 1; margin-bottom: 24px; display: block; animation: iconBounce 0.9s cubic-bezier(0.34,1.56,0.64,1) 0.4s both; }
@keyframes iconBounce { from { opacity: 0; transform: scale(0.2) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; color: var(--white); line-height: 1.15; margin-bottom: 20px; animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.65s both; }
.hero-title span { color: var(--gold); }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 40px; animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.80s both; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.95s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.15); border-radius: var(--radius-md); margin-top: 60px; overflow: hidden; animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 1.1s both; }
.stat-item { background: rgba(10,15,44,0.85); padding: 24px 16px; text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--gold); display: block; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }

/* ── SECTIONS (en-têtes communs) ── */
.section { padding: 100px 0; }
.section--light { background: var(--offwhite); }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section-label--light { color: rgba(201,168,76,0.85); }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 900; color: var(--text-dark); line-height: 1.2; margin-bottom: 16px; }
.section-title--light { color: var(--white); }
.section-subtitle { font-size: 1.05rem; color: var(--text-mid); max-width: 560px; line-height: 1.7; }
.section-header { margin-bottom: 60px; }

/* ── FAQ (accordéon, commun aux pages service) ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 56px auto 0; }
.faq-item { background: var(--white); border: 1px solid rgba(10,15,44,0.08); border-left: 3px solid transparent; border-radius: 14px; transition: border-color 0.25s, background 0.25s; }
.faq-item.open { border-left-color: var(--gold); box-shadow: var(--shadow-gold); }
.faq-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left; font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--text-dark); touch-action: manipulation; }
.faq-item.open .faq-btn { color: var(--navy); }
.faq-ico { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: rgba(10,15,44,0.05); border: 1.5px solid rgba(10,15,44,0.1); display: flex; align-items: center; justify-content: center; transition: all 0.35s cubic-bezier(0.22,1,0.36,1); color: var(--text-mid); }
.faq-item.open .faq-ico { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: rotate(45deg); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 22px 24px; font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }

/* ── CTA (structure commune) ── */
.cta-content { position: relative; z-index: 1; }
.cta-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--white); margin-bottom: 16px; line-height: 1.2; }
.cta-title span { color: var(--gold); }
.cta-sub { font-size: 1rem; color: rgba(255,255,255,0.5); margin-bottom: 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── GOLD DIVIDER ── */
.gold-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent); }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 80px 0 0; color: rgba(255,255,255,0.6); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(201,168,76,0.1); }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--white); margin-bottom: 18px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.6); transition: var(--transition); }
.social-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-links span { font-size: 14px; color: rgba(255,255,255,0.55); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 13px; }
.footer-copy { color: rgba(255,255,255,0.55); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.55); font-size: 12px; transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* ── REVEAL (animation d'apparition au scroll) ── */
.reveal { opacity: 0; transform: translateY(24px); }

/* ── RESPONSIVE (nav, footer, hero-stats) ── */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  #service-hero { padding: 158px 0 80px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* Empêche le zoom auto iOS sur les champs de formulaire (mobile/tablette) */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}
