/* Charte graphique - HumidiNord (Style Vanilla CSS) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Couleurs */
  --primary: #0a192f;      /* Bleu marine très profond */
  --secondary: #172a45;    /* Bleu marine intermédiaire */
  --accent: #00bcd4;       /* Cyan */
  --accent-hover: #00acc1;
  --cta: #facc15;          /* Jaune moutarde (conversion) */
  --cta-hover: #e2b80d;
  --text-dark: #1e293b;    /* Gris très sombre */
  --text-light: #f8fafc;   /* Blanc cassé */
  --text-muted: #64748b;   /* Gris moyen */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Ombres et Bords */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout Général --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.section-dark h2, .section-dark h3 {
  color: var(--text-light);
}

.section-bg {
  background-color: var(--bg-light);
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
  font-weight: 800;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px auto;
  font-size: 1.1rem;
}

.section-dark .section-subtitle {
  color: #cbd5e1;
}

/* --- Header & Navigation --- */
header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 62px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  gap: 8px;
}

.btn-primary {
  background-color: var(--cta);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}

.btn-primary:hover {
  background-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.5);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 188, 212, 0.3);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-phone {
  background-color: #0284c7;
  color: white;
}

.btn-phone:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}

.burger-bar {
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(0, 188, 212, 0.15);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 188, 212, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.05);
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background-color: var(--bg-white);
  color: var(--primary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-title);
  line-height: 1;
}

.hero-badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

/* --- Bandeau Réassurance Rapide --- */
.reassurance-band {
  background-color: var(--bg-light);
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
}

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reassurance-icon {
  background-color: var(--bg-white);
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.reassurance-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.reassurance-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Section Symptômes (Auto-Diagnostic) --- */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.symptom-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #f1f5f9;
  transition: var(--transition);
}

.symptom-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 188, 212, 0.3);
}

.symptom-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.symptom-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.symptom-card:hover .symptom-img img {
  transform: scale(1.05);
}

.symptom-content {
  padding: 24px;
}

.symptom-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.symptom-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.symptom-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.symptom-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.symptom-link:hover {
  color: var(--primary);
}

/* --- Section Prestations --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 188, 212, 0.2);
}

.service-card.phare {
  border-top: 4px solid var(--accent);
  background: linear-gradient(180deg, rgba(0, 188, 212, 0.02) 0%, rgba(255,255,255,1) 100%);
}

.service-phare-tag {
  position: absolute;
  top: 16px;
  right: 20px;
  background-color: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.service-icon {
  color: var(--accent);
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.service-list li svg {
  color: var(--success);
  flex-shrink: 0;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.service-link:hover {
  color: var(--accent);
}

/* --- Section Conséquences --- */
.consequences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.consequences-text h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.consequences-desc {
  margin-bottom: 24px;
}

.consequences-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.consequence-item {
  display: flex;
  gap: 16px;
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--error);
}

.consequence-item.batiment {
  border-left-color: #f97316;
}

.consequence-icon {
  font-size: 1.5rem;
  color: var(--error);
}

.consequence-item.batiment .consequence-icon {
  color: #f97316;
}

.consequence-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.consequence-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Section Slider Avant/Après --- */
.slider-container-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.before-after-slider {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--bg-white);
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-after {
  z-index: 1;
}

.img-before {
  z-index: 2;
  width: 50%;
  overflow: hidden;
}

.img-before img {
  max-width: none;
  /* Pour s'assurer que l'image ne se déforme pas */
  width: 800px; 
}

.slider-handle {
  position: absolute;
  z-index: 3;
  top: 0;
  /* Doit correspondre à la largeur de l'image 'before' */
  left: 50%; 
  width: 4px;
  height: 100%;
  background-color: var(--bg-white);
  cursor: ew-resize;
  transform: translateX(-50%);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--bg-white);
  font-weight: bold;
  pointer-events: none; /* L'interaction se fait sur le handle */
}

