/*
Theme Name: Docteur Auto
Description: Thème WordPress professionnel complet pour garage automobile - Style Premium & Robuste
Version: 3.9
Author: Docteur Auto
*/

/* --- IMPORT DES POLICES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-dark: #0b3c5d;
  --primary-light: #1ca9c9;
  --bg-color: #f0f2f5;
  --white: #ffffff;
  --text-color: #1f2a44;
  --shadow-premium: 0 15px 35px rgba(11, 60, 93, 0.1);
  --shadow-button: 0 8px 0px rgba(11, 60, 93, 0.1);
}

/* --- RESET & STRUCTURE DE BASE --- */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body {
  height: 100%;
  width: 100%;
  background-color: var(--bg-color) !important;
  scroll-behavior: smooth;
}

/* --- LOGO EN FOND D'ÉCRAN (WATERMARK UNIQUE) --- */
html::after {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-image: url('https://www.docteurauto.gerscloud.fr/wp-content/uploads/2026/02/473429265_9355619457815996_2202592025712400804_n.jpg') !important; 
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 75% auto !important; /* Taille légèrement réduite pour plus d'élégance */
  opacity: 0.10 !important;
  z-index: -999 !important;
  pointer-events: none !important;
  display: block !important;
}

/* --- NETTOYAGE DES ÉLÉMENTS INDÉSIRABLES DU THÈME --- */
header img, 
.logo, 
.site-logo, 
.custom-logo, 
.custom-logo-link, 
.header-logo, 
.wp-block-site-logo, 
[class*="logo"] img,
.site-header img {
  display: none !important;
  visibility: hidden !important;
}

/* --- FORCER LA TRANSPARENCE ET LE CENTRAGE --- */
body, #page, #content, .site, .site-content, .content-area, main, article, .entry-content, .post-inner, .wrapper, #main, .site-main {
  background-color: transparent !important;
  background: transparent !important;
  max-width: 100% !important;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center; /* Assure le centrage global */
}

/* --- HEADER ET MENU DE NAVIGATION ÉLÉGANT --- */
header {
  width: 100%;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 20px 0;
  border-bottom: 3px solid var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Menu WordPress */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 40px;
  padding: 0;
  margin: 0;
}

.main-navigation li a {
  text-decoration: none;
  color: var(--primary-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.main-navigation li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-light);
  transition: width 0.3s ease;
}

.main-navigation li a:hover::after {
  width: 100%;
}

.main-navigation li a:hover {
  color: var(--primary-light);
}

/* --- SECTION HERO / INTRODUCTION --- */
.hero {
  width: 100%;
  max-width: 800px;
  padding: 60px 20px;
  text-align: center;
  margin: 40px auto 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-premium);
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero .subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--primary-light);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero .description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.7;
  font-weight: 500;
}

/* --- PAGE LINK IN BIO (BOUTONS PREMIUM) --- */
.wrapper {
  width: 100%;
  max-width: 500px;
  margin: 20px auto 60px !important;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.link-card {
  background: var(--white);
  padding: 20px 30px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-button);
  border: 1px solid rgba(11, 60, 93, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(11, 60, 93, 0.12);
  border-color: var(--primary-light);
}

.link-card.featured {
  background: linear-gradient(135deg, var(--primary-dark), #165681);
  color: white;
  border: none;
  box-shadow: 0 8px 0px rgba(11, 60, 93, 0.2);
}

.link-card i, .link-card svg {
  margin-right: 15px;
  font-size: 1.2rem;
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: var(--primary-dark);
  color: white;
  padding: 50px 20px;
  text-align: center;
  margin-top: auto;
  position: relative;
  z-index: 10;
  border-top: 5px solid var(--primary-light);
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero {
    margin: 20px 15px;
    padding: 40px 15px;
  }
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1rem; }
  .main-navigation ul { gap: 20px; }
  .main-navigation li a { font-size: 0.75rem; }
}
.swiper {
  width: 100vw; /* Utilise toute la largeur de l'écran */
  height: 50vh;
  margin-left: calc(-50vw + 50%); /* Astuce pour sortir des marges de l'article */
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Évite de déformer vos photos de voitures */
}
.swiper-slide img {
  object-fit: cover;
  object-position: center; /* Ou 'top', 'bottom' selon l'angle de tes photos */
}