/*
Theme Name: Comptabilité Pro Suisse
Theme URI: https://example.com
Author: Votre Nom
Author URI: https://example.com
Description: Thème professionnel pour cabinet comptable suisse avec design rassurant et fonctionnalités avancées
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comptabilite-pro
*/

/**
 * STRUCTURE DU THÈME
 * 
 * /comptabilite-pro/
 * ├── style.css (ce fichier)
 * ├── functions.php
 * ├── index.php
 * ├── header.php
 * ├── footer.php
 * ├── front-page.php (page d'accueil)
 * ├── page-entreprise.php (template présentation)
 * ├── archive.php (page catégories avec Masonry)
 * ├── single.php
 * ├── /assets/
 * │   ├── /css/
 * │   │   └── custom.css
 * │   └── /js/
 * │       ├── masonry-init.js
 * │       └── theme.js
 * ├── /template-parts/
 * │   ├── content-service.php
 * │   └── content-article.php
 * └── screenshot.png
 */

/* ===============================================
   VARIABLES CSS PERSONNALISABLES
   =============================================== */
:root {
  /* Couleurs principales - personnalisables via le customizer */
  --color-primary: #1e3a5f;
  --color-secondary: #2c5282;
  --color-accent: #c89b3c;
  --color-light: #f8f9fa;
  --color-dark: #2d3748;
  --color-text: #4a5568;
  --color-border: #e2e8f0;
  
  /* Typographie */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  
  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

/* ===============================================
   RESET & BASE
   =============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */
.site-header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary) !important;
  font-weight: 700;
}

.navbar-nav .nav-link {
  color: var(--color-dark);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--color-accent);
}

/* ===============================================
   PAGE D'ACCUEIL - SERVICES COMPTABLES
   =============================================== */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z"></path></svg>') no-repeat bottom;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  color: white;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
}

.services-section {
  padding: var(--spacing-xl) 0;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-top: 4px solid var(--color-accent);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.service-title {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

/* ===============================================
   TRUST SECTION - RIGUEUR & SÉRIEUX
   =============================================== */
.trust-section {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-lg) 0;
}

.trust-item {
  text-align: center;
  padding: var(--spacing-md);
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* ===============================================
   PAGE CATÉGORIES - MASONRY LAYOUT
   =============================================== */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.masonry-item {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.masonry-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.masonry-content {
  padding: var(--spacing-md);
}

.masonry-category {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

.masonry-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.masonry-excerpt {
  color: var(--color-text);
  font-size: 0.95rem;
}

/* ===============================================
   PAGE ENTREPRISE
   =============================================== */
.about-section {
  padding: var(--spacing-xl) 0;
}

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.value-item {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.value-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

/* ===============================================
   FOOTER
   =============================================== */
.site-footer {
  background: var(--color-dark);
  color: white;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-title {
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.footer-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-accent);
}

/* ===============================================
   BOUTONS
   =============================================== */
.btn-primary {
  background: var(--color-accent);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #b08a35;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--color-accent);
  color: white;
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-number {
    font-size: 2rem;
  }
}

/* ===============================================
   UTILITAIRES
   =============================================== */
.section-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.section-subtitle {
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-size: 1.125rem;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: var(--spacing-md) auto;
}