.slider-label {
  position: absolute;
  bottom: 20px;
  z-index: 2;
  background-color: rgba(10, 25, 47, 0.8);
  color: var(--text-light);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.label-before {
  left: 20px;
}

.label-after {
  right: 20px;
  z-index: 2; /* L'étiquette 'après' doit être devant l'image */
}

/* --- Section Réassurance Certifications & Agréments --- */
.certifications-section {
  background-color: var(--bg-light);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 60px 0;
}

.certifications-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.certifications-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.certifications-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
}

.certif-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 150px;
  text-align: center;
}

.certif-logo {
  height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.certif-item:hover .certif-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.certif-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* --- Section Témoignages & Avis GBP --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background-color: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #f1f5f9;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.review-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.review-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-stars {
  color: #fbbf24;
  margin-bottom: 16px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-style: italic;
}

.review-gmb-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* --- Section Diagnostic Gratuit (Formulaire Lead Bait) --- */
.diagnostic-section {
  background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
  color: var(--text-light);
  position: relative;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.diagnostic-text h2 {
  color: var(--text-light);
  font-size: 2.25rem;
  margin-bottom: 24px;
}

.diagnostic-text h2 span {
  color: var(--accent);
}

.diagnostic-text-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 32px;
}

.qualif-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qualif-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qualif-icon {
  background-color: rgba(0, 188, 212, 0.15);
  color: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diagnostic-form-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  color: var(--text-dark);
}

.diagnostic-form-box h3 {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--primary);
}

