/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================================================
   VARIABLES DE DESIGN (Identité WHD)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

:root {
  --primary-gold: #c8a75d;
  --light-gold: #e1c47a;
  --dark-gold: #8f7335;
  --accent-green: #097969;
  --bg-dark: #060b08; /* Vert très sombre presque noir */
  --card-bg: rgba(20, 26, 24, 0.6);
  --text-light: #ffffff;
  --text-muted: #a4b3ae;
  --border-gold: rgba(212, 175, 55, 0.3);

  /* Typographies */
  --font-serif: "Playfair Display", serif;
  --font-logo: "Cinzel", serif;
  --font-sans: "Montserrat", sans-serif;
}

/* Base & Background Premium (Dégradé radial avec lueur verte WHD) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark) !important;
  background-image:
    radial-gradient(
      circle at 80% 20%,
      rgba(9, 121, 105, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(9, 121, 105, 0.12) 0%,
      transparent 50%
    ) !important;
  background-attachment: fixed !important;
  color: var(--text-light) !important;
  font-family: var(--font-sans) !important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Correction pour forcer le fond sombre sur WordPress */
#page,
.site,
#content {
  background: transparent !important;
}

/* ==========================================================================
   NEUTRALISATION DES COULEURS PAR DÉFAUT (Élimination du Rose Elementor)
   ========================================================================== */
a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff !important;
}

h1 a,
h2 a,
h3 a {
  color: var(--primary-gold) !important;
}

h1 a:hover,
h2 a:hover,
h3 a:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   BARRE DE NAVIGATION (HEADER GLOBAL)
   ========================================================================== */
.main-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 11, 8, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo WHD */
.logo-block {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
}

.logo-box {
  border: 1px solid var(--primary-gold);
  padding: 8px 10px;
  font-family: var(--font-logo);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-right: 12px;
  letter-spacing: 1px;
}

.logo-text h2 {
  font-family: var(--font-logo);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--primary-gold);
}

.logo-text p {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Liens de Navigation */
.navigation-menu-wrapper {
  margin-left: auto;
  margin-right: 50px;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-light) !important;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary-gold) !important;
}

.nav-menu li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-gold);
}

/* Bouton Prendre Contact */
.btn-contact {
  text-decoration: none;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold) !important;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 12px 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-contact:hover {
  background: var(--primary-gold);
  color: #000 !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Hamburger Menu (Mobile) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   SECTION INTRODUCTIVE (ARCHIVE DU BLOG / RECHERCHE)
   ========================================================================== */
.blog-intro-section {
  max-width: 1200px;
  margin: 50px auto 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.intro-text-side h1 {
  font-family: var(--font-serif);
  color: var(--primary-gold) !important;
  font-size: 2.3rem;
  font-weight: 500;
  margin-bottom: 15px;
  line-height: 1.3;
}

.intro-text-side p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.intro-search-side {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   FORMULAIRE DE RECHERCHE PERSONNALISÉ (searchform.php)
   ========================================================================== */
.search-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.search-form .search-wrapper {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 4px !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 50px !important;
  overflow: hidden !important;
}

.search-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-gold) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2) !important;
}

/* Neutralisation complète des styles d'inputs WordPress */
.search-bar {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 50px 0 20px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  outline: none !important;
  box-shadow: none !important;
  height: 100% !important;
  margin: 0 !important;
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Bouton Recherche sur-mesure */
.search-submit-btn {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  height: 100% !important;
  width: 50px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--primary-gold) !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.2s ease !important;
}

