/*
Theme Name: Ma jolie Trousse
Description: Thème personnalisé pour blog féminin lifestyle
Author: Justine
Version: 1.0.1
Text Domain: ma-jolie-trousse
*/

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #262626;
  background: linear-gradient(to bottom, #fafafa, rgba(251, 113, 133, 0.05));
  min-height: 100vh;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif; /* Ajout de la police pour les titres */
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.italic {
  font-style: italic;
  font-weight: 200;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  gap: 3rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr; }
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #f5f5f5;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px; /* On donne une hauteur fixe au header. Ajustez si besoin. */
  padding: 0;   /* On enlève l'ancien padding */
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #fb7185, #ec4899, #fbbf24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-size: 1.25rem;
}

.site-title {
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  background: linear-gradient(to right, #262626, #e11d48);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ==========================================================================
   Style des Titres de Cartes d'Articles
   ========================================================================== */

/* Cible le lien à l'intérieur du titre de la carte (y compris les liens déjà visités) */
.article-card .article-title a,
.article-card .article-title a:visited {
    color: #262626;          /* Applique votre couleur de texte/titre principale (#262626) */
    text-decoration: none;   /* Supprime le soulignement */
    transition: color 0.3s ease; /* Ajoute une transition douce pour le survol */
}

/* Change la couleur du titre quand on survole la carte entière */
.article-card:hover .article-title a {
    color: #e11d48; /* Applique votre couleur d'accentuation rose */
}



/* ==========================================================================
   Style des Titres UNIQUEMENT dans les Articles (H2 et H3) - Version FINALE
   Utilise la classe .single-post pour une précision maximale
   ========================================================================== */

/* Cible les titres H2 UNIQUEMENT sur les pages d'articles */
.single-post .post-content h2.wp-block-heading,
.single-post .post-content h2 {
    position: relative; 
    padding-bottom: 0.5em;
    margin-bottom: 1.5em !important;
}

/* Crée le soulignement rose UNIQUEMENT pour les H2 des articles */
.single-post .post-content h2.wp-block-heading::after,
.single-post .post-content h2::after {
    content: ''; 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #e11d48;
}

/* --- On passe aux titres H3 --- */

/* Cible les titres H3 UNIQUEMENT sur les pages d'articles */
.single-post .post-content h3.wp-block-heading,
.single-post .post-content h3 {
    position: relative;
    display: flex;
    align-items: center;
}

/* Crée la petite flèche rose UNIQUEMENT pour les H3 des articles */
.single-post .post-content h3.wp-block-heading::before,
.single-post .post-content h3::before {
    content: '›'; 
    color: #e11d48;
    font-size: 1.6em;
    font-weight: bold;
    margin-right: 0.5em;
    position: relative;
    top: -0.05em; 
}

/* ==========================================================================
   Style de la Boîte Auteur pour Articles (Version horizontale)
   ========================================================================== */
.author-box-single {
    padding: 3rem 0;
    margin: 4rem 0;
    background: #fdfdff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.author-grid-single {
    display: grid;
    grid-template-columns: 250px 1fr; /* Colonne image plus petite */
    gap: 3rem;
    align-items: center;
}

.author-content-single .author-info {
    padding-left: 0;
    border-left: none; /* Pas de bordure ici pour un look plus épuré */
}

.author-content-single .author-byline {
    font-size: 0.8rem;
    color: #e11d48; /* Couleur rose */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.author-content-single .author-name {
    font-size: 1.8rem; /* Un peu plus petit que sur la home */
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.author-content-single .author-bio {
    font-size: 0.95rem;
    color: #525252;
    line-height: 1.7;
}

.author-image-single .author-image-container .author-image {
    height: 18rem; /* Image moins haute que sur la home */
}

/* On cache la grosse décoration colorée sur cette version */
.author-image-single .author-decoration {
    display: none;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .author-grid-single {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 2rem;
    }
    .author-image-single {
        max-width: 250px;
        margin: 0 auto; /* Centre l'image quand elle est en haut */
    }
}

/* ==========================================================================
   NAVIGATION - VERSION FINALE ET CORRECTE
   ========================================================================== */

/* Conteneur <nav> et recherche sur desktop */
.main-nav {
    display: flex;
    align-items: center;
}

.search-form {
    position: relative;
    margin-left: 2rem;
}

/* Menu de navigation sur desktop */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #525252;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.main-nav a:hover {
    color: #e11d48;
}

.search-input {
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #e5e5e5;
    border-radius: 9999px;
    background: rgba(245, 245, 245, 0.5);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #fda4af;
    box-shadow: 0 0 0 3px rgba(253, 164, 175, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a3a3a3;
    width: 1rem;
    height: 1rem;
}

/* Bouton du menu mobile (hamburger) */
.mobile-menu-toggle {
    display: none; /* Caché par défaut sur desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100; /* Important pour qu'il soit au-dessus du menu ouvert */
}

/* Responsive - Passage en mode mobile */
@media (max-width: 1024px) {
    /* Cache le menu desktop et la recherche */
    .main-nav { display: none; }
    .search-form { display: none; }

    /* Affiche le bouton hamburger */
    .mobile-menu-toggle { display: block; }

    /* Style du menu quand il est ouvert sur mobile (classe .mobile-open) */
    .main-nav.mobile-open {
        display: flex; /* Affiche le menu */
        position: fixed; /* Passe par-dessus tout le contenu */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding-top: 6rem;
        flex-direction: column;
        align-items: center;
        z-index: 99;
    }

    /* La liste <ul> en mode mobile */
    .main-nav.mobile-open ul {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        text-align: center;
        background: white;
    }

    .main-nav.mobile-open a {
        font-size: 1.5rem; /* Liens plus gros pour une meilleure accessibilité */
    }
}


/* Hero Section */
.hero-section {
  height: 70vh;
  background: linear-gradient(135deg, #fdf2f8 0%, #fef7ff 50%, #fffbeb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
}

.hero-decoration-1 {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  width: 8rem;
  height: 8rem;
  background: rgba(253, 164, 175, 0.3);
  border-radius: 50%;
  filter: blur(3rem);
}

.hero-decoration-2 {
  position: absolute;
  bottom: 5rem;
  left: 2.5rem;
  width: 10rem;
  height: 10rem;
  background: rgba(251, 191, 36, 0.2);
  border-radius: 50%;
  filter: blur(3rem);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 300;
  color: #262626;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-style: italic;
  font-weight: 200;
  color: #e11d48;
}

.hero-description {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #525252;
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  background: #262626;
  color: white;
  padding: 1rem 3rem;
  border: 1px solid #262626;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s ease;
  transform: scale(1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  display: inline-block;
}

.hero-cta:hover {
  background: #e11d48;
  border-color: #e11d48;
  transform: scale(1.05);
  color: white;
}

/* Author Section */
.author-section {
  padding: 5rem 0 8rem;
  background: white;
}

.author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .author-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .author-content { order: 2; }
  .author-image { order: 1; }
}

.author-quote {
  position: relative;
  padding-left: 2rem;
}

.quote-icon {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 3rem;
  height: 3rem;
  color: #fda4af;
}

.author-quote blockquote {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 300;
  color: #525252;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 2rem;
}

.author-info {
  border-left: 2px solid #fda4af;
  padding-left: 2rem;
}

.author-name {
  font-size: 2.25rem;
  font-weight: 300;
  color: #262626;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.author-title {
  color: #e11d48;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.author-bio {
  color: #525252;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 300;
  font-size: 1.125rem;
}

.author-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  color: #525252;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.social-link:hover {
  color: #e11d48;
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.author-image-container {
  position: relative;
}

.author-image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fdf2f8, #fffbeb);
  border-radius: 0.5rem;
  transform: rotate(3deg);
}

.author-image-frame {
  position: relative;
  background: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.author-image {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.author-decoration {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 6rem;
  height: 6rem;
  background: rgba(253, 164, 175, 0.5);
  border-radius: 50%;
  filter: blur(2rem);
}

/* Concept Section */
.concept-section {
  padding: 5rem 0 2rem;
  background: linear-gradient(to bottom, #fafafa, white);
}

.concept-header {
  text-align: center;
  margin-bottom: 5rem;
}

.concept-title {
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 300;
  color: #262626;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.concept-title .italic {
  color: #e11d48;
  font-weight: 200;
}

.concept-description {
  max-width: 64rem;
  margin: 0 auto;
  font-size: 1.25rem;
  color: #525252;
  line-height: 1.6;
  font-weight: 300;
}

/* Categories Section */
.categories-section {
  padding: 5rem 0 8rem;
  background: white;
}

.categories-header {
  text-align: center;
  margin-bottom: 4rem;
}

.categories-title {
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 300;
  color: #262626;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.categories-title .italic {
  color: #e11d48;
  font-weight: 200;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.category-card {
  background: linear-gradient(135deg, #fafafa, rgba(251, 113, 133, 0.05));
  padding: 2rem;
  transition: all 0.5s ease;
  transform: translateY(0);
  cursor: pointer;
  border: 1px solid #f5f5f5;
}

.category-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(-0.75rem);
  border-color: #fda4af;
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.category-icon {
  width: 2rem;
  height: 2rem;
  margin-right: 1rem;
}

.category-name {
  font-size: 1.25rem;
  font-weight: 300;
  color: #262626;
  letter-spacing: 0.05em;
}

.category-image {
  aspect-ratio: 16/9;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: brightness(1);
}

.category-card:hover .category-image img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.category-description {
  color: #525252;
  line-height: 1.6;
  font-weight: 300;
}

/* Articles Section */
.articles-section {
  padding: 5rem 0 8rem;
  background: linear-gradient(to bottom, #fafafa, rgba(251, 113, 133, 0.03));
}

.articles-header {
  text-align: center;
  margin-bottom: 4rem;
}

.articles-title {
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 300;
  color: #262626;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.articles-title .italic {
  color: #e11d48;
  font-weight: 200;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.article-card {
  background: white;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  transform: translateY(0);
  cursor: pointer;
  border: 1px solid #f5f5f5;
}

.article-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(-0.5rem);
  border-color: #fda4af;
}

.article-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: brightness(1);
}

.article-card:hover .article-image img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.article-content {
  padding: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.article-category {
  font-size: 0.75rem;
  font-weight: 300;
  color: #e11d48;
  background: #fdf2f8;
  padding: 0.5rem 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.article-date {
  font-size: 0.75rem;
  color: #a3a3a3;
  margin-left: auto;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 300;
  color: #262626;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.article-card:hover .article-title {
  color: #e11d48;
}

.article-excerpt {
  color: #525252;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.article-link {
  color: #e11d48;
  font-weight: 300;
  text-decoration: none;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.article-link:hover {
  color: #be185d;
  transform: translateX(0.25rem);
}

.article-link svg {
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
}

/* Newsletter Section */
.newsletter-section {
  padding: 5rem 0 8rem;
  background: linear-gradient(135deg, #fb7185, #ec4899, #fbbf24);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.newsletter-decoration-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(3rem);
}

.newsletter-decoration-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20rem;
  height: 20rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(3rem);
}

.newsletter-content {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.newsletter-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 3rem 4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-title {
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 300;
  color: white;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.newsletter-title .italic {
  font-weight: 200;
}

.newsletter-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  font-weight: 300;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex: 1;
  padding: 1rem 2rem;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.newsletter-submit {
  background: #262626;
  color: white;
  padding: 1rem 3rem;
  border: none;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s ease;
  transform: scale(1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.newsletter-submit:hover {
  background: #171717;
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: #171717;
  color: white;
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #fb7185, #ec4899, #fbbf24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.footer-description {
  color: #a3a3a3;
  line-height: 1.6;
  font-weight: 300;
}

.footer-section h4 {
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a3a3a3;
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: #a3a3a3;
  transition: all 0.3s ease;
  transform: scale(1);
}

.footer-social a:hover {
  color: white;
  transform: scale(1.1);
}

.footer-social svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid #404040;
  padding-top: 3rem;
  text-align: center;
  color: #a3a3a3;
  font-weight: 300;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive (Mobile last) */
@media (max-width: 640px) {
  .hero-section {
    height: 60vh;
  }
  
  .author-section,
  .concept-section,
  .categories-section,
  .articles-section,
  .newsletter-section {
    padding: 3rem 0 5rem;
  }
  
  .newsletter-box {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   Contenu des articles (Typographie et Espacement) - CORRIGÉ ET DÉPLACÉ
   ========================================================================== */
/* Cible les paragraphes, listes, et autres blocs de l'article */
.container > div p,
.container > div ul,
.container > div ol,
.container > div blockquote,
.container > div .wp-block-table,
.container > div .wp-block-embed,
.container > div .wp-block-group {
    margin-bottom: 1.75em !important;
}

/* Cible les titres Gutenberg et leur ajoute de l'espace AVANT et APRÈS */
.container > div .wp-block-heading {
    margin-top: 2.5em !important;
    margin-bottom: 1.25em !important;
}

/* Style pour les listes */
.container > div ul,
.container > div ol {
    padding-left: 1.5em;
}

/* ==========================================================================
   CORRECTION HERO MOBILE
   ========================================================================== */

@media (max-width: 768px) {
  .hero-section {
    /* On annule la hauteur fixe pour que le contenu ne soit plus coupé */
    height: auto; 
    
    /* On remplace la hauteur par du padding pour garder un bel espace visuel */
    padding-top: 8rem;
    padding-bottom: 8rem;
    
    /* Par sécurité, on s'assure que rien ne soit caché s'il devait dépasser */
    overflow: visible; 
  }
  
  /* Optionnel mais recommandé : On peut aussi réduire un peu la taille des textes 
     pour un meilleur équilibre sur mobile */
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3rem); /* Rend la taille du titre plus flexible */
  }
  
  .hero-subtitle {
     font-size: clamp(1.8rem, 8vw, 3rem); /* Idem pour le sous-titre */
  }

  .hero-description {
    font-size: 1.1rem; /* Une taille plus raisonnable pour la description */
    margin-bottom: 2.5rem; /* On ajuste la marge */
  }
}