/*
Theme Name: Plombier Toulon
Theme URI: https://www.plombier-toulon.fr
Author: Plombier Toulon
Author URI: https://www.plombier-toulon.fr
Description: Thème WordPress pour le site rank and rent Plombier Toulon. Site professionnel de plomberie à Toulon et dans le Var avec pages de localisation, blog et formulaires de contact.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plombier-toulon
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
*/

/* ============================================
   Plombier Toulon - Rank & Rent Website
   Clean, Professional Plumbing Website
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e3a5f;
  --primary-light: #2a5298;
  --secondary: #2563eb;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --white: #ffffff;
  --light: #f8fafc;
  --light-blue: #eff6ff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
}

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

a:hover {
  color: var(--primary-light);
}

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header.scrolled { box-shadow: var(--shadow-lg); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.logo span { color: var(--accent); }

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.current-menu-item::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.current-menu-item,
.nav-links a.active { color: var(--primary); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-phone:hover { background: var(--accent-hover) !important; color: var(--white) !important; transform: translateY(-1px); }
.nav-phone svg { width: 18px; height: 18px; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.2; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.8; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-badge svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }

/* --- Section Common --- */
.section { padding: 5rem 0; }
.section-light { background: var(--light); }
.section-blue { background: var(--light-blue); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--gray-500); font-size: 1.1rem; }

.section-label {
  display: inline-block;
  background: var(--light-blue);
  color: var(--secondary);
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--secondary); }

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--light-blue);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--secondary);
}

.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.service-card p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 1rem; }

.service-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-link:hover { gap: 0.5rem; }

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-card { text-align: center; padding: 2rem 1.5rem; }

.why-number {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}

.why-card h3 { margin-bottom: 0.75rem; }
.why-card p { color: var(--gray-500); font-size: 0.95rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { opacity: 0.9; font-size: 1.15rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.cta-phone {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent) !important;
  display: block;
  margin-bottom: 1.5rem;
}

.cta-phone:hover { color: var(--white) !important; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.testimonial-stars { color: var(--accent); font-size: 1.125rem; margin-bottom: 1rem; }
.testimonial-card p { font-style: italic; color: var(--gray-700); margin-bottom: 1.25rem; line-height: 1.8; }

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial-author-info strong { display: block; color: var(--primary); }
.testimonial-author-info span { font-size: 0.85rem; color: var(--gray-500); }

/* --- Areas Served --- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.area-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.area-item:hover { border-color: var(--secondary); background: var(--light-blue); color: var(--secondary); }
.area-item svg { width: 18px; height: 18px; color: var(--secondary); flex-shrink: 0; }

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.blog-card-image svg { width: 48px; height: 48px; opacity: 0.5; }
.blog-card-body { padding: 1.5rem; }

.blog-card-tag {
  display: inline-block;
  background: var(--light-blue);
  color: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 0.75rem; line-height: 1.4; }
.blog-card-body h3 a { color: var(--primary); }
.blog-card-body h3 a:hover { color: var(--secondary); }
.blog-card-body p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1rem; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* --- Blog Article --- */
.blog-article { max-width: 800px; margin: 0 auto; }
.blog-article h1 { font-size: 2.25rem; margin-bottom: 1rem; }

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.blog-article h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.blog-article h3 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.blog-article p { margin-bottom: 1.25rem; line-height: 1.8; }

.blog-article ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-article ul li { margin-bottom: 0.5rem; line-height: 1.7; }

.blog-article blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-700);
}

.blog-article .cta-inline {
  background: var(--light-blue);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.blog-article .cta-inline p { margin-bottom: 1rem; font-style: normal; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--light-blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-card h4 { margin-bottom: 0.25rem; }
.contact-info-card p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 0; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.contact-form h3 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.375rem; color: var(--gray-700); font-size: 0.9rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.about-image {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.about-image svg { width: 80px; height: 80px; opacity: 0.4; }
.about-content h2 { margin-bottom: 1rem; }
.about-content p { color: var(--gray-500); margin-bottom: 1rem; }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.about-stat { text-align: center; }
.about-stat .stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; }
.about-stat .stat-label { font-size: 0.85rem; color: var(--gray-500); }

/* --- Service Detail --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

.service-detail-image {
  background: linear-gradient(135deg, var(--light-blue), var(--gray-100));
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.service-detail-image svg { width: 64px; height: 64px; opacity: 0.3; }
.service-detail-content h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-detail-content p { color: var(--gray-500); margin-bottom: 1rem; }
.service-detail-content ul { list-style: none; margin-bottom: 1.5rem; }
.service-detail-content ul li { padding: 0.375rem 0; padding-left: 1.5rem; position: relative; color: var(--gray-700); }
.service-detail-content ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-about .logo { color: var(--white); margin-bottom: 1rem; }
.footer-about .logo span { color: var(--accent); }
.footer-about p { opacity: 0.7; font-size: 0.95rem; }
.footer h4 { color: var(--white); margin-bottom: 1.25rem; font-size: 1.1rem; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* --- Breadcrumb --- */
.breadcrumb { padding: 6.5rem 0 1.5rem; background: var(--light); font-size: 0.9rem; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb span { color: var(--gray-500); margin: 0 0.5rem; }
.breadcrumb strong { color: var(--primary); }

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 7rem 0 3rem;
  text-align: center;
}

.page-header h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 0.75rem; }
.page-header p { opacity: 0.85; font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
  .about-image { height: 300px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 7rem 0 3rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
    align-items: flex-start;
    z-index: 999;
  }

  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.1rem; padding: 0.5rem 0; }
  .mobile-toggle { display: flex; z-index: 1001; }
  .hero-buttons { flex-direction: column; }
  .hero-badges { flex-direction: column; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .cta-phone { font-size: 1.75rem; }
  .section { padding: 3rem 0; }
  .page-header { padding: 6rem 0 2rem; }
  .page-header h1 { font-size: 2rem; }
  .blog-article h1 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.nav-overlay.active { display: block; }

/* --- WordPress Specific --- */
.wp-block-image img { border-radius: var(--radius-lg); }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.pagination {
  text-align: center;
  padding: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  transition: var(--transition);
}

.pagination a:hover,
.pagination span.current {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
