/*
Theme Name: Pilates Luxe Studio
Description: Design haut de gamme - Tons sable, bronze et typographie Serif.
Version: 3.1
*/

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@200;300;400&display=swap");

:root {
  --sable: #f9f7f2;
  --anthracite: #2c2c2c;
  --bronze: #a68a56;
  --white: #ffffff;
}

/* --- Base --- */
body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--sable);
  color: var(--anthracite);
  margin: 0;
  padding: 0;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* --- Header & Navigation (Desktop) --- */
header {
  position: fixed;
  top: 0 !important; /* Force le contact avec le haut */
  left: 0;
  width: 100%;
  padding: 40px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease-in-out;
  box-sizing: border-box;
  background: transparent;
}

/* État au Scroll */
header.scrolled {
  width: 100% !important;
  padding: 15px 5%; /* On réduit seulement la hauteur (padding), pas la largeur */
  background-color: rgba(249, 247, 242, 0.98);
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
nav#main-nav.active {
  right: 0 !important; /* Ou display: flex !important; selon votre design */
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 40px;
}

nav ul li a {
  text-decoration: none;
  color: var(--anthracite);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  min-height: 80vh; /* Augmenté à 80vh pour voir le centrage, ou gardez votre valeur */
  display: flex;
  flex-direction: column;
  /* justify-content: flex-start;  <-- À supprimer */
  justify-content: center; /* Centre verticalement */
  align-items: center; /* Centre horizontalement */
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: 180px; /* Espace pour le header conservé */
  box-sizing: border-box;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-style: italic;
  margin: 0 0 20px 0;
  width: 100%; /* Assure que le h1 prend toute la largeur pour le text-align */
}

/* --- Burger Menu --- */
.burger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 2000;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--anthracite);
  transition: 0.3s;
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
  header {
    padding: 15px 5% !important;
    top: 0 !important;
  }

  header.scrolled {
    padding: 10px 5% !important;
  }

  .logo {
    font-size: 1.3rem;
  }

  .burger-menu {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
  }

  nav ul li {
    margin: 20px 0;
    margin-left: 0;
  }

  /* Animation Burger en X */
  .burger-menu.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
  }
  .burger-menu.toggle span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
  }
}

/* --- WP Admin Bar Correction (Fixe l'espace quand connecté) --- */
/* On remplace le top:0 par le décalage WP uniquement si présent */
.admin-bar header,
.admin-bar header.scrolled {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar header,
  .admin-bar header.scrolled {
    top: 46px !important;
  }
}

/* --- Elementor Card Luxe --- */
.e-con.card-luxe {
  background-color: var(--white) !important;
  padding: 40px !important;
  border: 1px solid rgba(166, 138, 86, 0.2) !important;
  transition: 0.4s ease;
}

.e-con.card-luxe:hover {
  transform: translateY(-10px) !important;
  border-color: var(--bronze) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05) !important;
}
/* --- Footer Design --- */
.site-footer {
  background-color: var(
    --white
  ); /* Fond blanc pour trancher doucement avec le sable du body */
  padding: 100px 8% 40px 8%;
  border-top: 1px solid var(--bronze-light);
  color: var(--anthracite);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 80px;
}