.diagnostic-form-value {
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.diagnostic-form-value strong {
  color: var(--primary);
  background-color: rgba(250, 204, 21, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #cbd5e1;
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  background-color: var(--bg-white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 24px 0;
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 4px;
  cursor: pointer;
}

.btn-confirm {
  width: 100%;
  background-color: var(--cta);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}

.btn-confirm:hover {
  background-color: var(--cta-hover);
  transform: translateY(-2px);
}

/* --- Section Informations Pratiques (Bandeau Map comme Aqua-Control) --- */
.info-map-section {
  padding: 0;
  background-color: var(--bg-light);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.info-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.map-container {
  height: 500px;
  width: 100%;
  z-index: 10;
}

.info-panel {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-panel-logo {
  height: 70px;
  width: auto;
  margin-bottom: 32px;
  align-self: flex-start;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-icon {
  background-color: var(--bg-white);
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.info-content p, .info-content a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.info-content a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  background-color: #3b5998;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* --- Footer --- */
footer {
  background-color: var(--primary);
  color: #cbd5e1;
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-about img {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact {
  list-style: none;
  font-size: 0.9rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-contact svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
}

/* --- Éléments Sticky (Mobile CTA, WhatsApp) --- */
.whatsapp-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.whatsapp-popup:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  font-size: 1.3rem;
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  border-top: 2px solid var(--accent);
  z-index: 990;
  padding: 10px 16px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-badge {
    left: 20px;
  }
  .reassurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .symptom-grid, .services-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .consequences-grid {
    grid-template-columns: 1fr;
  }
  .info-map-grid {
    grid-template-columns: 1fr;
  }
  .map-container {
    height: 350px;
  }
  .info-panel {
    padding: 40px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .burger-menu {
    display: flex;
  }
  
  /* Mobile menu active */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--accent);
    gap: 20px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  .reassurance-grid {
    grid-template-columns: 1fr;
  }
  .symptom-grid, .services-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }
  .diagnostic-form-box {
    padding: 24px;
  }
  .before-after-slider {
    height: 300px;
  }
  .img-before img {
    width: 600px;
  }
  .mobile-cta-bar {
    display: grid;
  }
  .whatsapp-popup {
    bottom: 80px; /* Évite de masquer la barre de CTA mobile */
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
}

/* --- Section 4 Méthodes --- */
.methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.method-card {
  display: flex;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.method-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.method-img {
  width: 40%;
  flex-shrink: 0;
}

.method-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.method-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.method-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.method-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: lowercase;
}

@media (max-width: 1024px) {
  .methods-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .method-card {
    flex-direction: column;
  }
  .method-img {
    width: 100%;
    height: 180px;
  }
}

/* ==========================================================================
   RÈGLES D'ACCESSIBILITÉ WCAG 2.1 AA & WEBPERF (AUDIT WCAG & CORE WEB VITALS)
   ========================================================================== */

/* Focus accessible au clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cta) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.4) !important;
}

/* Cible tactile minimale de 44x44px pour l'ergonomie mobile */
button, 
.btn, 
.nav-link, 
.social-link,
.whatsapp-popup {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Respect des préférences de réduction de mouvement */
@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;
  }
}

/* Visibilité d'accessibilité screen readers (sr-only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   STYLE DU BOUTON POPUP WHATSAPP (DESKTOP SEULEMENT, MASQUÉ SUR MOBILE)
   ========================================================================== */
.whatsapp-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-popup:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-icon {
  font-size: 1.3rem;
}

/* MASQUAGE ABSOLU SUR MOBILE (ÉCRANS < 768px) POUR NE PAS SURCHARGER L'INTERFACE */
@media screen and (max-width: 768px) {
  .whatsapp-popup,
  a.whatsapp-popup,
  a[href*="wa.me"],
  a[href*="whatsapp"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


/* MASQUAGE DEFINITIF WHATSAPP SUR MOBILE (MAX-WIDTH 768PX) */
@media screen and (max-width: 768px) {
  .desktop-only-whatsapp,
  .whatsapp-popup {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
  }
}



/* ACCORDION FAQ STYLES (HTML5 DETAILS / SUMMARY) */
.faq-accordion {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.faq-accordion:hover {
  border-color: var(--accent, #00bcd4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-accordion[open] {
  border-color: var(--accent, #00bcd4);
  background: #ffffff;
}

.faq-summary {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary, #0f172a);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  color: var(--accent, #00bcd4);
}

.faq-summary::after {
  content: "\f078";
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--accent, #00bcd4);
  transition: transform 0.3s ease;
  margin-left: 12px;
}

.faq-accordion[open] .faq-summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 16px 20px 20px 20px;
  color: var(--text-color, #334155);
  line-height: 1.8;
  font-size: 0.98rem;
  border-top: 1px solid #f1f5f9;
}


/* --- Compact Footer Styling --- */
footer {
  background-color: var(--primary);
  color: #cbd5e1;
  padding: 40px 0 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.8fr 1.1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h3 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-about img {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.88rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.city-pill {
  display: inline-block;
  font-size: 0.78rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.city-pill:hover {
  background: var(--accent, #00bcd4);
  color: #0f172a;
  border-color: var(--accent, #00bcd4);
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 10px;
  font-size: 0.82rem;
}


/* ==============================================================================
   DESIGNS & OPTIMISATIONS RESPONSIVE MOBILES UNIVERSELLES (ANTI OVERFLOW)
   ============================================================================== */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  /* Grilles fluides 1 colonne sur mobile */
  .hero-grid,
  .reassurance-grid,
  .symptom-grid,
  .services-grid,
  .reviews-grid,
  .consequences-grid,
  .info-map-grid,
  .footer-grid,
  .diagnostic-grid,
  .methods-grid,
  .certifications-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Surcharger tout style inline 2 colonnes sur écran mobile */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Slider Avant/Après sans débordement horizontal */
  .before-after-slider {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .img-before img,
  .img-after img {
    max-width: 100% !important;
  }

  /* Conteneur principal */
  .container {
    padding: 0 16px !important;
    max-width: 100% !important;
  }
}


/* --- CENTRAGE ET PARFAIT ALIGNEMENT DES CARTES SUR MOBILE --- */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.certif-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 20px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.certif-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--accent);
}

.certif-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  text-align: center;
}

.certif-desc {
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .certifications-grid,
  .reassurance-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    gap: 16px !important;
  }

  .certif-item,
  .reassurance-item {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
  }

  .reassurance-item {
    padding: 18px !important;
    gap: 12px !important;
  }

  .reassurance-text {
    text-align: center !important;
  }
}