.search-submit-btn:hover {
  transform: scale(1.1) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   BLOG CONTENEUR & CARTES
   ========================================================================== */
.blog-container {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  background: var(--card-bg);
  overflow: hidden;
  margin-bottom: 50px;
  backdrop-filter: blur(10px);
}

.featured-img {
  background-size: cover;
  background-position: center;
  min-height: 380px;
}

.featured-content {
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.featured-content h2 {
  font-family: var(--font-serif);
  color: var(--primary-gold) !important;
  font-size: 1.6rem;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 20px;
}

.featured-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.btn-gold-filled {
  background: var(--primary-gold);
  color: #111 !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 14px 28px;
  border-radius: 4px;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-gold-filled:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
  box-shadow: 0 8px 25px rgba(9, 121, 105, 0.15);
}

.card-img-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .card-img-container img {
  transform: scale(1.05);
}

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-tag {
  background-color: var(--accent-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  align-self: flex-start;
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.card-body h3 {
  font-family: var(--font-serif);
  color: var(--primary-gold) !important;
  font-size: 1.1rem;
  margin: 0 0 15px 0;
  line-height: 1.4;
  font-weight: 500;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Page d'absence de résultats */
.no-results-container {
  text-align: center;
  padding: 80px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
}

/* ==========================================================================
   STYLE DU MODÈLE D'ARTICLE UNIQUE (single.php)
   ========================================================================== */
.single-post-wrapper {
  max-width: 850px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

/* Lien Retour au Blog */
.back-to-blog {
  color: var(--primary-gold) !important;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: opacity 0.3s ease;
  display: inline-block;
  margin-bottom: 30px;
}

.back-to-blog:hover {
  opacity: 0.8;
}

/* En-tête */
.post-header-detail {
  text-align: center;
  margin-bottom: 40px;
}

.post-title-detail {
  font-family: var(--font-serif) !important;
  color: var(--primary-gold) !important;
  font-size: 2.5rem !important;
  line-height: 1.3;
  margin-top: 15px;
  margin-bottom: 20px;
  font-weight: 500;
}

.post-meta-detail {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.post-meta-detail .meta-separator {
  color: var(--primary-gold);
}

/* Image principale */
.post-thumbnail-detail {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  margin-bottom: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-thumbnail-detail img {
  width: 100%;
  height: auto;
  display: block;
}

/* Corps de l'article */
.post-content-body {
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

.post-content-body p {
  margin-bottom: 25px;
}

.post-content-body h2,
.post-content-body h3 {
  font-family: var(--font-serif);
  color: var(--primary-gold) !important;
  margin-top: 45px;
  margin-bottom: 20px;
  font-weight: 500;
}

.post-content-body h2 {
  font-size: 1.8rem;
}
.post-content-body h3 {
  font-size: 1.4rem;
}

.post-content-body blockquote {
  border-left: 3px solid var(--primary-gold);
  padding-left: 25px;
  margin: 35px 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  padding-top: 15px;
  padding-bottom: 15px;
}

.post-content-body a {
  color: var(--primary-gold) !important;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.post-content-body a:hover {
  opacity: 0.8;
}

/* Encadré d'appel à l'action final (CTA) */
.post-cta-box {
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  backdrop-filter: blur(10px);
}

.post-cta-box h3 {
  font-family: var(--font-serif);
  color: var(--primary-gold) !important;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.post-cta-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto 25px auto;
  line-height: 1.6;
}

/* Ajustement des étiquettes (Tags WP) */
.post-tags {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-tags .tag-label {
  color: var(--primary-gold);
  font-weight: 600;
}

.post-tags a {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 2px;
  text-decoration: none;
  margin-left: 5px;
  font-size: 0.8rem;
  transition: background 0.3s ease;
}

.post-tags a:hover {
  background: var(--primary-gold);
  color: #000 !important;
}

/* ==========================================================================
   FOOTER (PIED DE PAGE GLOBAL)
   ========================================================================== */
.main-footer {
  background: #040806;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px 0;
  margin-top: 80px;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

/* Slogan au Centre */
.footer-slogan {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
  flex: 1;
  padding: 0 20px;
}

/* Réseaux Sociaux à droite */
.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light) !important;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.social-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

/* Ligne de séparation */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
}

/* Ligne du bas */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.footer-link {
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-gold) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablettes & Mobiles)
   ========================================================================== */
@media (max-width: 991px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #060b08;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
    align-items: flex-start;
  }

  .nav-menu.mobile-active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .btn-contact {
    display: none;
  }

  .blog-intro-section {
    display: flex;
    flex-direction: column-reverse;
  }
  .featured-post {
    display: flex;
    flex-direction: column;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-slogan {
    padding: 10px 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
}