.footer-column .logo {
  display: block;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.footer-column p {
  font-size: 0.85rem;
  font-weight: 300;
  max-width: 300px;
  opacity: 0.8;
}

.footer-column .subtitle {
  margin-bottom: 25px;
  letter-spacing: 3px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a,
.social-links a {
  text-decoration: none;
  color: var(--anthracite);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  opacity: 0.7;
}

.footer-column ul li a:hover,
.social-links a:hover {
  opacity: 1;
  color: var(--bronze);
  padding-left: 5px; /* Petit mouvement fluide au survol */
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Barre de Copyright --- */
.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom p {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.5;
}

/* --- Responsive Footer --- */
@media screen and (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 600px) {
  .site-footer {
    padding: 60px 5% 30px 5%;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-column p {
    margin: 0 auto;
  }
  .footer-column ul li a:hover {
    padding-left: 0;
  }
  /* --- Style Single Article --- */

  .single-article {
    padding-top: 100px; /* Espace pour le header fixe */
  }

  /* Hero de l'article */
  .article-hero {
    text-align: center;
    padding: 80px 8% 0 8%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .article-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin: 20px 0;
    line-height: 1.2;
  }

  .article-info {
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
  }

  .featured-image {
    margin-top: 60px;
    height: 60vh;
    overflow: hidden;
  }

  .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
  }

  /* Contenu de l'article */
  .article-content-wrapper {
    background-color: var(--white);
    margin-top: -100px; /* Chevauchement élégant sur l'image */
    position: relative;
    z-index: 10;
    padding: 80px 5%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03);
  }

  .content-inner {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--anthracite);
  }

  /* Style des paragraphes et titres dans l'article */
  .content-inner p {
    margin-bottom: 30px;
  }

  .content-inner h2,
  .content-inner h3 {
    margin-top: 60px;
    margin-bottom: 25px;
    color: var(--bronze);
  }

  .content-inner blockquote {
    border-left: 2px solid var(--bronze);
    margin: 50px 0;
    padding-left: 30px;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--anthracite);
  }

  /* --- Responsive --- */
  @media screen and (max-width: 768px) {
    .article-hero {
      padding-top: 40px;
    }
    .article-content-wrapper {
      margin-top: 0;
      padding: 40px 8%;
    }
    .featured-image {
      height: 40vh;
    }
  }
  .content-inner > p:first-of-type::first-letter {
    font-family: "Playfair Display", serif;
    font-size: 4rem;
    float: left;
    margin-right: 15px;
    line-height: 1;
    color: var(--bronze);
  }
  /* --- BLOG HERO --- */
  .blog-hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
  }

  .blog-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    font-style: italic;
    margin-top: 10px;
  }

  /* --- BLOG GRID --- */
  .blog-container {
    padding: 100px 0;
    background-color: var(--sable);
  }

  .blog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
  }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 50px;
  }

  /* Featured Article (Le premier prend toute la largeur) */
  .blog-card.featured {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 60px;
  }

  .blog-card.featured .card-image-link {
    flex: 1.5;
  }

  .blog-card.featured .card-body {
    flex: 1;
    text-align: left;
  }

  /* Image Effects */
  .image-wrapper {
    overflow: hidden;
    position: relative;
    background-color: #eee;
  }

  .image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  }

  .blog-card:hover img {
    transform: scale(1.08);
  }

  /* Card Typography */
  .card-meta {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--bronze);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .blog-card h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .blog-card.featured h2 {
    font-size: 2.8rem;
  }

  .blog-card h2 a {
    text-decoration: none;
    color: var(--anthracite);
    transition: color 0.3s;
  }

  .blog-card h2 a:hover {
    color: var(--bronze);
  }

  .excerpt {
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.8;
  }

  /* Button Minimaliste */
  .btn-minimal {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--anthracite);
    border-bottom: 1px solid var(--bronze);
    padding-bottom: 5px;
    transition: all 0.3s;
  }

  .btn-minimal:hover {
    color: var(--bronze);
    padding-left: 10px;
  }

  /* Pagination Luxe */
  .blog-navigation {
    margin-top: 100px;
    text-align: center;
    border-top: 1px solid rgba(166, 138, 86, 0.2);
    padding-top: 50px;
  }

  .blog-navigation .page-numbers {
    margin: 0 15px;
    text-decoration: none;
    color: var(--anthracite);
    font-size: 0.9rem;
    transition: color 0.3s;
  }

  .blog-navigation .current {
    color: var(--bronze);
    font-weight: bold;
  }

  /* --- RESPONSIVE --- */
  @media screen and (max-width: 992px) {
    .blog-card.featured {
      flex-direction: column;
      gap: 30px;
    }
    .blog-grid {
      grid-template-columns: 1fr;
      gap: 60px;
    }
  }
  /* --- Grille des articles --- */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 80px 40px; /* Espacement large pour le luxe */
    padding: 60px 0;
  }

  .article-luxe {
    background: transparent;
    transition: all 0.5s ease;
  }

  /* --- Image avec badge date --- */
  .article-figure {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
  }

  .article-figure img {
    width: 100%;
    height: 450px; /* Hauteur fixe pour une grille harmonieuse */
    object-fit: cover;
    filter: grayscale(20%); /* Effet légèrement désaturé */
    transition:
      transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
      filter 0.5s ease;
  }

  .article-luxe:hover .article-figure img {
    transform: scale(1.05);
    filter: grayscale(0%);
  }

  .article-date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #fff;
    padding: 10px 15px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #1a1a1a;
  }

  /* --- Contenu de l'article --- */
  .article-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #b39371; /* Couleur bronze/or */
    display: block;
    margin-bottom: 15px;
  }

  .article-cat .sep {
    margin: 0 5px;
    opacity: 0.4;
  }

  .article-title {
    font-family:
      "Playfair Display", serif; /* Assurez-vous d'avoir cette police */
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 18px;
  }

  .article-title a {
    color: #1a1a1a;
    text-decoration: none;
    background-image: linear-gradient(#1a1a1a, #1a1a1a);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 0.5s;
  }

  .article-luxe:hover .article-title a {
    background-size: 100% 1px;
  }

  .article-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
  }

  /* --- Lien "Explorer" --- */
  .article-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #1a1a1a;
    font-weight: 600;
    transition: gap 0.3s ease;
  }

  .article-link:hover {
    gap: 25px;
    color: #b39371;
  }

  /* --- Responsive --- */
  @media (max-width: 768px) {
    .article-figure img {
      height: 350px;
    }
    .blog-grid {
      gap: 50px 20px;
    }
  }
  /* --- Conteneur Hero --- */
  .hero-elegant {
    height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
  }

  .hero-desc {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 40px;
    opacity: 0.9;
  }

  /* --- Boutons Élégants --- */
  .hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
  }

  .btn-luxe {
    padding: 16px 35px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px; /* L'élégance vient de l'espace entre les lettres */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
  }

  /* Bouton Plein (Primary) */
  .btn-fill {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #ffffff;
  }

  .btn-fill:hover {
    background-color: transparent;
    color: #ffffff;
  }

  /* Bouton Contour (Outline) */
  .btn-line {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }

  .btn-line:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* --- Responsive --- */
  @media (max-width: 768px) {
    .hero-actions {
      flex-direction: column;
      gap: 15px;
    }
    .btn-luxe {
      width: 100%;
      max-width: 280px;
    }
  }
  @media screen and (max-width: 768px) {
    /* On affiche le bouton burger */
    .burger-menu {
      display: flex;
    }

    /* Configuration du menu mobile "Large" */
    nav#main-nav {
      position: fixed;
      top: 0;
      right: -100%; /* Caché à droite par défaut */
      width: 100%; /* Largeur totale (100% de l'écran) */
      height: 100vh; /* Hauteur totale */
      background-color: var(--sable);
      display: flex;
      justify-content: center;
      align-items: center;
      transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); /* Animation fluide */
      z-index: 1050;
    }

    /* Quand le menu est ouvert (via JS) */
    nav#main-nav.active {
      right: 0;
    }

    /* Liste des liens en colonne et bien espacés */
    nav ul {
      flex-direction: column;
      text-align: center;
      width: 100%; /* Prend toute la largeur pour centrer le texte */
    }

    nav ul li {
      margin: 15px 0; /* Espacement vertical entre les liens */
      margin-left: 0;
    }

    nav ul li a {
      font-size: 1.2rem; /* On augmente la taille pour le mobile */
      letter-spacing: 4px; /* On accentue le style luxe */
    }
  } /* <--- TRÈS IMPORTANT : On ferme bien l'accolade ici ! */
}
