/*
Theme Name: Carrosserie Berger
Theme URI: https://carrosserieberger.fr
Author: Carrosserie Berger
Author URI: https://carrosserieberger.fr
Description: Thème personnalisé pour Carrosserie Berger - Garage automobile et carrosserie à Saint-Étienne et La Ricamarie depuis 1969
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carrosserie-berger
Template: twentytwentyfive
Tags: custom-logo, custom-menu, featured-images, responsive-design, two-columns

Carrosserie Berger WordPress Theme
Copyright (C) 2026 Carrosserie Berger
*/

/* CSS Variables - Couleurs principales */
:root {
  --color-gold: #D9C07C;
  --color-gold-soft: #E5D49A;
  --color-purple: #B21471;
  --color-pink: #D22364;
  --color-text: #000;
  --color-bg: #fff;
  --color-gray-light: #f5f5f5;
  --color-gray-medium: #666;
  --color-gray-dark: #4a5568;
  --color-footer-bg: #2d3748;
  --shadow-card: 3px 3px 15px rgba(0, 0, 0, 0.15);
  --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-image: 0 4px 12px rgba(0, 0, 0, 0.1);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-img: 12px;
  --transition-speed: 0.3s;
  --content-max-width: 800px;
  --section-spacing: 70px;
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

/* Images in content with rounded corners and shadows */
.entry-content img,
.post-thumbnail img,
article img {
  border-radius: var(--border-radius-img);
  box-shadow: var(--shadow-image);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.entry-content img:hover,
article img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

a:hover {
  color: var(--color-pink);
}

/* Typography */
h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

/* Utilitaires */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ========================================
   SINGLE POST STYLES
   ======================================== */

/* Entry Header */
.entry-header {
  margin-bottom: 3rem;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

.entry-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 14px;
  color: var(--color-gray-medium);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-gray-light);
}

.entry-meta time {
  font-weight: 500;
}

.category-links a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-gray-light);
  border-radius: 4px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition-speed);
}

.category-links a:hover {
  background: var(--color-gold);
  color: #fff;
}

/* Entry Content */
.entry-content {
  font-size: 17px;
  line-height: 1.8;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

.entry-content p {
  margin-bottom: 1.8rem;
}

.entry-content h2 {
  font-size: 26px;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-weight: 600;
}

.entry-content h3 {
  font-size: 22px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Section spacing */
.entry-content > * + * {
  margin-top: 0;
}

.entry-content section,
.entry-content .wp-block-group {
  margin-top: var(--section-spacing);
  margin-bottom: var(--section-spacing);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* Entry Footer */
.entry-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-light);
}

.tags-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags-links a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-gray-light);
  border-radius: 20px;
  color: var(--color-gray-medium);
  font-size: 13px;
  transition: all var(--transition-speed);
}

.tags-links a:hover {
  background: var(--color-purple);
  color: #fff;
}

/* Post Navigation */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-gray-light);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: block;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  display: block;
  padding: 1.5rem;
  background: var(--color-gray-light);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed);
}

.post-navigation a:hover {
  background: var(--color-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.post-navigation .nav-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

/* ========================================
   DESIGN IMPROVEMENTS
   ======================================== */

/* Hero Image with gradient overlay */
.post-thumbnail,
.entry-featured-image {
  position: relative;
  margin-bottom: 3rem;
  overflow: hidden;
  border-radius: var(--border-radius-img);
}

.post-thumbnail::after,
.entry-featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

/* Breadcrumbs */
.breadcrumbs,
.breadcrumb,
#breadcrumbs {
  font-size: 14px;
  color: var(--color-gray-medium);
  margin-bottom: 2rem;
  padding: 0.75rem 0;
}

.breadcrumbs a,
.breadcrumb a {
  color: var(--color-purple);
  transition: color var(--transition-speed);
}

.breadcrumbs a:hover,
.breadcrumb a:hover {
  color: var(--color-pink);
}

.breadcrumbs .separator,
.breadcrumb .separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Call-to-Action Buttons */
.cta-button,
.wp-block-button__link,
a.button,
button.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 28px;
  background: var(--color-purple);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(178, 20, 113, 0.3);
}

.cta-button:hover,
.wp-block-button__link:hover,
a.button:hover,
button.button:hover {
  background: var(--color-pink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178, 20, 113, 0.4);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  animation: slideInUp 0.5s ease-out;
}

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

/* Header with softer background */
.site-header,
header.header {
  background: linear-gradient(135deg, var(--color-gold-soft) 0%, var(--color-gold) 100%);
  box-shadow: var(--shadow-header);
}

/* Footer with unified color scheme */
footer.site-footer,
.site-footer {
  background: var(--color-footer-bg) !important;
  color: #e2e8f0 !important;
  padding: 3rem 0 2rem;
}

footer.site-footer a,
.site-footer a {
  color: var(--color-gold-soft) !important;
}

footer.site-footer a:hover,
.site-footer a:hover {
  color: #fff !important;
}

.footer-copyright {
  opacity: 0.9;
}

/* Highlight important numbers/prices */
.price-highlight,
.entry-content strong:has(€),
.entry-content b:has(€) {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 3px solid var(--color-gold);
  border-radius: 4px;
  font-weight: 700;
  color: var(--color-purple);
}

/* Social Sharing Buttons */
.social-share,
.share-buttons {
  display: flex;
  gap: 0.75rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-gray-light);
  border-radius: var(--border-radius-sm);
}

.social-share a,
.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  color: var(--color-gray-medium);
  transition: all var(--transition-speed);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-share a:hover,
.share-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Related Articles */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--color-gray-light);
}

.related-posts h3 {
  font-size: 24px;
  margin-bottom: 2rem;
}

/* Improved spacing for mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  :root {
    --section-spacing: 50px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .entry-title {
    font-size: 24px;
  }

  .entry-content {
    font-size: 16px;
  }

  .entry-content h2 {
    font-size: 22px;
    margin-top: 2.5rem;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .sticky-cta {
    bottom: 10px;
    right: 10px;
  }

  .social-share,
  .share-buttons {
    justify-content: center;
  }
}
